Wazarr94 / haxball_bot_headless

Ready-to-go scripts and functions for the HaxBall Headless API !
MIT License
46 stars 74 forks source link

Error on level 4 BOT. #2

Closed bluesinx closed 5 years ago

bluesinx commented 5 years ago

Hello. I'm having a little problem in this bot. When i use another cmd beyond !help, like !me or !games, the game just crashes. I'm using Opera. But when i use Mozilla, it does not crashes, but don't work and don't even appears in the chat. Ty for the BOT, it's incredible

Wazarr94 commented 5 years ago

I've just had an update, tell me if the problem still happens

bluesinx commented 5 years ago

I've just had an update, tell me if the problem still happens

Thanks for you answer. I don't have this problem anymore, but stats does not counts on !me. Games aren't counted either, so i can't use "!games", "!cs", cuz there's never games played

Wazarr94 commented 5 years ago

Statistics are updated when the whole game is played in 4v4 (if your maxTeamSize is 4, 3v3 if maxTeamSize is 3) If one player leaves and you're 7 players again, it will not count the game for example. I personnally didn't encounter this problem, I'll post another message if there is a problem.

bluesinx commented 5 years ago

Statistics are updated when the whole game is played in 4v4 (if your maxTeamSize is 4, 3v3 if maxTeamSize is 3) If one player leaves and you're 7 players again, it will not count the game for example. I personnally didn't encounter this problem, I'll post another message if there is a problem.

Oh, got it. Do u know a way to keep the stats forever? I'm afraid of restarting the computer and they disappear

Wazarr94 commented 5 years ago

the stats are kept on your browser, I will add this when I've successfully done it for all cases

bluesinx commented 5 years ago

the stats are kept on your browser, I will add this when I've successfully done it for all cases

Ty, again! Do u know a way to remove afklimit?

Wazarr94 commented 5 years ago

replace the line afkLimit = 13; by afkLimit = Infinity;

ghost commented 5 years ago

Hey, how did you fixed that problem? I mean the one when you use !cs or !games, game crashed. Please explain how did you fixed that. Thanks in advance. @bluesinx

I mean when I type !games or !wins or any stats command im having "connection closed" error. But game is still alive if I rejoin. Idk why this happens. And also

@Wazarr94

How can I get json output of all stats? And also do you know how to verify player from another host? Like when he clicks the button on the website, game confirms him/her. And if not, kicking him/her.