Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: DwarfGenManager - Batch script for generating multiple DF worlds automatically!  (Read 8789 times)

NikoKun

  • Bay Watcher
  • 420
    • View Profile

Actually, you have good timing, I just posted an update! ;D

Thanks for sharing that! I occasionally switch between Windows and Linux, so I'll be nice to make use of this when I switch back later.
BTW, sorry I'm utterly terrible about commenting my code, seeing yours certainly makes me consider doing it more, tho with this latest update, this batch-script is now 115 lines long.. properly commenting it would add a lot more, and probably take me a while. Pretty sure this is becoming one of my longest/most complicated Batch files in a while. heh At least in a couple decades.. <.<

EDIT: Quick update on 6/15, fixed a small bug with the logfile name breaking during the 1-digit am hours. Totally Microsoft's fault. lol Apparently they thought it was a good idea to have the %time% variable return a freaking SPACE character before the hour, if the time is earlier than 10am. lmao Figured I was safe to assume a variable that returns the time in 24-hour format would stick to 2 digits, and use a 0 before those hours.. but nooo. Glad I happened to test this out in the morning today, or else I wouldn't have noticed this bug.
Anyway easy fix, I just added a line that removes any spaces in the logfile name, before variable gets used for anything.. But IMO, that shouldn't have been necessary. heh
« Last Edit: June 17, 2020, 01:32:20 pm by NikoKun »
Logged

Silverwing235

  • Bay Watcher
    • View Profile

Well, this is odd... the silly thing's not doing as told. Always 1050 is used, when END_YEAR was set to be otherwise in parameters as a testing method. How to curb this badly-behaved script?
Logged

NikoKun

  • Bay Watcher
  • 420
    • View Profile

Well, this is odd... the silly thing's not doing as told. Always 1050 is used, when END_YEAR was set to be otherwise in parameters as a testing method. How to curb this badly-behaved script?
Oh darn.. Strange. Well, what specifically is it doing wrong for you? At what moment does it seem to start messing up? Does it generate the world but crash for the logfile?
Are you using the latest version, if so maybe try the v0.3 release, just to see if it also has the problem. That would narrow it down for me.
Maybe the filenames gets too long for the things when the script goes to 1000 years.. I could have sworn I tested that, but maybe I missed something when I added the logfile feature.
As far as I can figure, the script shouldn't care how old the world is.. that parameter is handled by the game.. But maybe the filenames are getting messed up when the year number is 4 digits. I think I might know how to fix it, but I'm not sure till I test it, and that could take an hour or so. lol

EDIT: I just had it generate a 1050 year world, and no problems so far.. It still might be file/folder-name related, depending on what folder the df folder is stored in.. If that's the problem, I might be able to use an alternative method to get the population file/path. I'll do some testing.
« Last Edit: June 17, 2020, 09:27:33 am by NikoKun »
Logged

Silverwing235

  • Bay Watcher
    • View Profile

