Game Development Community

Script caching? - Mac

by Rich · in Torque Game Builder · 09/05/2005 (10:58 am) · 2 replies

Hi,

I've replaced the client.cs script but T2D keeps playing the old scripts as if it had been cached or something... Is there a proper way "refresh" T2D so it plays the most current client.cs file and not the old one? Replacing all the files in the "example" fixes this problem but shouldn't the only file that needs to be replaced is the client.cs file....

#1
09/05/2005 (11:49 am)
The .dso files are the "cached" binary versions of the .cs files, at runtime Torque compiles the script into binary .dso files. Often when its using these files and not the new .cs files there is a syntax error in the .cs files, to check for syntax errors fire up T2D.exe, bring up the console the "~" tilde, then scroll through it and look for red text.
#2
09/05/2005 (12:11 pm)
Awesome, thanks Matt! BTW, I'm currently looking at your great "Mouse Object Tutorial", good job.