Page 1 of 1

[0.18.32] iron ore not an option in filter splitter

Posted: Tue Jun 16, 2020 7:09 pm
by qujam
Summary
With the new option to have only available items shown in filter selection. Iron ore is not an option unless 'Show all items in selection lists' is selected.

Mods

Running Krastorio 2 and some other QoL mods, presumably these are covered in the log file

What did you do?
Placed a filter splittter and expected iron ore to be an option

What happened?

Iron ore was not an option

What did you expect to happen instead? It might be obvious to you, but do it anyway!

I expected iron ore to be an option for the filter splitter

Write down the steps to reproduce the bug if you know them.

Run game. Place a filter splitter. Search for iron ore

Does it happen always, once, or sometimes?

Every time

Be precise! When i click with the mouse on Quit in the main menu... Not: When I close the game.

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Wed Jun 17, 2020 3:10 am
by eddye
I have the same problem, but in my case it is the uranium ore that I used as a filter and is no longer available. Even though I already researched nuclear fusion. I am using the Krastorio2 mod too.

See: https://imgur.com/a/Fb4ZZn2

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Wed Jun 17, 2020 5:11 am
by EmuLegs
https://imgur.com/Ndi9oWN

Cant split my coal from my iron in a mixed drill patch :)

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Wed Jun 17, 2020 9:52 am
by 5thHorseman
I've not tried it but many of those filter boxes will let you drop physical items on them.

Can you pick coal/iron/uranium up off the ground to set the filter?

I propose this as a possible workaround, not as a solution. The items should show up as filter possibilities.

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 11:13 am
by Blacky007
5thHorseman wrote:
Wed Jun 17, 2020 9:52 am
I've not tried it but many of those filter boxes will let you drop physical items on them.
yes you can but they are then on the ground where that box is located - NO BUG

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 11:17 am
by Klonan
Can someone provide a save game?

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 12:16 pm
by 5thHorseman
Klonan wrote:
Thu Jun 18, 2020 11:17 am
Can someone provide a save game?
I can not. I can though confirm that on a both a new save created in a bone stock install on 0.18.32, doing the bare minimum to get Logistics research so I unlock a splitter, that splitter CAN filter by those product you can mine but not craft. Including - yes - iron ore.

I can also confirm that a aged save created back when 0.18 was fresh and updated and played throughout most updates but also bone stock, also can filter by iron ore.

No clue why my stock install can and theirs can't, but that's what my 20 minutes of bootstrapping a new save got me :)

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 12:45 pm
by eddye
Klonan wrote:
Thu Jun 18, 2020 11:17 am
Can someone provide a save game?
Sure!
Link: https://www.dropbox.com/s/myihw6ixewf3e ... 2.zip?dl=1

In my case, I am unable to define a filter for uranium ore.
This was possible but after the 0.18.32 update, the uranium ore no longer appears in the filter window.

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 1:36 pm
by Blacky007
eddye wrote:
Thu Jun 18, 2020 12:45 pm
Klonan wrote:
Thu Jun 18, 2020 11:17 am
Can someone provide a save game?
Sure!
Link: https://www.dropbox.com/s/myihw6ixewf3e ... 2.zip?dl=1

In my case, I am unable to define a filter for uranium ore.
This was possible but after the 0.18.32 update, the uranium ore no longer appears in the filter window.
if I play this savegame without any of the mods - it works fine - but with the mod I have the same issue?!

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 1:53 pm
by eddye
Blacky007 wrote:
Thu Jun 18, 2020 1:36 pm
eddye wrote:
Thu Jun 18, 2020 12:45 pm
Klonan wrote:
Thu Jun 18, 2020 11:17 am
Can someone provide a save game?
Sure!
Link: https://www.dropbox.com/s/myihw6ixewf3e ... 2.zip?dl=1

In my case, I am unable to define a filter for uranium ore.
This was possible but after the 0.18.32 update, the uranium ore no longer appears in the filter window.
if I play this savegame without any of the mods - it works fine - but with the mod I have the same issue?!
Thanks for the test without mods.
Both me and the author of this post are using the Krastorio2 mod.

In my log file, there are some entries:
7.374 Script @__Krastorio2__/lib/private/data-stages/utils/log.lua:99: Krastorio 2|LogLevel:WARNING
7.374 Script @__Krastorio2__/lib/private/data-stages/utils/log.lua:101: From Krastorio 2->file:__Krastorio2__/lib/private/data-stages/recipes.lua->function:findNotUnlockableRecipes->line:1879
7.374 Script @__Krastorio2__/lib/private/data-stages/utils/log.lua:108: Called in->file:...anilla-changes/optional/modify-science-packs-recipes.lua->line:17
7.374 Script @__Krastorio2__/lib/private/data-stages/utils/log.lua:110: Message: 'This recipes are not unlockable, maybe is an error: { "uranium-rounds-magazine", "nuclear-fuel", "imersite-rounds-magazine" } [from findNotUnlockableRecipes()]'

Maybe it's something related to Krastorio2?

Re: [0.18.32] iron ore not an option in filter splitter

Posted: Thu Jun 18, 2020 2:41 pm
by kovarex
Thanks for the report.

The logic was done in a way, that whenever there exists a recipe for something, it is only shown when the recipe is unlocked.
There is no recipe for ore creation for example, so they show by default in vanilla.

But if mod creates some "weird" recipe that also creates the ore, suddenly, ore is consider to be locked behind that recipe.

So I did 2 things to solve the issue:
  • All mining results of resources are forced to be unlocked
  • Recipe has a property "unlock_results" (true by default), which specifies whether the recipe is the primary thing that unlocks the items. Typical example is some kind of recycler mod, as recycling express transport belt back to fast transport belt and some gears shouldn't unlock the creation of fast belt.
Fixed for the next release.