Compile or Audio problems??
by Jon Law · in Torque Game Engine · 12/06/2005 (8:35 pm) · 6 replies
Hi i wasnt sure what section to put this under cause its kinda a general question. I recently added the advanced camera resource and i am having a few problems. I managed to compile with no problem however, i cant seem to get the code to work. After compiling if i run torque demo app i get errors saying that the advanced camera object doesnt exist implying that the changes to the source code didnt work. I read on the forums that after a change to source you have to run your game using the debug app but when i do that it crashes. with this error...
is it true that i am suppose to use the debug app or is it an audio problem what do i do?? please help
thanks
ps. when i run my game on the regular torque demo app i get the following errors
Fatal: (../engine/audio/audioBuffer.cc @ 307) AudioBuffer::readWAV: remaining chunk data should never be less than zero. Cannot display alerts in full screen mode. Dumping message to console... Fatal: (../engine/audio/audioBuffer.cc @ 307), AudioBuffer::readWAV: remaining chunk data should never be less than zero. Error, a DecalManager (5c32d00) isn't properly out of the bins!
is it true that i am suppose to use the debug app or is it an audio problem what do i do?? please help
thanks
ps. when i run my game on the regular torque demo app i get the following errors
chub.box/server/scripts/game.cs (218): Unable to instantiate non-conobject class AdvancedCamera. Set::add: Object "0" doesn't exist chub.box/server/scripts/game.cs (220): Unable to find object: '0' attempting to call function 'scopeToClient' chub.box/server/scripts/game.cs (341): Unable to find object: '0' attempting to call function 'setPlayerObject' chub.box/server/scripts/game.cs (342): Unable to find object: '0' attempting to call function 'setThirdPersonMode' chub.box/server/scripts/game.cs (343): Unable to find object: '0' attempting to call function 'setFollowTerrainMode' chub.box/server/scripts/game.cs (344): Unable to find object: '0' attempting to call function 'setVerticalFreedomMode'
About the author
#2
thanks
12/07/2005 (7:51 pm)
Yes i had a feeling that the second set of errors was because i was using the torquedemo.exe. but for my sake just to be clear, when you compile, it will give you three files, torquedemo.app, torquedemo_debug.app, and map2difplus.app. i should be running my game with the torquedemo_debug.app tho because this is the one with the changes, right? Also i dont think there is a problem with my audio files because they worked before i changed the source code (but then again i never ran it with torquedemo_debug). what is the minimum length for an audio file?? do you know how to fix this?thanks
#3
i also get this message however
thanks again
12/08/2005 (3:20 pm)
Yeah so it turns out one of my audio files was formatted wrong or needed to be re exported anyways... but i still get the errorschub.box/server/scripts/game.cs (218): Unable to instantiate non-conobject class Adva ncedCamera. Set::add: Object "0" doesn't exist chub.box/server/scripts/game.cs (220): Unable to find object: '0' attempting to call function 'scopeToClient' chub.box/server/scripts/game.cs (341): Unable to find object: '0' attempting to call function 'setPlayerObject' chub.box/server/scripts/game.cs (342): Unable to find object: '0' attempting to call function 'setThirdPersonMode' chub.box/server/scripts/game.cs (343): Unable to find object: '0' attempting to call function 'setFollowTerrainMode' chub.box/server/scripts/game.cs (344): Unable to find object: '0' attempting to call function 'setVerticalFreedomMode'so i guess i need to check over my source code.
i also get this message however
Warning: (../engine/console/consoleObject.cc @ 62) Couldn't find class rep for dynamic class: AdvancedCamerabut i assume thats all part of the source code problems
thanks again
#4
12/08/2005 (3:26 pm)
Are you pulling the applications from your Build folder and copying them to the example directory? Are your compile targets set to debug or all?
#5
If you have trouble determining which executable is which, try using the 'date last modified' to figure out which one was modified last. That one is probably the one you compiled most recently =)
My guess about your audio files being corrupt is just a wild guess, I really don't know enough about it to be able to tell you for certain either way.
12/08/2005 (5:40 pm)
What David said, when you compile, the new executable (sorry I'm not on a mac or I might be more helpful) is placed in your project's build folder. You must manually copy it over your old executable that resides in the game folder. Depending on whether you have built the debug target or the release target, it may be either torqueDemo.app (the release executable) or torqueDemo_debug.app (the debug executable)If you have trouble determining which executable is which, try using the 'date last modified' to figure out which one was modified last. That one is probably the one you compiled most recently =)
My guess about your audio files being corrupt is just a wild guess, I really don't know enough about it to be able to tell you for certain either way.
#6
thanks again
12/10/2005 (11:11 am)
Yeah i copied the exacutable over and i already figured out the audio problems it was a corrupt file. i just can seem to get the advanced camera to compile correctly. ive implemented the 3rd person crosshair resource and that has worked fine but i simply cant get the advanced camera to work. are there any specific things i need to change for 1.4 or does it normally work. i know you dont have to change the game connection source that already has the camera exposed but is there anything else besides thatthanks again
Torque 3D Owner Jesse Liles