Game Development Community

Rebuilding torqueDemo.exe

by Robert Simpson · in Technical Issues · 04/02/2006 (2:10 pm) · 9 replies

Hello,
i'm attempting to edit the racer starting kit as a beginner. i've come across the need for a new console command, so i need to rebuild torque into a new torqueDemo.exe. The default torqueDemo.exe which i've been using is only 1MB. after i recompile torque from visual c++ 6.0, it is 3.8MB and most of my models disappear. ***edit: you cannot see any of the models at all no matter how close or far you are from them*** i was wondering if anyone could please shed some light on this mystery. here is a screenshot using the default torqueDemo.exe:

www.dawsonvilleapartments.com/torque1.JPG
here is a screenshot after recompiling torque:

www.dawsonvilleapartments.com/torque2.JPG
please bear in mind i have not changed any of the source code here. just recompiled what was given to me. thanks for any help...

snazin.

#1
04/02/2006 (4:05 pm)
I believe the demo uses compression technology to compress the exe which then gets expanded upon running. This makes is a smaller exe and therefore adds to the pure goodness for downloading.

Although when I look at my re-compiled version its 2.78 Megs. Mine was compiled with VS 2005 Express (free to use) So the size difference might be the VS6.0 you are using. If you are using Standard version its doesn't have all the compiler optimizations as other versions so that might be making a difference.

As far as the models disappearing, I have never seen anything like that. Even when I was using VS 6.0. So here are a few question:

Do the models show up when you get closer or not at all?
Do you run the unaltered Torque Demo from the same directory as the original?
You mention something about console commands. Whenever you change console commands (and in general after big changes) its good to delete all the DSO to ensure that your scripts are re-created.
Are there any errors in the console.log file that give you any information?

- Edit Clarification and to fix the spelling errors.
#2
04/02/2006 (4:31 pm)
Thanks for the help. yeah the size doesnt relaly concern me, just the models disappaering. i ran the delete dso.bat file and that didnt help. i'm running everything the same, only i replaced the exe with the newly compiled one. Models don't show up at all no matter how close or far you are from them.

here is the log file... i'm really new at this so i can't tell if there are any clues in here:

//-------------------------- 4/2/2006 -- 19:32:24 -----
Processor Init:
Intel Pentium 4, ~1.80 Ghz
(timed at roughly 1.78 Ghz)
FPU detected
MMX detected
SSE detected

Math Init:
Installing Standard C extensions
Installing Assembly extensions
Installing FPU extensions
Installing MMX extensions
Installing SSE extensions

Input Init:
keyboard0 input device created.
mouse0 input device created.
DirectInput enabled.

Initializing chunk mappings...
o 'TEXT' maps to TextChunk
o 'SCHK' maps to UnknownChunk
o 'SCHK' maps to SimChunk
--------- Loading MODS ---------
Compiling ateam.brawl/main.cs...
Loading compiled script ateam.brawl/main.cs.
Compiling common/main.cs...
Loading compiled script common/main.cs.
Missing file: common/defaults.cs!
Compiling ateam.brawl/client/defaults.cs...
Loading compiled script ateam.brawl/client/defaults.cs.
Compiling ateam.brawl/server/defaults.cs...
Loading compiled script ateam.brawl/server/defaults.cs.
Compiling ateam.brawl/client/prefs.cs...
Loading compiled script ateam.brawl/client/prefs.cs.
Compiling ateam.brawl/server/prefs.cs...
Loading compiled script ateam.brawl/server/prefs.cs.
Compiling creator/main.cs...
Loading compiled script creator/main.cs.
Loading compiled script common/main.cs.
Missing file: common/defaults.cs!

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Compiling common/client/canvas.cs...
Loading compiled script common/client/canvas.cs.
Compiling common/client/audio.cs...
Loading compiled script common/client/audio.cs.

