Game Development Community

dev|Pro Game Development Curriculum

TGB Project Reloader

by Edward F. Maurina III · 09/01/2006 (3:04 pm) · 9 comments

Download Code File

If you have been working with TGB for a while, you will probably have noticed that at least occasionally, you need to reload your project to get some scripts re-loaded.

Specifically, if you are editing resource files or other scripts that are only loaded (when added and) upon start up, you will have to reload the project, either by using the file menu or by quiting and restarting.

I finally got tired of doing this and added a button to the menu bar which will reload the current mission.

This is a VERY SMALL code resource, but I believe you will find it useful.

To use it, do the following.

1. Download the file HOW_ProjectReloader.zip
2. Unzip it to 'HOW_ProjectReloader'
3. Copy this folder/directory to your resources directory.
4. Load the resource in whatever project you are currently working on.
5. Quit.

Now, upon subsequent loads of this project, you will see a new button in the upper right corner of your TGB workspace.

Simply click on this button and your project will reload.

Viola!

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT

#1
09/01/2006 (5:21 pm)
Whee! Bring On the Plugins!

-Unk
#2
09/01/2006 (5:36 pm)
Sweet!
#3
09/01/2006 (8:49 pm)
I wanted to look into doing the same thing! Thanks!
#4
09/02/2006 (6:34 pm)
This is neat, thanks! I hope we will eventually get a tutorial to walk us through creating TGB plugins such as this.
#5
09/02/2006 (7:44 pm)
Just thought I'd note, if you copy the folder to the tools/addons/ directory instead of the resources/ directory, the resource will automatically load with every project and not be packaged by the packaging utility. Seems like that might be a better place for this.
#6
09/03/2006 (1:32 pm)
Dude...

Very nice and a time saver. BTW love your book!
#7
09/04/2006 (3:03 pm)
Fantastic! I also just got your book and am finding it very useful even with TGB. I'm trying to do everything I can in my new game in TorqueScript and I'm discovering many things I didn't know about TorqueScript in your book.

Also - in my version of TGB I copied it into the games/tools/resources directory (I didn't seem to have an addons directory).
#8
09/05/2006 (12:36 pm)
Finally! Thanks :]
#9
11/07/2006 (6:56 pm)
R0ck on -- thanks so much Ed. This is saving me a ton of time. :)