[mod] Hopper with hopper sorter [wip][hopper]

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

[mod] Hopper with hopper sorter [wip][hopper]

by burli » Fri Mar 17, 2017 13:20

This is a fork of the hopper mod from jordan4ibanez. I modified the original code. My hopper mod node timer instead of ABM and I reduced the code size.

I also add a new node: the sorter. He can sort up to 8 items out of a transport chain

Github: https://github.com/MarkuBu/Hoppers
Download: https://github.com/MarkuBu/Hoppers/archive/master.zip

Video: https://youtu.be/Qh0CUqHoZIM

I changed the range of the hopper. Now the hopper can be covered with a solid node
Hidden Hopper: https://youtu.be/s1dkRwZJUtg

The hopper below the chest pulls the items out of the chest. The sorter below the hopper gets the items and compares them with the items placed in the filter row. If they match the sorter moves them into the main inventory where it can pulled out by the hopper below. If the items don't match they will moved to the output inventory where they can be pulled by the next sorter. An empty filter means that all items get moved to the main inventory. Following hoppers won't get items

The sorter only work in one direction. Sorter have an input and an output (need to improve the nodebox or texture to visualize that). It is not possible to split the stream.

The feeding hopper can be placed on top or side of the first sorter

Image

Image

The top row of the inventory is for the filter. Just place one node or item into that row. These nodes will be moved in the sorter inventory and can be fetched by the hopper below and stored in the chest. Any other node/item will be moved to the next sorter. The last sorter should have no items in the filter

Image
Attachments
screenshot_20170319_215148.jpg
screenshot_20170319_215148.jpg (134.96 KiB) Viewed 4465 times
screenshot_20170319_214146.jpg
screenshot_20170319_214146.jpg (163.53 KiB) Viewed 4465 times
screenshot_20170319_213559.jpg
screenshot_20170319_213559.jpg (69.19 KiB) Viewed 4465 times
Last edited by burli on Tue Mar 21, 2017 07:21, edited 9 times in total.
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: How can I make a hopper chain and chests with item filte

by burli » Fri Mar 17, 2017 16:58

This is the idea of my storage system. You can drop everything you found in a single chest in your living room. A hopper moves all items in the sorter chain. Each sorter can sort out up to 8 items and place them in his own inventory. All other items will be moved to the next sorter.

The first sorter can filter fuel items like coal lump. They will be moved to the furnace. In the second sorter you can have items to melt or cook. The output of the furnace is moved to a second sorter chain where you can sort for ingots, cooked food and so on.

This system is simple, but that's what I want

This is my "test house"

Image
Attachments
screenshot_20170317_220710.jpg
screenshot_20170317_220710.jpg (223.53 KiB) Viewed 4465 times
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [mod] Hopper Sorter [wip]

by TenPlus1 » Sat Mar 18, 2017 07:56

Nice feature :)
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper Sorter [wip]

by burli » Sat Mar 18, 2017 10:26

TenPlus1 wrote:Nice feature :)

Thanks.

I add a video link to my first post with the sorter in action.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Hopper with hopper sorter [wip][hopper]

by azekill_DIABLO » Sat Mar 18, 2017 11:39

very useful!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Sat Mar 18, 2017 12:02

Add a download link to the first post. Feel free to test and report bugs. Still wip!!
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Sun Mar 19, 2017 21:15

Add some new infos, new screenshots and a new video link to the first post

I want to reduce the inventory size of the hopper and sorter because they are no storage. The inventory is only a buffer. I reduce the hopper inventory to 5 and the main and output inventory of the sorter to 3
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Mon Mar 20, 2017 10:50

Changed texture and nodebox model

Image
Attachments
screenshot_20170320_114909.jpg
screenshot_20170320_114909.jpg (122.22 KiB) Viewed 4465 times
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Hopper with hopper sorter [wip][hopper]

by azekill_DIABLO » Mon Mar 20, 2017 16:17

hey that cool!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Mon Mar 20, 2017 20:55

In this video I show a new update to the sorter. If the main stack is full, the sorter forwards the items to the output stack. So you can make for example a fuel loading chain.

The only disadvantage is, that you need a lot of fuel, but you can use everything as fuel you want, e.g. grass or leaves

https://youtu.be/2ZEOzUDPz1I
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Mon Mar 20, 2017 22:39

As a bonus I doubled the speed of the hopper and sorter. But they will be more expensive. Because they are some kind of machine they need energy, in this case from a Mese crystal.

I also think about a duct to move the items forward, a compressor to compress nine items into a block, a decompressor to decompress blocks on player request and a splitter to split a stream into two with a similar filter like the sorter.

