• 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

Hi,

nice work so far.

I would like a button next to "open Worlds folder" which open the generated Folder for easier copy and paste.

And an option to choose how many towns and villages appear on the map were pretty cool. I like 1 big town and many cities and villages, but allways i generate a map, there are only few of them.

 
So I am getting an Error.

Exception in Tkinter callback
Traceback (most recent call last):
  File "tkinter\__init__.py", line 1892, in __call__
  File "gui.py", line 1020, in generate_world
  File "settings.py", line 26, in dump_settings
PermissionError: [Errno 13] Permission denied: '.\\KingGenConfig.txt'

 
So I am getting an Error.

Exception in Tkinter callback
Traceback (most recent call last):
  File "tkinter\__init__.py", line 1892, in __call__
  File "gui.py", line 1020, in generate_world
  File "settings.py", line 26, in dump_settings
PermissionError: [Errno 13] Permission denied: '.\\KingGenConfig.txt'
Oh, so it's not just me.. good.

I just downloaded the program for the first time, clicked con generate right as it was and thought I had still managed to mess something up. 
Edit: After that I also got an error that didn't allow me to close the program. had to task kill it. 

 
Last edited by a moderator:
Oh, so it's not just me.. good.

I just downloaded the program for the first time, clicked con generate right as it was and thought I had still managed to mess something up. 
Edit: After that I also got an error that didn't allow me to close the program. had to task kill it. 
Make sure you tell Windows Defender thats it's okay to run. Otherwise it blocks it from making the Kingen Config file.

 
So I am getting an Error.

Exception in Tkinter callback
Traceback (most recent call last):
  File "tkinter\__init__.py", line 1892, in __call__
  File "gui.py", line 1020, in generate_world
  File "settings.py", line 26, in dump_settings
PermissionError: [Errno 13] Permission denied: '.\\KingGenConfig.txt'
Run it as administrator, or move KingGen in a folder where it has writing permission.

 
Hi,

nice work so far.

I would like a button next to "open Worlds folder" which open the generated Folder for easier copy and paste.

And an option to choose how many towns and villages appear on the map were pretty cool. I like 1 big town and many cities and villages, but allways i generate a map, there are only few of them.
I will add that button.

As far as number of cities, I plan to add more options

 
Generating heightmap.
Generating biomes.
Generating cities.
Generating water.
Generating roads.
AttributeError: 'NoneType' object has no attribute 'close'
Exception ignored in: 'scipy.spatial.qhull._Qhull.__dealloc__'
Traceback (most recent call last):
  File "native.py", line 103, in interp
AttributeError: 'NoneType' object has no attribute 'close'
Traceback (most recent call last):
  File "gui.py", line 1240, in generate
  File "ntime.py", line 11, in ntime
  File "world.py", line 1011, in run
  File "world.py", line 203, in generate
  File "world.py", line 312, in gen_roads
  File "world.py", line 340, in connect_cities
  File "world.py", line 397, in connect
  File "native.py", line 142, in make_road
  File "native.py", line 103, in interp
  File "interpnd.pyx", line 280, in scipy.interpolate.interpnd.LinearNDInterpolator.__init__
  File "qhull.pyx", line 1840, in scipy.spatial.qhull.Delaunay.__init__
  File "qhull.pyx", line 270, in scipy.spatial.qhull._Qhull.__init__
  File "messagestream.pyx", line 36, in scipy._lib.messagestream.MessageStream.__init__
OSError: Failed to open file b'C:\\Users\\\xe7\xa9\xba\xe7\xa9\xba\\AppData\\Local\\Temp\\scipy-b0p8ykrd'
 

What's the problem?How to solve it?

 
Generating heightmap.
Generating biomes.
Generating cities.
Generating water.
Generating roads.
AttributeError: 'NoneType' object has no attribute 'close'
Exception ignored in: 'scipy.spatial.qhull._Qhull.__dealloc__'
Traceback (most recent call last):
  File "native.py", line 103, in interp
AttributeError: 'NoneType' object has no attribute 'close'
Traceback (most recent call last):
  File "gui.py", line 1240, in generate
  File "ntime.py", line 11, in ntime
  File "world.py", line 1011, in run
  File "world.py", line 203, in generate
  File "world.py", line 312, in gen_roads
  File "world.py", line 340, in connect_cities
  File "world.py", line 397, in connect
  File "native.py", line 142, in make_road
  File "native.py", line 103, in interp
  File "interpnd.pyx", line 280, in scipy.interpolate.interpnd.LinearNDInterpolator.__init__
  File "qhull.pyx", line 1840, in scipy.spatial.qhull.Delaunay.__init__
  File "qhull.pyx", line 270, in scipy.spatial.qhull._Qhull.__init__
  File "messagestream.pyx", line 36, in scipy._lib.messagestream.MessageStream.__init__
