Coder Social home page Coder Social logo

Comments (7)

LeftofZen avatar LeftofZen commented on May 25, 2024

hey Glen, can you send me the exact PNG you used for this, just so I can test it as you have it

edit: nevermind, I've managed to repro it with your land gen settings

from openloco.

LeftofZen avatar LeftofZen commented on May 25, 2024

Whatever texture is listed last will be applied to these two edges

Actually, it is the 'first' terrain type here, Brown Rock, but the Around Cliffs generator that is the real issue - this is the very last generator that is run in the code, and seems to be overwriting the terrain with whatever land type you've set for it. Unfortunately this generator is not yet reverse-engineered so I cannot examine exactly what and why this is happening, and why the game things these areas are "around cliffs"

from openloco.

glenjimen avatar glenjimen commented on May 25, 2024

I've attached the png in case you'd still like it.
hightmap FtBragg

Actually, it is the 'first' terrain type here, ...

I didn't explain that part quite right, if you have multiple terrain types set to 'around cliffs' then only the last alphabetically will be applied. I think this is the expected behavior, actually.
heightmap around cliffs multiple
You can see multiple terrain types set to around cliffs, but only sand is applied to the edges and to actual cliffs throughout the map.
Anyway, that's not really a problem in need of a solution.

Also, with the new paint terrain tools you've added, it's easy enough to go thru and fix up those two edges :-)

from openloco.

glenjimen avatar glenjimen commented on May 25, 2024

FYI, more details. The terrain type stops getting applied to an edge if the land reaches a height of zero.

cliff edge coloring underwater

cliff edge coloring height zero

from openloco.

LeftofZen avatar LeftofZen commented on May 25, 2024

We've fixed this in an experimental branch; Aaron reverse-engineered the generateTerrainAroundCliffs method just for this, and in that method the cliff detection code runs on all tiles of the map. Bringing in that range 1 tile from the edge of the map means the edge-of-map 'cliff' will no longer be detected as a cliff, fixing the problem. You can also solve this already by just not using the "around cliffs" terrain colouring.

from openloco.

glenjimen avatar glenjimen commented on May 25, 2024

As of release v24.04, the cliff coloring is halfway solved :-)
cliff edge single

Now only one edge is being colored as a cliff. Same settings as before. Here is the heightmap I used, in case it's helpful. I was able to reproduce this reliably with multiple different heightmaps.
jamestown

It's bizarre that your applied solution only reduced the number of edges effected. Still, pretty easy to go in and manually clean up that edge, so not a huge high priority thing.

from openloco.

LeftofZen avatar LeftofZen commented on May 25, 2024

Ah, I didn't actually put the fix into this release! I totally forgot about it, and it required #2383 which was only merged 12 hours ago, just before I went to bed and as the other guys tagged the release. I will get this in for next release for sure, though that may be while away.

Interesting that the behaviour still changed though!

from openloco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.