Hiding recipes from the main character screen

Post Reply
Avacado
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Fri Jul 22, 2016 3:17 pm
Contact:

Hiding recipes from the main character screen

Post by Avacado »

Hi,

I created Whistle Stop Factories that feature machines that have a 100 crafting speed, but can be increased to 1000+ speed using beacons, which runs into a problem: Machines can't complete more than 1 recipe per tick, so regardless of the speed has a max output of 60 items/second.

So, to get around this, I've created 50x recipes which have 50x the output, 50x the input, and 50x the time, but these recipes really clutter up the character menus. I've put them all into their own categories, but it is still a bunch of categories that can't be handcrafted and are not really used by anything except one screen.

Would it be possible to hide item-groups or individual recipes from the character screen? I'm open to other workarounds, but I assume the 1 recipe per tick limitation would be a harder issue to tackle.

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

Re: Hiding recipes from the main character screen

Post by Rseding91 »

Ok, I'll look into implementing this.

Can you give me a sample mod to test with?
If you want to get ahold of me I'm almost always on Discord.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Hiding recipes from the main character screen

Post by darkfrei »

Avacado wrote:Would it be possible to hide item-groups or individual recipes from the character screen? I'm open to other workarounds, but I assume the 1 recipe per tick limitation would be a harder issue to tackle.
Rseding91 wrote:Ok, I'll look into implementing this.
Can you give me a sample mod to test with?
I think it can be tested on advenced crafting (recipe category) or on engine unit (recipe).
Player can't build it and it can be hidden.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Hiding recipes from the main character screen

Post by Ranakastrasz »

darkfrei wrote:I think it can be tested on advenced crafting (recipe category) or on engine unit (recipe).
Player can't build it and it can be hidden.
Players can't build it but it is not hidden last time I checked.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Avacado
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Fri Jul 22, 2016 3:17 pm
Contact:

Re: Hiding recipes from the main character screen

Post by Avacado »

Hi Rseding91,

Please see the attached mod for testing. I've added a property "hidden_from_char_screen = true" to
  • A recipe (electric-engine-unit)
  • An item group (combat)
  • A recipe category (advanced-crafting)
Thanks!
Attachments
CharHiddenTest_0.0.1.zip
(1.11 KiB) Downloaded 112 times

dr_vm
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 23, 2017 3:06 pm
Contact:

Re: Hiding recipes from the main character screen

Post by dr_vm »

Dear Dev's

i also would request such a feature in Factorio for a mod quite similar to Avacado's one.
It uses the same techniques and offers support for DeadLockStacking Belts which brings currently around 12+12 additional recipes included in different crafting categories. None of these should be hand-craftable or visible in the Inventory / Crafting menu.

Thanks in Advance !

Avacado
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Fri Jul 22, 2016 3:17 pm
Contact:

Re: Hiding recipes from the main character screen

Post by Avacado »

Bump.

I had a sort of clunky work around where I disable the recipes and then enable them when a Whistle Stop factory GUI is open, but:

* I had to make this optional, because it breaks other mods like Crafting Combinator, which is a popular mod to use with Whistle Stop
* In 0.17 there is an issue where sometimes the recipes aren't being hidden (sometimes, inconsistently) that I've been unable to troubleshoot, I think may be caused by something other mods are doing, so may even be very difficult for me to fix.

dr_vm
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 23, 2017 3:06 pm
Contact:

Re: Hiding recipes from the main character screen

Post by dr_vm »

Thanks for replying !

I tried something similar in Jun. 18. It did not work well and i decided that i'm not familiar enough with the Factorio Modding API to see all side effects like:
  • Performance (especially with many recipes)
  • Multiplayer (imagine player A opens a assembling machine. While the GUI is shown, player B opens a chest and the recipe gets disabled)
  • all problems you already mention
Nevertheless, i attached the old code from the 0.15 Mod version.
control.lua
Hide by disable for Factorio 0.15 and 0.16
(1.15 KiB) Downloaded 96 times
My workaround was to change the energy_required value and the crafting speed to values that are comparable to hand crafting.
20190324162044_1.jpg
20190324162044_1.jpg (538.23 KiB) Viewed 3450 times
Now, it doesn't makes a (big) difference for the player if she or he decides to build 1 pice 10 times or 10 pices at once.
It is also quite ugly and one of the main reasons for *not* publishing this mod already.

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Hiding recipes from the main character screen

Post by Bilka »

Okay, added hide_from_player_crafting for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Hiding recipes from the main character screen

Post by darkfrei »

Bilka wrote:
Mon Jul 15, 2019 4:34 pm
Okay, added hide_from_player_crafting for the next version.
0.17.57?

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Hiding recipes from the main character screen

Post by Bilka »

darkfrei wrote:
Mon Jul 15, 2019 5:41 pm
Bilka wrote:
Mon Jul 15, 2019 4:34 pm
Okay, added hide_from_player_crafting for the next version.
0.17.57?
yes, read the changelog
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”