Game Development Community

Clearing the cache?

by Washington St. Uni. CS (#0002) · in Torque Game Engine · 02/10/2008 (4:06 pm) · 5 replies

Hi. I've recently switched my development environment from a laptop using Ubuntu Edgy to anther machine running Feisty. The game I've been working on (which works under Edgy) freezes Feisty, requiring that I switch to a virtual terminal to kill the process. The example scripts (tutorial.base and such) work just fine.

I didn't have anything substantial done yet so starting from scratch isn't a big woop. The problem I'm currently puzzled over is apparently some funky caching issues. If I set the $defaultGame in main.cs to any anything that's previously frozen then it will always freeze. To clarify, if I:
1. Call the problematic game 'foo'.
2. Set $defaultGame to 'foo'.
3. Run 'runtorque.sh' or 'torqueDemo.bin', freeze the system, and kill the process.
4. Make a copy of tutorial.base to replace 'foo'.
5. Try running again- it freezes again.

However, if I make the tutorial copy called 'bar' and run that instead then it works just fine. This issue persists so I currently have a dozen game names that'll freeze the system. Any idea where Torque is caching whatever is being problematic? Any help would be appreciated! -Damian

PS. Not to confuse the issue but whatever is freezing Feisty just started within the last couple months. Does anyone have a clue if any of the recent updates are problematic with Torque? I'm currently running Torque version 1.5.0.

About the author

Recent Threads


#1
02/25/2008 (12:21 pm)
Under linux, TGE caches script compilations and other generated files in the user's homedirectory under ~/.garagegames (note that this is a "dot" directory). I frequently "rm -rf" this directory, however, since some game editor files and other things can get stored here, you may not want to just nuke the directory.

One option would be to run:
rm 'find ~/.garagegames -type f -iname "*.dso"'
This will clean up all cached compiled scripts.

Another option is to run with the -nohomedir option when you run your game. This will cause all generated scripts to be stored in the game directory, rather than under ~/.garagegames.
#2
02/25/2008 (12:29 pm)
Sweet, worked perfectly. It's a tad funky that the cache would default to an external directory but cest la vi. Thanks! -Damian
#3
02/25/2008 (1:45 pm)
Quote:It's a tad funky that the cache would default to an external directory but cest la vi

Because on linux, a user usually won't have write access to the directory the game is installed in.

Gary (-;
#4
02/27/2008 (12:41 pm)
If you want to avoid this issues launch torque.bin with the parameters -nohomedir
#5
04/03/2008 (11:58 pm)
@Todd

rev it with
backticks and +"rm -v"