Well, this is odd... the silly thing's not doing as told. Always 1050 is used, when END_YEAR was set to be otherwise in parameters as a testing method. How to curb this badly-behaved script?
Oh darn.. Strange. Well, what specifically is it doing wrong for you? At what moment does it seem to start messing up? Are you using the latest version, if so maybe try the v0.3 release, just to see if it also has the problem. That would narrow it down for me.
Maybe the filenames gets too long for the things when the script goes to 1000 years.. I could have sworn I tested that, but maybe I missed something when I added the logfile feature.
As far as I can figure, the script shouldn't care how old the world is.. that parameter is handled by the game.. But maybe the filenames are getting messed up when the year number is 4 digits.
You know what, this place doesn't yet have the facility's to attach files to PMs, or I'd try to do that as part of my explanation. So, seeing as you apparently don't have one yet...email? OTOH, I'm using 0.3 already, so...*facepalm*....the set I tested from is:
Code: [Select]
[WORLD_GEN]
[TITLE:ADVTEST]
[DIM:257:257]
[EMBARK_POINTS:5000]
[END_YEAR:888]
[BEAST_END_YEAR:300:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:1]
[ELEVATION:1:400:800:800]
[RAINFALL:0:100:400:400]
[TEMPERATURE:25:75:400:400]
[DRAINAGE:0:100:400:400]
[VOLCANISM:0:100:400:400]
[SAVAGERY:0:100:400:400]
[ELEVATION_FREQUENCY:1:1:1:1:1:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:1:1:1:1:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_AND_OR_SOUTH]
[MINERAL_SCARCITY:100]
[MEGABEAST_CAP:75]
[SEMIMEGABEAST_CAP:150]
[TITAN_NUMBER:33]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:52]
[NIGHT_TROLL_NUMBER:0]
[BOGEYMAN_NUMBER:26]
[NIGHTMARE_NUMBER:26]
[VAMPIRE_NUMBER:26]
[WEREBEAST_NUMBER:26]
[WEREBEAST_ATTACK_TRIGGER:50:5000:50000]
[SECRET_NUMBER:52]
[REGIONAL_INTERACTION_NUMBER:52]
[DISTURBANCE_INTERACTION_NUMBER:52]
[EVIL_CLOUD_NUMBER:0]
[EVIL_RAIN_NUMBER:0]
[GENERATE_DIVINE_MATERIALS:1]
[ALLOW_DIVINATION:1]
[ALLOW_DEMONIC_EXPERIMENTS:1]
[ALLOW_NECROMANCER_EXPERIMENTS:1]
[ALLOW_NECROMANCER_LIEUTENANTS:1]
[ALLOW_NECROMANCER_GHOULS:0]
[ALLOW_NECROMANCER_SUMMONS:1]
[GOOD_SQ_COUNTS:100:1000:2000]
[EVIL_SQ_COUNTS:100:1000:2000]
[PEAK_NUMBER_MIN:50]
[PARTIAL_OCEAN_EDGE_MIN:2]
[COMPLETE_OCEAN_EDGE_MIN:0]
[VOLCANO_MIN:15]
[REGION_COUNTS:SWAMP:1032:0:0]
[REGION_COUNTS:DESERT:1032:0:0]
[REGION_COUNTS:FOREST:4128:0:0]
[REGION_COUNTS:MOUNTAINS:8256:0:0]
[REGION_COUNTS:OCEAN:8256:0:0]
[REGION_COUNTS:GLACIER:0:0:0]
[REGION_COUNTS:TUNDRA:0:0:0]
[REGION_COUNTS:GRASSLAND:8256:13:0]
[REGION_COUNTS:HILLS:8256:0:0]
[EROSION_CYCLE_COUNT:250]
[RIVER_MINS:400:400]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:50]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:100]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:100]
[NON_MOUNTAIN_CAVE_MIN:300]
[ALL_CAVES_VISIBLE:1]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:60]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:1500]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:8256:16512:8256]
[RAIN_RANGES:8256:16512:8256]
[DRAINAGE_RANGES:8256:16512:8256]
[SAVAGERY_RANGES:8256:16512:8256]
[VOLCANISM_RANGES:8256:16512:8256]

...three worlds were requested, one crashed badly enough for it to not bother. The other two are exact dupes:
Code: [Select]
        [TITLE:MEDIUM ISLAND]
