RCBotSven5
RCBotSven5 copied to clipboard
BotManagerInterface.as: change required for Sven Co-op 5.26
trafficstars
BotManagerInterface.as Line 806 needs to be changed to this: HookReturnCode MapChange(const string& in sLevel)
From SC 5.26 Changelog:
- Hook "MapChange" now receives a string to reveal which map the server is about to change to, or empty if the server is shutting down. ALL scripts listening for this "MapChange" event will need an update. Just add a parameter for a string to receive the new map.
Cheers
Requires update to 5.26
https://wiki.svencoop.com/Support/FAQ#Are_there_any_pre-release_versions_of_Sven_Co-op_available_to_try.3F
Changing MapChange() hooks to HookReturnCode MapChange(string nextMap) will do.
Haven't played Sven Co-Op for months and now I was stuck to make RCBot work again until I saw this comment. Thank you guys.