Game Development Community

Unable to startup game probably?

by Wilson · in Technical Issues · 06/08/2008 (11:50 pm) · 3 replies

Hi I am trying to create my first game, so I'm still kinda noob in programming, so excuse me if I ask stupid questions...

but my problem: I am unable to startup my game probably, the game freezes when it's loading the objects in my loadscreen.

So I looked in console.log, where I saw the following erors:

control/client/misc/transfer.cs (124): Unable to find object: 'LOAD_MapName' attempting to call function 'setText'

control/client/misc/transfer.cs (0): Unable to find object: 'LOAD_MapDescription' attempting to call function 'setText'

And here is where the real problem is... I looked in these scripts but I think that there is nothing wrong with it... I shall post these scripts to show you.

In control/client/misc/transfer.cs:


//------------------------------------------------------------------------------

addMessageCallback( 'MsgLoadInfo', handleLoadInfoMessage );
addMessageCallback( 'MsgLoadDescripition', handleLoadDescriptionMessage );
addMessageCallback( 'MsgLoadInfoDone', handleLoadInfoDoneMessage );

//------------------------------------------------------------------------------

function handleLoadInfoMessage( %msgType, %msgString, %mapName ) {

// Need to pop up the loading gui to display this stuff.
Canvas.setContent("LoadScreen");

// Clear all of the loading info lines:
for( %line = 0; %line < LoadScreen.qLineCount; %line++ )
LoadScreen.qLine[%line] = "";
LoadScreen.qLineCount = 0;


LOAD_MapName.setText( %mapName );
}

//------------------------------------------------------------------------------

function handleLoadDescriptionMessage( %msgType, %msgString, %line )
{
LoadScreen.qLine[LoadScreen.qLineCount] = %line;
LoadScreen.qLineCount++;

// Gather up all the previous lines, append the current one
// and stuff it into the control
%text = "";

for( %line = 0; %line < LoadScreen.qLineCount - 1; %line++ )
%text = %text @ LoadScreen.qLine[%line] @ " ";
%text = %text @ LoadScreen.qLine[%line] @ "";

LOAD_MapDescription.setText( %text );
}
//---------------------------------------------------------------------------------

I also think that this script has something to do with it, so I'll post it along:


In control/client/misc/screens.cs:
//----------------------------------------------------------------------------------
%this.qLineCount = 0;
LOAD_MapName.setText( "" );
LOAD_MapDescription.setText( "" );
LoadingProgress.setValue( 0 );
LoadingProgressTxt.setValue( "WAITING FOR SERVER" );
//-----------------------------------------------------------------------------------

Does anybody know what's wrong with my script? I looked in the Emaga-script from Torque (which works), but my script is exactly the same as the Emaga-script, but it still doesn't work.

Please help me!

About the author

Recent Threads


#1
06/09/2008 (12:14 pm)
You could reinstall the engine. It looks to me as if you tried to install a different font on the engine or you recompiled and it didn't work out well.

If you need more help:

AIM: xbleedxforxme90
#2
06/10/2008 (1:04 am)
Tnx I will have a look at it =D I will let you know if I find something new
tnx a bunch!
#3
06/15/2008 (11:39 pm)
Problem solved... I just commented the code to prevent the error...
tnx for the help^^