[SEED:TLK6DGwsiOx33pDR9KP2]
[HISTORY_SEED:RgIVUUDaoJnkRyFOPNpy]
[NAME_SEED:ZryD3GdBXcDu89tLHdDK]
[CREATURE_SEED:4V8MwQeyECqX8dGWGVbE]
[DIM:129:129]
[EMBARK_POINTS:1504]
[END_YEAR:1050]
[BEAST_END_YEAR:200:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:0]
[ELEVATION:1:400:1600:1600]
[RAINFALL:0:100:200:200]
[TEMPERATURE:25:75:200:200]
[DRAINAGE:0:100:200:200]
[VOLCANISM:0:100:200:200]
[SAVAGERY:0:100:200:200]
[ELEVATION_FREQUENCY:4:2:0:1:0:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:1:1:1:1:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_AND_OR_SOUTH]
[MINERAL_SCARCITY:2500]
[MEGABEAST_CAP:18]
[SEMIMEGABEAST_CAP:37]
[TITAN_NUMBER:9]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:28]
[NIGHT_TROLL_NUMBER:14]
[BOGEYMAN_NUMBER:14]
[NIGHTMARE_NUMBER:14]
[VAMPIRE_NUMBER:14]
[WEREBEAST_NUMBER:14]
[WEREBEAST_ATTACK_TRIGGER:50:5000:50000]
[SECRET_NUMBER:28]
[REGIONAL_INTERACTION_NUMBER:28]
[DISTURBANCE_INTERACTION_NUMBER:28]
[EVIL_CLOUD_NUMBER:14]
[EVIL_RAIN_NUMBER:14]
[GENERATE_DIVINE_MATERIALS:1]
[ALLOW_DIVINATION:1]
[ALLOW_DEMONIC_EXPERIMENTS:1]
[ALLOW_NECROMANCER_EXPERIMENTS:1]
[ALLOW_NECROMANCER_LIEUTENANTS:1]
[ALLOW_NECROMANCER_GHOULS:1]
[ALLOW_NECROMANCER_SUMMONS:1]
[GOOD_SQ_COUNTS:6:63:0]
[EVIL_SQ_COUNTS:6:63:0]
[PEAK_NUMBER_MIN:3]
[PARTIAL_OCEAN_EDGE_MIN:0]
[COMPLETE_OCEAN_EDGE_MIN:4]
[VOLCANO_MIN:1]
[REGION_COUNTS:SWAMP:66:0:0]
[REGION_COUNTS:DESERT:66:0:0]
[REGION_COUNTS:FOREST:264:0:0]
[REGION_COUNTS:MOUNTAINS:528:0:0]
[REGION_COUNTS:OCEAN:528:0:0]
[REGION_COUNTS:GLACIER:16:0:0]
[REGION_COUNTS:TUNDRA:33:0:0]
[REGION_COUNTS:GRASSLAND:528:0:0]
[REGION_COUNTS:HILLS:528:0:0]
[EROSION_CYCLE_COUNT:250]
[RIVER_MINS:25:25]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:100]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:15]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:10]
[NON_MOUNTAIN_CAVE_MIN:15]
[ALL_CAVES_VISIBLE:0]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:24]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:1040]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:8000:1056:528]
[RAIN_RANGES:528:1056:528]
[DRAINAGE_RANGES:528:1056:528]
[SAVAGERY_RANGES:528:1056:528]
[VOLCANISM_RANGES:528:1056:528]
Logged

Starver

  • Bay Watcher
    • View Profile

IRTA "no matter what END_YEAR I actually specify, it ends at 1050" (which, IIRC, is a basic in-game default for a given setting).

So you testing a non-1050-year world (or trying to) would be the test.

Top of my head, the END_YEAR (or intermediate option as passes from script to script to DF itself through the various handlers) is being ignored. At which point, I can't test myself right now but that'd be the first thing I'd prod and probe (by peeling off layers of automation, and/or starting with DF and wrapping back on the layers). It could be a change in DF itself, even, though I'm sure there'd be bugreps galore already for that.

(Or I might have misunderstoid the problem myself.)

PPE: And... yes, Silverwing's ninjaing new info seems to suggest I'm the right way round, without looking into all the other stuff other than END_YEAR, and for the moment ignoring the thing about a potential three dupes, but where one of which crashed to spoil that pattern...
Logged

Silverwing235

  • Bay Watcher
    • View Profile

A baseline, then. Just gonna redo my ad hoc testing on this end, if you wouldn't mind. I will this time ask for 2 worlds, attempting to clarify this hypothesis a bit.

EDIT: So, this 'region0' folder. Has it any value to the script, or do I throw it out with the rest of the trash for my next run?
« Last Edit: June 17, 2020, 10:42:16 am by Silverwing235 »
Logged

NikoKun

  • Bay Watcher
  • 420
    • View Profile

