Page 1 of 1

[Mod] Circular saw in inventory [invsaw][git]

PostPosted: Tue May 24, 2016 20:02
by cheapie
Image

Description:
This mod adds a button in unified_inventory that opens a formspec that works exactly like the moreblocks circular saw. It requires that either the server is in creative mode, you have the "creative" priv, or you have one or more circular saws (moreblocks:circular_saw) in your inventory.

License:
Contains large amounts of code based on Calinou's moreblocks mod, and a texture based on some textures from the same mod.
Code - zlib
Textures - CC BY-SA 3.0 Unported

Dependencies: moreblocks,unified_inventory

Download: ZIP or Git

Re: [Mod] Circular saw in inventory [invsaw][git]

PostPosted: Wed May 25, 2016 14:02
by azekill_DIABLO
+1

Re: [Mod] Circular saw in inventory [invsaw][git]

PostPosted: Sat May 28, 2016 13:19
by Gundul
Cool mod and my players like it, too.


This morning I got the following error

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-05-28 08:53:04: WARNING[Server]: Undeclared global variable "pos" accessed at /home/mars/.minetest/mods/invsaw/init.lua:139
2016-05-28 08:53:05: WARNING[Main]: [xban] Unable to save database: Write failed
2016-05-28 08:53:05: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2016-05-28 08:53:05: ERROR[Main]: ServerError: Lua: Runtime error from mod '??' in callback detached_inventory_OnTake(): Invalid position (expected table got nil).
2016-05-28 08:53:05: ERROR[Main]: stack traceback:
2016-05-28 08:53:05: ERROR[Main]:    [C]: in function 'get_meta'
2016-05-28 08:53:05: ERROR[Main]:    /home/mars/.minetest/mods/moreblocks/circular_saw.lua:119: in function 'reset'
2016-05-28 08:53:05: ERROR[Main]:    /home/mars/.minetest/mods/invsaw/init.lua:139: in function </home/mars/.minetest/mods/invsaw/init.lua:129>



Any idea what could that be. It happened in the middle of the game. (running minetest 0.4.14 stable)

Re: [Mod] Circular saw in inventory [invsaw][git]

PostPosted: Sat May 28, 2016 13:26
by cheapie
Gundul wrote:Cool mod and my players like it, too.


This morning I got the following error

Any idea what could that be. It happened in the middle of the game. (running minetest 0.4.14 stable)


I think I see what's causing that. I think it should be fixed now (download links will automatically update). Go ahead and redownload, and it should work properly now.

Re: [Mod] Circular saw in inventory [invsaw][git]

PostPosted: Wed Jun 01, 2016 22:12
by wilkgr76
+googolplex²