Problem loading GUIs made from previous version
by Stuart Kenny · in Torque Game Builder · 07/30/2007 (5:13 pm) · 3 replies
I recently upgraded my TGB part-way through development (always a risky venture).
When I try to edit my GUIs I get a message saying "You have loaded a Gui file that was created before this version. It has been loaded but you must open it manually from the content list dropdown."
However, it doesn't actually appear in any drop down list. Am I missing something or is this broken?
I really don't want to redo all my GUI elements just to make some minor changes.
Stuart Kenny
When I try to edit my GUIs I get a message saying "You have loaded a Gui file that was created before this version. It has been loaded but you must open it manually from the content list dropdown."
However, it doesn't actually appear in any drop down list. Am I missing something or is this broken?
I really don't want to redo all my GUI elements just to make some minor changes.
Stuart Kenny
About the author
#2
I made the original ones with 1.1.3. I am currently using 1.5.1
Thanks for looking into this.
Stuart
07/31/2007 (2:49 pm)
I tried that, but no luck.I made the original ones with 1.1.3. I am currently using 1.5.1
Thanks for looking into this.
Stuart
#3
This happens because your gui files do not contain a key token that 1.5 uses to identify loaded files.
Conversion
To make your GUI files compatible open them up in a text editor and locate the first line that resembles the following.
so your first object (and likely line) would look like
with the added script in bold.
Note that you do not need to do this to access your gui's. Once you load them and get the 'old version' message box, you may reload the gui editor and then select them from the drop down list of GUI's provided to you.
Cheers,
-Justin
08/17/2007 (5:30 pm)
Stuart,This happens because your gui files do not contain a key token that 1.5 uses to identify loaded files.
Conversion
To make your GUI files compatible open them up in a text editor and locate the first line that resembles the following.
new GuiControl() {Note that yours may be a new GuiControl with a different class name; for exmaple GuiBitmapCtrl.so your first object (and likely line) would look like
[b]%guiContent = [/b]new GuiControl() {with the added script in bold.
Note that you do not need to do this to access your gui's. Once you load them and get the 'old version' message box, you may reload the gui editor and then select them from the drop down list of GUI's provided to you.
Cheers,
-Justin
Torque Owner Melissa Niiya