EDIT: So, this 'region0' folder. Has it any value to the script, or do I throw it out with the rest of the trash for my next run?
Interesting.. Something must have gone wrong somewhere, during one of your last runs.. region0 should get renamed by the script, near the end of each cycle, to its' world's name. So, you'll need to delete it or rename it before you start the script again. It should say that when you try running it. heh I figured I should leave such decisions up to the user, in case they want to try to keep/use said world, tho it didn't occur to me that might cause a script-ending error.. hmm

Most situations shouldn't cause a problem, but maybe if the game happens to crash near the end of world-generation, like during the saving process, which is likely with large/old worlds, in some rare situations the script might not know what to do and crash, if like the info files weren't created properly, so it doesn't know what to rename the world too.. hmm.. I'll see about adding some preemptive error-checking in the next version, in case something goes wrong with those files..

I tried generating worlds based on your world_gen parameters, (tho I usually make smaller and less extreme world settings) and I noticed it was rejecting a lot before actually making a world.. It did manage to work fine, but I do think these settings are likely to cause a crash. I'm just not sure what's wrong, because I can't reproduce your issue. :/ If you're still having issues after removing region0, try changing the gen settings to a smaller less extreme one, see if that works..
« Last Edit: June 17, 2020, 11:27:20 am by NikoKun »
Logged

Silverwing235

  • Bay Watcher
    • View Profile

(:P)....

 ???.....Just making sure that my habit of not using any artificial rejection-inflation parameters in my set (disable all initial and final region counts) isn't causing any side-effects in the script, here.
Logged

NikoKun

  • Bay Watcher
  • 420
    • View Profile

edit: ok nvm, it wasn't a missing info file so my script change didn't matter. Tho the improvements I just came up with will still end up in the main script once I polish my code a bit more. heh
« Last Edit: June 20, 2020, 02:07:43 am by NikoKun »
Logged

Silverwing235

  • Bay Watcher
    • View Profile

Finally, after some while (ignoring the AFK time, of course) second test complete!

Baseline, as before:
Code: [Select]
[TITLE:ADVTEST]
[DIM:257:257]
[EMBARK_POINTS:5000]
[END_YEAR:777]
[BEAST_END_YEAR:300:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:1]
[ELEVATION:1:400:800:800]
[RAINFALL:0:100:400:400]
[TEMPERATURE:25:75:400:400]
[DRAINAGE:0:100:400:400]
[VOLCANISM:0:100:400:400]
[SAVAGERY:0:100:400:400]
[ELEVATION_FREQUENCY:1:1:1:1:1:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:1:1:1:1:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_AND_SOUTH]
[MINERAL_SCARCITY:2495]
[MEGABEAST_CAP:75]
[SEMIMEGABEAST_CAP:153]
[TITAN_NUMBER:33]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:52]
[NIGHT_TROLL_NUMBER:0]
[BOGEYMAN_NUMBER:26]
[NIGHTMARE_NUMBER:26]
[VAMPIRE_NUMBER:26]
[WEREBEAST_NUMBER:26]
[WEREBEAST_ATTACK_TRIGGER:50:5000:50000]
[SECRET_NUMBER:52]
[REGIONAL_INTERACTION_NUMBER:52]
[DISTURBANCE_INTERACTION_NUMBER:52]
[EVIL_CLOUD_NUMBER:0]
[EVIL_RAIN_NUMBER:0]
[GENERATE_DIVINE_MATERIALS:1]
[ALLOW_DIVINATION:1]
[ALLOW_DEMONIC_EXPERIMENTS:1]
[ALLOW_NECROMANCER_EXPERIMENTS:1]
[ALLOW_NECROMANCER_LIEUTENANTS:1]
[ALLOW_NECROMANCER_GHOULS:0]
[ALLOW_NECROMANCER_SUMMONS:1]
[GOOD_SQ_COUNTS:100:1000:2000]
[EVIL_SQ_COUNTS:100:1000:2000]
[PEAK_NUMBER_MIN:50]
[PARTIAL_OCEAN_EDGE_MIN:2]
[COMPLETE_OCEAN_EDGE_MIN:0]
[VOLCANO_MIN:15]
[REGION_COUNTS:SWAMP:1032:7:6]
[REGION_COUNTS:DESERT:1032:7:6]
[REGION_COUNTS:FOREST:4128:13:12]
[REGION_COUNTS:MOUNTAINS:8256:0:0]
[REGION_COUNTS:OCEAN:8256:0:0]
[REGION_COUNTS:GLACIER:0:0:0]
[REGION_COUNTS:TUNDRA:0:0:0]
[REGION_COUNTS:GRASSLAND:8256:0:0]
[REGION_COUNTS:HILLS:8256:0:0]
[EROSION_CYCLE_COUNT:250]
[RIVER_MINS:400:400]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:100]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:15]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:100]
[NON_MOUNTAIN_CAVE_MIN:200]
[ALL_CAVES_VISIBLE:0]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:40]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:1500]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:8256:16512:8256]
[RAIN_RANGES:8256:16512:8256]
[DRAINAGE_RANGES:8256:16512:8256]
[SAVAGERY_RANGES:8256:16512:8256]
[VOLCANISM_RANGES:8256:16512:8256]

