Page 1 of 1
Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 2:04 am
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.
Re: Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 11:41 am
by Rseding91
Ok, I'll look into implementing this.
Can you give me a sample mod to test with?
Re: Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 12:53 pm
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.
Re: Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 2:17 pm
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.
Re: Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 2:42 pm
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!
Re: Hiding recipes from the main character screen
Posted: Fri Jun 29, 2018 6:25 pm
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 !
Re: Hiding recipes from the main character screen
Posted: Fri Mar 08, 2019 4:43 pm
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.
Re: Hiding recipes from the main character screen
Posted: Sun Mar 24, 2019 3:30 pm
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 122 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](./download/file.php?id=45905)
- 20190324162044_1.jpg (538.23 KiB) Viewed 4154 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.
Re: Hiding recipes from the main character screen
Posted: Mon Jul 15, 2019 4:34 pm
by Bilka
Okay, added hide_from_player_crafting for the next version.
Re: Hiding recipes from the main character screen
Posted: Mon Jul 15, 2019 5:41 pm
by darkfrei
Bilka wrote: Mon Jul 15, 2019 4:34 pm
Okay, added hide_from_player_crafting for the next version.
0.17.57?
Re: Hiding recipes from the main character screen
Posted: Mon Jul 15, 2019 5:47 pm
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