--------- Initializing MOD: FPS Starter Kit ---------
Compiling ateam.brawl/client/init.cs...
Loading compiled script ateam.brawl/client/init.cs.
Compiling ateam.brawl/server/init.cs...
Loading compiled script ateam.brawl/server/init.cs.
Compiling ateam.brawl/data/init.cs...
Loading compiled script ateam.brawl/data/init.cs.
Missing file: ateam.brawl/data/terrains/grassland/propertyMap.cs!
Missing file: ateam.brawl/data/terrains/scorched/propertyMap.cs!

--------- Initializing MOD: FPS Starter Kit: Server ---------
Compiling common/server/audio.cs...
Loading compiled script common/server/audio.cs.
Compiling common/server/server.cs...
Loading compiled script common/server/server.cs.
Compiling common/server/message.cs...
Loading compiled script common/server/message.cs.
Compiling common/server/commands.cs...
Loading compiled script common/server/commands.cs.
Compiling common/server/missionInfo.cs...
Loading compiled script common/server/missionInfo.cs.
Compiling common/server/missionLoad.cs...
Loading compiled script common/server/missionLoad.cs.
Compiling common/server/missionDownload.cs...
Loading compiled script common/server/missionDownload.cs.
Compiling common/server/clientConnection.cs...
Loading compiled script common/server/clientConnection.cs.
Compiling common/server/kickban.cs...
Loading compiled script common/server/kickban.cs.
Compiling common/server/game.cs...
Loading compiled script common/server/game.cs.
Compiling ateam.brawl/server/scripts/commands.cs...
Loading compiled script ateam.brawl/server/scripts/commands.cs.
Compiling ateam.brawl/server/scripts/centerPrint.cs...
Loading compiled script ateam.brawl/server/scripts/centerPrint.cs.
Compiling ateam.brawl/server/scripts/game.cs...
Loading compiled script ateam.brawl/server/scripts/game.cs.

--------- Initializing MOD: FPS Starter Kit: Client ---------
Compiling ateam.brawl/client/ui/customProfiles.cs...
Loading compiled script ateam.brawl/client/ui/customProfiles.cs.
Compiling common/client/message.cs...
Loading compiled script common/client/message.cs.
Compiling common/client/mission.cs...
Loading compiled script common/client/mission.cs.
Compiling common/client/missionDownload.cs...
Loading compiled script common/client/missionDownload.cs.
Compiling common/client/actionMap.cs...
Loading compiled script common/client/actionMap.cs.
Video Init:
Accelerated OpenGL display device detected.
Accelerated D3D device detected.
Voodoo 2 display device not detected.

Activating the D3D display device...
Setting screen mode to 800x600x32 (w)...
Creating a new window...
Acquiring a new device context...
Pixel format set:
32 color bits, 32 depth bits, 0 stencil bits
Creating a new rendering context...
Making the new rendering context current...
OpenGL driver information:
Vendor: Microsoft Corp.
Renderer: Direct3D
Version: 1.1
OpenGL Init: Enabled Extensions
ARB_multitexture (Max Texture Units: 2)
EXT_paletted_texture
EXT_compiled_vertex_array
EXT_texture_env_combine
EXT_fog_coord
OpenGL Init: Disabled Extensions
EXT_blend_color
EXT_blend_minmax
NV_vertex_array_range
EXT_packed_pixels
ARB_texture_compression
EXT_texture_compression_s3tc
3DFX_texture_compression_FXT1
(ARB|EXT)_texture_env_add
EXT_texture_filter_anisotropic
WGL_EXT_swap_control
#3
04/02/2006 (4:35 pm)
Compiling common/ui/defaultProfiles.cs...
Loading compiled script common/ui/defaultProfiles.cs.
Compiling common/ui/ConsoleDlg.gui...
Loading compiled script common/ui/ConsoleDlg.gui.
Compiling common/ui/LoadFileDlg.gui...
Loading compiled script common/ui/LoadFileDlg.gui.
Could not locate texture: common/ui/bs
Compiling common/ui/ColorPickerDlg.gui...
Loading compiled script common/ui/ColorPickerDlg.gui.
Compiling common/ui/SaveFileDlg.gui...
Loading compiled script common/ui/SaveFileDlg.gui.
Could not locate texture: common/ui/bs
Compiling common/ui/MessageBoxOkDlg.gui...
Loading compiled script common/ui/MessageBoxOkDlg.gui.
Compiling common/ui/MessageBoxYesNoDlg.gui...
Loading compiled script common/ui/MessageBoxYesNoDlg.gui.
Compiling common/ui/MessageBoxOKCancelDlg.gui...
Loading compiled script common/ui/MessageBoxOKCancelDlg.gui.
Compiling common/ui/MessagePopupDlg.gui...
Loading compiled script common/ui/MessagePopupDlg.gui.
Compiling common/ui/HelpDlg.gui...
Loading compiled script common/ui/HelpDlg.gui.
Compiling common/ui/RecordingsDlg.gui...
Loading compiled script common/ui/RecordingsDlg.gui.
Compiling common/ui/NetGraphGui.gui...
Loading compiled script common/ui/NetGraphGui.gui.
Compiling common/client/metrics.cs...
Loading compiled script common/client/metrics.cs.
Compiling common/ui/FrameOverlayGui.gui...
Loading compiled script common/ui/FrameOverlayGui.gui.
Compiling common/client/messageBox.cs...
Loading compiled script common/client/messageBox.cs.
Compiling common/client/screenshot.cs...
Loading compiled script common/client/screenshot.cs.
Compiling common/client/cursor.cs...
Loading compiled script common/client/cursor.cs.
Compiling common/client/help.cs...
Loading compiled script common/client/help.cs.
Compiling common/client/recordings.cs...
Loading compiled script common/client/recordings.cs.

