Page 1 of 1

Island Maps

Posted: Sun May 28, 2017 10:16 pm
by Gladaed
Hi,

I'd love the idea of having a map generator feature that inverts land and water on each tile so you can play a map consisting of Islands. (Or is there a easier way with current mods)

EDIT: Encountered a probable bug: The spawn may not be on land and should be filled with a sphere or sth. similair. Also Islands could be connected via bridges by a certain probability. (But thats way advanced and takes time. So rather not)

Re: Island Maps

Posted: Mon May 29, 2017 12:04 am
by Distelzombie
Oh thats really cool!
I'love to try that.

Re: Island Maps

Posted: Mon May 29, 2017 8:46 am
by orzelek
It's a new mod that you are looking for :D

Also something similar might be available as water maze mod but I think it wasn't updated to 0.15.
From some posts on the forum it seems that overriding map gen is more complex then only resources - and also RSO in it's current form wouldn't work well with a mod like that.

Re: Island Maps

Posted: Mon May 29, 2017 10:08 am
by mrvn
And you better hope you have enough stone on your starting island and the game in general to build tons of landfill.

Or mod some more and instead of trains have ships.

Re: Island Maps

Posted: Mon May 29, 2017 11:18 am
by Gladaed
Orzek can you tell me how the map generation works? (Or shorter: the resources are sprinkled ontop of the landmasses after they generated right? You could just invert the sign in the water generation step and get an inverse map. (at the point at which if perlin>threshold))

I tried reading your code but failed miserably as i have no idea where as to start.

Re: Island Maps

Posted: Mon May 29, 2017 11:29 am
by orzelek
RSO doesn't do anything with terrain itself - it's all base game generated. It actually assumes that it can expect terrain to be ready when it places resources.
There is a bit of code that manipulates terrain in straight world files in library folder - it redoes terrain there so it can be useful to take a look.

Re: Island Maps

Posted: Mon May 29, 2017 11:45 am
by Gladaed
Do you know weather i can look at the c++ code / weather the land generation is even modable?
Or how i can write a method that get's called before your resource generation?

Re: Island Maps

Posted: Mon May 29, 2017 11:51 am
by Gladaed
I just found the factorio api ... working on a mod