gametechmods

Robot Arena => Modifications => Topic started by: Nika2.0 on January 03, 2022, 03:46:09 PM

Title: My Own Ai Killed My Game
Post by: Nika2.0 on January 03, 2022, 03:46:09 PM
I Tried To Put new Ai In my game but then my game just crashes when i keep going is there something i did wrong if so i dont know what it is
Title: Re: My Own Ai Killed My Game
Post by: Gulden on January 03, 2022, 04:00:32 PM
In terms of "is there something I did wrong," I'd say yes.  But what you did wrong is unknown unless you show us the AI line that is crashing the game.
Title: Re: My Own Ai Killed My Game
Post by: Nika2.0 on January 03, 2022, 04:13:22 PM
I Have The Bindings Here:https://gametechmods.com/forums/downloads/?sa=view;down=604
Title: Re: My Own Ai Killed My Game
Post by: Gulden on January 03, 2022, 04:42:49 PM
That's a lot of bots.  Which one specifically killed it?  'cus right now I can only assume you imported all 90 at the same time, which is nothing but asking for trouble.
Title: Re: My Own Ai Killed My Game
Post by: Nika2.0 on January 03, 2022, 04:47:04 PM
The Robot That Killed My Game Was Killerhurtz.
Title: Re: My Own Ai Killed My Game
Post by: Gulden on January 03, 2022, 04:50:20 PM
You forgot a { between "Omni", and 'nose'
You have a random v located just after the math.pi*2,

It should probably look like this.
Code: [Select]
    list.append(("Killerhurtz","Omni",{'nose': math.pi*2,'topspeed':99,'throttle'130,'radius':100.0,'range':992,'weapons':(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)}))
Title: Re: My Own Ai Killed My Game
Post by: Nika2.0 on January 03, 2022, 05:22:09 PM
I Fixed The Bindings But The Game Still Crashed Somehow.
Title: Re: My Own Ai Killed My Game
Post by: Gulden on January 03, 2022, 08:22:12 PM
I'm personally at a loss, so all I can recommend is to double check everything.

-Is the bot file named correctly?
-Does the name of the robot and the name in the AI match?
-Is the AI inserted correctly?
-Did you accidentally edit any other AI and break them instead?

I haven't AIed in forever, so forgive me, but I see no issue with the AI itself.


Edit:  There's a missing : after 'throttle'