Page 1 of 1

[Mod] Poison Mod [0.1] [poison]

PostPosted: Sun Apr 08, 2012 22:42
by lkjoel
I keep on making respawning holes, but as I cannot fly on c55's server, it's much harder to make them.
Anyways, I decided to make a mod to kill you easily.
To make poison, smelt some mossy cobblestone:
Image
To make a poisonous apple, put an apple beside poison:
Image
Use a poisonous apple like any apple, but just remember that you will instantly die (-50HP, and you have 20HP)
You can get this mod here: https://github.com/lkjoel/minetest-mods

License: WTFPL

PostPosted: Sun Apr 08, 2012 22:43
by Death Dealer
cool im tring it now

PostPosted: Sun Apr 08, 2012 22:43
by lkjoel
I needed some practice with mods to make the generation code for my mod creator :)

PostPosted: Sun Apr 08, 2012 22:44
by Death Dealer
oh thats so cool i cant wait till its done man:D great job.

PostPosted: Tue Apr 08, 2014 11:42
by JPRuehmann
I´d like try it out, but get the following error.

23:01:44: ERROR[main]: ========== ERROR FROM LUA ===========
23:01:44: ERROR[main]: Failed to load and run script from
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: attempt to index global 'default' (a nil value)
23:01:44: ERROR[main]: stack traceback:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: in main chunk
23:01:44: ERROR[main]: ======= END OF ERROR FROM LUA ========
23:01:44: ERROR[main]: Server: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua
23:01:44: ERROR[main]: ModError: ModError: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua

love to see it fixed.
thanks,
JPR

PostPosted: Tue Apr 08, 2014 12:14
by Evergreen
JPRuehmann wrote:I´d like try it out, but get the following error.

23:01:44: ERROR[main]: ========== ERROR FROM LUA ===========
23:01:44: ERROR[main]: Failed to load and run script from
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: attempt to index global 'default' (a nil value)
23:01:44: ERROR[main]: stack traceback:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: in main chunk
23:01:44: ERROR[main]: ======= END OF ERROR FROM LUA ========
23:01:44: ERROR[main]: Server: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua
23:01:44: ERROR[main]: ModError: ModError: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua

love to see it fixed.
thanks,
JPR
Do you even look at the date mods are posted? It's good to post bugs, just don't expect an answer.

PostPosted: Tue Apr 08, 2014 12:19
by Amaz
JPRuehmann wrote:I´d like try it out, but get the following error.

23:01:44: ERROR[main]: ========== ERROR FROM LUA ===========
23:01:44: ERROR[main]: Failed to load and run script from
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: attempt to index global 'default' (a nil value)
23:01:44: ERROR[main]: stack traceback:
23:01:44: ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: in main chunk
23:01:44: ERROR[main]: ======= END OF ERROR FROM LUA ========
23:01:44: ERROR[main]: Server: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua
23:01:44: ERROR[main]: ModError: ModError: Failed to load and run /home/ruehmann/.minetest/mods/poison/init.lua

love to see it fixed.
thanks,
JPR

In the mod directory (of posion), create a file called depends.txt open it up, and type default
Save the file, and it should work.
And do the same for all mods when they give this error message
ERROR[main]: /home/ruehmann/.minetest/mods/poison/init.lua:36: attempt to index global 'default' (a nil value)
Adding the thing before (a nil value) to depends.txt without the ' ' And if it doesn't look like the name of a mod, (for example if it has "sound" in it) then just try putting default in.

PostPosted: Tue Apr 08, 2014 16:50
by Krock
JPRuehmann wrote:23:01:44: ERROR[main]: ========== ERROR FROM LUA

Go better to bed instead of digging around in dead topics.

PostPosted: Thu Apr 10, 2014 11:46
by JPRuehmann
Hello
@Amaz thanks that helped and now I know what this error means too. Great.

@Krock you are right, but this is not my Style.
This Night was another without sleep in order to make MineTest work as I will.

Thanks,
JPR