Author Topic: Creating AI: Couple Questions  (Read 1979 times)

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Creating AI: Couple Questions
« on: December 17, 2011, 05:12:42 PM »
Firstly, how do you make a certain team to display 6 robots instead of 3? Even when I edit the team.text with the 0 1 2 3 4 5 function it still won't work.

Secondly, how do you properly edit a ThwackBot to function as an AI (Arc Pounder for instance)?

Third, what are the numbers next to 'weapon': in the py. file?

Great appreciated if you are able to answer. Thanks.
"Warhead is a rookie."

-Battlebots

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #1 on: December 17, 2011, 05:45:23 PM »

Firstly, how do you make a certain team to display 6 robots instead of 3? Even when I edit the team.text with the 0 1 2 3 4 5 function it still won't work.
You'll need to download Starcore AI (preferably V3 or V4) for stock and install the file under UI/Exhibition iirc that allows 6 bots to be displayed.


Secondly, how do you properly edit a ThwackBot to function as an AI (Arc Pounder for instance)?
Set it to use the sns AI .py, should be 'Whipper.py'.
'FBS.py' (in various AI Packs) if you want to use really advanced AI, basically, it allows the AI to drive towards the opponents whilst spinning, but spinning speed is decreased.


Third, what are the numbers next to 'weapon': in the py. file?
You'll need this: https://gametechmods.com/Robot_Arena2/Tools/apanx_bot_exporter.zip


Hope this helps!  ;)
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #2 on: December 17, 2011, 08:03:08 PM »
Thanks for clearing up everything with the first and third questions.

I should've been clearer with the second. I did have it as a 'whipper' but it wouldn't move among testing. I noticed that Arc Pounder had something called 'zone: swing' or something to that extent. I would assume the whippers use the smart zone field but I wouldn't know where to put it then.

I'll just try to import Arc Pounder as a playable bot and see how they built it.

Thanks for the prompt assistance otherwise.
"Warhead is a rookie."

-Battlebots

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: Creating AI: Couple Questions
« Reply #3 on: December 17, 2011, 08:07:18 PM »
With Sit and Spin robots, sometimes the control names are quite unusual. I had this problem when I started AI'ing, the control that's usually named "Forward" on a normal robot needs to be named "Ahead" for some of the FBS python files. Make sure your control names match up with what the .py files need to use.

The Weapon values basically determine how many components need to be knocked off before your robot reverts to Shove tactics. The numbers determine which components need to be knocked off, but what I do is open the .bot file up in Notepad++, and just count the components downwards. I can't get apanx's bot exporter to work for some reason, something to do with a DLL file missing. I'm trying to work on it, but it's not really holding me back any.

Hope this helps. =)
Co-creator of The RA2 Randomiser



Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #4 on: December 18, 2011, 12:58:10 AM »
Thanks for the help.

I do have one more question, but this one isn't so much important.

I'm operating Robot Arena 2 on my old Dell XP desktop but the problem with it is that file/folder management on it is painfully slow (yet it still somehow runs Robot Arena 2 smoothly), which leads me to this:

Is it possible that RA2 can properly work on Vista (my main desktop) or work on Windows 7 (on my laptop)? I've attempted it but the game isn't reading the files properly and mangles them up. The compatibility wizard doesn't work either.
"Warhead is a rookie."

-Battlebots

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #5 on: December 18, 2011, 10:38:11 AM »
Thanks for the help.

I do have one more question, but this one isn't so much important.

I'm operating Robot Arena 2 on my old Dell XP desktop but the problem with it is that file/folder management on it is painfully slow (yet it still somehow runs Robot Arena 2 smoothly), which leads me to this:

Is it possible that RA2 can properly work on Vista (my main desktop) or work on Windows 7 (on my laptop)? I've attempted it but the game isn't reading the files properly and mangles them up. The compatibility wizard doesn't work either.
Did you run it outside of the "Program Files" folder?
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #6 on: December 18, 2011, 11:32:29 AM »
Thanks for the help.

I do have one more question, but this one isn't so much important.

I'm operating Robot Arena 2 on my old Dell XP desktop but the problem with it is that file/folder management on it is painfully slow (yet it still somehow runs Robot Arena 2 smoothly), which leads me to this:

Is it possible that RA2 can properly work on Vista (my main desktop) or work on Windows 7 (on my laptop)? I've attempted it but the game isn't reading the files properly and mangles them up. The compatibility wizard doesn't work either.
Did you run it outside of the "Program Files" folder?

Yes
"Warhead is a rookie."

-Battlebots

Offline ACAMS

Re: Creating AI: Couple Questions
« Reply #7 on: December 18, 2011, 11:21:32 PM »
I have RA2 on Windoze 7 on my laptop, and I had to put it in Program Files, NOT Program Files (X86)
I have Windows Home Premium 64 bit and it gives me problems sometimes, but does work.
A lot of these other guys with windows 7 put the game in a folder on the desktop.

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #8 on: December 18, 2011, 11:53:23 PM »
Tried it. Still doesn't work right.

Here's a screenshoot just in case of reference.

"Warhead is a rookie."

-Battlebots

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #9 on: December 19, 2011, 03:46:01 AM »
Download a clean stock from Sage's signature, then extract to desktop.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #10 on: December 19, 2011, 09:52:25 AM »
Download a clean stock from Sage's signature, then extract to desktop.

Wow the game is free now? I threw away 5 bucks for nothing  :mrgreen:

But I did test out the 1.4 version and it does work!

Thanks very much for all the help.
"Warhead is a rookie."

-Battlebots

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #11 on: December 19, 2011, 10:14:46 AM »
Download a clean stock from Sage's signature, then extract to desktop.

Wow the game is free now? I threw away 5 bucks for nothing  :mrgreen:

But I did test out the 1.4 version and it does work!

Thanks very much for all the help.
Yeah, why not stick around. The guys here can help you improve a lot if you start a showcase.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Daedalus40

  • Antweight
  • Posts: 13
  • Rep: 0
    • View Profile
    • Awards
Re: Creating AI: Couple Questions
« Reply #12 on: December 19, 2011, 11:04:08 AM »
Yeah, why not stick around. The guys here can help you improve a lot if you start a showcase.

Sure, I'll try to pop by every now and then. Though my style is more realism than brute force so unfortunately I'm not going to be building bots armed to the teeth. Then again I'm not really the competitive kind.

I am good with graphics though (after all it is my career, lol) so the cosmetics would hopefully make up for it. I'm registering for a 3D design class at my college next semester so maybe I could even design a few parts even though I should freshen up on my programming abilities.
"Warhead is a rookie."

-Battlebots

Offline ty4er

Re: Creating AI: Couple Questions
« Reply #13 on: December 19, 2011, 11:21:28 AM »
Stick around, if you like the realistic style then download DSL and check out showcases like pressure or thyrus.
DSL Showcase
is this bot don't lost all razors in a fight before do a damage thought