Ch 10 gui editor problem
by DeVry Summer Student 08 (#0038) · in Torque Game Engine · 07/21/2008 (2:40 pm) · 0 replies
When i run the code from emaga and add in the line from chapter 10 to enable to gui editor, it works fine with the 1.4 tge,exe that is included with the book, but when i try to run it with torqueDemo.exe that is 1.5, i get an error it crashes. using emage4, heres the end of the log i get when the the first thing i do in the game is hit f10 to get the editor. it ends with an index out of range error, but im not sure where the call is coming from. so does anyone know how to get the editors to work in the book code using 1.5?
--------- Initializing: Torque Creator ---------
Loading compiled script creator/editor/editor.cs.
Loading compiled script creator/editor/particleEditor.cs.
Loading compiled script creator/scripts/scriptDoc.cs.
Loading compiled script creator/ui/creatorProfiles.cs.
Loading compiled script creator/ui/InspectDlg.gui.
Loading compiled script creator/ui/GuiEditorGui.gui.
Loading compiled script creator/ui/lightEditor.gui.
Could not locate texture: common/ui/darkSlider
Failed to load profile bitmap (common/ui/darkSlider)
Loading compiled script creator/ui/lightEditorNewDB.gui.
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Mapping string: MsgLoadInfo to index: 2
Mapping string: MsgLoadDescripition to index: 3
Mapping string: MsgLoadInfoDone to index: 4
Mapping string: MsgClientJoin to index: 5
Mapping string: Welcome to the Torque demo app %1. to index: 6
Mapping string: Poser to index: 7
Mapping string: MissionStartPhase1 to index: 8
*** New Mission: control/data/maps/book_ch4.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2 to index: 9
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 10
Client Replication Startup has Happened!
fxFoliageReplicator - Client Foliage Replication Startup is complete.
*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'control/data/maps/book_ch4_d414c5c.ml'
Mission lighting done
common/client/missionDownload.cs (95): Unable to find function onPhase3Complete
Mapping string: MissionStartPhase3Ack to index: 2
Mapping string: MissionStart to index: 11
Could not register dust emitter for class: MaleAvatar
Could not register dust emitter for class: MaleAvatar
Could not register dust emitter for class: MaleAvatar
Setting Initial Control Object
Activating DirectInput...
keyboard0 input device acquired.
Compiling creator/ui/prefs.cs...
Loading compiled script creator/ui/prefs.cs.
Set::getObject index out of range.
--------- Initializing: Torque Creator ---------
Loading compiled script creator/editor/editor.cs.
Loading compiled script creator/editor/particleEditor.cs.
Loading compiled script creator/scripts/scriptDoc.cs.
Loading compiled script creator/ui/creatorProfiles.cs.
Loading compiled script creator/ui/InspectDlg.gui.
Loading compiled script creator/ui/GuiEditorGui.gui.
Loading compiled script creator/ui/lightEditor.gui.
Could not locate texture: common/ui/darkSlider
Failed to load profile bitmap (common/ui/darkSlider)
Loading compiled script creator/ui/lightEditorNewDB.gui.
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Mapping string: MsgLoadInfo to index: 2
Mapping string: MsgLoadDescripition to index: 3
Mapping string: MsgLoadInfoDone to index: 4
Mapping string: MsgClientJoin to index: 5
Mapping string: Welcome to the Torque demo app %1. to index: 6
Mapping string: Poser to index: 7
Mapping string: MissionStartPhase1 to index: 8
*** New Mission: control/data/maps/book_ch4.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2 to index: 9
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 10
Client Replication Startup has Happened!
fxFoliageReplicator - Client Foliage Replication Startup is complete.
*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'control/data/maps/book_ch4_d414c5c.ml'
Mission lighting done
common/client/missionDownload.cs (95): Unable to find function onPhase3Complete
Mapping string: MissionStartPhase3Ack to index: 2
Mapping string: MissionStart to index: 11
Could not register dust emitter for class: MaleAvatar
Could not register dust emitter for class: MaleAvatar
Could not register dust emitter for class: MaleAvatar
Setting Initial Control Object
Activating DirectInput...
keyboard0 input device acquired.
Compiling creator/ui/prefs.cs...
Loading compiled script creator/ui/prefs.cs.
Set::getObject index out of range.