Page 1 of 1

[Mod] Creative Inventory [0.3] [creative_inventory]

PostPosted: Tue Jul 03, 2012 00:31
by ashenk69
This mod is for anyone who wants to find the blocks from the mods that they have downloaded in one spot. The Creative Inventory mod adds a new chest to the game that acts as the inventory for every registered item in the game. This way creators can easily go in choose their blocks they want to build with and start building with them. The inventory is bigger on the chest so you can view a lot more blocks. To view the different pages of the chest you have to move an item inside the chest to one of the two empty spots in the middle. The one on the right is "next" and the one on the left is "previous". You can't make a mistake with going to far because I have put checks in for that type of thing. All items in the chest are sorted alphabetically so typically items that are specific to a mod are grouped with similar items, but that isn't always the case. The chest is only added into your inventory automatically if creative mode is turned on so normal mode is kept separate.

Requires latest build of Minetest

Image
Image

0.1: http://dl.dropbox.com/u/71911483/creative_inventory0.1.zip

0.2: http://dl.dropbox.com/u/71911483/creative_inventory0.2.zip
ChangeLog:
  • Now mod can be used on a multiplayer server
  • Fixed issue where some items were deleted when navigating the inventory

0.3: http://dl.dropbox.com/u/71911483/creative_inventory0.3.zip
ChangeLog:
  • Added persistence to values
  • Added mod-specific definition

Future Updates:
  • Create an easier system to navigate the inventory (halted until buttons implemented into inventory)
  • Add system in single player to show the player the recipe for a certain item but don't allow transfer of inventory

PostPosted: Tue Jul 03, 2012 00:43
by lkjoel
I want this mod on EACH SERVER!!! And I WANT TO HAVE FULL CONTROL :P
Oh yeah, +10!

PostPosted: Tue Jul 03, 2012 02:36
by sdzen
:):):):):):):):):):):):):):):):) Oh How I have Waited for such a wonder +∞

PostPosted: Tue Jul 03, 2012 05:50
by Stef
wow man i have waited long for this!!!!
Thanks youre awsome

Edit: Can you make a next page button because i use around 50 mods en I can't see all the furnage of it. Maybe something like TooManyItems?

PostPosted: Tue Jul 03, 2012 13:19
by sdzen
there aready is didnt you read? those two squares insert something there the page turns

PostPosted: Tue Jul 03, 2012 13:30
by sfan5
Nice!

PostPosted: Tue Jul 03, 2012 13:58
by RandomBot
btw that texture pack feels like im in a kids cartoon o.o

PostPosted: Tue Jul 03, 2012 13:58
by Topywo
Stef wrote:Edit: Can you make a next page button because i use around 50 mods en I can't see all the furnage of it. Maybe something like TooManyItems?


Just put the image above one of the two empty squares, one square down, into that space.