Maybe I will copy the idea of the autocrafter from pipeworks, but in a slightly different form. Maybe I use this instead of the compressor to produce blocks (or the compressor is cheaper and/or faster than the autocrafter). With this autocrafter you can quickly build simple production machines (I think this is the same idea of pipeworks)

So it will be a little bit like pipeworks, but simpler and I think more efficient and specialized for storage (no fluid transport)
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Tue Mar 21, 2017 07:23

I pushed the current version to Github and add a direct download link to the first post
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Tue Mar 21, 2017 10:38

Maybe it's time to rename the mod because it becomes a completely different function than the original hopper mod. Any suggestions?

Maybe something like "Simpel Factory"
Last edited by burli on Tue Mar 21, 2017 10:56, edited 1 time in total.
 

User avatar
texmex
Member
 
Posts: 226
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [mod] Hopper with hopper sorter [wip][hopper]

by texmex » Tue Mar 21, 2017 10:55

Note that there's the newer hopper version by FaceDeer as well, with an API, chutes and so on. Check https://github.com/minetest-mods/hopper
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [mod] Hopper with hopper sorter [wip][hopper]

by TenPlus1 » Tue Mar 21, 2017 11:39

Heh, so far we have 4 hopper mods, jordan's original which I recoded and added an api, facedeer's recode which adds chutes and burli's which adds sorting tubes :)
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Tue Mar 21, 2017 12:45

Well, my original intention for this mod was to learn more about formspecs, inventories and a few other things. Didn't expect that it will become bigger. And I didn't know that there are other hopper mods. Just found jordan's original.

But you rewrite still uses ABM's. My version is completely rewritten at this point and uses node timers. And as I mentioned I want to add more functions, but I think about to split everything in into mods plus an common API, but I'm not sure

Planned items currently are: hopper, sorter, duct, compressor, crafter, maybe some kind of storage container, maybe some kind of dispenser and everything that might be useful for a storage system. I don't want to add some kind of liquid transport, automated mining or building
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [mod] Hopper with hopper sorter [wip][hopper]

by TenPlus1 » Tue Mar 21, 2017 13:01

My own hopper mod and Facedeer's uses a common api if you wanna somehow use that for compatibility :) also remember technic has an autocrafter which can be used to compress/craft/etc. if we add a main and output inventory for the hoppers to use :)
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Tue Mar 21, 2017 13:41

I'll take a look at your API, but because I have my own hopper it is not really necessary. I also think about compatibility to other mods, especially to mesecons. Connections to pipeworks and technic will be done by special nodes.

But the main goal of my mod is to be lightweight and to work stand alone
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Tue Mar 21, 2017 15:29

TenPlus1 wrote:My own hopper mod and Facedeer's uses a common api if you wanna somehow use that for compatibility :)

Well, maybe I will fork your hopper mod and rewrite it. But I have some different ideas that makes it more or less incompatible or at least useless to combine the mods. Maybe I just steel some ideas ;-). I have to think about that.

And maybe I rename my mod to "Hopper Factory"
 

FaceDeer
Member
 
Posts: 152
Joined: Sat Aug 29, 2015 19:01

Re: [mod] Hopper with hopper sorter [wip][hopper]

by FaceDeer » Mon Mar 27, 2017 01:02

I also went the node-timer route with my rewrite, so my version might have some code compatibility with yours.

I hope you don't mind, but I'm going to see if I can implement your sorters in my fork too. The joys of open source and all that. :) It seems like a good feature that'll greatly increase the versatility of these things.

I pulled an auto-crafting bench out of the Castle mod when I recently disintegrated it into a modpack, but the code looked a bit old and creaky so I don't know if you'll find it a useful starting point. here it is..
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Hopper with hopper sorter [wip][hopper]

by burli » Mon Mar 27, 2017 06:39

Feel free to implement the sorter. I think I'll pause this mod for another project. Maybe I contribute to your version if needed
 

FaceDeer
Member
 
Posts: 152
Joined: Sat Aug 29, 2015 19:01

Re: [mod] Hopper with hopper sorter [wip][hopper]

by FaceDeer » Tue Mar 28, 2017 07:00

Actually, I misremembered - my version still uses an ABM for the central item-transfer functionality. Looks like implementing your sorters in my fork will take a bit more work than I expected. Still taking a stab at it, though.

Edit: I've finished implementing a sorter in the minetest-mods hopper fork. I wound up reimplementing it from the ground up to take advantage of some of the other utility code I'd written earlier, so it behaves a bit differently from your version. Hope it's useful!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 51 guests

cron