Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Batch Create Worlds  (Read 474 times)

Still Standing

  • Bay Watcher
    • View Profile
Batch Create Worlds
« on: September 04, 2010, 11:03:25 pm »

For the hour or so I have been generating worlds over and over to try and get all civilisations to survive the whole 149 years (Humans, Elves, Dwarves, Orcs, Catti, Goblins).  The one time I got them all to survive I forgot I still had Aquifers turns on, so had to start again anyway.

I remember in 40d there was a way to batch produce worlds so that you could look through them to see which fit what you were after.  Is it still possible to do this, and if so, how?

Many thanks!
Logged
Diggy diggy hole.

JAFANZ

  • Bay Watcher
    • View Profile
Re: Batch Create Worlds
« Reply #1 on: September 04, 2010, 11:40:55 pm »

Did you by any chance keep the save with the Aquifers? 'cos if you did you can just remove them by copying the no aquifers raws into it instead of the default raws directory...

& you might want to take a look at the DF2010 World Viewer utility, the races tab lets you see how many civs survive for each race on a world (& other functions simplify working when each one died, for those that didn't).
« Last Edit: September 04, 2010, 11:44:09 pm by JAFANZ »
Logged

Still Standing

  • Bay Watcher
    • View Profile
Re: Batch Create Worlds
« Reply #2 on: September 04, 2010, 11:44:45 pm »

I have a suitable world now, but I would still be interesting to know how to batch generate worlds!
Logged
Diggy diggy hole.

JAFANZ

  • Bay Watcher
    • View Profile
Re: Batch Create Worlds
« Reply #3 on: September 05, 2010, 12:03:58 am »

Excerpted from "Command line.txt" (in the DF root dir):
"Dwarf Fortress currently offers one command line option, a world generator, suggested by genmac.  You can use it as follows:

FORMAT:   dwarfort.exe -gen <id number> <seed> <world gen param title>
EXAMPLE:   dwarfort.exe -gen 1 3498 STANDARD
EXAMPLE:   dwarfort.exe -gen 2 RANDOM CUSTOM6

This will open a silent, introless dwarf fortress, generate a world with the given id number and seed, export the region files and a picture, and finally quit.  The window remains open so you can see what's going on.  You can still abort world generation while it is running.  If you attempt to create a world number that already exists, it will abort immediately."

So, assuming you're running on windows, presumably you could just create a batch file to run it a specified number of times.

EDIT: Having actually tried the batch-file route, it doesn't work so well for completely unattended generation. It won't export the world data & map images unless DF is the active/selected window, which, seeing as it spawns a new instance for each world it runs, it isn't, I have to manually click in the window at some point before it will export & exit. :\
« Last Edit: September 05, 2010, 03:15:56 am by JAFANZ »
Logged

Mohreb el Yasim

  • Bay Watcher
  • ♫♪♫♫♪♫♪♪♫♪
    • View Profile
Re: Batch Create Worlds
« Reply #4 on: March 23, 2012, 10:22:01 pm »

Does anyone alredy made one of thease automatic scripts? i used what is writen in this thread, they work well but it never seems to close automaticaly (i am looking for because with 0.34 world gens are long soo i would like to put together a "gen-some-world-then-shut-down" script ...)
Any idees ? Own experiances?

(Note : i know it is an old thread but it is revelant, short and the only one found by search in the subject so i see it completly fit to reuse)
Logged
Mohreb el Yasim


GENERATION 24:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experime