Game Development Community

DSO deleting using VB

by Taron James · 11/08/2002 (2:06 pm) · 5 comments

Ok im just trying to learn about VB, as my first project i decided to write a little proggy that would delete the dso files in the Realmwars demo, i figured it might be usefull, i figure it could be easily adapted to your individual projects, i have built a .exe that works ok, i would appreciate any input, anyway heres the source.

--------------------------------------------------------------------------------Private Sub Command1_Click()
Open "C:\DSOMatrix.txt" For Output As #1
Print #1, "@Echo Off"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\server\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\server\scripts\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\data\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\client\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\client\scripts\*.dso"
Print #1, "cls"
Print #1, "@del C:\GarageGames\RealmWars\rw\client\ui\*.dso"
Print #1, "cls"
Close #1
Name "C:\DSOMatrix.txt" As "C:\DSOMatrix.bat"
Shell "C:\DSOMatrix.bat"
MsgBox "All RealmWars .DSO Files Deleteted!"
Kill "C:\DSOMatrix.bat"
End

End Sub

Private Sub Command2_Click()
End


End Sub--------------------------------------------------------------------------------

Hope this is of some use any pointers welcome
this may be of some use to RW project, or people looking at changing RW scripts
Anyone needing a compiled version adapted for their particular game, may simply contact me and supply a copy of the game directory they are working with, not the files, just a copy of how the directory/folders are set out, alternativly, feel free to adapt the code yourselves if you have the resources to compile VB

About the author

Recent Blogs

• Plan for Taron James

#1
11/08/2002 (2:13 pm)
Wasn't this posted before...?

Of course, a .bat file containing the line:

@del /S *.dso

Will do very similar things...
#2
11/08/2002 (2:18 pm)
Not on all systems, Ben. I don't believe it works on some WinXX rigs.
#3
11/08/2002 (2:36 pm)
I've seen at least three of these now, and I have yet to have the simple question answered:

WHY would you want to delete the DSOs? Why .dso and not the .ml and other files?

And was that .cs DSO deleter not good enough? At least that did something useless on multiple platforms!
#4
11/08/2002 (9:18 pm)
You delete .DSO's sometimes because it, will run them instead of your .cs sometimes when you ahve problems etc and so you don't know competely.
#5
11/09/2002 (4:36 am)
Thanks for the comments guys, as i stated this is just realy, my tentative steps into programming useing VB, (we all have to start somewhere).
As far as the reason for deleting .DSO files is concerned, the dso files as i understand it are compiled versions of the.cs script files, the reason for doing this is one of preformance, the engine takes the .dso file and uses that ingame, if it doest find a ,dso file it compiles one from the corrosponding cs script file, if you take a look at the consol you will see this. various .bat files have been used/created to do this before, all i have done is give it a freindly interface, i have however, since expanded on this to include a search for .dso files in a given directory, a command button to run a dedicated server and one to run the show tool without having to use the command line, hopefully this will be of a little more use than just the dso delete facility, i intend to also expand further on this, to create a small multi purpose app, for use with Tork.