Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pubby's ArenaGen - Custom Arena Creator  (Read 4530 times)

pubby

  • Bay Watcher
    • View Profile
Pubby's ArenaGen - Custom Arena Creator
« on: April 05, 2010, 05:53:43 pm »


Download ArenaGen.zip

ArenaGen is a little program that I wrote to generate new arena maps. It takes 8 images and compiles them into an arena file. You simply create 8 144*144 image bmps, move them into a folder in your DF folder, run the program, and play!

HOW TO USE:
ArenaGen comes with 1 test images for you to mess with. I suggest you simply edit that.
Layer1 is the lowest z-level, layer8 is the highest. The arena mode's "0" z-level is layer4.
To add featuers, color the pixels accordingly:
(0,0,0) BLACK - AIR
(255,255,255) WHITE - WALLS
(128,128,128) GRAY - FLOORS
(192,192,192) LIGHT GRAY - RAMPS
(255,0,0) RED - LAVA
(0,0,255) BLUE - WATER
(0,255,0) GREEN - FORTIFICATION
Match these colors exactly!

To load maps, first make sure the .bat and .jar are in the DF folder. Have all your images in their own seperate folder in the DF folder. Run the .bat and type in the name of the folder you want to use.

OTHER SYSTEMS:
The .bat file won't work. Try running the .jar file instead (right click?)

Report bugs. Give suggestions!

Thanks, and Enjoy!




Logged

JoRo

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #1 on: April 05, 2010, 08:21:06 pm »

Cool!  Gonna give this a try.
Logged
You have been struck down.
The giant cave spider spits out your head.

pubby

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #2 on: April 06, 2010, 03:17:53 pm »

Awesome!

Does anyone know of other structures that can be placed in arena mode?
« Last Edit: April 07, 2010, 05:43:14 pm by pubby »
Logged

Acanthus117

  • Bay Watcher
  • Angry Writer
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #3 on: April 07, 2010, 03:33:28 am »

Pretty much it. Like the app though.
Logged
Is apparently a Lizardman. ಠ_ಠ
YOU DOUBLE PENIS
"The pessimist is either always right or pleasantly surprised; he cherishes that which is good because he knows it cannot last."

Huggz

  • Bay Watcher
  • Sherlock Wayne
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #4 on: April 07, 2010, 06:32:53 am »

Heh, I remember someone on the 2nd saying that 'someone will have made an applet to create arena levels' by a week from then :P

Nice job.
Logged
Proper English will make people take you more serious.
In order to improve the universe's frame rate, we must all throw rocks into volcanoes and then do absolutely nothing, worldwide, for a week, to take pressure off pathfinding.

pubby

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #5 on: April 07, 2010, 05:48:26 pm »

Yeah, I figured I'd put something out before anyone else made one.

Anyways, come up with any interesting designs?
Logged

Huggz

  • Bay Watcher
  • Sherlock Wayne
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #6 on: April 07, 2010, 06:35:36 pm »

So far all I have made is a huge testing arena with 10x10, 5x5, 3x3 and a few bigger areas.
Logged
Proper English will make people take you more serious.
In order to improve the universe's frame rate, we must all throw rocks into volcanoes and then do absolutely nothing, worldwide, for a week, to take pressure off pathfinding.

Huggz

  • Bay Watcher
  • Sherlock Wayne
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #7 on: April 07, 2010, 07:00:46 pm »

Ahahaha just made a massive circular pit the full width of the map with a 2x2 stone pillar in the middle for duels XD
Logged
Proper English will make people take you more serious.
In order to improve the universe's frame rate, we must all throw rocks into volcanoes and then do absolutely nothing, worldwide, for a week, to take pressure off pathfinding.

Huggz

  • Bay Watcher
  • Sherlock Wayne
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #8 on: April 07, 2010, 07:03:18 pm »

Does there have to be a layer at the top which is just empty?

EDIT: Oops, sorry for the triple post...
Anyways, I found a weird bug, IDK exactly what caused it but this is the top layer of my thing, all the rest are perfect circles:

