[MOD 0.12.x] Fast Filter Fill

Topics and discussion about specific mods
Post Reply
fcaf
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Sep 18, 2015 10:47 pm
Contact:

[MOD 0.12.x] Fast Filter Fill

Post by fcaf » Wed Oct 21, 2015 12:42 am

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

User avatar
XyLe
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Oct 31, 2014 10:45 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by XyLe » Wed Oct 21, 2015 10:59 am

Really cool idea for a mod, definitely worth checking out! Thanks for uploading!

GameCharmer
Inserter
Inserter
Posts: 38
Joined: Tue Oct 20, 2015 2:34 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by GameCharmer » Sun Oct 25, 2015 8:05 pm

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?

cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by cartmen180 » Sun Oct 25, 2015 9:01 pm

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
Check out my mods

GameCharmer
Inserter
Inserter
Posts: 38
Joined: Tue Oct 20, 2015 2:34 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by GameCharmer » Sun Oct 25, 2015 9:38 pm

That worked perfectly! Thanks so much for your help!

fcaf
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Sep 18, 2015 10:47 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by fcaf » Sun Oct 25, 2015 10:09 pm

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.

cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by cartmen180 » Mon Oct 26, 2015 7:41 am

GameCharmer wrote:That worked perfectly! Thanks so much for your help!
You're welcome :D
Check out my mods

User avatar
Xterminator
Filter Inserter
Filter Inserter
Posts: 970
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Xterminator » Mon Oct 26, 2015 4:39 pm

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.
Image Image Image

GameCharmer
Inserter
Inserter
Posts: 38
Joined: Tue Oct 20, 2015 2:34 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by GameCharmer » Tue Oct 27, 2015 2:38 am

Definitely a massive help. The stainless steel wagons have 170 slots, so it takes forever to set filters on all of them. :P

Golden
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Jun 12, 2015 1:01 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Golden » Mon Nov 02, 2015 10:18 pm

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.

mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by mophydeen » Sun Nov 22, 2015 6:02 pm

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

fcaf
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Sep 18, 2015 10:47 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by fcaf » Mon Nov 23, 2015 3:19 am

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?

User avatar
Natfrac42
Inserter
Inserter
Posts: 35
Joined: Sat Mar 14, 2015 12:53 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Natfrac42 » Wed Jan 06, 2016 1:49 pm

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???
Download my mods here - https://mods.factorio.com/mods/Faltease

Expanded Robot Technologies
Character Logistics Slots
Decrease Rocket Launch Sound

User avatar
Natfrac42
Inserter
Inserter
Posts: 35
Joined: Sat Mar 14, 2015 12:53 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Natfrac42 » Wed Jan 06, 2016 6:30 pm

Ok so after playing around with debug messages trying to figure it out, it randomly works again!!!

No idea why
Download my mods here - https://mods.factorio.com/mods/Faltease

Expanded Robot Technologies
Character Logistics Slots
Decrease Rocket Launch Sound

Rseding91
Factorio Staff
Factorio Staff
Posts: 9179
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Rseding91 » Wed Apr 13, 2016 7:35 pm

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
If you want to get ahold of me I'm almost always on Discord.

HeiRos
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Apr 10, 2016 5:26 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by HeiRos » Tue May 31, 2016 10:03 am

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

factoriouzr
Filter Inserter
Filter Inserter
Posts: 612
Joined: Sat Jun 06, 2015 2:23 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by factoriouzr » Fri Jul 08, 2016 10:44 am

Any chance to get this updated to 0.13 I love this mod.

Bi0nicM4n
Inserter
Inserter
Posts: 41
Joined: Tue Apr 12, 2016 2:44 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Bi0nicM4n » Sun Sep 04, 2016 4:16 pm

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

User avatar
anarchyinc
Inserter
Inserter
Posts: 29
Joined: Tue Jul 05, 2016 9:31 pm

Re: [MOD 0.12.x] Fast Filter Fill

Post by anarchyinc » Wed Sep 21, 2016 7:55 pm

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.
"Friends don't let friends drink & drive", "Gamers don't let gamers install steam"

Burny
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu May 28, 2015 1:10 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by Burny » Mon May 01, 2017 10:18 pm

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

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: No registered users