RESOLVED: iTGB loading GUIs from other projects [MAC]
by Ronald Ian Bantayan · in iTorque 2D · 04/14/2009 (5:34 am) · 8 replies
GUI cross-contamination sometimes occurs when selecting certain GUIs from the drop-down menu in GUI builder.
Solution is to delete the precompiled .DSOs at ~/Library/Application Support/GarageGames/TorqueGameBuilder/compiledScripts/game/gui
Solution is to delete the precompiled .DSOs at ~/Library/Application Support/GarageGames/TorqueGameBuilder/compiledScripts/game/gui
#2
05/14/2009 (3:21 pm)
Will do. I've been travelling recently to Fresno and Frisco and back, so I haven't gone into 1.2 in depth
#3
05/30/2009 (1:47 pm)
@Ronald - Update before I close this bug?
#4
05/30/2009 (8:04 pm)
It seems to have gone away. Bug quashed, good sir
#5
05/30/2009 (10:08 pm)
Marked resolved. Thanks!
#6
Duplication is simple:
1.) Open up a project. Open up a GUI file in the editor for that project. Save that gui.
2.) Close TGB
3.) Open up a different project. Open up a GUI in that project. Note that you will either see the GUIs from the previously loaded project, OR , when you go to save it, you will be saving in the previous project folders, not your current.
Now to go search through my scripts for the GUI object names and rebuild it... I've got to get my new SVN server working, lol...
EDIT: Just realized it did not overwrite the file. When I load the .GUI file in a text editor, it shows everything is still there. *PHEW!*. But, that leads to another problem - even though I am physically opening the correct file in the GUI Editor by going through my HDD from my /root/ and going right to the file I want - it is still loading the GUI file from the previously loaded project. It's worth noting that both files have the exact same file name (mainScreenGui.gui). So it looks like something in the editor is getting cached in a curious way.
And now I can't seem to open the actual 'mainScreenGui' file for that project. It keeps loading the one for the previous project. So now it looks like it's become associated with it in the project itself...
EDIT EDIT: (Spamming the edits, I know...) Okay. I found a 'workaround' for this bug, but it proves it's pointing to something weird. I have renamed the folder that contained the previous project - yet it STILL loaded the wrong .GUI file, the one located inside the folder I had just renamed. So I then went to the .GUI file I have been trying to load, copy/pasted it with another file name, loaded that in the GUI Editor, then saved it over the previous file (the one I had just copy/pasted), then closed TGB and reopened it. Now it loads the correct file - I just had to copy it over itself. Really weird...
06/24/2009 (11:29 pm)
Bug not resolved - This happens to me in every 1.2 project I have (I know because I just lost a UI from a project I wasn't even working in. Second time it's happened). Duplication is simple:
1.) Open up a project. Open up a GUI file in the editor for that project. Save that gui.
2.) Close TGB
3.) Open up a different project. Open up a GUI in that project. Note that you will either see the GUIs from the previously loaded project, OR , when you go to save it, you will be saving in the previous project folders, not your current.
Now to go search through my scripts for the GUI object names and rebuild it... I've got to get my new SVN server working, lol...
EDIT: Just realized it did not overwrite the file. When I load the .GUI file in a text editor, it shows everything is still there. *PHEW!*. But, that leads to another problem - even though I am physically opening the correct file in the GUI Editor by going through my HDD from my /root/ and going right to the file I want - it is still loading the GUI file from the previously loaded project. It's worth noting that both files have the exact same file name (mainScreenGui.gui). So it looks like something in the editor is getting cached in a curious way.
And now I can't seem to open the actual 'mainScreenGui' file for that project. It keeps loading the one for the previous project. So now it looks like it's become associated with it in the project itself...
EDIT EDIT: (Spamming the edits, I know...) Okay. I found a 'workaround' for this bug, but it proves it's pointing to something weird. I have renamed the folder that contained the previous project - yet it STILL loaded the wrong .GUI file, the one located inside the folder I had just renamed. So I then went to the .GUI file I have been trying to load, copy/pasted it with another file name, loaded that in the GUI Editor, then saved it over the previous file (the one I had just copy/pasted), then closed TGB and reopened it. Now it loads the correct file - I just had to copy it over itself. Really weird...
#7
06/24/2009 (11:43 pm)
Does it work if you open a different gui inbetween? (kind of enforced flush the cache if there is something alike)
#8
06/24/2009 (11:46 pm)
@Marc: Nope... nothing worked except for saving the GUI over itself. That seemed to reset the pointer.
Employee Michael Perry
ZombieShortbus