GLOBAL AI DLL LOAD ERROR FIX

GLOBAL AI DLL LOAD ERROR FIX

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

GLOBAL AI DLL LOAD ERROR FIX

Post by AF »

Code: Select all

	GetGlobalAiVersion = (GETGLOBALAIVERSION)GetProcAddress(m_hDLL,"GetGlobalAiVersion");
	if (GetGlobalAiVersion==0){
		MessageBox(NULL,dll,"Incorrect AI dll",MB_OK|MB_ICONEXCLAMATION);
		return;
	}
	
	int i=GetGlobalAiVersion();

	if (i!=GLOBAL_AI_INTERFACE_VERSION){
		MessageBox(NULL,dll,"Incorrect AI dll version",MB_OK|MB_ICONEXCLAMATION);
		return;
	}
Build 0 of 0.60b1 compiled by Buggi

Remove the if statement that checks to see if the Interface versions are identical, it is preventing GlobalAI from being loaded regardless of wether they have the correct version or not. It doesnt do this check on GroupAI and they work, even when they're using an outdated GroupAI callback class.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

! official word from SJ is that this bug is nonexistant and I must ahve an outdated version of IGlobalAI.h Even though mine is taken directly from the latest cvs, and ran with buggis latest build, and Iglobal.h hasnt changed since before buggi compiled it.
Post Reply

Return to “Help & Bugs”