Game Development Community

Pre compile failure

by Howard Dortch · in Torsion · 03/01/2007 (1:11 pm) · 9 replies

Anyone know why precompile would fail about 1/4 way in?
Game runs fine, no errors.

#1
03/01/2007 (4:49 pm)
Interesting... could you post the console.log it generates?
#2
03/01/2007 (5:04 pm)
Console.log from the game or is there one for Torsion?
I dont know how to post anything here
#3
03/01/2007 (5:15 pm)
The console.log from the game. The Torsion precompile step just executes your game in a special way to compile the scripts. What you see in the Torsion output window is the contents of the console.log. If you open it up in notepad after your run precompile you can just cut and paste the contents into a post in this thread.
#4
03/01/2007 (6:27 pm)
Precompiling...

//-------------------------- 3/1/2007 -- 21:25:19 -----
--------- Loading ---------
Loading compiled script Game/main.cs.
Loading compiled script common/main.cs.
Loading compiled script Game/client/defaults.cs.
Loading compiled script Game/server/defaults.cs.
Loading compiled script Game/client/prefs.cs.
Loading compiled script Game/server/prefs.cs.
Loading compiled script creator/main.cs.
Loading compiled script common/main.cs.


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

--------- Initializing MOD: ScudBuster ---------
Loading compiled script Game/client/init.cs.
Loading compiled script Game/server/init.cs.
Loading compiled script Game/data/init.cs.
Loading compiled script Game/data/terrains/grassland/propertyMap.cs.

--------- Initializing MOD: ScudBuster Server ---------
Loading compiled script common/server/audio.cs.
Loading compiled script common/server/server.cs.
Loading compiled script common/server/message.cs.
Loading compiled script common/server/commands.cs.
Loading compiled script common/server/missionInfo.cs.
Loading compiled script common/server/missionLoad.cs.
Loading compiled script common/server/missionDownload.cs.
Loading compiled script common/server/clientConnection.cs.
Loading compiled script common/server/kickban.cs.
Loading compiled script common/server/game.cs.
Loading compiled script Game/server/scripts/commands.cs.
Loading compiled script Game/server/scripts/centerPrint.cs.
Loading compiled script Game/server/scripts/game.cs.

--------- Initializing MOD: ScudBuster Client ---------
Loading compiled script Game/client/ui/customProfiles.cs.
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Video Init:
Accelerated OpenGL display device detected.
Accelerated D3D device not detected.
Voodoo 2 display device not detected.

Activating the OpenGL display device...
Activating the OpenGL display device...
Setting screen mode to 1024x768x32 (w)...
Creating a new window...
Acquiring a new device context...
Pixel format set:
32 color bits, 24 depth bits, 8 stencil bits
Creating a new rendering context...
Making the new rendering context current...
OpenGL driver information:
Vendor: ATI Technologies Inc.
Renderer: RADEON 9600 x86/MMX/3DNow!/SSE
Version: 1.5.4582 WinXP Release
OpenGL Init: Enabled Extensions
ARB_multitexture (Max Texture Units: 8)
EXT_blend_color
EXT_blend_minmax
EXT_compiled_vertex_array
EXT_texture_env_combine
EXT_packed_pixels
EXT_fog_coord
ARB_texture_compression
EXT_texture_compression_s3tc
(ARB|EXT)_texture_env_add
EXT_texture_filter_anisotropic (Max anisotropy: 16)
WGL_EXT_swap_control
OpenGL Init: Disabled Extensions
EXT_paletted_texture
NV_vertex_array_range
3DFX_texture_compression_FXT1

Loading compiled script common/ui/defaultProfiles.cs.
Loading compiled script common/ui/ConsoleDlg.gui.
Loading compiled script common/ui/LoadFileDlg.gui.
Loading compiled script common/ui/ColorPickerDlg.gui.
Loading compiled script common/ui/SaveFileDlg.gui.
Loading compiled script common/ui/MessageBoxOkDlg.gui.
Loading compiled script common/ui/MessageBoxYesNoDlg.gui.
Loading compiled script common/ui/MessageBoxOKCancelDlg.gui.
Loading compiled script common/ui/MessagePopupDlg.gui.
Loading compiled script common/ui/RecordingsDlg.gui.
Loading compiled script common/ui/NetGraphGui.gui.
Loading compiled script common/client/metrics.cs.
Loading compiled script common/ui/FrameOverlayGui.gui.
Loading compiled script common/client/messageBox.cs.
Loading compiled script common/client/screenshot.cs.
Loading compiled script common/client/cursor.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

Loading compiled script Game/client/scripts/audioProfiles.cs.
Loading compiled script Game/client/ui/defaultGameProfiles.cs.
Loading compiled script Game/client/ui/PlayGui.gui.
Loading compiled script Game/client/ui/ChatHud.gui.
Loading compiled script Game/client/ui/mainMenuGui.gui.
Loading compiled script Game/client/ui/aboutDlg.gui.
Loading compiled script Game/client/ui/startMissionGui.gui.
Loading compiled script Game/client/ui/joinServerGui.gui.
Loading compiled script Game/client/ui/loadingGui.gui.
Loading compiled script Game/client/ui/endGameGui.gui.
Loading compiled script Game/client/ui/optionsDlg.gui.
Loading compiled script Game/client/ui/remapDlg.gui.
Loading compiled script Game/client/ui/StartupGui.gui.
Loading compiled script Game/client/ui/LogoGui.gui.
Loading compiled script Game/client/ui/EquipmentList.gui.
Loading compiled script Game/client/ui/PickNPlace.gui.
Loading compiled script Game/client/ui/EndBattle.gui.
Loading compiled script Game/client/ui/EndWar.gui.
Loading compiled script Game/client/ui/LanNet.gui.
Loading compiled script Game/client/ui/NetPick.gui.
Loading compiled script Game/client/ui/MainChatHud.gui.
Loading compiled script Game/client/ui/JoinIPGame.gui.
Loading compiled script Game/client/ui/StatsGui.gui.
Loading compiled script Game/client/ui/PickPlayer.gui.
Loading compiled script Game/client/ui/MessageBoxYesNoDlg.gui.
Loading compiled script Game/client/ui/FirstTime.gui.
Loading compiled script Game/client/ui/GameHelp.gui.
Loading compiled script Game/client/ui/SalesGui.gui.
Loading compiled script Game/client/scripts/client.cs.
Loading compiled script Game/client/scripts/game.cs.
Loading compiled script Game/client/scripts/missionDownload.cs.
Loading compiled script Game/client/scripts/serverConnection.cs.
Loading compiled script Game/client/scripts/loadingGui.cs.
Loading compiled script Game/client/scripts/optionsDlg.cs.
Loading compiled script Game/client/scripts/chatHud.cs.
Loading compiled script Game/client/scripts/messageHud.cs.
Loading compiled script Game/client/scripts/playGui.cs.
Loading compiled script Game/client/scripts/centerPrint.cs.
Precompile failed


seems to fail at a different spot each time
#5
03/01/2007 (6:34 pm)
@Howard - Somehow your not precompiling at all... it's running the game. Most likely your Torque EXE isn't obeying the command line script Torsion is passing to it. What version of Torque are you running?
#6
03/01/2007 (8:03 pm)
Using 1.4 and you can't pass any commands to it, I eliminated main.cs
#7
03/01/2007 (8:43 pm)
Well that would be your problem right there.

Torsion depends on the functionality in Torque where the first parameter passed to it on the command like is a .cs file it will execute it instead of main.cs. If you removed that functionality the precompile will never work. You can disable the automatic precompile step from the project settings dialog.
#8
03/01/2007 (9:02 pm)
So I guess I do a special build of the engine to use that feature, Ok..
#9
03/01/2007 (9:40 pm)
That's possible. You can toggle the use of the precompiler per-project config for just that reason. You could maybe setup your debug.exe to allow command line scripts.