gametechmods

Robot Arena => General Support => Topic started by: Resetti's Replicas on June 09, 2012, 02:40:34 PM

Title: Game crashes after a few seconds of battling
Post by: Resetti's Replicas on June 09, 2012, 02:40:34 PM
My Black & Blue replica causes the game to crash after a few seconds when I try to run it as an AI.  It appears to have no problems being human controlled.  I've copied its binding from another robot that works fine, so I can't be that. The error I get is the same one when as I try to run an AI bot whose name isn't in the bindings, but I have put its name in and saved the file.  Could it be that it doesn't like ampersands in names?


I know this is vague, but I'm hoping it's a common occurrence that I just have never heard about.
Title: Re: Game crashes after a few seconds of battling
Post by: Mr. AS on June 09, 2012, 02:48:37 PM
Could it be that it doesn't like ampersands in names?
try naming black and blue, not black & blue
Title: Re: Game crashes after a few seconds of battling
Post by: Resetti's Replicas on June 09, 2012, 02:53:54 PM
Still crashes
Title: Re: Game crashes after a few seconds of battling
Post by: Mr. AS on June 09, 2012, 02:57:01 PM
Still crashes
can i see the bindings
Title: Re: Game crashes after a few seconds of battling
Post by: Resetti's Replicas on June 09, 2012, 02:58:54 PM
Sure.  It's a clusterbot so I made two identicals:


Code: [Select]



    list.append(("Black and Blue Black","Drum",{'nose':math.pi*2,'invertible':True,'range':99,'radius':0.1,'topspeed':150,'throttle':130,'turn':60,'turnspeed':2,'weapons':(11,12,13)}))
    list.append(("Black and Blue Blue","Drum",{'nose':math.pi*2,'invertible':True,'range':99,'radius':0.1,'topspeed':150,'throttle':130,'turn':60,'turnspeed':2,'weapons':(11,12,13)}))
Title: Re: Game crashes after a few seconds of battling
Post by: Wolfsbane on June 09, 2012, 03:00:20 PM
Sure.  It's a clusterbot so I made two identicals:


Code: [Select]



    list.append(("Black and Blue Black","Drum",{'nose':math.pi*2,'invertible':True,'range':99,'radius':0.1,'topspeed':150,'throttle':130,'turn':60,'turnspeed':2,'weapons':(11,12,13)}))
    list.append(("Black and Blue Blue","Drum",{'nose':math.pi*2,'invertible':True,'range':99,'radius':0.1,'topspeed':150,'throttle':130,'turn':60,'turnspeed':2,'weapons':(11,12,13)}))

shouldn't there be a space after list.append?
Title: Re: Game crashes after a few seconds of battling
Post by: Badnik96 on June 09, 2012, 03:05:46 PM
no. Do you have Drum.py?
Title: Re: Game crashes after a few seconds of battling
Post by: Resetti's Replicas on June 09, 2012, 03:16:07 PM
no. Do you have Drum.py?


Yeah, and I've gotten it to work fine on two other bots.
Title: Re: Game crashes after a few seconds of battling
Post by: Badnik96 on June 09, 2012, 04:04:55 PM
Redo the bindings maybe?
Title: Re: Game crashes after a few seconds of battling
Post by: Naryar on June 10, 2012, 06:55:25 AM
Your bindings should be working. Check if both names (bot file name and bindings name) are exactly the same, including spaces, and check if you wired it correctly.

If it still doesn't work, redo bindings.