Git Product home page Git Product logo

Comments (1)

finnbear avatar finnbear commented on May 26, 2024

Here are the variables that you can set in Toml format:

allow_web_socket_json: bool,
password: Cow<'a, str>,
/// 0 means None.
redirect_server_id_preference: u8,
distribute_load: bool,

None of them are useful for development or 3rd party servers. In fact, we will be removing all of them in our next open source release.

Note that password is related to the admin interface, but the README provides instructions that don't require using the config file: https://github.com/SoftbearStudios/mk48?tab=readme-ov-file#admin-interface-optional

And I would also like to know how to change the size and the landform of the map when deploy my own server.

World generation is here:

pub static mut SEED: f64 = 42700.0;

Other terrain options are here:

// Scale of terrain aka meters per pixel.
pub const SCALE: f32 = 25.0;
// Size of whole terrain.
// Must be a power of 2.
pub const SIZE: usize = (1 << 10) * crate::world::SIZE;
// Offset to convert between signed coordinates to unsigned.
const OFFSET: isize = (SIZE / 2) as isize;
// Position of arctic biome in terrain y coordinate.
pub const ARCTIC: usize = ((world::ARCTIC / SCALE) as isize + OFFSET) as usize;
// Position of tropics biome in terrain y coordinate.
pub const TROPICS: usize = ((world::TROPICS / SCALE) as isize + OFFSET) as usize;
// Size of a chunk.
// Must be a power of 2.
const CHUNK_SIZE: usize = 1 << 6;
// Offset to convert between signed chunk coordinates to unsigned.
const CHUNK_OFFSET: isize = (SIZE / CHUNK_SIZE / 2) as isize;
// Size of terrain in chunks.
const SIZE_CHUNKS: usize = SIZE / CHUNK_SIZE;
pub const SAND_LEVEL: Altitude = Altitude(0);
pub const GRASS_LEVEL: Altitude = Altitude(1 << 4);

from mk48.

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.