thenorthstar / HaxBall-Simple-F1-Racing-Bot

Simple F1 Racing Bot for HaxBall players
MIT License
0 stars 6 forks source link

Bot kicking out of the room after loading map (that i added to code) #7

Closed QafMeister closed 1 year ago

QafMeister commented 2 years ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

thenorthstar commented 2 years ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

@QafMeister You should declare everything about the map. Not just ID or name; everything should be declared.

QafMeister commented 2 years ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

@QafMeister You should declare everything about the map. Not just ID or name; everything should be declared.

I can't code, so i almost don't know about everything in this code. Can you please tell me in what functions (this var onGoal sth) I need to add it?

Thanks

QafMeister commented 2 years ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

@QafMeister You should declare everything about the map. Not just ID or name; everything should be declared.

I can't code, so i almost don't know about everything in this code. Can you please tell me in what functions (this var onGoal sth) I need to add it?

When I was trying to add new circuit (Circuit3, _Circuit3) And I wrote down these on var Circuits = [Circuit1, ...] same with "_Circuits". Do i need to add it somewhere else?

QafMeister commented 2 years ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

@QafMeister You should declare everything about the map. Not just ID or name; everything should be declared.

I can't code, so i almost don't know about everything in this code. Can you please tell me in what functions (this var onGoal sth) I need to add it?

When I was trying to add new circuit (Circuit3, _Circuit3) And I wrote down these on var Circuits = [Circuit1, ...] same with "_Circuits". Do i need to add it somewhere else?

"Uncaught SyntaxError: "[object Object]" is not valid JSON at JSON.parse () at :4:113"

after adding Circuit3

thenorthstar commented 1 year ago

I was trying to add some more tracks to this bot. Track id, name is ok but when i try to load this track it kicks out of the room. Please help.

@QafMeister You should declare everything about the map. Not just ID or name; everything should be declared.

I can't code, so i almost don't know about everything in this code. Can you please tell me in what functions (this var onGoal sth) I need to add it?

When I was trying to add new circuit (Circuit3, _Circuit3) And I wrote down these on var Circuits = [Circuit1, ...] same with "_Circuits". Do i need to add it somewhere else?

"Uncaught SyntaxError: "[object Object]" is not valid JSON at JSON.parse () at :4:113"

after adding Circuit3

@QafMeister I don't know. You may do something wrong, check all the variables carefully. I'm gonna close this issue. For more, you can check also #9.