Hi,
I want to report on some strange expeience I had.

In the menu of my game I display the highscore of the selected minigame on a model. Or at least I try to.

The highscore is in a Text an I try to display this text.

when I use the following term some really strange errors occur.

Code:
action MenuScoreStringAct()
{
set(my,PASSABLE|OVERLAY);
MenuData.HighscoreTxt.target_map = bmap_for_entity(me,0);
}



On the face of it everything is fine. The text ist displayed in proper form and place. But now it gets strange.

When I now load an other level and then try to change the video setting (resolution or switch from window to fullscreen mode) the engine crashes with an error.

W1246 (DirectX driver failure: D3DERR_INVALIDCALL)

It only happens after I loaded an new level. In the menu, which is loaded first, I can manipulate the video options without problems. But when I load a new level an then return to the menu level the same error occurs in the menu level to.

The highscore text is always correct even after loading an other level and then the menu level again.

I hope you understand what I try to discribe. I know it's a litte bit complex.

For my game I found a workaround.

Code:
action MenuScoreStringAct()
{
	set(my,PASSABLE|OVERLAY);
        var temp[3];
	while(1)
	{
		vec_set(temp,my.x);
		if(vec_to_screen(temp,camera) != NULL)
		{
			set(MenuData.HighscoreTxt,VISIBLE);
			MenuData.HighscoreTxt.pos_x = temp[0];
			MenuData.HighscoreTxt.pos_y = temp[1];
		}else{
			reset(MenuData.HighscoreTxt,VISIBLE);
		}
		wait(1);	
	}



It looks not perfect if the camera is under an acute angel but it is ok for my project.

But I'm really confused about that error. Is it a bug?

I have an NVIDEA GeForce 8600 GT video device. Maybe that helps.




Last edited by HoopyDerFrood; 12/16/09 18:00.