Script overriding engine??
by Ero "Super Newbie" Sennin · in Torque Game Engine · 02/20/2004 (9:20 pm) · 4 replies
I'm playing around with some of the player code (i'm a newb to torque) and i was changing the jumping force and mass of the player. When I ran the engine no changes occured. Do the scripts take presedence over the engine??
#2
The easiest way to do it is create a new text file called DSO_Delete.txt, put this line in it...
del *.dso /s
Save and then change the extension from .txt to .bat. After that, place the new file in the torque folder with your .exe's .dll's and main.cs files.
After you make any changes in the code click on the BAT file, it will delete all the DSO's in all of the directories under it and you will know for sure you are getting a clean compile.
for those of you that do a lot of mapping and end up getting a bunch of MissionLighting files in your missions folder, you could add...
del *.ml /s
directly beneath the DSO line and it will wipe those clean as well.
The most common reasons why code changes have no effect are...
1. You modified the wrong files.
2. You did not get a compile of the new code.
02/21/2004 (12:00 am)
Although you shouldn't need to (better safe than sorry) delete your .dso's after any script changes to ensure that the new code is compiled and executed.The easiest way to do it is create a new text file called DSO_Delete.txt, put this line in it...
del *.dso /s
Save and then change the extension from .txt to .bat. After that, place the new file in the torque folder with your .exe's .dll's and main.cs files.
After you make any changes in the code click on the BAT file, it will delete all the DSO's in all of the directories under it and you will know for sure you are getting a clean compile.
for those of you that do a lot of mapping and end up getting a bunch of MissionLighting files in your missions folder, you could add...
del *.ml /s
directly beneath the DSO line and it will wipe those clean as well.
The most common reasons why code changes have no effect are...
1. You modified the wrong files.
2. You did not get a compile of the new code.
#3
02/21/2004 (12:15 am)
Also, look in the console for error messages if your code isnt being compiled.
#4
02/21/2004 (3:52 pm)
I'm on an mac .bat's don't work for me but a ./exec will
Associate Kyle Carter