World 1, Exsmoxsmata:
Code: [Select]
[TITLE:MEDIUM ISLAND]
[SEED:KqUm60C4qmSY4iUukW4a]
[HISTORY_SEED:MEkSwsMC8O0aCkCW4Uq2]
[NAME_SEED:kiye2YieAeyaQQGoso82]
[CREATURE_SEED:YmumQ8gM2WgwuAyykEsE]
[DIM:129:129]
[EMBARK_POINTS:1504]
[END_YEAR:1050]
[BEAST_END_YEAR:200:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:0]
[ELEVATION:1:400:1600:1600]
[RAINFALL:0:100:200:200]
[TEMPERATURE:25:75:200:200]
[DRAINAGE:0:100:200:200]
[VOLCANISM:0:100:200:200]
[SAVAGERY:0:100:200:200]
[ELEVATION_FREQUENCY:4:2:0:1:0:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:1:1:1:1:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_AND_OR_SOUTH]
[MINERAL_SCARCITY:2500]
[MEGABEAST_CAP:18]
[SEMIMEGABEAST_CAP:37]
[TITAN_NUMBER:9]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:28]
[NIGHT_TROLL_NUMBER:14]
[BOGEYMAN_NUMBER:14]
[NIGHTMARE_NUMBER:14]
[VAMPIRE_NUMBER:14]
[WEREBEAST_NUMBER:14]
[WEREBEAST_ATTACK_TRIGGER:50:5000:50000]
[SECRET_NUMBER:28]
[REGIONAL_INTERACTION_NUMBER:28]
[DISTURBANCE_INTERACTION_NUMBER:28]
[EVIL_CLOUD_NUMBER:14]
[EVIL_RAIN_NUMBER:14]
[GENERATE_DIVINE_MATERIALS:1]
[ALLOW_DIVINATION:1]
[ALLOW_DEMONIC_EXPERIMENTS:1]
[ALLOW_NECROMANCER_EXPERIMENTS:1]
[ALLOW_NECROMANCER_LIEUTENANTS:1]
[ALLOW_NECROMANCER_GHOULS:1]
[ALLOW_NECROMANCER_SUMMONS:1]
[GOOD_SQ_COUNTS:6:63:0]
[EVIL_SQ_COUNTS:6:63:0]
[PEAK_NUMBER_MIN:3]
[PARTIAL_OCEAN_EDGE_MIN:0]
[COMPLETE_OCEAN_EDGE_MIN:4]
[VOLCANO_MIN:1]
[REGION_COUNTS:SWAMP:66:0:0]
[REGION_COUNTS:DESERT:66:0:0]
[REGION_COUNTS:FOREST:264:0:0]
[REGION_COUNTS:MOUNTAINS:528:0:0]
[REGION_COUNTS:OCEAN:528:0:0]
[REGION_COUNTS:GLACIER:16:0:0]
[REGION_COUNTS:TUNDRA:33:0:0]
[REGION_COUNTS:GRASSLAND:528:0:0]
[REGION_COUNTS:HILLS:528:0:0]
[EROSION_CYCLE_COUNT:250]
[RIVER_MINS:25:25]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:100]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:15]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:10]
[NON_MOUNTAIN_CAVE_MIN:15]
[ALL_CAVES_VISIBLE:0]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:24]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:1040]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:8000:1056:528]
[RAIN_RANGES:528:1056:528]
[DRAINAGE_RANGES:528:1056:528]
[SAVAGERY_RANGES:528:1056:528]
[VOLCANISM_RANGES:528:1056:528]

