Quick and Dirty, How to change the default directory for dso's
by Dreamer · 04/10/2005 (10:07 pm) · 7 comments
It was making me nuts, there seemed to be no way to set the default compile directory for torque, no matter what I tried to tell the make program everytime I would run my TGE based app, a new hidden directory would magically appear, called ~/.garagegames
As you may or may not know, prefixing a file or directory with . causes it to become hidden, so you can't see it without special commands in a terminal or enabling "view hidden" in Konqueror, which causes a big mess is a heavily populated area like my home directory.
Now don't get me wrong, I know it's standard fare for every program to setup a hidden directory to store temp files, user settings etc. What was making me nuts, is that if I forgot to remove the directory none of my script changes would take place.
So end of rant, here is what to look for and what to change.
In platformX86UNIX/platformX86UNIX.h
modify the following
Then recompile, thats it! If you remove the .garagegames and replace it with just garagegame or mygamedir or whatever, your .dso's will not be hidden from you anymore.
As you may or may not know, prefixing a file or directory with . causes it to become hidden, so you can't see it without special commands in a terminal or enabling "view hidden" in Konqueror, which causes a big mess is a heavily populated area like my home directory.
Now don't get me wrong, I know it's standard fare for every program to setup a hidden directory to store temp files, user settings etc. What was making me nuts, is that if I forgot to remove the directory none of my script changes would take place.
So end of rant, here is what to look for and what to change.
In platformX86UNIX/platformX86UNIX.h
modify the following
#define PREF_DIR_ROOT ".garagegames" #define PREF_DIR_GAME_NAME "torqueDemo"
Then recompile, thats it! If you remove the .garagegames and replace it with just garagegame or mygamedir or whatever, your .dso's will not be hidden from you anymore.
#2
The point of this resource was that under linux at least it's a hidden directory that can be hard to find sometimes, this helps you to move it and rename it something more convienent.
04/12/2005 (11:05 am)
Actually having them go into the gamedir is a pain too since you have to clean the .dso's and could accidently take out something vital, or worse have to go through each subdir finding the things. This way you just have one directory to remove and you start fresh.The point of this resource was that under linux at least it's a hidden directory that can be hard to find sometimes, this helps you to move it and rename it something more convienent.
#3
find -name "*.dso" | xargs rm -f
or
rm -f `find -name '*.dso'`
where is ~/.garagegames, . , or whatever dir your dso's reside.
04/13/2005 (12:13 pm)
Removing dso files:find
or
rm -f `find
where
#4
Voila.
04/13/2005 (5:46 pm)
I've personally never had to delete dso's to get stuff to work, but even if you have to, that's very easy and there's no way you can delete vital stuff:find ./ -name *.dso -exec rm -rf {} \;Voila.
#5
11/09/2005 (3:59 pm)
anything like this for Windows ?
#6
Was going through some info and a bit of ReReading...
So heres the Windoze Version:
del /s *.dso
(Simple fix)
Create a Bat file in Your Top Level script dir
Put that in it..
Run it..
Works for me
08/27/2006 (12:36 pm)
Yeah... (I know, a bit late) *Chuckle*Was going through some info and a bit of ReReading...
So heres the Windoze Version:
del /s *.dso
(Simple fix)
Create a Bat file in Your Top Level script dir
Put that in it..
Run it..
Works for me
#7
That didn't work, so I tried this as well: make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
It doesn't really do anything......?
Any help would be greatly appreciated. Thx
11/01/2006 (8:01 pm)
I don't know if this is the right place to post this, but how do I start the engine with linux? Windows has a torqueDemo.exe, so what does linux use to start? I've searched and all i found was to run this command: make -f mk/configure.mkThat didn't work, so I tried this as well: make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
It doesn't really do anything......?
Any help would be greatly appreciated. Thx

Torque 3D Owner Xavier "eXoDuS" Amado
Default Studio Name