Game Development Community

Odd NameSpace error

by Jeff Leonard · in Technical Issues · 01/10/2009 (7:28 am) · 2 replies

So, I do the simple task of going scenewindow2d.loadlevel() and after its all done and completed I get this in the output

Loading compiled script C:/Documents and Settings/Administrator/My Documents/MyGames/testGame/game/data/levels/mainMenu.t2d.
Con::execute - 1309 has no namespace: 1317

and the game crashes.

I've already walked through the steps and I can't seems to find where this error is occuring. The levels are simple. This is all I have in it;

new t2dStaticSprite() {
imageMap = "whiteImageMap";
frame = "0";
canSaveDynamicFields = "1";
useMouseEvents = "1";
size = "100.000 75.000";
BlendColor = "0 0.0784314 0.0117647 1";
mountID = "2";
};
new t2dTextObject() {
canSaveDynamicFields = "1";
Position = "0.000 -18.573";
size = "33.400 16.000";
FlipX = "1";
text = "Test game\n";
font = "Arial";
wordWrap = "0";
hideOverflow = "1";
textAlign = "Left";
lineHeight = "8";
aspectRatio = "1";
lineSpacing = "0";
characterSpacing = "0";
autoSize = "1";
fontSizes = "80";
textColor = "1 1 1 1";
hideOverlap = "0";
mountID = "3";
};

Anyone know what's going on?

#1
01/10/2009 (7:33 am)
Never mind, found the issue. It was trying to call the rest of on mouse up on an object that was unloaded.
addeding in a schedule(0, ) to the load level function solved it.
#2
01/10/2009 (7:39 am)
Never mind, found the issue. It was trying to call the rest of on mouse up on an object that was unloaded.
addeding in a schedule(0, ) to the load level function solved it.