Game Development Community

Torque 2D GUI issues

by Bryan Cantz · in Torque 2D Beginner · 04/27/2014 (7:20 pm) · 8 replies

I keep getting a fatal error with my current project and I managed to figure out it has something to do with my GUI's because when I comment out the push of the new Dialog it works fine.
Here are my Gui's:
http://pastebin.com/yd73iBVK
http://pastebin.com/SLUArihG
http://pastebin.com/qp3RaXzh

Here is my guiProfiles.cs:
http://pastebin.com/Cjn2jv0J

Here is my GameAssets main.cs:
http://pastebin.com/j2HNB0Nh

The error only occurs when I try to push any of the GUI's to the Canvas. Please let me know if im doing something wrong.

#1
04/28/2014 (5:43 am)
Can you post your console.log file so we can get an idea of when exactly the game crashes?

It is located in the root directory of your project, along with your main executable.
#2
04/28/2014 (10:11 am)
There's a known bug with GuiTextEditCtrl which I saw that one of your dialogs had.

github.com/GarageGames/Torque2D/issues/134

That wouldn't explain why all dialogs are crashing though when you push them. I've had a brief look at the code links but nothing popped out as being wrong. Ideally, setting up some sort of test module that we can download to replicate the crash would be the biggest help.
#3
04/28/2014 (12:33 pm)
@Simon
I couldn't find the console.log, I am using the android compiler if that has anything to do with it.

@Mike
I have created a Test Module you can download it here:
http://uppit.com/ufc9o5vx3afx/FixMe.rar
#4
04/29/2014 (9:16 am)
I've tested the module you uploaded but it works fine for me under OSX. No issues pushing or popping Dialogs.

There were a few errors like the Guis being added to the AppCore namespace when your FixMe module replaces all the AppCore functionality. It was also trying to look for fonts in the AppCore module. For me, that only resulted in some warnings in the console, no crashes.

I don't have an Android device to test with, so hopefully someone else in the community can offer their assistance. I don't recall any of the early Android testers having trouble with the Sandbox dialogs, so perhaps it really is some asset or font path that is not being found.
#5
04/29/2014 (10:55 am)
After fixing those warnings nothing has changed. Its odd because at one point i had it working but it randomly started giving me the Fatal Signal 11 error in console. I was also wondering if when compiling with android does it still create the console.log because I cant seem to find it in the base directory.

EDIT:
I also just tested compiling it for PC and it works fine so im guessing its an android issue.
#6
05/02/2014 (12:09 pm)
Still havent found a solution for the problem. Does anyone have any ideas?
#7
05/02/2014 (5:34 pm)
What happens if you change the bitmap parameter path for the gui profiles? Try "^GameAssets/images/bitmap.png" assuming GameAssets is inside the modules folder and there is a bitmap.png within GameAssets/images.
#8
05/04/2014 (6:30 pm)
@practicing01
didn't seem to do anything.