Am I correct that 3d-mods, Vanessa's home mod (3d torch), bobblocks (dependend on mesecons) and Jeija's mesecons generate a init.lua error line 92 and after a retry a serilization error (2 types, 1 described here http://minetest.net/forum/viewtopic.php?id=2061 , another 1 'something with' nodebox)

PostPosted: Tue Jul 03, 2012 14:17
by VanessaE
I LOVE this idea, however when I installed it, the chest shows up as being empty, save for one row of "unknown" items.

Using 0.4, latest git.

PostPosted: Tue Jul 03, 2012 14:27
by ashenk69
sdzen wrote:there aready is didnt you read? those two squares insert something there the page turns

Yeah if you move an inventory item from the chest into one of the two slots in the middle will change the page in the chest inventory.

VanessaE wrote:I LOVE this idea, however when I installed it, the chest shows up as being empty, save for one row of "unknown" items.

Using 0.4, latest git.

It might be that the mods you have installed are being run after this one. That would cause the items to be registered afterwards so their wouldn't be any items to be displayed. I'll try to figure out how to define it to be the last mod to be run or change the event that it starts up.

PostPosted: Tue Jul 03, 2012 14:35
by ashenk69
Stef wrote:wow man i have waited long for this!!!!
Thanks youre awsome

Edit: Can you make a next page button because i use around 50 mods en I can't see all the furnage of it. Maybe something like TooManyItems?

I wanted to add inventory buttons so it would be intuitive but those haven't been implemented into the engine yet. Once they are, I will put them in. Actually I wanted to put this system straight into the player's inventory but you can't customize the player's inventory unless you modify the engine code. Hopefully in the future, inventory modification can be added for modding.

PostPosted: Tue Jul 03, 2012 19:11
by TheLoLMan
GOOD PLEASE CONVERT minetest-0.4.dev-20120122-1-win32

PostPosted: Tue Jul 03, 2012 21:13
by Calinou
TheLoLMan wrote:GOOD PLEASE CONVERT minetest-0.4.dev-20120122-1-win32


This is impossible - this mod requires the latest 0.4 version.

PostPosted: Wed Jul 04, 2012 00:15
by ashenk69
Calinou wrote:
TheLoLMan wrote:GOOD PLEASE CONVERT minetest-0.4.dev-20120122-1-win32


This is impossible - this mod requires the latest 0.4 version.


Forgot to mention that. Just added it to the post.

PostPosted: Wed Jul 04, 2012 00:18
by ashenk69
Topywo wrote:Just put the image above one of the two empty squares, one square down, into that space.

Am I correct that 3d-mods, Vanessa's home mod (3d torch), bobblocks (dependend on mesecons) and Jeija's mesecons generate a init.lua error line 92 and after a retry a serilization error (2 types, 1 described here http://minetest.net/forum/viewtopic.php?id=2061 , another 1 'something with' nodebox)


I think I fixed the error on line 92. I hadn't tested it for a multiplayer server before but I have it working my machine on a server.

PostPosted: Wed Jul 04, 2012 03:15
by Josh
Great job ashenk69 this is very clever if this was added into the offical game we could have every single thing in minetest we want it in creative mode! How exactly did you make this mod it's very intresting did you need to modify the inventory at all?

PostPosted: Wed Jul 04, 2012 04:08
by ashenk69
Josh wrote:Great job ashenk69 this is very clever if this was added into the offical game we could have every single thing in minetest we want it in creative mode! How exactly did you make this mod it's very intresting did you need to modify the inventory at all?

Well you can't modify the player's inventory unfortunately so I decided to modify the code for a chest and make it work for my needs. I accessed the items through the registered items table that is created by the engine. From that I sorted it alphabetically and since every item is usually prefixed by the mod's name it also sorts them automatically by mod. To add the items themselves to the chest you just need the name of the item you want to add and the index to add it at. That is about it. The only other thing was modifying the inventory to be larger and to use two of the slots for menu navigation because buttons haven't been implemented yet.

PostPosted: Mon Jul 09, 2012 03:44
by ashenk69
I just updated the mod to fix some little issues like multiplayer and deleting items. I hope to make the mod even better with recipe viewing and later buttons for easier use.

PostPosted: Thu Jul 12, 2012 16:10
by Stef
should it be possible to make a creative inventory for one mod like stairsplus because i have now stairsplus with KBLOCKS, WOOL, MOREBLOCKS textures

PostPosted: Thu Jul 12, 2012 17:55
by ashenk69
Stef wrote:should it be possible to make a creative inventory for one mod like stairsplus because i have now stairsplus with KBLOCKS, WOOL, MOREBLOCKS textures


It would be possible and quite cool. I think I could get it to work by having the user specify which mod they want to access by inputing a string somewhere. I could do it with a sign since there hasn't been text fields implemented into the inventory yet. Then I would just check either in front or on top of the chest and see if there is a sign and get its text field and from there exclude every object except for what objects are prefixed by that mod.

Might have been too much of an explanation but I think it is possible.

PostPosted: Sat Jul 14, 2012 20:52
by ashenk69
I just updated the mod to include mod specific definition where now if you place a sign or locked sign near the chest it will define what mod it should pull the items from. I don't have a check to keep the chest from going past the last page so I will be working on that.

PostPosted: Sat Jul 14, 2012 22:45
by confused&tired
So this mod only works on v0.4?

PostPosted: Sun Jul 15, 2012 00:11
by VanessaE
All mods work only on 0.4, and some require very recent builds of that series as well (owing to features being added or fixed over time). 0.3 cannot run mods (but it can use texture packs if they're designed for that version).

PostPosted: Sun Jul 15, 2012 04:21
by cornernote
Hi,

This mod is awesome, and allowed me to make my mod!

One thing I noticed. When I goto NEXT/PREV pages, it removed the item from the top inventory and leaves it in the NExT/PREV slot. I fixed this in mine by not calling minetest.node_metadata_inventory_move_allow_all when the to_list was next or previous.

I think you have some new features that I need now. Individual list for players, and sign persistence.

Thanks again!


Oh, one last thing..

Add system in single player to show the player the recipe for a certain item but don't allow transfer of inventory


Would you like to take over my mod. I don't think I will have heaps of time to dev, the main reason I built it was to save myself looking up websites for recipes.

PostPosted: Mon Jul 16, 2012 01:34
by ashenk69
@cornernote
I'll try your fix out. It makes sense once I think about doing it that way.

I would be very glad to combine the power of our two mods. It's funny cause I had actually already kind of implemented your code into mine just to see what it was like and it was awesome. If I take yours over I will still include credit of crafting to you since you did invent the way to store recipes.

PostPosted: Wed Jul 25, 2012 17:22
by PilzAdam
I realy think this mod is useless when i see the latest changes on git.

PostPosted: Wed Jul 25, 2012 18:59
by Temperest
Yes, it seems to have been merged into minetest_game!

PostPosted: Wed Jul 25, 2012 23:53
by celeron55
It's not merged; the thing I added is a different thing. But it is used for somewhat similar purposes.

PostPosted: Wed Aug 01, 2012 23:33
by cae2000
while i was using this i saw something called "air (you hacker you)" :D

PostPosted: Thu Mar 28, 2013 16:53
by sfan5-bot
[EE] No License found


Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5