Git Product home page Git Product logo

lavastuff's Issues

minetest 0.4 compatibility solved

i used this mod with 0.4.17.1 server (usage of 0.4 is more light rather than mineclone) to allow phone mt clients

it crash due the trasnlations susport only in 5.X so i patches with:

diff --git a/compat/mtg.lua b/compat/mtg.lua
index 0c534a6..e6ea7bc 100644
--- a/compat/mtg.lua
+++ b/compat/mtg.lua
@@ -1,4 +1,16 @@
-local S = minetest.get_translator(minetest.get_current_modname())
+local S
+if minetest.get_translator ~= nil then
+    S = minetest.get_translator(minetest.get_current_modname())
+else
+    -- mock the translator function for MT 0.4
+    S = function(str, ...)
+       local args={...}
+       return str:gsub(
+           "@%d+",
+           function(match) return args[tonumber(match:sub(2))] end
+       )
+    end
+end
 
 -- Armor
 --

in minetest it crash with log, that the patch solves the problem for all versions of minetest

2021-10-19 18:45:03: ERROR[Main]: ModError: Failed to load and run script from /var/games/minetest-server/.minetest/games/venenux/mods/lavastuff/init.lua:
2021-10-19 18:45:03: ERROR[Main]: ...er/.minetest/games/venenux/mods/lavastuff/compat/mtg.lua:1: attempt to call field 'get_translator' (a nil value)
2021-10-19 18:45:03: ERROR[Main]: stack traceback:
2021-10-19 18:45:03: ERROR[Main]: 	...er/.minetest/games/venenux/mods/lavastuff/compat/mtg.lua:1: in main chunk
2021-10-19 18:45:03: ERROR[Main]: 	[C]: in function 'dofile'
2021-10-19 18:45:03: ERROR[Main]: 	...t-server/.minetest/games/venenux/mods/lavastuff/init.lua:425: in main chunk

Runtime error from mod

2020-11-08 15:39:58: ERROR[Main] ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback luaentity_Step(): /usr/share/games/minetest/mods/lavastuff/init.lua:61: attempt to index local 'digger' (a nil value) 
2020-11-08 15:39:58: ERROR[Main] stack traceback: 
2020-11-08 15:39:58: ERROR[Main]        /usr/share/games/minetest/mods/lavastuff/init.lua:61: in function 'handle_node_drops' 
2020-11-08 15:39:58: ERROR[Main]        /usr/share/games/minetest/builtin/game/item.lua:613: in function 'on_dig' 
2020-11-08 15:39:58: ERROR[Main]        /usr/share/games/minetest/builtin/game/falling.lua:248: in function 'try_place' 
2020-11-08 15:39:58: ERROR[Main]        /usr/share/games/minetest/builtin/game/falling.lua:358: in function </usr/share/games/minetest/builtin/game/falling.lua:273> 

ItemStack length not respected

When you dig a block from defaut:clay you get four pieces default:clay_lump
When cooking a clay lump you get a default:clay_brick

For now if you dig a default:clay with a lavastuff tool it gives you only 1 default:clay_brick (should be 4)

I assume the problem will be the same for any block dropping a stack with more than 1 item in.

Test

This is to check and see if a webhook is working

Update README.md

French (German? #2 ) language is missing in "Language Support" in the README.md

lavastuff/init.lua:113: attempt to index local 'def' (a nil value)

just happened
is version from d3a0da6/25.02.2022
but I didn't see solved issues this direction.

2023-02-10 21:01:58: ERROR[Main]:
ServerError: AsyncErr: Lua: Runtime error from mod 'lavastuff' in callback item_OnPlace(): ../mods/lavastuff/init.lua:113: attempt to index local 'def' (a nil value)
stack traceback:
../mods/lavastuff/init.lua:113: in function </home/thomas/minetest/bin/../mods/lavastuff/init.lua:106>

I even take new version and see your result in this one.

lava_pick hurts lava_flan

Not that I tried it before, but it seems that the lava pick does not heal the lava flans from the mobs_monster mod anymore.
At least not on pandorabox.io

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.