• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

KingGen - A Random World Generator for 7 Days to Die

A little experimenting with heightmaps earlier today. I appreciate the texture isn't right for a Jetty but the shape worked pretty good. Early days! 

https://imgur.com/a/jldleeC
FP30APF.jpeg


https://i.imgur.com/4e18plA_d.webp?maxwidth=640&shape=thumb&fidelity=medium

EDIT: Sorry, can't get it to show a preview. Think it's because I'm on my phone. 

 
Last edited by a moderator:
really wish the creators of the game would fix water physics they are worst i ever seen makes it hard to create a nice map because it's so bad when it comes to water

 
Hey King - any chance of getting additional control over the placement of spawn points? I would love to be able to, for example, rule out spawn points near cities or prefer spawn points near villages to set a sense of progression in the early game.

 
 . . . . or a single spawn point in a specific spot. I too, am interested in the Canyon-style of map (mentioned in DJQuad's and other earlier posts) and so built one that "sort-of" worked, but the SP/SP's are anywhere in the map. I'd like to put one down in the canyon, and at the beginning, with resources and building numbers increasing as the canyon progresses.  On the third day now, and, for the first time in any map - I had to dig a cave into the cliff wall for overnight security! 

 
You can find the coordinates of the point you want, then edit the spawn xml to include only the coords that you enter. 
Ahhh, good to know, thanks.  For some reason I'm finding that I spawn in the same place every time instead of randomly so I'll edit that and fix it that way.  By the way thanks for your vid on the tool, it was super helpful.

 
Hmm, I edited the file but the game seems to be completely ignoring my changes and still spawning me in the same place.  Any ideas why that would be?

Edit: The spawn point it's loading me at is still one of the original ones created by KingGen. 

Another Edit: I renamed the folder and then started a new game. The old world version was still there (in spite of no longer existing) but when I scrolled through the list of worlds, the renamed folder version was there at the end - and starting a game from that one updated the spawn point correctly.

Seems like it was some kind of caching issue perhaps?

 
Last edited by a moderator:
Hmm, I edited the file but the game seems to be completely ignoring my changes and still spawning me in the same place.  Any ideas why that would be?

Edit: The spawn point it's loading me at is still one of the original ones created by KingGen. 

Another Edit: I renamed the folder and then started a new game. The old world version was still there (in spite of no longer existing) but when I scrolled through the list of worlds, the renamed folder version was there at the end - and starting a game from that one updated the spawn point correctly.

Seems like it was some kind of caching issue perhaps?
You are editing the wrong version most likely. Depending on where you have your maps running from, it should either be from the Worlds folder in your install, or from the Generated Worlds folder in %appdata%.

 
any idea why the cities are all raised or lowered creating  those odd earth walls?  I even tried a flat map and the cities are raised or lowered no matter what I try.  I tried removing the city height info but it still janky.   Is there any way to just force the cities to follow the earth contour?

 
any idea why the cities are all raised or lowered creating  those odd earth walls?  I even tried a flat map and the cities are raised or lowered no matter what I try.  I tried removing the city height info but it still janky.   Is there any way to just force the cities to follow the earth contour?
cities should generate at the average elevation of the terrain below. Can you post a screeshot so I can see if it is a bug?

 
A19.5_2021-07-16_10-55-19.jpg
A19.5_2021-07-16_10-53-19.jpg
A19.5_2021-07-16_10-49-45.jpg


So most maps I make with Talmans helpfull video turn out like this since 11.11  version,  Oh bring back road to isolated POI's would be nice(just a hope)

 
Looks to me like it spawned ground level as seen in the background. But didn't take into account the crater and raised it to meet the maps needs. So it is ground level. 



So most maps I make with Talmans helpfull video turn out like this since 11.11  version,  Oh bring back road to isolated POI's would be nice(just a hope)
This bottom pic is just where  kinggen made the city and removed the part of the mountain that it went into to spawn the whole city. 

 
For any other custom POIs that you might want yo use, you must provide KingGen with a list of comma separated values formatted as follows: each POI must be listed on a new line and be written as <name>,<x size>,<y size>,<z size>,<y offset>,<rotation to face north>,<allowed biomes>,<allowed townships>,<zones>. Any POI that does not follow this format will be ignored. Here is an example taken from the vanilla list:

abandoned_house_01,24,18,26,-1,2,burnt_forest/snow/pine_forest/desert/wasteland,rural/city/town/wilderness,residentialold
abandoned_house_02,24,17,25,-1,2,burnt_forest/snow/pine_forest/desert/wasteland,rural/city/town/wilderness,residentialold
abandoned_house_03,21,16,28,-1,2,burnt_forest/snow/pine_forest/desert/wasteland,rural/city/town/wilderness,residentialold




The allowed values for biomes are: pine_forest, burnt_forest, desert, snow and wasteland.

The allowed values for townships are: city, town, rural and wilderness.

The allowed values for zones are: residentialold, residentialnew, downtown, commercial, industrial and any.
Any other values will be ignored. Please note that any POI with "waste" in their name will be automatically considered a wasteland-only POI. This is to accomodate vanilla's POIs that do not come with a AllowedBiomes property.


I wonder if there is a value in this, which sets the probability of how often a POI will be generated?

The problem I should fix is that I'm using War of the Walkers, and it has copies of the vanilla traders, plus one called "Class trader".

I've kinggenerated a map where the traders should spawn in the remote, wilderness areas, but Walkers shops are spammed in every city.

When I've removed them from  the generated custom poi list, not one spawned.

So I either need to make them much rarer, or somehow set them in the same category as vanilla traders so Kinggen handle them together vith the vanilla traders.

If it could be avoided, I rather not watch a full video where I might or might not find the info I seek, so a text-based documentation would be preferred.

When you (or you or you) answer me, I'll hand out the praises. :)

 
A temporary fix:

I've set all War of the Walkers shops to wilderness only in the custom POI files - now just one of each spawned. :)

 
Bow before he who wields the Slayer of Kings and generates the random maps.
Hi @KingSlayerGM

Loving this thing. Didn't realise there had been so may major releases since I was last using it. You work fast.

Got a small feature request (if it's simple).

When Generating multiple maps at once, would it be possible to also generate a folder which just contains a copy of the previews from each map, (with each preview named after its map).

Why?

Random map generation is inevitably a bit hit and miss, how do the biomes layout, are there any biomes with no towns, are the traders clustered, etc.

I tend to generate a bunch and then review them and pick one. It's easier to do if I copy the previews into a folder so I can quickly flip between them. However copying each from their folder, and renaming them as I go takes a while.

 
Back
Top