Jump to content

[PLUGIN][0.21.x][ALPHA] Kerbopolis - Procedurally Generated Cities


tobyb121

Recommended Posts

YAY!!! Im installing this as i'm typing this.......... wait how can i type and move a folder at the same time?....

EDIT: how do i open the city generation window?

At the moment it doesn't have a GUI for city generation, it's done through the config file. This is my main goal for the next release but I'm not going to spend much time on this for the next few weeks, so I wanted to get this release out now. When it says alpha, it really means it :)

Link to comment
Share on other sites

The cities are defined in the config file, are you saying that only one city is being generated? This is very much just an early release show how the cities look and allow people to use them, the next version will be a much fuller release, but will take a bit of time for me to complete.

Link to comment
Share on other sites

Will the cities be randomly generated with a seed in the next update?

It's not something I had considered but there's technically nothing that prevents this, though I'm not sure how well it would work. I wouldn't have thought having cities randomly spawning anywhere would be great, and would need some filtering to stop cities being half way up a mountain, or in the sea.

Link to comment
Share on other sites

It's not something I had considered but there's technically nothing that prevents this, though I'm not sure how well it would work. I wouldn't have thought having cities randomly spawning anywhere would be great, and would need some filtering to stop cities being half way up a mountain, or in the sea.

Actually.... Cities on mountains, cliffs, and partially submerged seems very kerbal.....

Link to comment
Share on other sites

That is an awesome idea, and I think that procedurally generated cities should be the part of the game. So you can see the lights on the surface of night side of the planet.

Edited by Ghost13
Link to comment
Share on other sites

how does one get the random generation to work? all i have is a single city next to the space center, and when i tried using the config file it didnt work (it could just be the city is in the bottom of the ocean but thats hard to check)

Link to comment
Share on other sites

Creating cities is all done by adding CITY nodes into the config file

Each city looks like this:

CITY
{
body = Kerbin
longitude = -74.59567
latitude = -0
rotation = 0
altitude = 70
size = 500,500
seed = 1
minBlockSize = 50
maxSplit = 5
splitPasses = 4
visibleRange = 100000
}

To create a new city copy and paste this into the bottom of your config file.

The parameters you will need to change are latitude, longitude, altitude and seed.

Latitude and Longitude are in degrees, and altitude is in metres above sea level so if you are in-land you may find that your city is underground.

You can change size, but be careful as increasing the size of your city too much will kill performance.

If you are still having trouble post your config and I'll check what's going on.

Sorry I haven't released it with a better UI, I don't have time to work on this for a couple of weeks, and I wanted people to be able to play around with what I had made so far.

Toby

Link to comment
Share on other sites

So I think I have mosty worked out the city lights: http://forum.kerbalspaceprogram.com/threads/52159-PLUGIN-ALPHA-Cities-and-City-Lights-on-Kerbin I have also given city placement some thought, and I will proably use a texture to generate them... That would make it much easier to align the light texture with the actual cities.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 10 months later...
FYI, this one seems to be still working on 0.24.2 32bit. Does anyone feel like recompiling it?

It doesn't mention the license, so I don't think that's okay without the dev's permission. Fortunately I think he's still active, so I guess you could PM them about that?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...