1
0
mirror of https://github.com/Wyrrrd/Autofilter.git synced 2026-06-30 10:02:27 +02:00

7 Commits

Author SHA1 Message Date
Wyrrrd 7f2e4b2deb Version bump for fr locale
thanks to Friendch
2021-09-06 19:05:35 +02:00
Wyrrrd 396ac6556f Merge pull request #1 from d0ob/master
Fr Translation
2021-09-06 16:54:27 +00:00
Friendch 5780d79793 Fr Translation
Now I have more the hand on it, shouldn't be any casualties with last translations, but I'm sorry for the trouble I made on earlier tries ! I hope everything works as intended now, I know I made a misstake for "industrial plates", forgeting the folder.. And also made some updates after you already uploaded the mod, I should have more emphased the fact that translating was new to me ! I'm totally open if you see anything, or if any issue is brought back at you.
2021-08-09 14:29:15 +02:00
Wyrrrd 7be1f2f4b0 Added t&t entry for explanation 2021-04-18 12:08:25 +02:00
Wyrrrd 939d9e3cb6 Limited pickup/drop to object-layer and not-decontructing 2021-04-17 09:05:58 +02:00
Wyrrrd ab77cf1de3 Really removed integrations 2021-04-16 20:33:00 +02:00
Wyrrrd ceb17d2949 Update README.md 2021-04-16 20:30:59 +02:00
8 changed files with 83 additions and 11 deletions
+5 -2
View File
@@ -10,7 +10,7 @@ There is only one text field to enter configuration into. This can be done on th
+ **contents** - Checks for filter candidates in the inventory contents at the inserter's pickup position.
+ **filter** - Checks for filter candidates in the inventory's filter settings at the inserter's pickup position.
+ **belt** - Checks for filter candidates in the contents of a belt at the inserter's pickup position.
+ **belt** - Checks for filter candidates in the items on a belt at the inserter's pickup position.
+ **check** - Checks for the current filter candidates, if they could be inserted in the inventory at the inserter's drop position and removes them from the candidate list, if unsuccessful.
+ *anything else* - Gets ignored. If you want to disable all functionality, just write anything.
@@ -22,4 +22,7 @@ This mod should work with all modded filter inserters, but I specifically added
+ [Bob's Adjustable Inserters](https://mods.factorio.com/mod/bobinserters) - rotated pickup positions
### Locale
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/Autofilter/tree/master/locale). I'd be happy to add your language and credits to the next release.
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/Autofilter/tree/master/locale). I'd be happy to add your language and credits to the next release.
### Credits
Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french translation.
+10
View File
@@ -1,4 +1,14 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.3
Date: 2021-09-06
Locale:
- Added french locale (thanks to Friendch)
---------------------------------------------------------------------------------------------------
Version: 1.1.2
Date: 2021-04-18
Changes:
- Added tips&tricks page for ingame info
---------------------------------------------------------------------------------------------------
Version: 1.1.1
Date: 2021-04-16
Features:
+18 -2
View File
@@ -136,8 +136,24 @@ local function on_built_entity(event)
if inserter and inserter.valid and (inserter.type == "inserter") then
if inserter.filter_slot_count then
if is_filter_empty(inserter) and inserter.inserter_filter_mode == "whitelist" then
local pickup = inserter.surface.find_entities_filtered({position = inserter.pickup_position, force = inserter.force, surface = inserter.surface, limit = 1})
local drop = inserter.surface.find_entities_filtered({position = inserter.drop_position, force = inserter.force, surface = inserter.surface, limit = 1})
-- Read pickup and drop position entity
local pickup = inserter.surface.find_entities_filtered({
position = inserter.pickup_position,
force = inserter.force,
surface = inserter.surface,
collision_mask_layer= "object-layer",
to_be_deconstructed = false,
limit = 1
})
local drop = inserter.surface.find_entities_filtered({
position = inserter.drop_position,
force = inserter.force,
surface = inserter.surface,
collision_mask= "object-layer",
to_be_deconstructed = false,
limit = 1
})
if pickup[1] and pickup[1].valid then
-- Prequisites
local inventory_pickup = pickup[1].get_output_inventory()
+20
View File
@@ -0,0 +1,20 @@
--data.lua
data:extend(
{
{
type = "tips-and-tricks-item",
name = "autofilter",
tag = "[entity=filter-inserter]",
category = "inserters",
indent = 1,
order = "g",
trigger =
{
type = "build-entity",
entity = "filter-inserter",
count = 1
},
dependencies = {"inserters"},
},
})
+2 -5
View File
@@ -1,14 +1,11 @@
{
"name": "Autofilter",
"version": "1.1.1",
"version": "1.1.3",
"title": "Autofilter",
"author": "Wyrrrd",
"dependencies": [
"base >= 1.1.0",
"(?) bobinserters >= 0.18.0",
"? Booktorio >= 1.1.0",
"? informatron >= 0.1.5",
"? wiki >= 0.18.01"
"(?) bobinserters >= 0.18.0"
],
"description": "Automatically set inserter filters based on adjacent inventory/belt.",
"factorio_version": "1.1"
+7 -1
View File
@@ -5,4 +5,10 @@ Autofilter=Setzt Greifarmfilter automatisch, basierend auf angrenzenden Inventar
autofilter_mode=Autofilter-Modus
[mod-setting-description]
autofilter_mode=Bestimmt die Reihenfolge der Auslesevorgänge (contents = Inventarinhalt, filter = Inventarfilter, belt = Fließbandinhalt, check = Zielinventarprüfung).
autofilter_mode=Bestimmt die Reihenfolge der Auslesevorgänge (contents = Inventarinhalt, filter = Inventarfilter, belt = Fließbandinhalt, check = Zielinventarprüfung).
[tips-and-tricks-item-name]
autofilter=Autofilter
[tips-and-tricks-item-description]
autofilter=Wenn du einen [entity=filter-inserter] von Hand platzierst, liest er den Inventarinhalt, die Inventarfilter oder den Fließbandinhalt and der Aufnahmeposition aus und setzt seinen Filter auf diese Gegenstände.\n\nFür die Konfiguration dieses Verhaltens gibt es nur ein Textfeld. Dieses kann während des Spiels angepasst werden. Du kannst jedes der folgenden Schlüsselworte in beliebiger Reihenfolge getrennt durch Leerzeichen in das Textfeld eintragen. Sie werden von links nach rechts abgearbeitet.\n\n - contents : Überprüft den Inventarinhalt an der [entity=filter-inserter]-Aufnahmeposition nach Filterkandidaten.\n - filter : Überprüft den Inventarfilter an der [entity=filter-inserter]-Aufnahmeposition nach Filterkandidaten.\n - belt : Überprüft die Gegenstände auf einem [entity=transport-belt] oder [entity=splitter] an der [entity=filter-inserter]-Aufnahmeposition nach Filterkandidaten.\n - check : Überprüft, ob die aktuellen Filterkandidaten in ein Inventar an der [entity=filter-inserter]-Ablageposition gelegt werden können, und entfernt sie aus der Kandidatenliste, wenn nicht.\n - Alles andere wird ignoriert. Wenn du alle Funktionen von Autofilter abschalten willst, schreibe einfach irgendetwas in das Textfeld.\n\nNachdem diese Punkte verarbeitet wurden, entfernt eine Deduplikation alle mehrfachen Vorkommen von Gegenständen aus der Filterkandidatenliste, und dann werden die Kandidaten in den [entity=filter-inserter]-Filter geschrieben, bis er voll ist.
+7 -1
View File
@@ -5,4 +5,10 @@ Autofilter=Automatically set inserter filters based on adjacent inventory/belt.
autofilter_mode=Autofilter mode
[mod-setting-description]
autofilter_mode=Configure the priority of reading sources (contents = inventory contents, filter = inventory filter, belt = belt contents, check = check for insertability at drop position).
autofilter_mode=Configure the priority of reading sources (contents = inventory contents, filter = inventory filter, belt = belt contents, check = check for insertability at drop position).
[tips-and-tricks-item-name]
autofilter=Autofilter
[tips-and-tricks-item-description]
autofilter=When you manually place a [entity=filter-inserter], it reads the inventory contents, inventory filters or belt contents on the pickup side and sets its filter to those items.\n\nThere is only one text field to enter configuration of this behaviour into. This can be done on the fly, while ingame. You can add each of the following keywords into the text field, in any order, separated by spaces. They will be processed left to right.\n\n - contents : Checks for filter candidates in the inventory contents at the pickup position of the [entity=filter-inserter].\n - filter : Checks for filter candidates in the inventory's filter settings at the pickup position of the [entity=filter-inserter].\n - belt : Checks for filter candidates in the items on a [entity=transport-belt] or [entity=splitter] at the pickup position of the [entity=filter-inserter].\n - check : Checks for the current filter candidates, if they could be inserted in the inventory at the drop position of the [entity=filter-inserter] and removes them from the candidate list, if unsuccessful.\n - Anything else gets ignored. If you want to disable all functionality of Autofilter, just write anything into the text field.\n\nAfter those are processed, a deduplication removes all but the first appearance of each item from the filter candidate list, and then the candidates are written to the filter of the [entity=filter-inserter] until it is full.
+14
View File
@@ -0,0 +1,14 @@
[mod-description]
Autofilter=Configuration automatique du filtre des bras robotisés en fonction des inventaires et convoyeurs adjacents.
[mod-setting-name]
autofilter_mode=Mode du filtre automatique
[mod-setting-description]
autofilter_mode=Sélectionner la priorité de la source (contents = contenu de l'inventaire, filter = filtre de l'inventaire, belt = contenu du convoyeur, check = s'assurer qu'il y a de la place dans la zone de dépôt).
[tips-and-tricks-item-name]
autofilter=Autofilter
[tips-and-tricks-item-description]
autofilter=Permet à un [entity=filter-inserter] placé manuellement de reconnaître le contenu des inventaires, des filtres d'inventaire et des convoyeurs côté ramassage, pour pouvoir configurer automatiquement son propre filtre avec le même objet.\n\nCette zone de texte sert de configuration, et peut être changée en temps réel pendant le jeu. Pour se faire, ajoutez-y ces mots clefs, séparés par un espace et dans l'ordre souhaité, en fonction de vos choix : (L'odre de priorité ira de gauche à droite.)\n\n - contents : Recherche d'un objet filtrable dans l'inventaire situé côté ramassage du [entity=filter-inserter].\n - filter : Recherche d'un objet filtrable dans le filtre d'inventaire situé côté ramassage du [entity=filter-inserter].\n - belt : Recherche d'un objet filtrable dans le [entity=transport-belt] ou le [entity=splitter] situé côté ramassage du [entity=filter-inserter].\n - check : S'assurer que le [entity=filter-inserter] pourra transmettre l'objet envisagé par le filtre dans l'inventaire visé, ou le retirer de la liste des candidats dans le cas contraire.\nToute autre chose ajoutée sera ignorée, et si aucune de ces options n'est désirée il suffira de ne pas les y ajouter.\n\nLe filtre automatique fonctionne en faisant une liste provisoire de tous les candidats possibles, suivant les options choisies, puis élimine les doublons avant de transférer cette liste provisoire à celle du [entity=filter-inserter]. (Auquel cas, jusqu'à complétion.)