Page 2 of 3
Re: [0.15] Even Distribution
Posted: Wed Jun 28, 2017 6:03 pm
by 321freddy
Version 0.2.5
- Fixed distribution to factorissimo 2 helper entities
Added ignored entities mod setting
Re: [0.16] Even Distribution
Posted: Mon Jan 01, 2018 8:42 pm
by Rychlas
First of all - great mod, I love it, thank you kindly for making it.
But I have a question:
Is it possible to distribute items in a way that only the amount what you are currently holding is being distributed instead of distributing every single resource you own of that type?
For example, I have 2k coal in my EQ, but I want to distribute only one stack between the ovens.
Does such feature already exist and I'm a dummy or is it not possible right now?
Re: [0.16] Even Distribution
Posted: Mon Jan 01, 2018 10:06 pm
by 321freddy
Rychlas wrote:First of all - great mod, I love it, thank you kindly for making it.
But I have a question:
Is it possible to distribute items in a way that only the amount what you are currently holding is being distributed instead of distributing every single resource you own of that type?
For example, I have 2k coal in my EQ, but I want to distribute only one stack between the ovens.
Does such feature already exist and I'm a dummy or is it not possible right now?
Thanks
If you put all but one stack in a wooden chest it would work already.
Other than that it's possible to implement but how? I already use CTRL+Left Click to distribute all items in the inventory and CTRL+Right Click to distrbute half of the items in the inv.
I'd rather add a setting to define a maximum amount of items a type of machine can recieve. For example: Fill all furnace to 10 coal and 20 ore and all turrets to 15 ammo.
This would apply to CTRL Click Drag and the Inventory Cleanup hotkey.
Re: [0.16] Even Distribution
Posted: Mon Jan 01, 2018 10:14 pm
by Rychlas
321freddy wrote:
If you put all but one stack in a wooden chest it would work already.
I'm already doing that, but it's annoying
321freddy wrote:
Other than that it's possible to implement but how?
How about adding a toggle shortcut? That toggles between all items distribution and stack only?
EDIT:
The option you mentioned would also be useful. Maybe implement them both, and have one shortcut toggle between them, with advanced settings in "Per player" options?
Re: [0.16] Even Distribution
Posted: Tue Jan 02, 2018 1:38 am
by 321freddy
Yeah I can do it when I find some spare time.
But this will require some more work since I already have like 10 different settings and it starts to become very messy. Maybe I'll add seperate config GUI with different profiles that can be switched between with a shortcut.
You can follow the progress on github.
Re: [0.16] Even Distribution
Posted: Tue Jan 02, 2018 2:31 am
by Rychlas
That'd be great bud. But of course, take your time, it's just a quality of life change, the mod already is awesome.
Cheers!
Re: [0.17] Even Distribution
Posted: Fri Mar 08, 2019 3:50 am
by gendalf
Need to combine this with
https://mods.factorio.com/mod/Fill4Me to have turrets with equal amount of ammo placed prefilled
Re: [0.17] Even Distribution
Posted: Tue Mar 26, 2019 9:49 am
by dontdieych
When I'm doing 'Shift + C', How can I ignore construction robot from distribution?
I wanna know exact syntax for mod setting(per player).
Re: [0.17] Even Distribution
Posted: Tue Mar 26, 2019 1:18 pm
by 321freddy
dontdieych wrote: Tue Mar 26, 2019 9:49 am
When I'm doing 'Shift + C', How can I ignore construction robot from distribution?
I wanna know exact syntax for mod setting(per player).
It's currently only possible ignore entities(=buildings, not items) for distribution. You can prevent distribution to roboports by adding
roboport to the ignored entities setting.
Do you have construction bots in your logistic requests or auto trash list? This is used to determine the amount of construction bots that will be distributed with SHIFT+C. You could remove the bots there or set the auto trash value really high to exclude them from distribution.
Re: [0.17] Even Distribution
Posted: Wed Mar 27, 2019 8:22 pm
by dontdieych
321freddy wrote: Tue Mar 26, 2019 1:18 pm
dontdieych wrote: Tue Mar 26, 2019 9:49 am
When I'm doing 'Shift + C', How can I ignore construction robot from distribution?
I wanna know exact syntax for mod setting(per player).
It's currently only possible ignore entities(=buildings, not items) for distribution. You can prevent distribution to roboports by adding
roboport to the ignored entities setting.
Do you have construction bots in your logistic requests or auto trash list? This is used to determine the amount of construction bots that will be distributed with SHIFT+C. You could remove the bots there or set the auto trash value really high to exclude them from distribution.
OK, thx!
Re: [0.17] Even Distribution
Posted: Thu May 02, 2019 8:33 pm
by WkdPanda
Crashing 0.17.35 release alpha, version 0.3.6 installed from portal
https://imgur.com/a/8ZsqAqs
Re: [0.17] Even Distribution
Posted: Fri May 03, 2019 10:56 am
by 321freddy
Thanks for the report
It's now fixed in version 0.3.7
Re: [0.17] Even Distribution
Posted: Fri May 03, 2019 12:18 pm
by WkdPanda
Thanks for the quick turnaround! This is a great quality of life mod.
Re: [0.17] Even Distribution
Posted: Fri Oct 18, 2019 5:49 pm
by Nekothika
Hello ...
Code: Select all
Le mod Even Distribution a engendré une erreur non récupérable.
Merci d'informer l'auteur de cette erreur.
Error while running event even-distribution::on_tick (ID 0)
real number expected got nil.
stack traceback:
__even-distribution__/scripts/util.lua:42: in function 'getPlayerMainInventory'
__even-distribution__/scripts/item-lib.lua:7: in function 'getPlayerItemCount'
__even-distribution__/scripts/distribute.lua:35: in function 'distributeItems'
__even-distribution__/scripts/distribute.lua:23: in function 'func'
__even-distribution__/framework.lua:98: in function <__even-distribution__/framework.lua:97>
stack traceback:
[C]: in function 'get_inventory'
__even-distribution__/scripts/util.lua:42: in function 'getPlayerMainInventory'
__even-distribution__/scripts/item-lib.lua:7: in function 'getPlayerItemCount'
__even-distribution__/scripts/distribute.lua:35: in function 'distributeItems'
__even-distribution__/scripts/distribute.lua:23: in function 'func'
__even-distribution__/framework.lua:98: in function <__even-distribution__/framework.lua:97>
Re: [0.17] Even Distribution
Posted: Sat Oct 19, 2019 9:19 am
by 321freddy
Nekothika wrote: Fri Oct 18, 2019 5:49 pm
Hello ...
Code: Select all
Le mod Even Distribution a engendré une erreur non récupérable.
Merci d'informer l'auteur de cette erreur.
Error while running event even-distribution::on_tick (ID 0)
real number expected got nil.
stack traceback:
__even-distribution__/scripts/util.lua:42: in function 'getPlayerMainInventory'
__even-distribution__/scripts/item-lib.lua:7: in function 'getPlayerItemCount'
__even-distribution__/scripts/distribute.lua:35: in function 'distributeItems'
__even-distribution__/scripts/distribute.lua:23: in function 'func'
__even-distribution__/framework.lua:98: in function <__even-distribution__/framework.lua:97>
stack traceback:
[C]: in function 'get_inventory'
__even-distribution__/scripts/util.lua:42: in function 'getPlayerMainInventory'
__even-distribution__/scripts/item-lib.lua:7: in function 'getPlayerItemCount'
__even-distribution__/scripts/distribute.lua:35: in function 'distributeItems'
__even-distribution__/scripts/distribute.lua:23: in function 'func'
__even-distribution__/framework.lua:98: in function <__even-distribution__/framework.lua:97>
Looks like you're using an old version. Please update to the newest version (0.3.13)
Re: [0.17] Even Distribution
Posted: Tue Mar 17, 2020 4:27 pm
by cappie
When starting 0.18.13...
EDIT: this is not meant to annoy you, just as a notification. I missed your message on the mod portal (
https://mods.factorio.com/mod/even-dist ... 000ef29cdc ) about you already seeing it. I'm sorry
Re: [0.17] Even Distribution
Posted: Fri May 01, 2020 4:46 am
by Omnifarious
There's a bug report on the mod portal for you
321freddy. 0.18.22 broke your mod by finally removing the "script-only" custom input flag for CustomInput prototypes. They deprecated that value for 'custom' sometime in the 0.15 series. :-/
Re: [0.17] Even Distribution
Posted: Sat Dec 19, 2020 3:29 am
by GotLag
I've found a bug that results in the loss of items in "Balance out inventories" mode
Load the attached save game, and then immediately hold control and drag the held stack over the turrets,
starting with the turret at top left (the only one with ammo).
To show the bug, you need to do this before the turret fires again a few seconds after loading.
What you should see is the following sequence of events:
1. As you drag over the turret, the amount in the cursor stack is reduced to 1
2. The amount distributed is thus the 49 in the turret plus the 1 in the cursor stack
3. The missing 145 magazines are gone forever, they do not appear in the player's ammo or inventory slots
- even-distribution.jpg (206.69 KiB) Viewed 6804 times
This bug has proven very difficult to isolate and reproduce, and I
think it's related to firing turrets having their inventory amounts change between distribution operations - I could not make this bug happen with turrets that weren't in combat. Note that it appears to be baked into the mod's state somehow, as it will happen every time on loading this save, until the turret fires again (and its inventory drops to 48).
Re: [0.17] Even Distribution
Posted: Sun Dec 20, 2020 1:34 pm
by 321freddy
Fixed in the next version. Took me a while to find that one, but thanks for the save file, helped a lot
.
Re: [0.17] Even Distribution
Posted: Mon Feb 08, 2021 9:40 pm
by Mortsy
I think there is a bug with the option "Distribute items above the minimum request amount". It doesn't seem to work for me. I have to set the maximum request to 0 for shift-c to work.
Is this a known issue?