[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 »

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 »

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 »

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 »

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 »

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 »

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 »

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: 981
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post 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.
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 »

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 »

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 »

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 »

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 »

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 »

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: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post 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
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 »

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: 660
Joined: Sat Jun 06, 2015 2:23 am
Contact:

Re: [MOD 0.12.x] Fast Filter Fill

Post by factoriouzr »

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

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

Re: [MOD 0.12.x] Fast Filter Fill

Post 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

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 »

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 »

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”