GithubHelp home page GithubHelp logo

mg's Introduction

mg - Experimental Mapgen for Minetest

A custom Lua-mapgen, with biomes, caves, villages, cliffs and ore generation.

Biomes: Ocean, Dry grasslands, Wet grasslands, Forest, Jungle, Savanna, Desert,
Tundra, Taiga, Beach.

To use, enable the mod before playing a world for the first time (do not use it in an already used world).

License:
LGPL >= 2.1 for the code
CC-BY-SA for the textures

mg's People

Contributors

ekdohibs avatar sfan5 avatar sofar avatar zeg9 avatar

Stargazers

 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  avatar  avatar  avatar

mg's Issues

biomemap is nil on generating caverealm (subterrane fork) only with mg

I am using experimental mapgen (mg). I'm not sure if this is an mg issue, caverealms issue, or subterrane issue--I looked at the line in question, which uses biomemap, a local variable which should contain the result of minetest.get_mapgen_object("biomemap"). I don't know enough to know why get_mapgen_object would ever return nil after looking up its meaning. If I restart the server, it works for a while, but when trying to dig deeper in a certain location the server crashes. Apparently the problem happens when a caverealm generates.

Seed: BagEnd
Location: /teleport 17,-566,98 (then start digging down)
MapGen: v7
minetest version: 0.5.0-dev (~2018-02-21)
mapgen mods:

2018-02-23 19:37:29: ACTION[Main]: [playereffects] Server shuts down. Rescuing data into playereffects.mt
2018-02-23 19:37:29: ACTION[Main]: [playereffects] Wrote playereffects data into /home/owner/.minetest/worlds/FCAWorldB/playereffects.mt.
2018-02-23 19:37:30: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2018-02-23 19:37:31: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'caverealms' in callback environment_OnGenerated(): ...al/share/minetest/games/ENLIVEN/mods/subterrane/init.lua:181: attempt to index local 'biomemap' (a nil value)
2018-02-23 19:37:31: ERROR[Main]: stack traceback:
2018-02-23 19:37:31: ERROR[Main]: ...al/share/minetest/games/ENLIVEN/mods/subterrane/init.lua:181: in function <...al/share/minetest/games/ENLIVEN/mods/subterrane/init.lua:116>
2018-02-23 19:37:31: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:420: in function </usr/local/share/minetest/builtin/game/register.lua:400>

Without mg installed, at least one caverealm generates without issues (same seed as above, but new world with no mg):
/teleport -25,-971,121
Since it only happens with mg installed, I moved this issue from FaceDeer/minetest-caverealms#2

Village Building spawning code is messed up

local well = {
    {
        {C, C, C, C},
        {C, C, C, C},
        {C, C, C, C},
        {C, C, C, C},
    },
    {
        {C,  C,  C, C},
        {C, WS, WS, C},
        {C, WS, WS, C},
        {C,  C,  C, C},
    },
    {
        {C,  C,  C, C},
        {C, WS, WS, C},
        {C, WS, WS, C},
        {C,  C,  C, C},
    },
    {
        {C,  C,  C, C},
        {C, WS, WS, C},
        {C, WS, WS, C},
        {C,  C,  C, C},
    },
    {
        {C,  C,  C, C},
        {C, WS, WS, C},
        {C, WS, WS, C},
        {C,  C,  C, C},
    },
    {
        {C,  C,  C, C},
        {C, WS, WS, C},
        {C, WS, WS, C},
        {C,  C,  C, C},
    },
    {
        {C, C, C, C},
        {C, A, A, C},
        {C, A, A, C},
        {C, C, C, C},
    },
    {
        {FW, A, A, FW},
        { A, A, A,  A},
        { A, A, A,  A},
        {FW, A, A, FW},
    },
    {
        {FW, A, A, FW},
        { A, A, A,  A},
        { A, A, A,  A},
        {FW, A, A, FW},
    },
    {
        {FW, A, A, FW},
        { A, A, A,  A},
        { A, A, A,  A},
        {FW, A, A, FW},
    },
    {
        {C, C, C, C},
        {C, C, C, C},
        {C, C, C, C},
        {C, C, C, C},
    },
}

{sizex=1, sizez=1, ymin=-5, ymax=5, scm=well, no_rotate=true}, only spawns an incomplete well
{sizex=2, sizez=1, ymin=-5, ymax=5, scm=well, no_rotate=true}, crashes
{sizex=1, sizez=2, ymin=-5, ymax=5, scm=well, no_rotate=true}, puts one column of ignore nodes next to building

Doesn't run with mod security on

Currently if you try to run this in Minetest 0.4.14 or newer you get an error:

ERROR[Main]: ServerError: Lua: Attempt to access external file $HOME/.minetest/mods/mg/schems/cotton_field.we with mod security on.

Trees and minetest_game

mg should support the new trees in minetest_game, and also not redefine its own pine tree.

Add README

Could you add a readme so one can easily see what the mod does without looking into the code?

Possibly with screenshots.

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.