I hope some developer can help me with this.
I am developing a new AI.
The issue is that after some time the game crashes, the stderr.txt file reports:
Code: Select all
info |10:35:56: [SDL_main] (global) mod (multiplay.wz) is enabled
error |10:37:31: [scrAllianceExistsBetween] Invalid player parameters 0 and -1
error |10:37:31: [scrAllianceExistsBetween] Assert in Warzone: scriptfuncs.c:4163 (i < MAX_PLAYERS && j < MAX_PLAYERS && i >= 0 && j >= 0), last script event: 'N/A'
error |10:37:31: [interpRunScript] interpRunScript: could not do func
error |10:37:31: [interpRunScript] interpRunScript: *** ERROR EXIT *** (CurEvent=5)
error |10:37:31: [interpRunScript] Original event ID: 5 (of 100)
error |10:37:31: [interpRunScript] Current event ID: 5 (of 100)
error |10:37:31: [interpRunScript] Call depth : 0
error |10:37:31: [scrOutputCallTrace] *** Script call trace: ***
error |10:37:31: [scrOutputCallTrace] 0: N/A (current event)
error |10:37:31: [interpRunScript] interpRunScript: error while executing a script
error |10:37:31: [interpRunScript] Assert in Warzone: interpreter.c:946 (!"error while executing a script"), last script event: 'N/A'
error |10:37:31: [eventFireTrigger] eventFireTrigger: event N/A: code failed
error |10:37:31: [eventFireTrigger] Assert in Warzone: event.c:1128 (0), last script event: 'N/A'
error |10:37:31: [stackReset] stackReset: stack is not empty
error |10:37:31: [stackReset] Assert in Warzone: stack.c:1048 (((psCurrChunk == psStackBase) && (currEntry == 0))), last script event: 'N/A'
I see that MAX_PLAYERS is mentioned, this is usually used in my script to loop throught the players, I also understand that possibly the erorr is here, the problem is that I have dozen of such loops using MAX_PLAYERS and with no rows or event name mentioned is hard to find where the issue is...
thanks!


