Page 1 of 1

[Mod] Caches [caches]

PostPosted: Wed Apr 13, 2016 15:27
by mtango688
Description: This mod adds containers for Technic that store a single type of item in large amounts. The containers are simple, portable, and upgradeable.

License: WTFPL

Mod dependencies: Default, Technic, Pipeworks, and Moreores

Also requires the latest dev version of Minetest (or Minetest 0.4.14).

Image

Now available on github for your forking pleasure:

https://github.com/mtango688/caches/archive/master.zip

Re: [Mod] Caches [caches]

PostPosted: Wed Apr 13, 2016 16:07
by cd2
wow, that looks cool :D
Could you upload your code to GitHub?

Re: [Mod] Caches [caches]

PostPosted: Thu Apr 14, 2016 11:13
by azekill_DIABLO
Nice Mod!!!

Re: [Mod] Caches [caches]

PostPosted: Thu Apr 14, 2016 13:03
by mtango688
Feel free to fork my code. It is all WTFPL, after all.

Re: [Mod] Caches [caches]

PostPosted: Thu Apr 14, 2016 20:12
by Krock
Why did I never have an idea like this? What a perfect idea to store my useless cobble stackwise in one single node!

Could you change the pipeworks and technic dependencies into optional? Not every server/client wants to enable those mods. But having a way to store a giant amount of material would make the life much easier.

I did a fast-fix for the pipeworks dependency because there's only one function called in the whole mod:
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
pipeworks.scan_for_tube_objects(pos)
-VVVV- Changed to -VVVV-
if pipeworks then
   pipeworks.scan_for_tube_objects(pos)
end

Re: [Mod] Caches [caches]

PostPosted: Fri Apr 15, 2016 01:07
by philipbenr
Awesome mod idea! Best thing is, I can use /giveme to put a bunch of nodes in one place and not worry about them not looking weird as the only thing in the "chest".

Re: [Mod] Caches [caches]

PostPosted: Fri Apr 15, 2016 12:08
by mtango688
If you mod this to get away from Pipeworks, you'll want to consider how to handle do_output() (since that calls Technic, which also calls Pipeworks). I mean, you'd pretty much want to remove/convert all the automation code.

Re: [Mod] Caches [caches]

PostPosted: Fri May 06, 2016 18:14
by Lejo
I always if I start the mod I get this 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-06 20:12:00: ERROR[main]: ========== ERROR FROM LUA ===========
2016-05-06 20:12:00: ERROR[main]: Failed to load and run script from
2016-05-06 20:12:00: ERROR[main]: /usr/share/games/minetest/mods/caches/init.lua:
2016-05-06 20:12:00: ERROR[main]: /usr/share/games/minetest/mods/caches/init.lua:447: attempt to call field 'register_lbm' (a nil value)
2016-05-06 20:12:00: ERROR[main]: stack traceback:
2016-05-06 20:12:00: ERROR[main]:    /usr/share/games/minetest/mods/caches/init.lua:447: in main chunk
2016-05-06 20:12:00: ERROR[main]: ======= END OF ERROR FROM LUA ========
2016-05-06 20:12:00: ERROR[main]: Server: Failed to load and run /usr/share/games/minetest/mods/caches/init.lua
2016-05-06 20:12:00: ERROR[main]: ModError: ModError: Failed to load and run /usr/share/games/minetest/mods/caches/init.lua
2016-05-06 20:12:00: ERROR[main]: Error from Lua:
2016-05-06 20:12:00: ERROR[main]: /usr/share/games/minetest/mods/caches/init.lua:447: attempt to call field 'register_lbm' (a nil value)
2016-05-06 20:12:00: ERROR[main]: stack traceback:
2016-05-06 20:12:00: ERROR[main]:    /usr/share/games/minetest/mods/caches/init.lua:447: in main chunk
2016-05-06 20:12:00: ERROR[main]: Siehe debug.txt für Details.

I hope you can fix it.

Thanks.

Re: [Mod] Caches [caches]

PostPosted: Fri May 06, 2016 18:24
by Krock
Lejo wrote:I hope you can fix it.

YOU can fix it by using an indev build. The version you use does not have the required features that were used in this mod. Look in the Builds sub-forum for a newer build. If you don't want to update, wait one or two weeks, then you will be able to download 0.4.14-stable from the website.

Re: [Mod] Caches [caches]

PostPosted: Fri May 20, 2016 16:06
by Lejo
Nice Mod I like it really.

Re: [Mod] Caches [caches]

PostPosted: Sat Oct 01, 2016 15:13
by Lejo
If I use a cache in a area on a server I always get a message that I not the owner of the cache.
This is only if you don't have the area privilege and if the cache is in a area.