some feedback - based on my initial testing this morning
THE TLDR version -
PERMISSIONS ISSUES EXIST IN WINDOWS
GENERATES WORLDS FLAWLESSLY ON LINUX
GENERATES WORLDS FLAWLESSLY ON WINDOWS ONCE PERMISSION ISSUES ARE SORTED OUT
CANNOT GET IT TO COMPLETE GENERATION USING A CUSTOM HEIGHT MAP IN WINDOWS
CAN COMPLETE USING A CUSTOM MAP IN LINUX BUT DOES NOT SEEM TO USE THE CUSTOM HEIGHT MAP AT ALL.
THE FULL TEST (WALL OF TEXT)
Testing the permissions issues
GENERATING RANDOM WORLDS ONLY
WINDOWS 10
I created a directory (owned by my user account) on my dev drive (D

, put KingGen in there, ran it as my logged in user (which also has administrator privs)
Traceback (most recent call last):
<snipped>
PermissionError: [WinError 5] Access is denied: 'user_test_rwg'
I then copied the KingGen directory to my users home directory and ran it again from there and it worked just fine - For some clarification my users home directory is NOT on the C drive where windows is stored so perhaps its better for users to copy it to their home directory and just put a shortcut on their desktop for it.
Back on the D:\KingGen directory testing
Once I ran it as Administrator it worked just fine and generated a 10K world within 3 minutes.
So for some people with permissions issues and do not want to run it from their home directory the simplest solution is to run as administrator but that will only work if their user account is part of the administrator group.
LINUX - UBUNTU 20.04 LTS SERVER (CLI ONLY)
I tested it on one of my linux servers and it worked just fine right out of the gate from the CLI after I put it into my users home directory.
I then sudo copied it to /usr/local/bin. It runs fine from there and is available to all users and is working exactly as it should by assigning the user ownership of the generated directory and files correctly to the user who runs it.
This well may replace using built in RWG for generating totally random worlds on my servers given how fast it generates worlds and that it follows normal linux conventions.
CUSTOM HEIGHT MAP TESTING
Initially I just used my Nitrogen prepared height map then I realised you require 16 bit grayscale so adjusted the image to 16 bit integer grayscale and exported it from GIMP using 16BPC GRAY as the pixel format in the PNG export settings.
Not big issue but it would be nice if the program checked for a 16 bit depth on loading the png map file and perhaps reported to the user the height map was not correct bit depth and exited gracefully as the simplest solution - that way the user would realise what the problem was. Consider this as I imagine other people would have prepared their custom nitrogen maps similarly which requires an 8 bit greyscale image.
WINDOWS
Testing KingGen running from user directory and using the custom 10K height map.
When using a custom height map which is stored in another directory on my dev drive (D:\), and which my user account is the owner of the file, I seem to be getting issues with KingGen as it just sits on Generating random pois and after 15 - 20 minutes I stop the generation. So far I have been completely unable to complete the generation using a custom height map in windows
LINUX
if I use the following command line
KingGen --seed 1234567890 --custom_heightmap /home/myuser/kinggen_testmap.png --cities_size large user_custom_map_test 10
it appears to ignore the custom map entirely.
Same result when I use the following command line
KingGen --custom_heightmap /home/myuser/kinggen_testmap.png --cities_size large user_custom_map_test_2 10
And yet again the same thing happens when I use this command line
KingGen --custom_heightmap=/home/myuser/kinggen_testmap.png --cities_size=large user_custom_map_test_3 10
So I am at a TOTAL LOSS as to how to get it to use my custom height map at all. It does complete and generate a map but it really does not seem to use the height map so is there something I am missing here as far as command line parsing goes???
Also as an aside I have clamped my height map values in gimp prior to export as such that the water areas should be exactly that water areas according to the information given for generation. I will happily DM you a link to the source height map on my webserver if you like, it's a 10K height map and is approx 5MB in size.
I further tested this by re-scaling my custom map to 4k and it still refuses to complete making a map in WINDOWS and it seems to ignore it in LINUX... Of course it could well be the png file itself that is the issue or perhaps something I have misunderstood regarding the linux command line... And yes for the 4K map tests I did change the size parameter to 4
I will happily be educated on how it's supposed to be used with importing custom maps
What IMHO would be an added improvement for the CLI versions would be simply allowing us to specify a config file on the command line with all the options we want the generator to use
It might also make it easier for debugging purposes...
Right now as it stands, from my perspective it's nice and fast for generating totally random worlds but completely useless to me for generating worlds using custom height maps...