Game Development Community

Problem with mission lighting

by Roshan Kuriyan · in Torque Game Engine Advanced · 05/18/2006 (12:43 am) · 6 replies

I am trying to load a mission file using TSE.
The program crashes at the end when it comes to GameConnection::initialControlSet function.
In the mission lighting process the .ml file is beeing created.
the last part of my console log is pasted here.
could anyone help me
THANKS in advance..
Roshan


*** Phase 3: Mission Lighting
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
130.1063 -430.3746 137.681
dir/control/player.cs (89): Unknown command startFade.
Object PlayerShape(6) PlayerShape -> MYPlayer -> PlayerData -> ShapeBaseData -> GameBaseData -> SimDataBlock -> SimObject
Mapping string: MissionStart to index: 3
clientCmdMissionStart: Unknown command.
Could not register dust emitter for class: PlayerShape
Could not register dust emitter for class: PlayerShape
Could not register dust emitter for class: PlayerShape

#1
05/18/2006 (3:37 am)
Well there seems to be two unknown commands in there, which suggests maybe you are loading scripts in the wrong order somewhere. This looks like a case for standard debugging techniques to isolate the exact problem. Without your mission file and all the scripts that are being loaded there probably isn't much that anyone could suggest from the snippet above. Use the debugger or stick in a bunch of echo statements untill you find the line that is blowing up. It might be obvious to you what the problem is then. Setting trace() might help as well.
#2
05/18/2006 (8:10 pm)
Thank u dave , i got a particle solution , it was just script edit mistake.Still i am geting at my console
like this.

2nd load
*** Sending mission load to client: dir/mission/mission.mis
Mapping string: MissionStartPhase1 to index: 0
*** New Mission: dir/mission/mission.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
end of
Mapping string: MissionStartPhase2 to index: 1
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 2
dir/common/missiondownload.cs (203): Unable to find function onPhase2Complete
dir/common/missiondownload.cs (204): Unable to find function StartClientReplication
dir/common/missiondownload.cs (205): Unable to find function StartFoliageReplication
*** Phase 3: Mission Lighting


mission file is created but it shows 0 KB. after which tse stops executing .

help in fix.
thanks in advance
#3
05/18/2006 (8:24 pm)
This happens to me alot, the problem for me was certain DIFs being loaded. Try taking out all Difs from the missoin file and add one dif in world editor then relight scene, keep doing this to all the Difs one at a time until it crashes on the one that is the problem. TSE is either bugged or just much more sensitive when it comes to Difs. Hope this helps.
#4
05/18/2006 (11:29 pm)
Thats right Andrew,
but my mission contains only a terrain ,sky and a sun no Dif's.
Actually the program stops when it comes to the UpdateLightingprogress in the Lighting Mission part.
the last part of my console log is


*** Phase 3: Mission Lighting
!!!dir/data/mission/mission.mis
Lighting mission....
Leaving clientCmdMissionStartPhase3() - return
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 3
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 5
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 6
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 7
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 8
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 9
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 10
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 11
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 12
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 13
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 14
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 15
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 16
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 17
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 18
Entering updateLightingProgress()
Leaving updateLightingProgress() - return 19
Entering updateLightingProgress()

and this where it stops.
Thanks in advance
#5
05/19/2006 (12:15 am)
You still have some script errors, you've probably messed up some more scripts...

dir/common/missiondownload.cs (203): Unable to find function onPhase2Complete
dir/common/missiondownload.cs (204): Unable to find function StartClientReplication
dir/common/missiondownload.cs (205): Unable to find function StartFoliageReplication
#6
05/21/2006 (6:23 pm)
OnPhase2Complete
StartClientReplication
StartFoliageReplication

Actually these functions r just like stubs.Its possible for the the program to work without these functions.
So i think there wont be any problem because of this.