Game Development Community

The RTS to 1.5 update for Mac

by James · in RTS Starter Kit · 12/02/2006 (5:37 am) · 5 replies

I thought I'd create a seperate thread for this since it's really appears to be a Mac problem.

I followed Guy's step by step implementation for upgrading the RTS Starter Kit to 1.5 and was successful on the PC side , but the Mac version is having problems ( I work primarily on the Mac).

I implemented the patch, etc and am able to compile the code no problems. Good sign that.

But, when I load a mission the engine stalls then crashes while loading the datablocks. I'm not sure what's causing this as I'm not sure what I'm looking at in the report (I'm a pixel pusher primarily but get Brain Lock when I look at a crash log).

I'll post here a snippet of the console log where it finished loading:

--------- 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.
Loading compiled script creator/ui/lightEditorNewDB.gui.
Engine initialized...
*** Load Main Menu
Could not locate texture: starter.RTS/client/ui/mainMenu/startgame
Could not locate texture: starter.RTS/client/ui/mainMenu/joingame
Could not locate texture: starter.RTS/client/ui/mainMenu/viewDemo
Could not locate texture: starter.RTS/client/ui/mainMenu/options
Could not locate texture: starter.RTS/client/ui/mainMenu/about
Could not locate texture: starter.RTS/client/ui/mainMenu/quit
Could not locate texture: starter.RTS/client/ui/joinServer/back
Could not locate texture: starter.RTS/client/ui/lobby/launch_mission
Exporting server prefs...
creating path common/prefs.cs
Connect request from: James
Connection established 1579
Could not locate texture: starter.RTS/client/ui/lobby/disconnect
Could not locate texture: starter.RTS/client/ui/lobby/ready
Could not locate texture: starter.RTS/client/ui/lobby/ready
GuiMessageVectorCtrl::attach: overriding attachment
CADD: 1581 local
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: MsgStatsList to index: 5
Mapping string: MsgTeamInfo to index: 6
Mapping string: MsgClientJoin to index: 7
Mapping string: Welcome to the RTS Lobby, %1. to index: 8
Mapping string: James to index: 9
NOT Ready^[Super]^James 1581
We are now ready!
Could not locate texture: starter.RTS/client/ui/lobby/cancel_ready
Mapping string: PlayerReady to index: 0
Loading compiled script starter.RTS/server/scripts/audio/audioProfiles.cs.
Loading compiled script starter.RTS/server/scripts/audio/player.cs.
Loading compiled script starter.RTS/server/scripts/fx/player.cs.
Loading compiled script starter.RTS/server/scripts/avatars/base.cs.
Loading compiled script starter.RTS/data/shapes/player/player.cs.
Validation required for shape: starter.RTS/data/shapes/player/player.dts
Loading compiled script starter.RTS/server/scripts/avatars/pathManager.cs.
Loading compiled script starter.RTS/server/scripts/avatars/player.cs.
Loading compiled script starter.RTS/server/scripts/avatars/bot.cs.
Validation required for shape: starter.RTS/data/shapes/bot/bot.dts

more to follow

#1
12/02/2006 (5:37 am)
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Loading compiled script starter.RTS/server/scripts/avatars/rifleman.cs.
Validation required for shape: starter.RTS/data/shapes/rifleman/rifleman.dts
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Loading compiled script starter.RTS/server/scripts/avatars/shocker.cs.
Validation required for shape: starter.RTS/data/shapes/shocker/shocker.dts
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Loading compiled script starter.RTS/server/scripts/core/centerPrint.cs.
Loading compiled script starter.RTS/server/scripts/core/commands.cs.
Loading compiled script starter.RTS/server/scripts/core/game.cs.
Loading compiled script starter.RTS/server/scripts/core/centerPrint.cs.
Loading compiled script starter.RTS/server/scripts/core/commands.cs.
Loading compiled script starter.RTS/server/scripts/core/gameConnection.cs.
Loading compiled script starter.RTS/server/scripts/core/item.cs.
Loading compiled script starter.RTS/server/scripts/core/radiusDamage.cs.
Loading compiled script starter.RTS/server/scripts/core/shapeBase.cs.
Loading compiled script starter.RTS/server/scripts/core/teams.cs.
Loading compiled script starter.RTS/server/scripts/core/triggers.cs.
Loading compiled script starter.RTS/server/scripts/core/weapon.cs.
Loading compiled script starter.RTS/server/scripts/core/buffs.cs.
Loading compiled script starter.RTS/server/scripts/globals.cs.
Loading compiled script starter.RTS/server/scripts/items/camera.cs.
Loading compiled script starter.RTS/server/scripts/items/crossbow.cs.
ParticleEmitterData(CrossbowBoltEmitter) velocityVariance > ejectionVelocity
Error: shape starter.RTS/data/shapes/crossbow/ammo.dts-collision detail 0 (Collision-3) bounds box invalid!
Loading compiled script starter.RTS/server/scripts/items/staticShape.cs.
Loading compiled script starter.RTS/server/scripts/items/building.cs.
Validation required for shape: starter.RTS/data/shapes/building/building.dts
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (/Volumes/Milly/torqueEngine/TGE_RTS_105_SDK/engine/game/player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Mapping string: MsgClientReady to index: 10
Mapping string: MsgMissionLoad to index: 11
*** LOADING MISSION: starter.RTS/data/missions/frenzy.mis
*** Stage 1 load
*** Stage 2 load
Executing starter.RTS/data/missions/frenzy.mis.
*** Mission loaded
*** Sending mission load to client: starter.RTS/data/missions/frenzy.mis
Mapping string: ClearCenterPrint to index: 12
Mapping string: ClearBottomPrint to index: 13
Mapping string: MissionStartPhase1 to index: 14
*** New Mission: starter.RTS/data/missions/frenzy.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 1
Mapping string: GameStart to index: 15
Could not locate texture: starter.RTS/data/shapes/player/base.lmale
Could not locate texture: starter.RTS/data/shapes/player/base.lmale
Validation required for shape: starter.RTS/data/shapes/player/player.dts
Could not locate texture: starter.RTS/data/shapes/player/base.lmale

Then it hangs and crashes...

Any pointers as to what I should be looking at?

All help/advice greatly appreciated.
#2
12/02/2006 (10:55 am)
Do you have a debugger for the Mac?
Ideally, you need to try and find which engine function the crash is occurring in, as the log is pretty useless for tracking stuff down.
#3
12/02/2006 (2:39 pm)
Well, I just discovered I do :)

Problem is, I've no freakin' idea what I'm looking at... or for... for that matter.

Nuts.

What can I do that will make it possible for you (or other someone kind soul out there) to help me?
#4
12/02/2006 (4:01 pm)
Heres the output from the console when I'm running the program at it hangs:

[Session started at 2006-12-02 18:58:45 -0500.]
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:54:33 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Loading program into debugger...

tty /dev/ttyp1
Program loaded.
sharedlibrary apply-load-rules all
(gdb) run
[Switching to process 447 local thread 0xf03]
Running...
starting RAEL
[Switching to process 447 thread 0x1e03]
[Switching to process 447 local thread 0xf03]
[Switching to process 447 thread 0x1e03]
[Switching to process 447 thread 0x1e03]
Program received signal:  "EXC_BAD_ACCESS".
(gdb)
#5
12/04/2006 (11:19 am)
No takers?

Okay, I'll see about talking to someone at GG and see if there's anything that can be done to move this along.

Thanks Guy, I do appreciate the effort you put into this update and it works beautifully on the PC. Mac is a whole other animal from the look of it :)

Cheers!