Author Topic: Arena Name Generator  (Read 7530 times)

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Arena Name Generator
« on: April 18, 2010, 03:00:34 PM »
With the help of Squashman from the Tech Gut  :FFFUUU Guy Support froum, I have created a batch file that allows for quick printing of the names of all of the arenas you have.

Copy/paste this into notepad and save it as a  .bat.
Code: [Select]
@echo off
setlocal enabledelayedexpansion

:: Output file
Set _oFile=Names.txt

:: Directory with python files
Set _Path=C:/Program Files/Infogrames/Robot Arena 2/Arenas (Change if necessary to the location of your arenas folder. Oh, and delete this bracketed stuff in the actual file. And the space before it.)

:: Used to search and output your files
PushD "%_Path%"
FOR /F "tokens=*" %%I IN ('dir /b /a-d *.py') DO (
    For /F "tokens=1* delims== " %%a In ('Type "%%I"^|findstr /B /I /C:"    name"') Do (
    echo.%%~b|findstr /B /I /V /C:"Practice Arena" /C:"Event Results" /C:"No Name" /C:"Small Arena No Hazards" /C:"Electric Arena 2T">nul
    If !errorlevel!==0 echo.%%~b>>%_oFile%
    )
)
PopD

The names will be saved as Names.txt in your arenas folder.

If you're wondering why I have posted this for you guys, I know this won't be useful on an everyday basis. However, if you're making a Mod or an Arena Compilation, it is very helpful for quick and easy notation of all arenas you are using.
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Arena Name Generator
« Reply #1 on: April 18, 2010, 03:05:29 PM »
why bother

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #2 on: April 18, 2010, 03:06:05 PM »
Read the last 2 sentences.
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Arena Name Generator
« Reply #3 on: April 18, 2010, 03:12:02 PM »
why bother

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #4 on: April 18, 2010, 03:12:29 PM »
Read the last 2 sentences.
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Arena Name Generator
« Reply #5 on: April 18, 2010, 03:14:19 PM »
why bother

Also it's "sentence" not "sentance"

Offline Reier

  • Rieir
  • *
  • Posts: 8564
  • Rep: 8
  • I GOT 3RD IN RAW1
    • https://www.youtube.com/c
  • Awards old BOTM Winner
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #6 on: April 18, 2010, 03:15:06 PM »
hi
ALERT- Another WS coming up...
voted best bot builder two times and counting babayy. the best ra2 builder who has never won an actual tournament match
ReiAI pack for Ironforge
My drawings, and my webcomics
Why online PVP will save RA2
The problem with competitive IRL in RA2
I'm fine with hugging reier

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Arena Name Generator
« Reply #7 on: April 18, 2010, 03:15:45 PM »
hi

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #8 on: April 18, 2010, 03:16:36 PM »
Seriously guys, stop spamming. I created this thread to be helpful for people like Joe and Badnik, not for you to have chit-chat in.
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 Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Arena Name Generator
« Reply #9 on: April 18, 2010, 03:26:39 PM »
No.

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #10 on: April 18, 2010, 03:30:01 PM »
STFU or GTFO.
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 Jonzu95

  • Giga Heavyweight
  • Posts: 12638
  • Rep: -28
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #11 on: April 18, 2010, 03:31:12 PM »
Seconded.

Offline kill343gs

Re: Arena Name Generator
« Reply #12 on: April 18, 2010, 08:37:37 PM »
Enough, Nar. This is not a bad thing just because you personally have no use for it. Any further useless comments will not be tolerated.


For once the mods did something right
#MakeGTMGreatAgain

Offline Little lost bot

  • Heavyweight
  • Posts: 684
  • Rep: -1
  • Apparently jumping onto band wagons.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #13 on: April 18, 2010, 11:27:53 PM »
Its a tool Nar, ok not every one will use this but it will be useful to others.

Is taking one challenge request. First come first serve. I'm a bit rusty now but I'm going to try and crank something out for this. MW and up no glitches DSL or Stock.

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Arena Name Generator
« Reply #14 on: April 18, 2010, 11:31:51 PM »
G.K.: Nice job, I personally suck at .bat files. You shouls learn "proper" python someday, it's really easier than using batch scripts :P.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #15 on: April 19, 2010, 12:57:16 AM »
I keep meaning to, but I'm always busy. Maybe the summer will give me some time.
« Last Edit: April 19, 2010, 10:24:30 AM by G.K. »
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 JoeBlo

Re: Arena Name Generator
« Reply #16 on: April 19, 2010, 01:23:08 AM »
nice work GK, I read the code on my phone so I may be wrong :P but if it works how I think it works it could be a useful debug tool.

I started a study in Python as a class but then a place for Graphic Design opened up and I took that option as its my ambition

Madiaba still has taught me a lot of python..


Offline Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
Re: Arena Name Generator
« Reply #17 on: April 19, 2010, 11:51:17 AM »
nice work GK, I read the code on my phone so I may be wrong :P but if it works how I think it works it could be a useful debug tool.

I started a study in Python as a class but then a place for Graphic Design opened up and I took that option as its my ambition

Madiaba still has taught me a lot of python..

were you thinking about splash?

Offline JoeBlo

Re: Arena Name Generator
« Reply #18 on: April 19, 2010, 09:57:19 PM »
LOLWUT ?

I have a general talent for Graphic Design which is why Im studying it now.