gametechmods

Robot Arena => General Support => Topic started by: NFX on September 14, 2010, 08:37:12 AM

Title: Popup AI Crashing - Solved
Post by: NFX on September 14, 2010, 08:37:12 AM
I've recently tried my hand at modding, to some extent, and I've managed to AI my HS, Snap!Happy 5, and reskin the RA2T2 arena, but I'm having problems AI'ing a popup.
 
I've got 'Forward', 'LeftRight', 'Fire' and 'Srimech' controls
I have added a Basic Smartzone [Medium] named 'weapon'
I tried exporting the bot twice, but the game stopped responding each time, so I copied it from the Teams folder and pasted it into my team in the AI folder.
I copied the Bindings line from R4, and edited it so it looks like this: [I looked in the .bot file for the razor tips in the list of components, which is what 'weapons' relates to]
 

list.append(("HaleStorm 5","Popup",{'radius':1,'topspeed':99,'throttle':130,'turn':30,'turnspeed':2,'weapons':(48,49,50,51,52,53,54,55,56,57)}))

However, when I try to run the bot in-game, The game crashes, and I get Microsoft Visual C++ Runtime Library:
 

Runtime Error!
 
Program: ...2 BBEANS/Robot Arena 2/Robot Arena 2.exe
 
abnormal program termination

 
I've followed what it says to do in the Wiki, and there are no problems with my new team in the Team50 slot, as Snap!Happy 5 is in that team and works perfectly fine, so I figure it must be something to do with either the bot or the bindings. Any help that is offered would be greatly appreciated.
Title: Re: Popup AI Crashing
Post by: Naryar on September 14, 2010, 08:38:52 AM
Are there 4 spaces at the start of the line like other lines ?
Title: Re: Popup AI Crashing
Post by: NFX on September 14, 2010, 08:45:30 AM
Are there 4 spaces at the start of the line like other lines ?
Yes. I'll show the bindings for the whole team:
 
    #50 - NFX.exe
    list.append(("Snap!Happy 5","Spinner",{'invertible':True,'topspeed':100,'radius':1,'throttle':130,'range':99,'turn':100,'turnspeed':2.5,'weapons':(26,27,28,29,30,31,32,33,34,35,36,37)}))
    list.append(("HaleStorm 5","Popup",{'radius':1,'topspeed':99,'throttle':130,'turn':30,'turnspeed':2,'weapons':(48,49,50,51,52,53,54,55,56,57)}))
 
All got the four spaces at the start. Snap!Happy 5 works perfectly, so I thought maybe they could be compared to see what the problem is.
Title: Re: Popup AI Crashing
Post by: Naryar on September 14, 2010, 08:47:45 AM
Do the controls or names have any unneccessary spaces inside them ? Do you have popup.py inside your AI folder ?

If it doesn't works, sometimes let the bot file wait for a few days, then restart the procedure. Ounce's ICM 3 did me that.
Title: Re: Popup AI Crashing
Post by: JoeBlo on September 14, 2010, 09:11:31 AM
control names dont cause runtime errors  ;)

* check the robots name doesnt have any extra spaces or anything.. easy to do is export the robot and copy/paste the filename, then you know its correct

* do you have 57 components?

* have you tampered with the .py file at all?

Title: Re: Popup AI Crashing
Post by: NFX on September 14, 2010, 09:30:25 AM
control names dont cause runtime errors  ;)

* check the robots name doesnt have any extra spaces or anything.. easy to do is export the robot and copy/paste the filename, then you know its correct Tried that, HaleStorm 5 seems to match up.

* do you have 57 components? I have a total of 71 components. =P

* have you tampered with the .py file at all? .py file has been unaltered. R4, which also uses Popup.py, still works fine.
Title: Re: Popup AI Crashing
Post by: Clickbeetle on September 15, 2010, 09:02:18 PM
Hmm... you know, in theory, if you don't set NoChassisTime in Bindings, it uses a default value of 2... but I've never tried it.  It's possible that I made a mistake and it's crashing because you don't have a NoChassisTime set.


Try adding 'NoChassisTime':3 to the bindings list and see if that works.
Title: Re: Popup AI Crashing
Post by: NFX on September 16, 2010, 05:31:28 AM
Sorry, Click, but still no joy. =(

I'm starting to think it might be a problem with the robot, 'cause it takes quite a while to load up in the bot lab for some reason, and I got HaleStorm 3 to drive around fine, I just couldn't get it to fire, whereas here it crashes without doing much at all. And RA2 stops responding whenever I try to Export the bot from the Bot Lab.
Title: Re: Popup AI Crashing
Post by: Clickbeetle on September 18, 2010, 07:46:30 PM
In that case, try pausing the game before loading the bot.  If it's simply a matter of taking too long to load, pausing should fix it.
Title: Re: Popup AI Crashing
Post by: Badnik96 on September 18, 2010, 07:48:51 PM
Hmmm, I'm stumped. Maybe try to do what Click said.

And offtopic, but Click, do you want to enter my Nascar thing? (desperate to get to 43 at this point.. we need 16 more!)
Title: Re: Popup AI Crashing
Post by: NFX on September 18, 2010, 07:49:47 PM
I'm not sure I have a pause button, though. I've got Fn + DownArrow, I don't know if that's just for Windows Media Player, though.
 
Also, NAR AI has stopped responding when I tried to export Recoil 3 with a Smartzone. Without a SZ, it was fine.