Game Development Community

Problem with Gonzo's 1st GUI tutorial

by Lauri Salo · in Torque Game Engine · 04/01/2006 (1:33 pm) · 3 replies

Hi,

I have done as instructed in the tutorial but the console command "Canvas.pushDialog(DemoGui);" gives EM: "pushDialog: invalid control: DemoGUI".

I did the following:
1) placed the DemoGui.gui to: E:\Torque\SDK\example\starter.fps\client\ui
2) placed exec("./ui/DemoGui.gui"); under // Load up the shell GUIs section in: example\starter.fps\client\init.cs

The tutorial can be found here:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6482

I have triple checked that I did exactly as instructed.

Any and all help will be highly appreciated!

Lauri

#1
04/01/2006 (1:50 pm)
Here is the output from the console log - I only included the stuff that TGE seemed to have a problem with:

--------- Loading MODS ---------
...
Missing file: common/defaults.cs!
...
exec: Warning! Found a DSO from the future! (GameOne/prefs.cs.dso)
...
Missing file: common/defaults.cs!

(this was in gray)
OpenGL Init: Disabled Extensions
EXT_paletted_texture
NV_vertex_array_range
3DFX_texture_compression_FXT1

...
Could not locate texture: common/ui/bs
...
Could not locate texture: common/ui/bs
...

(this was in red)
OpenAL Driver Init:
OpenAL
Missing OpenAL Extension function 'EAXSet'
Missing OpenAL Extension function 'EAXGet'

(this again in grey)
...
Could not locate texture: GameOne/client/ui/buttons/exit_d
Could not locate texture: GameOne/client/ui/buttons/exit_i
Could not locate texture: GameOne/client/ui/buttons/forum_d
Could not locate texture: GameOne/client/ui/buttons/forum_i
Could not locate texture: GameOne/client/ui/buttons/options_d
Could not locate texture: GameOne/client/ui/buttons/options_i
Could not locate texture: GameOne/client/ui/buttons/gui_d
Could not locate texture: GameOne/client/ui/buttons/gui_i
Could not locate texture: GameOne/client/ui/buttons/map_d
Could not locate texture: GameOne/client/ui/buttons/map_i
Could not locate texture: GameOne/client/ui/buttons/news_d
Could not locate texture: GameOne/client/ui/buttons/news_i
Could not locate texture: GameOne/client/ui/buttons/help_d
Could not locate texture: GameOne/client/ui/buttons/help_i
Could not locate texture: GameOne/client/ui/buttons/tdn_d
Could not locate texture: GameOne/client/ui/buttons/tdn_i
Could not locate texture: GameOne/client/ui/buttons/console_d
Could not locate texture: GameOne/client/ui/buttons/console_i
Could not locate texture: GameOne/client/ui/buttons/tutorial_d
Could not locate texture: GameOne/client/ui/buttons/tutorial_i
#2
04/02/2006 (6:00 pm)
Lauri,

You didn't say what's actually happening, ( or not happening ). Since you had some OpenGl errors, I wonder if you can see anything at all.

Check your OGL driver first.
#3
04/02/2006 (6:21 pm)
Thanks Bruno, I managed to solve the problem a couple of hours ago: I had at some stage changed the "$defaultGame" in "main.cs" to point to the wrong game folder. Newbie as I am :)