RCBotSven5 icon indicating copy to clipboard operation
RCBotSven5 copied to clipboard

BotManagerInterface.as: change required for Sven Co-op 5.26

Open Outerbeast opened this issue 1 year ago • 2 comments
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

Outerbeast avatar Aug 29 '24 12:08 Outerbeast

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

rcbotCheeseh avatar Oct 04 '24 20:10 rcbotCheeseh

Changing MapChange() hooks to HookReturnCode MapChange(string nextMap) will do.

Adambean avatar Dec 10 '24 10:12 Adambean

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.

CobraG-88 avatar May 24 '25 01:05 CobraG-88