Page 1 of 1

[B3RC1] Scoreboard library crashes when there are bots

Posted: 11 Feb 2013, 20:40
by Akbalder
The Scoreboard library crashes when some bots have been added to the game.

Re: [B3RC1] Scoreboard library crashes when there are bots

Posted: 12 Feb 2013, 14:30
by Eole
I added bots on Melee and Royal to test this, and the ScoresTable library didn't crash. What do you mean by "crash"? Does the script return an error?

Re: [B3RC1] Scoreboard library crashes when there are bots

Posted: 12 Feb 2013, 15:01
by Akbalder
I had an error in the ScoresTable library when I tried to use the SetNbFakePlayer(x,y) instruction.
I had the problem in a team game. My gamemode works correctly with players but not with bots.

I can't test right now but if I remember correctly the error was with the netwrite keyword in the ScoresTable::Load() function.

Re: [B3RC1] Scoreboard library crashes when there are bots

Posted: 12 Feb 2013, 20:07
by Eole
This bug will be fixed in the next version. Indeed bots don't support netread/netwrite variables, I added a check to avoid the bug.
I didn't have the error because I only call the Load() function once at the beginning of my script, way before the bots were created, and so didn't trigger it.