Game Development Community

Trying to upgrade MS2->MS3 - GUI threading trouble

by Thomas \"Man of Ice\" Lund · in Torque Game Engine · 04/30/2006 (7:42 am) · 5 replies

Aaaarrgggghhhhhh

Usually I dont have problems "getting it", but this time I'm rather stumped.

I'm trying to upgrade Air Ace from TSE MS2 to MS3 and after lots of merging engine, project files and scripts I finally can start the exe without a crash.

We got heavily modified scripts, but I think I moved most of the stuff needed from MS3 into our old scripts.

My problem - trying to start up the GUIs doesnt happen. All I get is an empty frame.

I used the "demo" folder as base for the merge, but its now using some threaded approach to set the GUI content. Something not compatible (at least not straight forward) with the various menu GUIs that we have.

Been trying to search and look for info that can help me, but I'm stuck.

* So is there some way to not use the threaded approach and simply keep it as it was? (This doesnt seem likely, but could be useful)

* Are there some good documents describing the new way? Been looking at TDN and searching, but no luck

* Anyone else have some insight to help me along?

Thanks a bunch!!!

#1
04/30/2006 (7:51 am)
The "threaded" GUI is just for the demo thing, it is all script. You don't have to use it. Just use the GUIs from TGE 1.4 starter.fps or something and only worry about merging TSE stuff in game. IIRC that early on in the script code there's only a couple of TSE specific things you need to worry about, such as loading of materials.
#2
04/30/2006 (1:18 pm)
Thanks Tom

Your post made me experiment a bit with why the "old way" didnt work for me.

And it seems there is something in my first GUI that makes the engine hang - something that worked fine in MS2. Starting the game in just about any other screen works fine.

DUH! That cost me maybe 3-4 hours :-(

Time to track down whats causing the problem and I'll report it back here. Maybe someone else will be able to use that info at some point.
#3
04/30/2006 (1:29 pm)
OK - found the problem.

MS3 hangs if you try to make a text edit field act as a password field.

The moment I add one of them and check the "password" field in the gui editor, the engine goes dead.

I better report this as a bugger. Could anyone confirm this?
#4
04/30/2006 (1:52 pm)
It's a known bug in TGE 1.4 ... there's a number of threads on it. It's probably just moved over to TSE since that was merged with 1.4 for MS3. There's fixes in the TGE forums.

T.
#5
05/01/2006 (1:37 am)
Yup - thx again. Using the fix from TGE 1.4 works for MS3 too