[2.0.25] Data JSON dump recycling recipes missing subgroup
-
- Inserter
- Posts: 40
- Joined: Tue May 28, 2019 12:34 pm
- Contact:
[2.0.25] Data JSON dump recycling recipes missing subgroup
Running --data-raw-dump on version 2.0.25, the resulting JSON data seems to be missing the subgroup field on recycling recipes. This field was present in the dump from 2.0.24 (the value was "other").
- xargo-sama
- Long Handed Inserter
- Posts: 60
- Joined: Mon Jun 05, 2023 1:04 pm
- Contact:
Re: [2.0.25] Data JSON dump recycling recipes missing subgroup
Hello,
This is not a bug. Categories of recycling recipes (which were previously hidden from Factoriopedia) are changed to match their item counterpart. This improves navigation through tabs significantly.
This is not a bug. Categories of recycling recipes (which were previously hidden from Factoriopedia) are changed to match their item counterpart. This improves navigation through tabs significantly.
-
- Inserter
- Posts: 40
- Joined: Tue May 28, 2019 12:34 pm
- Contact:
Re: [2.0.25] Data JSON dump recycling recipes missing subgroup
I don't think I understand. Your replies seem to say "the subgroup is now the subgroup of the item being recycled", but the issue I am seeing is there is no subgroup assigned to the recipes at all.
Is it because the subgroup is not assigned until a later point in the game startup process now, and it isn't assigned until after the stage at which the game runs the dump data command?
The code change you linked implies that if there is no subgroup on the recipe, it will use the subgroup of the main product. That's great, that's perfect, that's exactly what my code expects to happen, there's just one problem. The data dump doesn't include a main product on the recipe either.
Is it because the subgroup is not assigned until a later point in the game startup process now, and it isn't assigned until after the stage at which the game runs the dump data command?
The code change you linked implies that if there is no subgroup on the recipe, it will use the subgroup of the main product. That's great, that's perfect, that's exactly what my code expects to happen, there's just one problem. The data dump doesn't include a main product on the recipe either.
Last edited by ilbJanissary on Fri Dec 13, 2024 1:48 pm, edited 1 time in total.
Re: [2.0.25] Data JSON dump recycling recipes missing subgroup
Subgroup is optional and if not defined will take the subgroup of the recipe main product of it doesn't have one will default to "other". This logic happens on the engine side after data.raw parsing.
If you want to get ahold of me I'm almost always on Discord.
-
- Inserter
- Posts: 40
- Joined: Tue May 28, 2019 12:34 pm
- Contact:
Re: [2.0.25] Data JSON dump recycling recipes missing subgroup
OK - So just to make sure then, since these recipes have no main product and no subgroup, I should assume their subgroup is "other".
I can do that, it just didn't sound like that was the intent from the first two replies.
I can do that, it just didn't sound like that was the intent from the first two replies.