World 2, Thadar Mudung:
Code: [Select]
[TITLE:MEDIUM ISLAND]
[SEED:7fokRymUueFzZ7xvtqV6]
[HISTORY_SEED:BiAJ8CZqC3Vi7gvAd3PO]
[NAME_SEED:BJGDXq3rNIpmEJjdjFj8]
[CREATURE_SEED:apmIKuMQaC0bQTSEyfHO]
[DIM:129:129]
[EMBARK_POINTS:1504]
[END_YEAR:1050]
[BEAST_END_YEAR:200:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:0]
[ELEVATION:1:400:1600:1600]
[RAINFALL:0:100:200:200]
[TEMPERATURE:25:75:200:200]
[DRAINAGE:0:100:200:200]
[VOLCANISM:0:100:200:200]
[SAVAGERY:0:100:200:200]
[ELEVATION_FREQUENCY:4:2:0:1:0:1]
[RAIN_FREQUENCY:1:1:1:1:1:1]
[DRAINAGE_FREQUENCY:1:1:1:1:1:1]
[TEMPERATURE_FREQUENCY:1:1:1:1:1:1]
[SAVAGERY_FREQUENCY:1:1:1:1:1:1]
[VOLCANISM_FREQUENCY:1:1:1:1:1:1]
[POLE:NORTH_AND_OR_SOUTH]
[MINERAL_SCARCITY:2500]
[MEGABEAST_CAP:18]
[SEMIMEGABEAST_CAP:37]
[TITAN_NUMBER:9]
[TITAN_ATTACK_TRIGGER:80:0:100000]
[DEMON_NUMBER:28]
[NIGHT_TROLL_NUMBER:14]
[BOGEYMAN_NUMBER:14]
[NIGHTMARE_NUMBER:14]
[VAMPIRE_NUMBER:14]
[WEREBEAST_NUMBER:14]
[WEREBEAST_ATTACK_TRIGGER:50:5000:50000]
[SECRET_NUMBER:28]
[REGIONAL_INTERACTION_NUMBER:28]
[DISTURBANCE_INTERACTION_NUMBER:28]
[EVIL_CLOUD_NUMBER:14]
[EVIL_RAIN_NUMBER:14]
[GENERATE_DIVINE_MATERIALS:1]
[ALLOW_DIVINATION:1]
[ALLOW_DEMONIC_EXPERIMENTS:1]
[ALLOW_NECROMANCER_EXPERIMENTS:1]
[ALLOW_NECROMANCER_LIEUTENANTS:1]
[ALLOW_NECROMANCER_GHOULS:1]
[ALLOW_NECROMANCER_SUMMONS:1]
[GOOD_SQ_COUNTS:6:63:0]
[EVIL_SQ_COUNTS:6:63:0]
[PEAK_NUMBER_MIN:3]
[PARTIAL_OCEAN_EDGE_MIN:0]
[COMPLETE_OCEAN_EDGE_MIN:4]
[VOLCANO_MIN:1]
[REGION_COUNTS:SWAMP:66:0:0]
[REGION_COUNTS:DESERT:66:0:0]
[REGION_COUNTS:FOREST:264:0:0]
[REGION_COUNTS:MOUNTAINS:528:0:0]
[REGION_COUNTS:OCEAN:528:0:0]
[REGION_COUNTS:GLACIER:16:0:0]
[REGION_COUNTS:TUNDRA:33:0:0]
[REGION_COUNTS:GRASSLAND:528:0:0]
[REGION_COUNTS:HILLS:528:0:0]
[EROSION_CYCLE_COUNT:250]
[RIVER_MINS:25:25]
[PERIODICALLY_ERODE_EXTREMES:1]
[OROGRAPHIC_PRECIPITATION:1]
[SUBREGION_MAX:2750]
[CAVERN_LAYER_COUNT:3]
[CAVERN_LAYER_OPENNESS_MIN:0]
[CAVERN_LAYER_OPENNESS_MAX:100]
[CAVERN_LAYER_PASSAGE_DENSITY_MIN:0]
[CAVERN_LAYER_PASSAGE_DENSITY_MAX:100]
[CAVERN_LAYER_WATER_MIN:0]
[CAVERN_LAYER_WATER_MAX:100]
[HAVE_BOTTOM_LAYER_1:1]
[HAVE_BOTTOM_LAYER_2:1]
[LEVELS_ABOVE_GROUND:15]
[LEVELS_ABOVE_LAYER_1:5]
[LEVELS_ABOVE_LAYER_2:1]
[LEVELS_ABOVE_LAYER_3:1]
[LEVELS_ABOVE_LAYER_4:1]
[LEVELS_ABOVE_LAYER_5:2]
[LEVELS_AT_BOTTOM:1]
[CAVE_MIN_SIZE:5]
[CAVE_MAX_SIZE:25]
[MOUNTAIN_CAVE_MIN:10]
[NON_MOUNTAIN_CAVE_MIN:15]
[ALL_CAVES_VISIBLE:0]
[SHOW_EMBARK_TUNNEL:2]
[TOTAL_CIV_NUMBER:24]
[TOTAL_CIV_POPULATION:15000]
[SITE_CAP:1040]
[PLAYABLE_CIVILIZATION_REQUIRED:1]
[ELEVATION_RANGES:8000:1056:528]
[RAIN_RANGES:528:1056:528]
[DRAINAGE_RANGES:528:1056:528]
[SAVAGERY_RANGES:528:1056:528]
[VOLCANISM_RANGES:528:1056:528]