OSError: Failed to open file b'C:\\Users\\\xe7\xa9\xba\xe7\xa9\xba\\AppData\\Local\\Temp\\scipy-b0p8ykrd'
 

What's the problem?How to solve it?
It is an error with the library Scipy. Could you try to run it as administrator and see if anything changes?

I suspect it doesn't like your username because it contains "weird characters".

 
Hello.

So, I was testing it yesterday and first off, the tool is awesome. Seriously, great job.

I was disappointed when I came back to generate a map since a long time ago and saw NitroGen was untouched ever since,  but KingGen so far does everything and more.

Now, a feature request:

I have no idea how noise generated maps work and even if it's even possible but... 

Same as you allow us to paint our desired cities, biomes, etc. Can't you make something similar for the heighmap?

Say I paint roughly where I want flat*ish* terrain (little lakes included), where I want water, where I want mountains, where I want hills, (I guess the type of noise could be linked to the biomes), and then based on that, the tool generates a heightmap.

Or at least something as simple as "give me tall snowy mountains at this particular location and generate everything else as you wish".

It would save a lot of heightmap photoshopping time and I know many people would be happy  x)

Thanks.

 
Hello.

So, I was testing it yesterday and first off, the tool is awesome. Seriously, great job.

I was disappointed when I came back to generate a map since a long time ago and saw NitroGen was untouched ever since,  but KingGen so far does everything and more.

Now, a feature request:

I have no idea how noise generated maps work and even if it's even possible but... 

Same as you allow us to paint our desired cities, biomes, etc. Can't you make something similar for the heighmap?

Say I paint roughly where I want flat*ish* terrain (little lakes included), where I want water, where I want mountains, where I want hills, (I guess the type of noise could be linked to the biomes), and then based on that, the tool generates a heightmap.

Or at least something as simple as "give me tall snowy mountains at this particular location and generate everything else as you wish".

It would save a lot of heightmap photoshopping time and I know many people would be happy  x)

Thanks.
you can already paint and supply your own heightmap to KG

 
Hey @KingSlayerGM, I saw with KingGen 0.8 you can map cities, but I was wondering what you mean by "Added zoning map import: you can mask zones on a png file and KG will use that to generate pois". How does that work? And, does zoning for cities zone for towns as well? I find that most of my 6K maps only spawn with two towns (plenty of villages, however), and I would like more. And finally, are there any tutorials for said zoning maps? There's one for cities, which I can see, but I can't seem to find any for zoning maps.

 
Hey @KingSlayerGM, I saw with KingGen 0.8 you can map cities, but I was wondering what you mean by "Added zoning map import: you can mask zones on a png file and KG will use that to generate pois". How does that work? And, does zoning for cities zone for towns as well? I find that most of my 6K maps only spawn with two towns (plenty of villages, however), and I would like more. And finally, are there any tutorials for said zoning maps? There's one for cities, which I can see, but I can't seem to find any for zoning maps.
Zoning allows you to control the types of buildings. Like industrial, commercial, downtown.... There is some information about it on the first page. You can also skip this part and KG will do automatic zoning.

 
Hello again.
Is there any config file I could Modify to change at what elevation water and snow spawns? 
and if not... I think it would be a good idea to have it somewhere integrated in the program. 
cheers

 
Hello again.
Is there any config file I could Modify to change at what elevation water and snow spawns? 
and if not... I think it would be a good idea to have it somewhere integrated in the program. 
cheers
You can change the snow elevation in the settings as well as in the config file. However you cannot change the water level at the moment. This has been requested a lot. I am considering it.

 
You can change the snow elevation in the settings as well as in the config file. However you cannot change the water level at the moment. This has been requested a lot. I am considering it.
Sorry but where in the settings and config file? I really can't see anything related to it. I'm running v0.8.0

 
Sorry but where in the settings and config file? I really can't see anything related to it. I'm running v0.8.0
in the landscape section, its the snow option. More snow means lower elevation, less snow means higher elevation. You cannot choose an exact number.

 
in the landscape section, its the snow option. More snow means lower elevation, less snow means higher elevation. You cannot choose an exact number.
oh, I thought that was about the size of the snow biome... and now that I type this I realize that that's linked to the snow elevation.
thanks again.

Edit: wait... will this also work in a custom heightmap???
Edit 2: nvm. I just tested it. it works.

Btw, not sure if you are aware that snow and desert do touch. at least for custom heightmaps. (Yes, I know that I can edit the biomes file. just letting you know just in case)
image.png
 

 
Last edited by a moderator:
Back
Top