Doest always update code on game boot ?
by Steve Bisson · in Torque Game Builder · 04/17/2006 (1:35 am) · 7 replies
Am i crazy or the code is not always updated when you exit and re-enter TGB ? i save my script file , re-enter the software and the changes don't appear ? that seems to happen a lot.
#2
04/17/2006 (8:35 am)
Sure that you edited script files that are even used in the project you test them? *-game yourproject* (if they are nowhere used they don't get touched ...)
#3
If you blow away the compiled (.dso) versions first like Damian suggests, it is more obvious when compile errors happen, because then it doesn't have an older version to fall back to and everything breaks. :)
04/17/2006 (12:23 pm)
It will revert to the older version if the .cs file's time/date is earlier than the .dso version or if the .cs file has errors in it and fails to compile. Check your console log for errors when you start the game and make sure it didn't fail trying to load/compile the .cs script.If you blow away the compiled (.dso) versions first like Damian suggests, it is more obvious when compile errors happen, because then it doesn't have an older version to fall back to and everything breaks. :)
#4
edit i was able to recover them from a backup but why wouldt it compile the .cs of the player and the ennemies again ?
04/17/2006 (11:58 pm)
Ho no ! using cleandso.exe messed up my game :( the player and the ennemies arent showing anymore... arg ! :)edit i was able to recover them from a backup but why wouldt it compile the .cs of the player and the ennemies again ?
#5
.dso files should, for the most part, be considered disposable during development. They should always be re-creatable from the .cs files at any given time anyway.
04/18/2006 (2:06 pm)
Did you check your console log? If it is not recompiling the .cs files into .dso, then your .cs files have an error in them..dso files should, for the most part, be considered disposable during development. They should always be re-creatable from the .cs files at any given time anyway.
#6
Either check your console.log file or open up the console and have a look. Errors are usally in red.
The reason your enemies have disappeared is most likely because you have a syntax error in those files, and you don't have any compiled scripts to revert to. :)
04/18/2006 (2:13 pm)
As everyone else said, you probably have a syntax error.Either check your console.log file or open up the console and have a look. Errors are usally in red.
The reason your enemies have disappeared is most likely because you have a syntax error in those files, and you don't have any compiled scripts to revert to. :)
#7
04/19/2006 (1:04 pm)
Yup :) syntax error , thanks mates !
Torque Owner Damian