Ai loading and usage in multiplayer games (missing ai dll)
Posted: 17 May 2006, 13:15
As we all know, spring allows for AIs to be loaded from any computer and be played together in a game, with only the guy who added the bot really needing to have the AI. However, spring will complain and crash to ANY player who doesnt have the dll, even if the AI is not being loaded by them.
A fix is to rename emptyai.dll to whatever the AI you want to play against is (if it hasnt been released yet), but then people get spammed with messages (allies: X enemies: x or whatever code is in it) since it seems the AI gets loaded and used from both computers.
Im not sure about how hard it would be to make an AI only load from the computer that added it (its certainly possible since it still builds even if the non-ai loading players have renamed emptyAI.dlls), but it would be good to have, but PLEASE:
remove the couple of lines of code that give out the warning for missingAI Dll and crash spring for no reason. If they really do need to load something make it load emptyAI or something. It used to work fine a few spring versions ago as well, so i could hold public AI tests without coordinating everyone into renaming Dlls etc.
Thanks!
A fix is to rename emptyai.dll to whatever the AI you want to play against is (if it hasnt been released yet), but then people get spammed with messages (allies: X enemies: x or whatever code is in it) since it seems the AI gets loaded and used from both computers.
Im not sure about how hard it would be to make an AI only load from the computer that added it (its certainly possible since it still builds even if the non-ai loading players have renamed emptyAI.dlls), but it would be good to have, but PLEASE:
remove the couple of lines of code that give out the warning for missingAI Dll and crash spring for no reason. If they really do need to load something make it load emptyAI or something. It used to work fine a few spring versions ago as well, so i could hold public AI tests without coordinating everyone into renaming Dlls etc.
Thanks!
