gametechmods
Robot Arena => General Support => Topic started 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.
-
Are there 4 spaces at the start of the line like other lines ?
-
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.
-
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.
-
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?
-
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.
-
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.
-
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.
-
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.
-
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!)
-
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.