Page 1 of 1

[MOD 0.12.x] Fast Filter Fill

Posted: Wed Oct 21, 2015 12:42 am
by fcaf
Type: Mod
Name: Fast Filter Fill
Description: Quickly manage Cargo Wagon filters and Logistic Requester Chest request values
License: MIT
Version: 0.5.2
Release: 2015-10-20
Tested-With-Factorio-Version: 0.12.10 and 0.12.12
Category: Convenience
Tags: User-Interface, Vehicles
Download-Url: https://github.com/SeaRyanC/fast-filter ... _0.5.2.zip
Website: https://github.com/SeaRyanC/fast-filter-fill
License
Long description
Pictures
Version history

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Wed Oct 21, 2015 10:59 am
by XyLe
Really cool idea for a mod, definitely worth checking out! Thanks for uploading!

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Oct 25, 2015 8:05 pm
by GameCharmer
My first attempt at modding a mod is to make this compatible with the stainless steel wagons mod. I came up with the following, which does make the controls show up and function for the new wagon, but it will only effect the first 3 rows, despice returning the full 17.

Code: Select all

-- TODO: Implement Car, Tank when those get API support
function getRows(player)
	if player.opened.type == "cargo-wagon" then
        return 3
	elseif player.opened.type == "stainless-steel-wagon" then
		return 17
    else
        return nil
    end
end

-- TODO: Add Car, Tank when those get API support (or we get API support for detecting this programatically)
function canFilter(obj)
	if obj.type == "cargo-wagon" then
		return true
	elseif obj.type == "stainless-steel-wagon" then
		return true
	else
		return false
	end
end
Any ideas?

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Oct 25, 2015 9:01 pm
by cartmen180
player.opened.type calls for a type. stainless-steel-wagon is not a type but a name. It is however a type cargo-wagon so first 3 rows will work as is specified in the code.
You have to include the name in the statement somehow. I am not familiar with factorio methods but maybe try something along these lines:

Code: Select all

function getRows(player)
   if player.opened.type == "cargo-wagon" then
        if player.opened.name == "cargo-wagon"then
            return 3
        elseif player.opened.name == "stainless-steel-wagon" then
            return 17
        else
            return nil
        end
    end
end

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Oct 25, 2015 9:38 pm
by GameCharmer
That worked perfectly! Thanks so much for your help!

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Oct 25, 2015 10:09 pm
by fcaf
I'd love a pull request implementing non-built-in cargo wagons! I had a hard time figuring out how to determine the capacity of a container, but I'm sure it's possible.

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Mon Oct 26, 2015 7:41 am
by cartmen180
GameCharmer wrote:That worked perfectly! Thanks so much for your help!
You're welcome :D

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Mon Oct 26, 2015 4:39 pm
by Xterminator
Very nice mod and idea. I have always thought it was a pain to manually filter slots in stuff, this is really nice and makes it way easier. :D
Definitely doing spotlight on this.

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Tue Oct 27, 2015 2:38 am
by GameCharmer
Definitely a massive help. The stainless steel wagons have 170 slots, so it takes forever to set filters on all of them. :P

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Mon Nov 02, 2015 10:18 pm
by Golden
A friend of mine and I are playing a multiplayer game with your mod, and whenever one of us uses the functions at the top to change the filters, it causes a desync loop. This is in any container, or inserter, etc, that this works on. Not sure why this would be happening, but it is.

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Nov 22, 2015 6:02 pm
by mophydeen
Golden wrote:A friend of mine and I are playing a multiplayer game with your mod, and whenever one of us uses the functions at the top to change the filters, it causes a desync loop. This is in any container, or inserter, etc, that this works on. Not sure why this would be happening, but it is.
same here

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Mon Nov 23, 2015 3:19 am
by fcaf
I can confirm the desync issue, but have no idea why it's happening. Is there a guide somewhere that explains how to diagnose desync issues?

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Wed Jan 06, 2016 1:49 pm
by Natfrac42
I have a feeling i am just being a complete moron about this but i have installed this mod and the gui doesn't appear when I open a cargo wagon or a requester chest. I thought it may be to do with one of the mods i am using so i downloaded a fresh version of factorio (0.12.20) and installed it on there but the gui still doesn't appear. Any help???

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Wed Jan 06, 2016 6:30 pm
by Natfrac42
Ok so after playing around with debug messages trying to figure it out, it randomly works again!!!

No idea why

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Wed Apr 13, 2016 7:35 pm
by Rseding91
fcaf wrote:I can confirm the desync issue, but have no idea why it's happening. Is there a guide somewhere that explains how to diagnose desync issues?
viewtopic.php?f=23&t=23527#p147758

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Tue May 31, 2016 10:03 am
by HeiRos
Hello,

accidentally I tried to create a request from a blueprint with 11 different items and the game crashed with the message

Code: Select all

Error while running the event handler: __FastFilterFill__/control.lua:290: Passed index is out of range

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Fri Jul 08, 2016 10:44 am
by factoriouzr
Any chance to get this updated to 0.13 I love this mod.

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Sun Sep 04, 2016 4:16 pm
by Bi0nicM4n
I managed to make this work in 0.13.20. It supports not only cargo wagons, but also cars and tanks now. This should do while the author is elsewhere.

Download link: https://www.dropbox.com/s/ibuwyqmap2if3 ... 2.zip?dl=0

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Wed Sep 21, 2016 7:55 pm
by anarchyinc
Bi0nicM4n wrote:I managed to make this work in 0.13.20. It supports not only cargo wagons, but also cars and tanks now. This should do while the author is elsewhere.

Download link: https://www.dropbox.com/s/ibuwyqmap2if3 ... 2.zip?dl=0
Verified to run on v14.5 with only an update to the info.json
Thanks, I was about to update this myself but your code works just fine.

Re: [MOD 0.12.x] Fast Filter Fill

Posted: Mon May 01, 2017 10:18 pm
by Burny
Hey, sorry for un-burying this thread but this mod is amazing. It still works for v0.15 by just editing the info.json, so I did!
Download link is here: https://burnysc2.github.io/FactorioMods/
Or direct link: https://burnysc2.github.io/FactorioMods ... _0.6.2.zip