[Mod] Inventory Plus [20120917.1] [inventory_plus]
[Mod] Inventory Plus [20120917.1] [inventory_plus]
[mod] Inventory Plus [unknown version] [inventory_plus]
This is a simple plugin, which adds the ability for other plugins to add buttons for other menu pages to the player formspec. The original design is by Cornernote, but I'm maintaining it now.
New features include a more user friendly interface for players (the crafting grid displays at the same time as the buttons) and a removal of redundancy created in the creative inventory page in Minetest 0.4.4.
Copyright (C) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
Code license: GPLv3
Image license: No images included.
Dependencies: none
Latest version: https://github.com/0gb-us/inventory_plus
This is a simple plugin, which adds the ability for other plugins to add buttons for other menu pages to the player formspec. The original design is by Cornernote, but I'm maintaining it now.
New features include a more user friendly interface for players (the crafting grid displays at the same time as the buttons) and a removal of redundancy created in the creative inventory page in Minetest 0.4.4.
Copyright (C) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
Code license: GPLv3
Image license: No images included.
Dependencies: none
Latest version: https://github.com/0gb-us/inventory_plus
Last edited by 0gb.us on Sat Mar 23, 2013 02:15, edited 1 time in total.
Folks,could you please take a look at the following bug:
Bug occures when player try to login to the server. Minetest 0.4.4
11:18:39: ACTION[ServerThread]: zZz joins game. List of players: zZz
11:18:39: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...est/world_minetest/worldmods/inventory_plus/init.lua:72: bad argument #1 to 'pairs' (table expected, got nil)
11:18:39: ERROR[main]: stack traceback:
In thread b7391700:
/build/buildd/minetestc55-0.4.4/src/main.cpp int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b7391700:
#0 int main(int, char**)
(Leftover data: #1 Dedicated server branch)
(Leftover data: #2 virtual void ServerMap::save(ModifiedState))
(Leftover data: #3 void ServerMap::saveMapMeta())
Aborted
Bug occures when player try to login to the server. Minetest 0.4.4
11:18:39: ACTION[ServerThread]: zZz joins game. List of players: zZz
11:18:39: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...est/world_minetest/worldmods/inventory_plus/init.lua:72: bad argument #1 to 'pairs' (table expected, got nil)
11:18:39: ERROR[main]: stack traceback:
In thread b7391700:
/build/buildd/minetestc55-0.4.4/src/main.cpp int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b7391700:
#0 int main(int, char**)
(Leftover data: #1 Dedicated server branch)
(Leftover data: #2 virtual void ServerMap::save(ModifiedState))
(Leftover data: #3 void ServerMap::saveMapMeta())
Aborted
It sounds strange, but error occures with only inventory_plus in worldmods.
~/mtest$ ls ./world_minetest/worldmods/
inventory_plus
07:57:15: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...est/world_minetest/worldmods/inventory_plus/init.lua:72: bad argument #1 to 'pairs' (table expected, got nil)
07:57:15: ERROR[main]: stack traceback:
In thread b731f700:
/build/buildd/minetestc55-0.4.4/src/main.cpp int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b731f700:
#0 int main(int, char**)
(Leftover data: #1 Dedicated server branch)
(Leftover data: #2 virtual void ServerMap::save(ModifiedState))
(Leftover data: #3 void ServerMap::saveMapMeta())
Line #72 from init.lua:
Is it possible that at the moment of getting player name, core (minetest) doesn't know it?
UPD#1: No, core know it :
----cut form modyfied init.lua-----
---- cut from output-----
So as for me we have non-initialyzed buttons list.
end this code is not executing:
---cut from init.lua start from line#21
~/mtest$ ls ./world_minetest/worldmods/
inventory_plus
07:57:15: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...est/world_minetest/worldmods/inventory_plus/init.lua:72: bad argument #1 to 'pairs' (table expected, got nil)
07:57:15: ERROR[main]: stack traceback:
In thread b731f700:
/build/buildd/minetestc55-0.4.4/src/main.cpp int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b731f700:
#0 int main(int, char**)
(Leftover data: #1 Dedicated server branch)
(Leftover data: #2 virtual void ServerMap::save(ModifiedState))
(Leftover data: #3 void ServerMap::saveMapMeta())
Line #72 from init.lua:
Code: Select all
for k,v in pairs(inventory_plus.buttons[player:get_player_name()]) do
UPD#1: No, core know it :
----cut form modyfied init.lua-----
Code: Select all
if page=="main" then
-- buttons
print('DBG. PlayerName: '..player:get_player_name())
print('DBG. buttons:'..inventory_plus.buttons[player:get_player_name()])
local x,y=0,0
for k,v in pairs(inventory_plus.buttons[player:get_player_name()]) do
Code: Select all
08:21:02: ACTION[ServerThread]: zZz joins game. List of players: zZz
DBG. PlayerName: zZz
DBG. PlayerName: zZz
08:21:03: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...est/world_minetest/worldmods/inventory_plus/init.lua:75: attempt to concatenate field '?' (a nil value)
end this code is not executing:
---cut from init.lua start from line#21
Code: Select all
-- register_button
inventory_plus.register_button = function(player,name,label)
local player_name = player:get_player_name()
print('ready to check if nil')
if inventory_plus.buttons[player_name] == nil then
inventory_plus.buttons[player_name] = {}
print('buttons nil checking at 27')
end
print('out of checking condition')
inventory_plus.buttons[player_name][name] = label
end
Last edited by foxinsky on Thu Dec 27, 2012 07:54, edited 1 time in total.
unified_inventory does not work with inventory_plus. also if you decide to keep unified_inventory delete the creative mod in the default folder.foxinsky wrote:Sure, sorry.
3dforniture
4seasons
conifers
craft_guide
desert_uses
exchange
farming
farming_plus
locked_sign
minetest-protect-master
moreblocks
moreflowers
moreores
peaceful_npc
plantlife-master
unified_inventory
Coding;
1X coding
3X debugging
12X tweaking to be just right
1X coding
3X debugging
12X tweaking to be just right
Yes, that's the issue.jojoa1997 wrote:unified_inventory does not work with inventory_plus.
unified_inventory is great, but it takes over the entire menu. No other menu-based plugins can be used with it. In truth, inventory_plus does the same thing, but it also provides an API for adding new menu pages.
That's an incompatibility between those plugins and creative. Those plugins SHOULD call inventory_plus.set_inventory_formspec() to set the formspec when the buttons are used, but it sounds like they are either calling player:set_inventory_formspec() directly or not setting the formspec at all, assuming it is already set. When creative mode is turned off, that works fine, but when creative mode s turned on, creative tries to hog the menu.jojoa1997 wrote:when i use a mod like specialties or armor when ever i press a button that has an action it always sends me back to the creative menu.
Report this in the specialties / armor topics, as I can't fix it on my end. Those plugins will need to be fixed themselves.
It's a tar.gz. A decent archiver will do the trick. On Windows (I assume you are using Windows), 7-zip is the best one around IMO.
http://7-zip.org/
http://7-zip.org/
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
By a "zipped folder", do you mean a .zip file? A .zip file is as much a file as anything else is.J-Block wrote:The file downloaded as a file, not a zipped folder. I tried to make a folder for it named "inventory_plus" but I don't know how to make an "init.lua". The mod should be in a zipped folder form in the fist place anyway.
Yeah, if you're not on an operating system that supports .tar.gz (Might I recommend Linux Mint or Ubuntu?), 7-zip will do the trick.Temperest wrote:It's a tar.gz. A decent archiver will do the trick. On Windows (I assume you are using Windows), 7-zip is the best one around IMO.
http://7-zip.org/
- nomohakon
- Member
- Posts: 219
- Joined: Fri Aug 10, 2012 16:34
- IRC: nomohakon
- In-game: nomohakon
- Location: VanessaE's servers
Ehm, i use 7-zip and i have to unpack it twice. First .gz, then .tar.0gb.us wrote:Yeah, if you're not on an operating system that supports .tar.gz (Might I recommend Linux Mint or Ubuntu?), 7-zip will do the trick.Temperest wrote:It's a tar.gz. A decent archiver will do the trick. On Windows (I assume you are using Windows), 7-zip is the best one around IMO.
http://7-zip.org/
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
On Linux, you're only a tar -xvzf file.tar.gz away.nomohakon wrote:Ehm, i use 7-zip and i have to unpack it twice. First .gz, then .tar.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
- Tedypig
- Member
- Posts: 286
- Joined: Tue Mar 05, 2013 12:33
- IRC: Piggybear87
- In-game: Piggybear
- Location: Largo, FL, USA
First, let me say nice work on the mod. My girlfriend and I love it.
HOWEVER! There is a small visual glitch and another small glitch.
The visual glitch is the "refill" box is scrambled (the word not the box).
The other one is, it does not look like the pics. It flashes at that and the goes almost normal.
Any help is appreciated. Thank you.
-Teddypig
HOWEVER! There is a small visual glitch and another small glitch.
The visual glitch is the "refill" box is scrambled (the word not the box).
The other one is, it does not look like the pics. It flashes at that and the goes almost normal.
Any help is appreciated. Thank you.
-Teddypig
01010100 01100101 01100100 01111001 01110000 01101001 01100111
The refill box glitch is caused by using the wrong version of inventory_plus. Use version 20120917.1, not version 20120917.0, and it should be fixed.Tedypig wrote:First, let me say nice work on the mod. My girlfriend and I love it.
HOWEVER! There is a small visual glitch and another small glitch.
The visual glitch is the "refill" box is scrambled (the word not the box).
The other one is, it does not look like the pics. It flashes at that and the goes almost normal.
Any help is appreciated. Thank you.
-Teddypig
What pictures? I didn't include pictures.
Does the flashing only happen in creative mode? If yes, it's not something I can fix. The creative mode menu fights to take control, then inventory_plus takes over. The slight delay between the two causes the flash you see.
You can extract the archive using any decent archiver. A good example is 7-zip.
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The download is 404-ing.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Recently, it looks like 0gb.us had a hard disk failure.Traxie21 wrote:The download is 404-ing.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
Who is online
Users browsing this forum: No registered users and 90 guests