GithubHelp home page GithubHelp logo

inconcessus / otmapgen Goto Github PK

View Code? Open in Web Editor NEW
35.0 6.0 26.0 2.78 MB

Uses random noise to generate realistic OTBM terrain with auto-bordering.

License: MIT License

JavaScript 100.00%
otbm tibia procedural generation otbm2json noise otmapgen

otmapgen's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

otmapgen's Issues

Moving all IDs to only one file

It would be interesting to have only constants in both OTMapGen.js and border.js and move all ids to a single files, so people could easily change for using 7.6 ids, or OpenTibia Sprite Pack, or a complete different set of 10.98 tiles.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

When generating a map with following configuration:

  SEED: "",
  WIDTH: 10000,
  HEIGHT: 10000,
  VERSION: "10.98",
  TERRAIN_ONLY: false,
  GENERATION: {
    NOISE_INCREMENT: 14,
    ISLAND_DISTANCE_DECREMENT: 0.42,
    ISLAND_DISTANCE_EXPONENT: 0.45,
    CAVE_DEPTH: 20,
    CAVE_ROUGHNESS: 0.45,
    CAVE_CHANCE: 0.5,
    SAND_BIOME: true,
    EUCLIDEAN: false,
    SMOOTH_COASTLINE: true,
    ADD_CAVES: true,
    WATER_LEVEL: 2,
    EXPONENT: 1.4,
    LINEAR: 4,
    MOUNTAIN_TYPE: "MOUNTAIN",
    FREQUENCIES: [
      { f: 1, weight: 0.3 },
      { f: 2, weight: 0.4 },
      { f: 4, weight: 0.4 },
      { f: 8, weight: 0.225 },
      { f: 16, weight: 0.23 },
      { f: 32, weight: 0.11 },
      { f: 64, weight: 0.0025 },
    ],
  },

i7 11th gen, 32GB RAM just FYI

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.