Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sundown - level creating crash - with bots_enable 1 #12

Open
Chrissstrahl opened this issue May 31, 2024 · 0 comments
Open

sundown - level creating crash - with bots_enable 1 #12

Chrissstrahl opened this issue May 31, 2024 · 0 comments

Comments

@Chrissstrahl
Copy link
Member

Custom level sundown https://www.gamefront.com/games/elite-force-2/file/sundown
creating a crash upon load if bots are enabled.

A recompiled AAS file did not resolve the issue.
As far as I recall this map always had issues, I just don't remember if it was this specific issue.
The level was specifically designed for the ULTIMATE PATCH MOD.
The error occours on windows/linux and listen/dedicated.

Conditions:
g_gametype 1;bots_enable 1;

Related functions:
int BotAILoadMap( int restart )

Specific location at which the ACCSESS VIOLATION occurs:

int BotAILoadMap( int restart ) {
	int			i;
	vmCvar_t	mapname;

	if (!restart) {
		gi.Cvar_Register( &mapname, "mapname", "", CVAR_SERVERINFO | CVAR_ROM );
		gi.BotLibLoadMap( mapname.string ); //<- ERROR - ACCSESS VIOLATION <-
	}

	for (i = 0; i < MAX_CLIENTS; i++) {
		if (botstates[i] && botstates[i]->inuse) {
			BotResetState( botstates[i] );
			botstates[i]->setupcount = 4;
		}
	}

	BotSetupDeathmatchAI();

	return qtrue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant