Game Development Community

Deleting .DSO's

by Bob Mellish · in Torque Game Engine · 08/22/2001 (2:47 pm) · 5 replies

I've been religiously deleting my .dso files every time I modify a corresponding .cs file. However, looking at the script handling code (console/consolefunctions.cc) is seems the engine compares the last modified times of the two files, and re-compiles the .cs if it's been modified later. Does this code not work, or have I been deleting my .dso for nothing?

-- Bob

About the author

Recent Threads


#1
08/22/2001 (2:52 pm)
There are occasions in which it doesn't work.

Not to mention that if you introduce a syntax error the changed file will not compile and the old version will be used instead.

But for the most part... I just let T2 / V12 try to detect the changed files. If I do a Major change to several files I'll delete the .dso files to force a re-compile of the scripts
#2
08/22/2001 (6:36 pm)
I just let the engine deal with it, though the fact that it loads the old dso if there is an error in the new file is very misleading sometimes :)
#3
08/22/2001 (9:50 pm)
I always delete the .dso files before I start editing any scripts.

The best method I've found for this so far is to right click on Start, click Search, and type in *.dso in C:\ and then ctrl+a, DEL key. The search tool caches what it knows about changed files so the second time around you search it'll go much faster.
#4
08/22/2001 (9:52 pm)
I wrote a batch file. It deletes the dso's then executes the game.

It works pretty well :)


Dark
#5
08/24/2001 (8:46 am)
Good idea.