Game Development Community

Whack-A-Mole Tutorial crash problem.

by Andrea Farid Marsili · in Torque Game Builder · 08/14/2010 (7:44 am) · 5 replies

I'm studying the official documentation for TGB. Allthings work as expected but the script of the part 4 of the Whack-A-Mole Tutorial gave me some problems: the game crash when it spawn the first mole.
I thought that this problem was 'cause of the speedUp process so I remove the speedUp related code and the game stop to crash.
I was happy but I discovered another bug: the mole spawn only in the right corner and if I click on another respawnPoint the game crash...
Anyone could help me?

EDIT: the game also crash when i try to quit the game...

#1
08/15/2010 (2:03 am)
Do you mind providing us with a copy of the console.log file from the game's directory so that we can try to figure out the source of the problem?
#2
08/15/2010 (4:05 pm)
I didn't know that there's console.log file.
Here's the log:

>> Attempting to change display settings to windowed 1024x768x32...
using display 0x8520bc
Set up AGL windowed support
Cleared gl buffers
>>Number of FSAA samples is now [1].
Resurrecting the texture manager...
OpenAL Driver Init:
Vendor: Apple Computer Inc.
Version: 1.1
Renderer: Software
Extensions: AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE AL_EXT_float32 AL_EXT_STATIC_BUFFER

Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/profiles.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/cursors.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBoxOk.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBoxYesNo.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBoxYesNoCancel.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBoxOKCancel.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBoxOKCancelDetailsDlg.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messagePopup.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/options.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/remap.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/console.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/NetworkMenu.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/startServer.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/joinServer.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/waitingForServer.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/helpDlg.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/messageBox.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/help.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gui/chatGui.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/screenshot.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/metrics.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/Gui/FrameOverlayGui.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/scriptDoc.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/keybindings.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/options.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/levelManagement.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/projectManagement.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/projectResources.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/common/gameScripts/align.cs.

Torque Game Builder (v1.7.5) initialized...
Loading compiled script /Users/andrea/MyGames/WackAMole/resources/moleArt/resourceDatabase.cs.
resources/moleArt/resourceDatabase.cs (16): Unable to find function GuiFormManager::BroadcastContentMessage
% Game Resources : Loaded Resource moleArt
Loading compiled script /Users/andrea/MyGames/WackAMole/game/managed/datablocks.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/managed/persistent.cs.
Compiling /Users/andrea/MyGames/WackAMole/game/managed/brushes.cs...
creating path /Users/andrea/MyGames/WackAMole/game/managed/brushes.cs.dso
Loading compiled script /Users/andrea/MyGames/WackAMole/game/managed/brushes.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/datablocks.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/guiProfiles.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gui/mainScreen.gui.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/game.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/mole.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/respawnPoint.cs.
Loading compiled script /Users/andrea/MyGames/WackAMole/game/gameScripts/moleLevel.cs.
game/gameScripts/game.cs (24): Unable to find function enableJoystick
Compiling /Users/andrea/MyGames/WackAMole/game/data/levels/untitled.t2d.t2d...
creating path /Users/andrea/MyGames/WackAMole/game/data/levels/untitled.t2d.t2d.dso
#3
08/21/2011 (9:51 pm)
Did this get answered elsewhere? I basically have the same problem.

#4
08/22/2011 (3:29 am)
Your game doesn't crash and log messages are different, so no, you don't have the same problem.
#5
08/22/2011 (8:26 pm)
You're Right! I had too many windows open and commented on the wrong post!