Game Development Community

Problems with shooter Tutorial

by Juan Gril · in Torque Game Builder · 11/07/2006 (12:27 pm) · 4 replies

While doing the shooter Tutorial, and being in section 3 (adding Player Input), I created the player.cs file with no errors and I made sure it is properly called from game.cs.

I run the game with no errors, but the keys don't work.

I called the console, and I see the log line:

"Executing shooterTutorial/gameScripts/player.cs"

However, if I type "pShipUp();" in the console, I get the following:

"shooterTutorial/gameScripts/player.cs (42): Unable to find object: '' attempting to call function 'updateMovement'

Line 42 is where the call to the updateMovement function is done from the pShipUp function.

Interestingly enough, every time I execute the game, the player.cs.dso file is not generated. It's the only .dso file that it's not generated. I already cleaned all the .dso files and tried again with no luck.

The name of the sprite and its class in level builder are correct.

Any ideas?

Thanks,

Juan

#1
11/07/2006 (1:00 pm)
If you not create a player.cs.dso then there is an error in that cs file. Check your console.
#2
11/07/2006 (1:28 pm)
Nope. At the top of the console, it says "No script compilation erros occured". The log doesn't show any errors after reading player.cs.

Like I said, player.cs file seems to have been read, but no .dso file is generated.

This is the only project where this behavior is happening. All my other projects seem to work fine.
#3
11/07/2006 (1:34 pm)
The only thing I can think of is that you maybe saved the script file from a program that appended .txt to the file name and it's not showing up normally.

But really, it seems like you checked all the obvious things, so I don't know. I'd go through the process of creating the script file again carefully and see if it magically works the second time. I love/hate when that happens.
#4
11/07/2006 (7:13 pm)
Yeah, I hate it too.

So I started the project from scratch again, and this time it worked. So cheers for the miracle!

Thanks for your help.

Juan