Game Development Community

GUI Builder not saving changes

by Laralyn McWilliams · in Torque Game Builder · 05/15/2010 (6:20 pm) · 4 replies

I'm using the GUI builder to try to tweak some settings, and it doesn't seem to save. Here's what I'm doing:

1) Open GUI Builder.

2) Open the GUI I want to edit.

3) Select the GUI control I want to edit (the GuiMLTextCtrl I've posted about before).

4) Change the Position settings from 2 2 to 12 12. It visually changes on screen (both the settings and the object's position).

5) Choose Save Gui and pick the name of the GUI I've been editing. Note that this pops open every time I save, as if I chose Save As. I confirm that I want to save over the old version.

6) Close the GUI Builder.

7) Open the GUI Builder and select the GuiMLTextCtrl I just edited and saved. It's back to a Position of 2 2 and my changes weren't saved.

If I open the corresponding .gui file in Torsion, it shows the Position as 12 12, but when I run the game, it looks like that object is actually at 2 2. I can change the Position in Torsion to something clearly different (like 120 12) to test, and the object is definitely still at 2 2 when I run the game. To make things more confusing, I can change the Profile of the object in Gui Builder, save, and reopen the GUI file and that saves fine... just not the position.

Am I doing something wrong or is this a bug in 1.75? Thanks!

#1
05/15/2010 (6:26 pm)
In case it helps figure this out, I changed the Position settings and then saved it under a new name. Even then, when I closed and reopened the new file, the Position changes were not retained.
#2
05/17/2010 (8:50 am)
Are you applying the changes before saving them? I just tried to reproduce it and hit apply out of habit before saving and the changes were saved correctly.
#3
05/17/2010 (8:24 pm)
I just tried it with clicking Apply after making the changes, and they still didn't save. A change to the Extent setting DID save, though. It's just the Position setting that won't save.

If it helps debug it, the same GUI file is also showing weird scaling behavior on the GuiMLTextCtrl object. If I grab the left middle resize handle to size it, the right side of the object starts uncontrollably moving out.

Some images to help explain:

This is what the control looks like before I touch it:

www.eluminarts.com/images/tgb/size.jpg
And this is what happened when I clicked on the middle left sizing handle and dragged it inward (to make the box smaller in width):

www.eluminarts.com/images/tgb/size2.jpg
In that second image, while I dragged the left handle just a bit to the right, the right side of the object expanded rapidly so within about 2 seconds the right side handles were completely off screen.
#4
05/19/2010 (9:10 pm)
A little more information I just discovered: if you make the changes and apply, then close the GUI Builder, then choose to Reload Project in TGB, you get a prompt to save the GUI Builder changes. If you say Yes, and let the project reload, your changes are there.

So it looks like saving and re-opening in the GUI Builder without reloading the project is what's not saving the changes.