Game Development Community

Duplicate PlayGui?

by Kirby Webber · in Torque Game Engine · 08/01/2005 (6:26 am) · 13 replies

This concerns HEAD (1.4), although the copy I'm currently running is a couple of weeks old.

Still, I've not seen any references to this anywhere on the forums, so I thought I'd post this to bring it to the attention of the "powers that be" - just in case. (C;

I had a placeholder HUD constructed under the racing mod that was saved to client/ui/playGui.gui.

During engine startup, I sudedenly noticed that the engine was (for some reason) ignoring my setting of running in 1024 x768 and seemed to be defaulting to my (laptops) native resolution of 1400 x 1050. =\

I promptly changed the settings in the (stock) options dialog back to the intended 1024 x 768.

The *moment* I did this, the playGui that I have been using for two weeks dissapeared!? (In all fairness, during this period I also removed references to the lapCounter and the speedometer from playerList.gui, a change that seemd like it should be pretty negligible at the time.)

Granted, the changes I made did not constitute "heavy" modification, but I had removed all of the lapcounter elements and, for some reason, they were back! Additionally, my health and energy meters had dissapeared as well!

Checking the playGui.gui script, all seemed well enough so I fired up the engine again - still no modded playGui?

I checked in the gui editor and, low and behold, there were 2 instances of the playGui listed, each with a seperate ID!?

Of course, the engine seems to insist upon using the "wrong" version, so I began scouring the directory for the offending script file.

There isn't one that I can find! The only instance of playGui.gui I can find is the one that I've modified?! Where in the world did this retroactive second copy come from and how exactly can I squash it?

#1
08/01/2005 (10:19 am)
Did you delete all the .DSOs?
#2
08/01/2005 (11:36 am)
I deleted playGui.gui.dso to force a recompile. =\
#3
08/01/2005 (12:25 pm)
Delete all of them, frequently. Occasionally they get wedged and cause no end of trouble. 1.4 will have a flag to force ignore them.
#4
08/01/2005 (12:48 pm)
Well, it's nothing that's halting development - I've just been reselecting the appropriate one by hand for the time being - not currentyl doing any HUD work.

I just wanted to make sure this got brought to your attention - I'm not surprised to learn that you're already on it. (C;

I have to say though, I'm about as giddy as a school girl waiting for 1.4 with all of the tweaks and fixes coming down the line.

It's a good time to be an indie. =)
#5
08/03/2005 (7:01 am)
Just thought I'd follow up:

I deleted every sing *.gui.dso and now everything works perfectyl again.

I can't imagine how changing the resolution caused this, but then I also can't imagine how the engine manage to recreate a gui that no longer exists in my directory. =\

Thanks as usual Ben. (C:
#6
08/03/2005 (7:24 am)
Quote: also can't imagine how the engine manage to recreate a gui that no longer exists in my directory.

If you still had the playgui.gui.dso in you directory then the gui did still exist in that directory. The dso is just a compiled version of that script.

Edit: I just read above that you deleted that file. That is a bit weird then heh.
#7
08/14/2005 (6:50 pm)
Just as a reference - this is popping up again.

I have deleted every .gui.dso and .cs.dso in the entire example directory and yet, there are STILL two copies of the play gui?!

It's getting frustrating and I cannot for the life of me fathom how the engine is managing to hang on to an old outdated gui that no longer exists?!
#8
08/14/2005 (9:14 pm)
Do you have 2 playGuis saved to the file?
Sometimes when you do save a gui, it sometimes ends out appending it to the end of hte file. Very wierd and odd occurance.
#9
08/15/2005 (7:55 am)
Well, I don't recall seeing a second instance in the .gui file, but I'll definitely check that out - hadn't occurred to me really.

I appreciate the advice either way.

As I said previously, it's nothing that halts development, but after the 100th or so time of changing it by hand, it gets a little irritating. (C;

Wish I'd seen this last night...
#10
08/15/2005 (8:43 am)
I had this problem too once but can't remember what I did (or if I did anything) to solve it.
#11
08/15/2005 (9:00 am)
Well, the first time it popped up, I did as Ben suggested and deleted every .gui.dso file - that solved the issue.

Later however, I saw the duplicate show up again, although the engine was defaulting to the "current" gui rather than the "old" one, so I pressed forward for the time being and relegated it to an "I'll get to it later" issue.

That, of course, is when the engine decided that the new gui no longer took precedence. =\

Every time I think I've got a grasp on this engine, it slaps me upside the head with a 2 x 4. LOL~

I have managed to narrow the problem down though. It seems to only occur when I edit the gui in the (F10) gui editor. When I edit from the script file (assuming it's not already experiencing this glitch) everything is fine - as was last time around.

If I use the GUI editor in-game, it seems I run the risk of having old (non-existant) gui's placing a chokehold on the engine.

Hopefully, there's a duplicate in plaGui.gui - I'll post later this evening to update and clarify, just for posterity.
#12
08/15/2005 (10:49 am)
There can only be one object of a given name at a time, incidentally.
#13
08/15/2005 (5:45 pm)
Yeah, I'm dumb.

I'm not sure exactly how they got there, but I must assume operator stupidity.

Turns out there was a "copy" of playGui tucked away in BOTH mainchathud AND playerlist.

WTF? Don't know how I did that, but glad I figured it out.

~ Cheers.