Game Development Community

?? about script updates

by Marvin Hawkins · in Torque Game Engine · 03/31/2005 (8:24 am) · 3 replies

Hi all,

Marvin here back with another question. I recently completed chapter 4 and i did it with my own code. I tested my scripts by typing them one at a time and using ken's scripts from the cd that i hadn't gotten to yet. But then i replaced all ken's scripts with my own when i was done. To make sure it was my code, I changed a few values like (player.cs) and then ran the program to see the results. Things like the player's avatar's speed and mass worked every time I made a change to the script and saved it. However things like the keybindings did not change. I tried changing my keys to the standard WASD config but when i pressed those buttons they didn't work. Instead the keys used in the book were the keys that worked. I know that when you compile your source code the engine changes it to .cs.dso. So my question is after your source is compiled, are the .cs.dso files what are used to run the program?

sorry this is a really confusing question? Any help as always is greatly appreciated.

#1
03/31/2005 (8:34 am)
Hi,
there is a config.cs file in the main folder, open it and you'll see all the keybindings and probabily you see the old ones, so when you change the keybindings in your scripts change them also in config.cs, or delete config.cs. This file is the last one loaded and it will change all the mod you did to the keybindings.
#2
03/31/2005 (2:29 pm)
Okay thats good but what about the .cs.dso files? are they updated every time I run the game? In other words, when i run tge.exe, does it recompile the script files?
#3
04/01/2005 (8:11 am)
Yes, it recompiles the scripts only if they have been changed