OpenAL Driver Init:
OpenAL
Missing OpenAL Extension function 'EAXSet'
Missing OpenAL Extension function 'EAXGet'
Vendor: Creative Labs Inc.
Version: 1.1
Renderer: Software
Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE

Compiling ateam.brawl/client/scripts/audioProfiles.cs...
Loading compiled script ateam.brawl/client/scripts/audioProfiles.cs.
Compiling ateam.brawl/client/ui/defaultGameProfiles.cs...
Loading compiled script ateam.brawl/client/ui/defaultGameProfiles.cs.
Compiling ateam.brawl/client/ui/PlayGui.gui...
Loading compiled script ateam.brawl/client/ui/PlayGui.gui.
Compiling ateam.brawl/client/ui/ChatHud.gui...
Loading compiled script ateam.brawl/client/ui/ChatHud.gui.
Compiling ateam.brawl/client/ui/playerList.gui...
Loading compiled script ateam.brawl/client/ui/playerList.gui.
Compiling ateam.brawl/client/ui/mainMenuGui.gui...
Loading compiled script ateam.brawl/client/ui/mainMenuGui.gui.
Missing file: ateam.brawl/client/ui/QuitGui.gui!
Compiling ateam.brawl/client/ui/aboutDlg.gui...
Loading compiled script ateam.brawl/client/ui/aboutDlg.gui.
Compiling ateam.brawl/client/ui/startMissionGui.gui...
Loading compiled script ateam.brawl/client/ui/startMissionGui.gui.
Compiling ateam.brawl/client/ui/joinServerGui.gui...
Loading compiled script ateam.brawl/client/ui/joinServerGui.gui.
Compiling ateam.brawl/client/ui/loadingGui.gui...
Loading compiled script ateam.brawl/client/ui/loadingGui.gui.
Compiling ateam.brawl/client/ui/endGameGui.gui...
Loading compiled script ateam.brawl/client/ui/endGameGui.gui.
Compiling ateam.brawl/client/ui/optionsDlg.gui...
Loading compiled script ateam.brawl/client/ui/optionsDlg.gui.
Compiling ateam.brawl/client/ui/remapDlg.gui...
Loading compiled script ateam.brawl/client/ui/remapDlg.gui.
Compiling ateam.brawl/client/ui/StartupGui.gui...
Loading compiled script ateam.brawl/client/ui/StartupGui.gui.
Compiling ateam.brawl/client/scripts/client.cs...
Loading compiled script ateam.brawl/client/scripts/client.cs.
Compiling ateam.brawl/client/scripts/game.cs...
Loading compiled script ateam.brawl/client/scripts/game.cs.
Compiling ateam.brawl/client/scripts/missionDownload.cs...
Loading compiled script ateam.brawl/client/scripts/missionDownload.cs.
Compiling ateam.brawl/client/scripts/serverConnection.cs...
Loading compiled script ateam.brawl/client/scripts/serverConnection.cs.
Compiling ateam.brawl/client/scripts/playerList.cs...
Loading compiled script ateam.brawl/client/scripts/playerList.cs.
Compiling ateam.brawl/client/scripts/loadingGui.cs...
Loading compiled script ateam.brawl/client/scripts/loadingGui.cs.
Compiling ateam.brawl/client/scripts/optionsDlg.cs...
Loading compiled script ateam.brawl/client/scripts/optionsDlg.cs.
Compiling ateam.brawl/client/scripts/chatHud.cs...
Loading compiled script ateam.brawl/client/scripts/chatHud.cs.
Compiling ateam.brawl/client/scripts/messageHud.cs...
Loading compiled script ateam.brawl/client/scripts/messageHud.cs.
Compiling ateam.brawl/client/scripts/playGui.cs...
Loading compiled script ateam.brawl/client/scripts/playGui.cs.
Compiling ateam.brawl/client/scripts/centerPrint.cs...
Loading compiled script ateam.brawl/client/scripts/centerPrint.cs.
Compiling ateam.brawl/client/scripts/default.bind.cs...
Loading compiled script ateam.brawl/client/scripts/default.bind.cs.
Compiling ateam.brawl/client/config.cs...
Loading compiled script ateam.brawl/client/config.cs.
Binding server port to default IP
UDP initialized on port 0
Unable to locate audio profile 'AudioStartup'

