Author Topic: Multi-AI RA2  (Read 6120 times)

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Multi-AI RA2
« on: September 05, 2011, 05:44:26 PM »
I created a version of RA2 that can handle multiple AI packs in one installation.

Basically it's download, extract and go. Instead of making a shortcut to Robot Arena 2.exe you make a shortcut to aiselect.exe. Now, everytime you start RA2 you get asked what AI pack you want to use and then it boots the game. Note that aiselect.exe saves the last selection, so if you also make a shortcut to ra2.exe it will launch the last selected AI pack immediately.

By default it comes with the stock AI, Starcore v3 and Pys AI, and I'm going to tell you how to install other AI packs:

Instead of putting the AI folder in the Robot Arena 2 folder you put it in Robot Arena 2/AI packs. Now you're nearly there, you'll only need to do one more thing. You'll need to add a new file to the AI pack called pack.inf. It should look like this:

Code: [Select]
[AI pack info]
name=Starcore AI
creator=Starcore
version=3
directory=starcorev3

Name, creator and version are self-explaining, and directory should be the name of the directory as seen in AI packs. Names don't need to be unique, only directories (obviously). Version is optional.

Have fun, if you have suggestions tell me.

Download:
Zip archive (90.8MB) or 7-zip archive (67.7MB)

« Last Edit: September 11, 2011, 06:22:35 PM by nightcracker »

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #1 on: September 05, 2011, 05:50:28 PM »
this is good... O_O
« Last Edit: February 03, 2012, 04:08:34 PM by Mr. AwesumSauce »
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 nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #2 on: September 11, 2011, 06:31:21 PM »
Alright, huge update.

I fixed the AI select script, I messed up with compiling Python to an executable last time and forgot to include the right DLL's.

I completely stripped the game to barebones making it quite a lot faster and nicer to work with (I went through the effort of replacing textures with 1kb transparent ones and lowering the bitrate on the music).

I also added Starcore v3 and Pys AI to the standard package and I uploaded the download to my own website (nclabs.org) for a bit faster download.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #3 on: September 12, 2011, 11:32:38 AM »
Working great, It failed when adding BTTB AI though. Just crashes... (probably just me failing).
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline RpJk

  • ♫Time has come to listen to the crying of their puppet souls♫
  • Ultra Heavyweight
  • Posts: 1975
  • Rep: -1
  • Done and done.
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #4 on: September 12, 2011, 11:51:31 AM »
Its not working for me.
Old Stock Showcase: https://gametechmods.com/forums/index.php?topic=6590.0

I've moved to other forums. Under a different name. This is where it all began.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #5 on: September 12, 2011, 12:50:40 PM »
Its not working for me.

What did you do?

SM, what did you do to try and make it work?

Offline RpJk

  • ♫Time has come to listen to the crying of their puppet souls♫
  • Ultra Heavyweight
  • Posts: 1975
  • Rep: -1
  • Done and done.
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #6 on: September 12, 2011, 12:52:29 PM »
I was trying to put it on my game but when I turned it on it just did not work.

Anyways I thought this was a version in which all teams were in one single AI pack.
Old Stock Showcase: https://gametechmods.com/forums/index.php?topic=6590.0

I've moved to other forums. Under a different name. This is where it all began.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #7 on: September 12, 2011, 01:00:46 PM »
Its not working for me.

What did you do?

SM, what did you do to try and make it work?
I merged the two AIs (BTTB1 and 3) into one AI folder, they were layed out as and addon to stock rather than as a standalone so I had to renumber the teams and stuff. I put in the pack file and renamed the stuff inside. It just then crashed on startup of Ra2. I reckon it's me just merging them badly.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #8 on: September 12, 2011, 01:15:49 PM »
I was trying to put it on my game but when I turned it on it just did not work.

Anyways I thought this was a version in which all teams were in one single AI pack.

Nope. You swap AI teams when you start the game using aiselect.exe.

In order to install a new AI pack you must copy the AI pack's AI folder into the "AI packs" and rename it to an according name (for example "bbeans5"). Then you add a file named "pack.inf" to that folder with the following information (obviously edited):

Code: [Select]
[AI pack info]
name=Starcore AI
creator=Starcore
version=3
directory=starcorev3

You don't have to add the "version=" part.

Also, I wouldn't recommend merging the AI packs, just add one BTTB1 and one BTTB3 AI.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #9 on: September 12, 2011, 01:21:38 PM »
I was trying to put it on my game but when I turned it on it just did not work.

Anyways I thought this was a version in which all teams were in one single AI pack.

Nope. You swap AI teams when you start the game using aiselect.exe.

In order to install a new AI pack you must copy the AI pack's AI folder into the "AI packs" and rename it to an according name (for example "bbeans5"). Then you add a file named "pack.inf" to that folder with the following information (obviously edited):

Code: [Select]
[AI pack info]
name=Starcore AI
creator=Starcore
version=3
directory=starcorev3

You don't have to add the "version=" part.

Also, I wouldn't recommend merging the AI packs, just add one BTTB1 and one BTTB3 AI.
They were designed to be merged. i.e. Stock+BTTB1+BTTB3
I'll just redo it later. Works great itself, just I fail sometimes. How would I transfer it to DSL?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #10 on: September 12, 2011, 01:24:56 PM »
Have I made things confusing by making them designed to be merged?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #11 on: September 12, 2011, 01:25:44 PM »
Well there are bindings files as .txts with teams all over the place. I'll probably work it out eventually.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #12 on: September 12, 2011, 01:27:11 PM »
Let's not go through the trouble of you porting it to DSL ;)

If someone can give me a clean link to the latest official version of DSL itself (not already installed in a "extract and go package") that would be awesome.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #13 on: September 12, 2011, 01:30:03 PM »
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #14 on: September 15, 2011, 04:13:16 PM »
Sneak preview:



Also, I'm going to add a real installer for the game.

Offline RpJk

  • ♫Time has come to listen to the crying of their puppet souls♫
  • Ultra Heavyweight
  • Posts: 1975
  • Rep: -1
  • Done and done.
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #15 on: September 16, 2011, 01:42:36 AM »
That looks much easier.
Old Stock Showcase: https://gametechmods.com/forums/index.php?topic=6590.0

I've moved to other forums. Under a different name. This is where it all began.

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #16 on: September 16, 2011, 02:47:09 AM »
Alright, BETA link: http://nclabs.org/downloads/ra2setup.exe

Please provide feedback!

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Multi-AI RA2
« Reply #17 on: September 16, 2011, 08:31:55 AM »
OK, nothing happens when I run aiselect.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: Multi-AI RA2
« Reply #18 on: September 16, 2011, 09:06:41 AM »
Ok crap, that means your missing some DLLs which I didn't pack (wasn't sure if you guys would need it). I'll fix that later.

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Multi-AI RA2
« Reply #19 on: November 01, 2011, 06:31:12 PM »
Sneak preview:

(Image removed from quote.)

Also, I'm going to add a real installer for the game.

What widget toolkit is this? Tkinter?
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org