Coder Social home page Coder Social logo

Comments (9)

Fixer-007 avatar Fixer-007 commented on July 1, 2024 2

More news about optimisations here:
https://forum.minetest.net/viewtopic.php?f=18&t=16043#p314553
https://forum.minetest.net/viewtopic.php?f=18&t=16043#p242631
https://forum.minetest.net/viewtopic.php?f=18&t=19836

from darkage.

Fixer-007 avatar Fixer-007 commented on July 1, 2024 1

Please read this, it may help: https://forum.minetest.net/viewtopic.php?f=18&t=16043

from darkage.

kakalak-lumberJack avatar kakalak-lumberJack commented on July 1, 2024 1

davisonio: i'd be willing to tackle converting the mapgen to the ore generation API if you are interested in switching over. Let me know.

from darkage.

davisonio avatar davisonio commented on July 1, 2024

Hmm not good, must be the mapgen causing this issue when generating darkage blocks in new areas. I'll look into this.

from darkage.

Fixer-007 avatar Fixer-007 commented on July 1, 2024

Actually, why not use official API for generating ores/veines, look here, Paramat says it won't produce OOM, since it is done via engine, not lua:

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4985
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1143

from darkage.

davisonio avatar davisonio commented on July 1, 2024

I don't have much time at the moment to work on this project but I'm able to merge anything that fixes this. The new optimisations in minetest are great and should be taken advantage of :)

from darkage.

davisonio avatar davisonio commented on July 1, 2024

I'm keen on preserving darkage blocks in old maps too.

from darkage.

paramat avatar paramat commented on July 1, 2024

I've updated that advice in the forum and am fairly confident it is correct as of 17th March 2018. Those could be applied (not by me).

Even better, replace all that ore generation code with the ore generation API, there are now several types of oregen to choose from. This will increase mapgen speed and reduce Lua lag on a server.
See #12

from darkage.

kakalak-lumberJack avatar kakalak-lumberJack commented on July 1, 2024

https://github.com/kakalak-lumberJack/darkage I have updated the mapgen.lua to use the register_ores method instead of the original custom mapgen (still available but unused in legacy_mapgen.lua in my fork). This should resolve the OOM errors, but I'd like to test it a bit more before I make the PR.

I've tried to follow the spirit of the original mapgen within the given limitations of the register_ores methods but have taken a couple liberties to also better suit some of the newer biomes, such as Old red sandstone spawning in dessert stone and dessert_sandstone, etc. I'll be testing and tweaking noise_params and such a bit before I post but I would love to have any testing/feedback on my fork to make sure folks are happy with the prevalence, depths and other characteristics of the ores, before I make a PR. Thanks!

from darkage.

Related Issues (10)

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.