[MOD 0.16] Miniloader

Topics and discussion about specific mods
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

[MOD 0.16] Miniloader

Post by Therax »

Type: Mod
Name: Miniloader
Description: UPS-friendly 1x1 train-compatible loaders with support for Bob's faster belts.
License: LGPL 3.0 (https://choosealicense.com/licenses/lgpl-3.0/)
Version: 1.6.5
Release: 2018-10-22
Tested-With-Factorio-Version: 0.16.51
Category: Item
Tags: Logistics, Trains, Loaders
Download-Url: https://mods.factorio.com/mods/therax/m ... /downloads
Website: https://github.com/mspielberg/factorio-miniloader
Long description
Balancing
How it works
Filtering
Known Issues
Ultimate Belts Caveats and Warnings
Acknowledgements
Last edited by Therax on Wed Oct 31, 2018 9:48 pm, edited 40 times in total.
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
thegroundbelowme
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Nov 26, 2017 4:03 am
Contact:

Re: [MOD 0.15] Miniloader

Post by thegroundbelowme »

I love this mod!

However, I only saw the note about instant deconstruction leaving behind invisible entities after I'd already done that - now I have a bunch of flashing "no power" icons floating around my base, preventing me from building anything else in their locations. Is there a console command we can use to delete them? Even if it breaks working miniloaders, that's fine - I can always replace those.

Also, I'd really love the ability to enable/disable miniloaders via the circuit network. They'd be perfect for loading and unloading my trains, but I'm using LTN, and all of my stations have circuit-controlled inserters for precise request amounts.
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Therax »

thegroundbelowme wrote:I love this mod!

However, I only saw the note about instant deconstruction leaving behind invisible entities after I'd already done that - now I have a bunch of flashing "no power" icons floating around my base, preventing me from building anything else in their locations. Is there a console command we can use to delete them? Even if it breaks working miniloaders, that's fine - I can always replace those.
Glad you're enjoying it!

You should be able to remove the inserters with the following:

Code: Select all

/c for _, type in ipairs{"miniloader-inserter", "fast-miniloader-inserter", "express-miniloader-inserter"} do for _, inserter in ipairs(game.surfaces.nauvis.find_entities_filtered{name=type}) do inserter.destroy() end end
thegroundbelowme wrote:Also, I'd really love the ability to enable/disable miniloaders via the circuit network. They'd be perfect for loading and unloading my trains, but I'm using LTN, and all of my stations have circuit-controlled inserters for precise request amounts.
I'll look into it. Circuit integration for new entities is unexplored ground for me.

For now I'd suggest using circuit control on the belts just before the miniloaders. It will only be approximate, so I hope that's sufficient?
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
orzelek
Smart Inserter
Smart Inserter
Posts: 3922
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.15] Miniloader

Post by orzelek »

Do I need to do something special to make it load train?
I placed it next to cargo car on automated train but nothing goes into cargo wagon.
It has power and one next to it that loads chest works without problem.

Edit:
I figured it out. It won't do chest to train, it needs chest, loader, belt, loader, train to work.
Additional question - any idea why game lists energy consumption for standard speed one at 4.8MW ?
It shows actual consumption of about 100kW on my 6 (3 working I think).
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Therax »

orzelek wrote:I figured it out. It won't do chest to train, it needs chest, loader, belt, loader, train to work.
Additional question - any idea why game lists energy consumption for standard speed one at 4.8MW ?
It shows actual consumption of about 100kW on my 6 (3 working I think).
Yes, it is a loader, and goes container to belt, or belt to container. It's possible to do belt to belt due to some weirdness in the implementation, but not container to container.

Energy usage of inserters is calculated by the Factorio engine based on theoretical maximum consumption based on the inserter's movement speed. In practice true consumption is limited by throughput, which is limited in this case by belt speed and Factorio's 60 Hz update rate. If you had a belt of infinite speed and could move multiple stacks per tick, these inserters would indeed consume 4.8 MW.

In the next version I'll be making the speed of the inserters match the speed of the belt, instead of having them all be super fast no matter the belt speed. So the energy consumption estimate should be more accurate.
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
Oaquasis
Burner Inserter
Burner Inserter
Posts: 11
Joined: Thu Jan 04, 2018 2:02 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Oaquasis »