In conclusion, the baseline set does, obviously, seem to be being largely ignored in favour of...whatever this is, however it seems to be being arrived at, we both know this much. Will continue investigation later w/updated script. 

Logged

NikoKun

  • Bay Watcher
  • 420
    • View Profile

Finally, after some while (ignoring the AFK time, of course) second test complete!

In conclusion, the baseline set does, obviously, seem to be being largely ignored in favour of...whatever this is, however it seems to be being arrived at, we both know this much. Will continue investigation later w/updated script.

Okay, so if i'm understanding correctly, you tried to generate a world using your ADVTEST preset.. But for some reason the game instead uses the MEDIUM ISLAND preset? hmm.. very odd..
Sounds like something might be bugged with your world_gen file, or maybe the game considers your settings invalid in some way, so it uses MEDIUM ISLAND as a fallback? That aspect of the generation process isn't under my control, so I don't think there's anything my script can do to fix this problem.

You might have to try removing your world_gen file, and try restoring a fresh copy from the original game zip, then use one of those settings to generate a world to see what happens. Maybe only try changing just a few settings at first to see if it can generate that.

My script just tells the game ("Dwarf Fortress.exe" -gen 0 RANDOM "%genparam%") which means generate a map called region0, use a random seed, and whatever generator-preset the user wants. If the user spells it wrong (not sure if caps count) or the world_gen file is broken in some way, the game uses a default preset like MEDIUM ISLAND instead. All of that is up to the game to do, not my script, which just renames the world-folder to it's world's name and moves the info files to it. The script just manages the automation of organization, and tells the game to do it multiple times.

EDIT: Updated the script again. Now the GenLog also shows each world's year. Fixed a few things and tightened up the formatting in some spots. And fixed a big bug with the GenLog variables.;)
« Last Edit: June 20, 2020, 05:03:06 pm by NikoKun »
Logged

NikoKun

  • Bay Watcher
  • 420
    • View Profile

Another quick update. After a couple weeks of checking for and fixing bugs, the latest version of the script is at a good point to warrant doing another release. So now R2 is available on the github page, and includes the GenLog feature. I also added a proper ReadMe to the page. ;)
Logged
Pages: 1 [2]