Game Development Community

Inventory Manager

by Stefan Beffy Moises · in Torque Game Engine · 03/22/2002 (11:13 am) · 13 replies

Has anyone tried to integrate Tim / Spock's Inventory Manager lately (www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1962)? Is it still compatible with the latest HEAD version?
Just want to make sure before I integrate all this code... ;-)
Thanx!!

#1
03/22/2002 (11:20 am)
It should be fine but I have not tried in the latest so I can't tell you for sure.

-Tim aka Spock
#2
03/22/2002 (11:23 am)
Wow, that was fast!
Okay, so I will try it and tell you if it still works... ;-) Thanks for your response!!
#3
03/23/2002 (3:40 am)
:-)
Still works perfectly!!! Thank you, Tim!

Only these GuiTextProfiles are making me nuts...
they resize every time I open the GUI in the editor -
so I place them totally in the script file and don't touch it in the GUI editor... or is this caused by the "relative" sizings...

Anyhow, the Inv. Manager is GREAT!! :-)
#4
03/23/2002 (1:32 pm)
relative sizing means keep the same position but stretch the component so that it fits the screen just like it did in 640x480. So if you dont want it resizing you might want to try the other ones.

-Tim aka Spock
#5
08/24/2002 (1:53 pm)
Has anyone succeeded in making this work in 1.1.2?
#6
08/25/2002 (5:48 am)
I am having/seeing no issues with it under the current release.
#7
08/25/2002 (11:15 am)
Ron: If I take a fresh 1.1.2 and drop in the resmanager files from the tutorial, it won't compile. Are you tweaking anything?
#8
08/25/2002 (1:34 pm)
DOH!!!

yeah you can not just drop those files in place, you need to add the relevent parts of the code to 1.1.2. This also holds true for previous versions.

My bust, totaly forgot about manualy adding the changes vice dropping in the files.

-Ron
#9
08/26/2002 (6:55 am)
That's the point where the tutorial breaks down for me. I can't figure out what changes he made to the resmanager. I'm an uber noobie (at programming in general. I've only ever done vbscripting for sysadmin stuff) and am trying to learn by doing this tut. I've tried dif'ing his resmanager and mine to find the changes and manually move them over but have yet to succeed at doing that although I've spent hours and hours trying.

Did I miss something where he said, drop in the resmanager files or here are the changes if you want to do them by hand?

I appreciate your responses Ron. Thanks
#10
08/26/2002 (7:18 am)
Chris, you've gone through all parts of the tutorials, right?
There are updated resManager files for Torque >= HEAD 05/2002 available on my website ... the ones Spock mentioned only worked prior to this date...
check out this tutorial for details: tork.thesoulnomads.de/tutorials/preview_gui/preview_gui.html...
Hope this helps... :)
#11
08/26/2002 (7:33 am)
Stefan yes I did go through the inventory manager, the guittxtctrl stuff, then all of the popup resources. I setup the scripts, the .gui, and did everything I could except for the resmanager which was causing the build to fail. I've just been banging my head on the resmanager for days.

I'll check out your link thanks. It appears your are linking to updated resmanager files that I should try dropping in?

There seems to be a technique for development in general that I'm missing that apparently you "real" developers know of. The technique involves how to take a file that someone says "replace your file with mine", and figure out exactly what is different between the two files and then "merge" them instead of replacing them. Ron/Stefan is that what you did with Tim's resmanager.cc to figure out what he added so that you could manually move it into your own resmanager.cc? Is there a better method than using windiff and just druding through them line by line?

I greatly appreciate your responses Stefan and Ron.
#12
08/26/2002 (7:42 am)
You're welcome, Chris.
Yeah, try the resManager files I'm mentioning in that tutorial, they should still work with the latest HEAD (hopefully! :P)...
as far as comparing files, I guess there is no easier way... I'm using an excellent DIFF/MERGE tool called Guiffy for stuff like that... it has some really cool features and makes working with Torque much easier... check it out here if you want: www.guiffy.com.
I hope these files finally solve your problems!
Regards,
beffy
#13
08/26/2002 (8:45 am)
I have taken the approach to diff all files in question against a working TGE head (windiff, beyondcompare, slickedit etc) to find the difference in code. I have found that this approach helps me understand what the changes are and to learn a few things.

To blindly go and add a resource/code snippet to TGE is living on the edge, the resource/code snippet might be missing a few things or might not be 100% compatable with the TGE version your using.

So, to answer your question. I would take the above approach and work with each file in the resource/code snippet. This should get you going down the right path and even aid in your understanding of TGE.

Regards,

Ron