Hi, therax

I really love your mod, thanks for making it.
I'm using it everywhere, but there is something weird going on when i use them on stacking trainstations:

Image

These chests are "normal" steel chests, but "melted" together by the MergeChests mod.
The miniloader seems to have some sort of underground belt component (they can actually be used as underground belts apparently).
So the iron plates in the example image from the top-station are loaded into the bottom-train.
This only happens when there is no train in the top-station, if there is the top-train will be filled.

Is there a way to disable this underground belt behaviour?

On a minor note, the miniloader seems to graphically disappear in the background, when you use them vertically, like in the screenshot.
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Therax »

Oaquasis wrote:The miniloader seems to have some sort of underground belt component (they can actually be used as underground belts apparently).
So the iron plates in the example image from the top-station are loaded into the bottom-train.
This only happens when there is no train in the top-station, if there is the top-train will be filled.

Is there a way to disable this underground belt behaviour?
Miniloaders do use an underground belt component; this is how they connect properly to belts. However, they are set to a maximum distance of 0, so they aren't supposed to be able to connect to each other, and in my testing they cannont.

Are you using any other mods that adjust underground belt distance? Those mods may be unintentionally affecting miniloaders by indiscriminately changing belt distance for all underground belt entities. Depending on how that other mod is structured I might be able to work around the issue.
Oaquasis wrote:On a minor note, the miniloader seems to graphically disappear in the background, when you use them vertically, like in the screenshot.
The miniloader graphics stick out of the 32x32 bounding box for tiles quite a bit, and so can clip into adjacent entities. I've been working on changing the graphics to minimize this effect with limited success so far, but it should be improved in the next version.
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
Oaquasis
Burner Inserter
Burner Inserter
Posts: 11
Joined: Thu Jan 04, 2018 2:02 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Oaquasis »

Ah omg, thanks for the fast response.
We are using the "Longer Underground Belt (Aligned)" mod.
That's the "culprit" apparently, when disabled the problem is solved.

Thanks again.
Asanda_Nima
Inserter
Inserter
Posts: 46
Joined: Thu Aug 17, 2017 8:34 am
Contact:

Re: [MOD 0.15] Miniloader

Post by Asanda_Nima »

Hi,

