[B3RC1] Scoreboard library crashes when there are bots

Moderator: NADEO

Locked
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

[B3RC1] Scoreboard library crashes when there are bots

Post by Akbalder »

The Scoreboard library crashes when some bots have been added to the game.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

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

Post 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?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

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

Post 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.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

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

Post 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.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Locked

Return to “Shootmania Storm Reports”

Who is online

Users browsing this forum: No registered users and 0 guests