Game Development Community

Resources Don't Refresh

by Unk · in Torque Game Builder · 09/19/2008 (8:57 pm) · 6 replies

If I change the art of any of my loaded resources the changes don't appear in the editor unless I completely remove the resources from the project then add them back in. This is happening in version 1.7.4 and 1.5.

What would be preferable is that if I close then reopen TGB that the latest resources would appear in the game. This way the art can be updated as you develop without having to rebuild the level everytime you make an art change.

If I am missing something or it is not working for me as it should please let me know.

-J

#1
09/19/2008 (10:27 pm)
When you say you change the art, are you changing the files local to your project? Or are you changing the files in the original resource folder?
#2
09/19/2008 (11:51 pm)
I update the art and save it to the resources folder (overwriting the previous art resources).

Thanks for your help.
#3
09/20/2008 (5:21 pm)
It's normal, if you change the arts in a resource, don't expect the builder to know it changed. It's the same for any game content.
#4
09/20/2008 (6:05 pm)
My suggestion then would be to update the loaded resources every time you load the editor. I am pretty sure it worked this way before in previous versions. Why you would want the content in the game to differ from what is in your resources folder?

BTW: If I use my local art folder vs. the resource folder will it make a difference?

-Unk
#5
09/20/2008 (6:13 pm)
Yes Unk, it would.

Ex.

TGB\resources\monsterArt\data\images <=== Resource folder
TGB\games\UnkGame\game\data\images <=== Your local art folder

When you load a resource, it copies everything from your resource folder into your art folder. A script file is then populated in your local folders that tells your local editor and game where your new images are. So, your game is looking in your local files.
#6
09/20/2008 (6:19 pm)
Ok. So if I use the local art folder my changes should refresh properly when I reload TGB? I will move my art over to the local folders and see how that goes. Thanks for your help!

-Unk