I recently tried out your miniloader, and I like the idea of them needing power and also being harder to get. I think the loader redux is a little overpowered in this regard.
But I have question, do you plan to add a filter function? Or maybe separated miniloader with filter function and different recipe? I kind of miss this aspect compared to the loader redux mod :(
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Therax »

Asanda_Nima wrote:I recently tried out your miniloader, and I like the idea of them needing power and also being harder to get. I think the loader redux is a little overpowered in this regard.
But I have question, do you plan to add a filter function? Or maybe separated miniloader with filter function and different recipe? I kind of miss this aspect compared to the loader redux mod :(
I'm currently working on filters and direct circuit control, which should make miniloaders strictly more flexible than vanilla / Loader Redux loaders. Getting the scripting and graphics to work properly is quite tricky though, since I'm being very careful to minimize the UPS impact. Coming soon!
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
orzelek
Smart Inserter
Smart Inserter
Posts: 3922
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.15] Miniloader

Post by orzelek »

Therax wrote:
Asanda_Nima wrote:I recently tried out your miniloader, and I like the idea of them needing power and also being harder to get. I think the loader redux is a little overpowered in this regard.
But I have question, do you plan to add a filter function? Or maybe separated miniloader with filter function and different recipe? I kind of miss this aspect compared to the loader redux mod :(
I'm currently working on filters and direct circuit control, which should make miniloaders strictly more flexible than vanilla / Loader Redux loaders. Getting the scripting and graphics to work properly is quite tricky though, since I'm being very careful to minimize the UPS impact. Coming soon!
Can you make the scripting stuff optional in some way?
Or leave current ones like they are and make second version that will have filtering and circuit and it will use scripts?
(Unless you can do a bit of magic with hidden entities and you won't need to have per tick processing at all :) )
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by Therax »

Can you make the scripting stuff optional in some way?
Or leave current ones like they are and make second version that will have filtering and circuit and it will use scripts?
(Unless you can do a bit of magic with hidden entities and you won't need to have per tick processing at all :) )
Currently I need per-tick processing only while the player is holding a circuit wire over an entity. No per-tick processing after circuits etc are configured. If there were events for circuit connectivity changes that wouldn't be necessary, but requests for that functionality haven't gotten any dev attention yet.
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
cvkurt
Inserter
Inserter
Posts: 30
Joined: Tue Jan 31, 2017 2:45 pm
Contact:

Re: [MOD 0.15] Miniloader

Post by cvkurt »

Love miniloaders... use them with warehouses to make train loading/unloading stations. :D

Just started a FactorioExtended game... would be nice if miniloaders support FactorioExtended belts (much like Bob's belts).
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by Therax »

Major new revision 1.4.0 now available through the mod portal and in-game browser.

Miniloaders now support filters and can be controlled via circuit network. Filters need to be enabled via options at startup. If you enable filters, then like filter inserters, miniloaders will not move any items until filters are configured.

This version required a considerable redesign and rewrite, so I expect there are probably bugs. If you need to, version 1.3.0 is still available for manual download through the mod portal.

I appreciate your thoughts and bug reports. Happy factory building!
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
staviq
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Jun 29, 2016 1:22 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by staviq »

It kind of sort of creates a small case of a huge mess by spilling everything on the whole length of the connected belts on the ground.

Edit:

Image

EDIT 2:

Quick workaround, downgrade mod do 1.3, mark each segment fo the connecting belt for deconstruction ( do not deconstruct, just mark it so it stops moving ), save, update mod, load game, cancel deconstruction mark.
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by Therax »

staviq wrote:It kind of sort of creates a small case of a huge mess by spilling everything on the whole length of the connected belts on the ground.
Wow, that's certainly unexpected. At first glance I'm at a loss to explain how that big a mess could happen during the upgrade. Could you send me a save game and a mod list so I can investigate more closely?
Miniloader β€” UPS-friendly 1x1 loaders
Bulk Rail Loaders β€” Rapid train loading and unloading
Beltlayer & Pipelayer β€” Route items and fluids freely underground
staviq
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Jun 29, 2016 1:22 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by staviq »

Therax wrote:
staviq wrote:It kind of sort of creates a small case of a huge mess by spilling everything on the whole length of the connected belts on the ground.
Wow, that's certainly unexpected. At first glance I'm at a loss to explain how that big a mess could happen during the upgrade. Could you send me a save game and a mod list so I can investigate more closely?
0_bewbs16_e7.zip
(44.83 MiB) Downloaded 441 times
mod-settings.json
(33.96 KiB) Downloaded 341 times
mod-list.json
(9.75 KiB) Downloaded 305 times
Sunnova
Fast Inserter
Fast Inserter
Posts: 169
Joined: Mon May 16, 2016 12:10 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by Sunnova »

Filters are a great idea, but either filtered or not??
Any chance you will make a version that makes two of each miniloader? The existing non filtered miniloader so bases won't break, and put in new entities for the filtered versions so they can start being used without braking an existing game?

Edit:

I went ahead and made me a version that allows both the normal miniloaders and filtered miniloaders, well worth doing.
I just used the same graphics for both versions, name difference is enough, don't care that the two types look the same.

Hope you make a version that has both types, then I can drop my temp version, I can phase out loaderRedux now.

Thanks for the great mod!
Sunnova
Fast Inserter
Fast Inserter
Posts: 169
Joined: Mon May 16, 2016 12:10 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by Sunnova »

Having the same thing happen, I'm using the mod CollectDroppedItemsHotkey to clean up, still have to run around and clear unwanted items from belts that are contaminating belt feeds into entities.
staviq wrote:It kind of sort of creates a small case of a huge mess by spilling everything on the whole length of the connected belts on the ground.
nuhll
Filter Inserter
Filter Inserter
Posts: 937
Joined: Mon Apr 04, 2016 9:48 pm
Contact:

Re: [MOD 0.16] Miniloader

Post by nuhll »

Does it still have bugs or can i safely install it? Im really looking for a loader with filter abilitys. Does it also insert wrong material in trains like real filter inserters?
Post Reply

Return to β€œMods”