Coder Social home page Coder Social logo

davisonio / darkage Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 3.0 781 KB

:video_game: Darkage mod for Minetest

Home Page: https://davison.io/minetest/darkage

Lua 100.00%
age color color-scheme dark dark-ages darkage darkage-mod gaming gaming-cms grass lua minetest minetest-engine minetest-mod minetest-mods minetest-subgame mod module video-game wtfpl

darkage's People

Contributors

adrido avatar davisonio avatar gaelysam avatar imgbotapp avatar kakalak-lumberjack avatar mastergollum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

darkage's Issues

light_source = 18 may cause crashes

In recent minetest-dev because of various light glitches and crashes light_source can only be 14 and below.
Quote:

        light_source = 0, --[[
        ^ Amount of light emitted by node.
        ^ To set the maximum (currently 14), use the value 'minetest.LIGHT_MAX'.
^ A value outside the range 0 to minetest.LIGHT_MAX causes undefined behavior.]]

Dark age lamp uses 18, this crashes minetest for some people on newest minetest-dev.

https://github.com/davisonio/darkage/blob/master/nodes.lua#L226
https://github.com/davisonio/darkage/blob/master/nodes.lua#L356

colours.txt?

Hello,

Does this mod have a pre-generated colours.txt for this mod? I'd like to add it to my existing colours.txt to quieten all these unknown node messages I keep getting :P

Locked box

Suggested by Krock, we should add a locked box.

Use minetest's API for mapgen

We should use minetest's API for most of the map generation. Would be easier and more conventient. Suggested by Sokomine.

Darkage mapgen triggers Lua OOM

I have a subgame that I profiled for some troubles, it has darkage mod, lua mem usage at 20-90 mb (print(collectgarbage("count")/1024), it lets me generate blocks for some time and then suddenly stops at "local data = vm:get_data()" step with "Lua: OOM error from mod 'darkage' in callback environment_OnGenerated(): not enough memory". Removing darkage makes server stable, mem use below 40mb at most without oom.

No OOMs on clean game though, I'm still investigating the issue :/

On a side note I noticed pretty damn suspiciously high usage of cpu by this mod even in passive mode:

 instrumentation                                         |    min µs |    max µs |    avg µs | min % | max % | avg %
-------------------------------------------------------- | --------- | --------- | --------- | ----- | ----- | ------
darkage:                                                |         0 |     54099 |        29 |   0.0 |  99.9 |   0.1
  - on_generated[1] ...................................  |     43797 |     54099 |     48948 |  99.6 |  99.9 |  99.7

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.