Page 1 of 1

GLOBAL AI DLL LOAD ERROR FIX

Posted: 26 Jul 2005, 18:17
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.

Posted: 26 Jul 2005, 23:16
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.