Code: [Select]
Z=3
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##########PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##############################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP####################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##########################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP######################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##########################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##############################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP######################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP########################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP############################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##############################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP##################################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP####################################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPP######################################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPP########################################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPP##########################################################################################PPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPP##############################################################################################PPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPP################################################################################################PPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPP##################################################################################################PPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPP####################################################################################################PPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPP######################################################################################################PPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPP########################################################################################################PPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPP##########################################################################################################PPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPP##########################################################################################################PPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPP############################################################################################################PPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPP##############################################################################################################PPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPP################################################################################################################PPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPP##################################################################################################################PPPPPPPPPPPPPPP
PPPPPPPPPPPPPP####################################################################################################################PPPPPPPPPPPPPP
PPPPPPPPPPPPPP####################################################################################################################PPPPPPPPPPPPPP
PPPPPPPPPPPPP######################################################################################################################PPPPPPPPPPPPP
PPPPPPPPPPPP########################################################################################################################PPPPPPPPPPPP
PPPPPPPPPPPP########################################################################################################################PPPPPPPPPPPP
PPPPPPPPPPP##########################################################################################################################PPPPPPPPPPP
PPPPPPPPPP############################################################################################################################PPPPPPPPPP
PPPPPPPPPP############################################################################################################################PPPPPPPPPP
PPPPPPPPP##############################################################################################################################PPPPPPPPP
PPPPPPPPP##############################################################################################################################PPPPPPPPP
PPPPPPPP################################################################################################################################PPPPPPPP
PPPPPPPP################################################################################################################################PPPPPPPP
PPPPPPP##################################################################################################################################PPPPPPP
PPPPPPP##################################################################################################################################PPPPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPP######################################################################################################################################PPPPP
PPPPP######################################################################################################################################PPPPP
PPPPP######################################################################################################################################PPPPP
PPPP########################################################################################################################################PPPP
PPPP########################################################################################################################################PPPP
PPPP########################################################################################################################################PPPP
PPP##########################################################################################################################################PPP
PPP##########################################################################################################################################PPP
PPP##########################################################################################################################################PPP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
P##############################################################################################################################################P
P##############################################################################################################################################P
P##############################################################################################################################################P
P##############################################################################################################################################P
P######################################################################PP######################################################################P
P######################################################################PP######################################################################P
P##############################################################################################################################################P
P##############################################################################################################################################P
P##############################################################################################################################################P
P##############################################################################################################################################P
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PP############################################################################################################################################PP
PPP##########################################################################################################################################PPP
PPP##########################################################################################################################################PPP
PPP##########################################################################################################################################PPP
PPPP########################################################################################################################################PPPP
PPPP########################################################################################################################################PPPP
PPPP########################################################################################################################################PPPP
PPPPP######################################################################################################################################PPPPP
PPPPP######################################################################################################################################PPPPP
PPPPP######################################################################################################################################PPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPPP####################################################################################################################################PPPPPP
PPPPPPP##################################################################################################################################PPPPPPP
PPPPPPP##################################################################################################################################PPPPPPP
PPPPPPPP################################################################################################################################PPPPPPPP
PPPPPPPP################################################################################################################################PPPPPPPP
PPPPPPPPP##############################################################################################################################PPPPPPPPP
PPPPPPPPP##############################################################################################################################PPPPPPPPP
PPPPPPPPPP############################################################################################################################PPPPPPPPPP
PPPPPPPPPP############################################################################################################################PPPPPPPPPP
PPPPPPPPPPP##########################################################################################################################PPPPPPPPPPP
PPPPPPPPPPPP########################################################################################################################PPPPPPPPPPPP
PPPPPPPPPPPP########################################################################################################################PPPPPPPPPPPP
PPPPPPPPPPPPP######################################################################################################################PPPPPPPPPPPPP
PPPPPPPPPPPPPP####################################################################################################################PPPPPPPPPPPPPP
PPPPPPPPPPPPPP####################################################################################################################PPPPPPPPPPPPPP
PPPPPPPPPPPPPPP#########################################################################

In arena mode it just cuts off and the rest of the area there is just air...
« Last Edit: April 07, 2010, 07:10:47 pm by Huggz »
Logged
Proper English will make people take you more serious.
In order to improve the universe's frame rate, we must all throw rocks into volcanoes and then do absolutely nothing, worldwide, for a week, to take pressure off pathfinding.

pubby

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #9 on: April 07, 2010, 07:10:27 pm »

Hmmm, it appears so. Keep layer 8 black so it doesn't freeze!
You can create floors on it by creating walls on layer 7 however.

I'll probably update the download later and fix this. It might be DF, it might be my program.

Here is a maze:

Fun to control units and move through it.
Logged

Huggz

  • Bay Watcher
  • Sherlock Wayne
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #10 on: April 07, 2010, 07:14:49 pm »

Wow thats pretty cool. For clarification, whatever you put on layer8 only half of it gets written to arena.txt. The half in there displays fine, but the rest appears as blank space. Looking forward to the fix so my pit'o'death can be completed! MWUAHAHAHAHAH!

EDIT: It appears that whatever the final layer is, only half of it gets put in arena.txt. So if you only have a layer2, only half of it will show up.
« Last Edit: April 07, 2010, 07:19:34 pm by Huggz »
Logged
Proper English will make people take you more serious.
In order to improve the universe's frame rate, we must all throw rocks into volcanoes and then do absolutely nothing, worldwide, for a week, to take pressure off pathfinding.

Itnetlolor

  • Bay Watcher
    • View Profile
    • Steam ID
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #11 on: April 09, 2010, 08:40:47 pm »

I like it. I tried my Illustrator method, and it turned into a royal pain in the ass. I think this can use a bit more development so not as much work is required to get it done.

Maybe include the color profiles in a separate README.txt file as well in the next release (if you improve on it). Critiques aside, nice job.

I can team this up with Photoshop (or similar) and sculpt exactly what I want. Again, I say, nice work.

BTW, arena mode can go higher than 8 Z-levels, am I right? If so, we can build things in stages. A bit of a workaround for the time being, but it'll work nonetheless.
« Last Edit: April 09, 2010, 09:17:07 pm by Itnetlolor »
Logged

pubby

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #12 on: April 11, 2010, 11:32:43 am »

You should be able to add new levels by gen'ing 2 arenas and combining them manually.

Still don't know why it's cutting it off before 8th level - I might rewrite it to fix it.
Logged

Fetus4188

  • Bay Watcher
    • View Profile
Re: Pubby's ArenaGen - Custom Arena Creator
« Reply #13 on: April 16, 2010, 03:58:51 am »

I think you need to have a color for "l" and "w" as well, which are ramps with lava and water in the tile, respectively.
Logged