--------- Initializing: Torque Creator ---------
Compiling creator/editor/editor.cs...
Loading compiled script creator/editor/editor.cs.
Compiling creator/editor/particleEditor.cs...
Loading compiled script creator/editor/particleEditor.cs.
Compiling creator/scripts/scriptDoc.cs...
Loading compiled script creator/scripts/scriptDoc.cs.
Compiling creator/ui/creatorProfiles.cs...
Loading compiled script creator/ui/creatorProfiles.cs.
Compiling creator/ui/InspectDlg.gui...
Loading compiled script creator/ui/InspectDlg.gui.
Compiling creator/ui/GuiEditorGui.gui...
Loading compiled script creator/ui/GuiEditorGui.gui.
Engine initialized...
*** Load Main Menu
Exporting server prefs...
Compiling ateam.brawl/server/scripts/audioProfiles.cs...
Loading compiled script ateam.brawl/server/scripts/audioProfiles.cs.
Compiling ateam.brawl/server/scripts/camera.cs...
Loading compiled script ateam.brawl/server/scripts/camera.cs.
Compiling ateam.brawl/server/scripts/markers.cs...
Loading compiled script ateam.brawl/server/scripts/markers.cs.
Compiling ateam.brawl/server/scripts/triggers.cs...
Loading compiled script ateam.brawl/server/scripts/triggers.cs.
Compiling ateam.brawl/server/scripts/shapeBase.cs...
Loading compiled script ateam.brawl/server/scripts/shapeBase.cs.
Compiling ateam.brawl/server/scripts/staticShape.cs...
Loading compiled script ateam.brawl/server/scripts/staticShape.cs.
Compiling ateam.brawl/server/scripts/radiusDamage.cs...
Loading compiled script ateam.brawl/server/scripts/radiusDamage.cs.
Compiling ateam.brawl/server/scripts/checkpoint.cs...
Loading compiled script ateam.brawl/server/scripts/checkpoint.cs.
Compiling ateam.brawl/server/scripts/crossbow.cs...
Loading compiled script ateam.brawl/server/scripts/crossbow.cs.
ParticleEmitterData(CrossbowBoltEmitter) velocityVariance > ejectionVelocity
Error: shape ateam.brawl/data/shapes/crossbow/ammo.dts-collision detail 0 (Collision-3) bounds box invalid!
Compiling ateam.brawl/server/scripts/weapon.cs...
Loading compiled script ateam.brawl/server/scripts/weapon.cs.
Loading compiled script ateam.brawl/server/scripts/commands.cs.
Compiling ateam.brawl/server/scripts/item.cs...
Loading compiled script ateam.brawl/server/scripts/item.cs.
Compiling ateam.brawl/server/scripts/inventory.cs...
Loading compiled script ateam.brawl/server/scripts/inventory.cs.
Compiling ateam.brawl/server/scripts/car.cs...
Loading compiled script ateam.brawl/server/scripts/car.cs.
#4
04/02/2006 (4:35 pm)
*** LOADING MISSION: ateam.brawl/data/missions/blank.mis
*** Stage 1 load
*** Stage 2 load
Executing ateam.brawl/data/missions/blank.mis.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
*** Mission loaded
Connect request from: IPX:88A104BF:C89B27C09CFC:48906
Connection established 1411
CADD: 1412 local
*** Sending mission load to client: ateam.brawl/data/missions/blank.mis
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: ateam.brawl/data/missions/blank.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
Error: shape ateam.brawl/data/shapes/crossbow/ammo.dts-collision detail 1 (Collision-3) bounds box invalid!
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: 'ateam.brawl/data/missions/blank_5e48c506.ml'
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
initial damage

