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;
}
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.