Mapping string: MissionStart to index: 11
Mapping string: SyncClock to index: 12
Mapping string: SetMaxLaps to index: 13
*** Initial Control Object
Activating DirectInput...
keyboard0 input device acquired.
Mapping string: SetCounter to index: 14
Mapping string: GameStart to index: 15
Could not locate texture: starter.racing/client/ui/go.png
keyboard0 input device unacquired.
keyboard0 input device acquired.
*** ENDING MISSION
CDROP: 1412 IPX:88A104BF:C89B27C09CFC:48906
Exporting server prefs...
Exporting client prefs
Exporting client config
Exporting server prefs
Exporting client prefs
Exporting server prefs
keyboard0 input device unacquired.
#5
04/02/2006 (4:50 pm)
Well nothing looks odd in the log.

So if you place back the orginal TorqueDemo.exe the models come back?
If so you could:
1 - Delete the console.log
2 - Run the game
3 - Exit
4 - Copy console.log to console.first.log
5 - Replace the exe with the other one.
6 - Repeat steps 2, 3
7 - Compair the new Console.log to console.first.log and see if anything is different.

If thats not the right path, I would be more than happy to e-mail you a compiled unaltered version that I have. Would elimate or point to your compile process or files. Just drop me an e-mail at the address attached to my user account.
#6
04/02/2006 (4:59 pm)
Just compared them and they are both identical. I have a copy of the original TorqueDemo.exe and the recompiled exe and when i use the old one models appear and when i use the new one they dont. if i try and add them in again they still dont show up. Torque thinks they are there, though.
#7
04/02/2006 (5:30 pm)
Ok after some more careful testing, i can see vague shadows of my models in the fog from very far away. this gets changed as i change the field called 'fogDistance' in the sky part of my mission file:

new Sky(Sky) {
position = "336 136 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "creator/data/skies/sky_day.dml";
cloudHeightPer[0] = "0";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "500";
fogDistance = "300";
fogColor = "0.6 0.6 0.6 1";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "128 128 128 -2.22768e+038";
fogVolumeColor2 = "128 128 128 0";
fogVolumeColor3 = "128 128 128 -1.70699e+038";
windVelocity = "1 1 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.6 0.6 0.6 1";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
locked = "true";
};


if i make fog distance 1 i can see all of my models but they're all foggy:

www.dawsonvilleapartments.com/torque3.JPG
#8
04/02/2006 (5:38 pm)
Try changing visible distance.... 3100 is the max i think..
#9
04/04/2006 (11:36 am)
Yeah that doesn't help. i'm beginning to suspect it might have something to do with my exporter. i'm using max 8 i might try to get my hands on max 6 and try that. cause i'm out of ideas