Multiple recipe for item

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Post Reply
User avatar
Dron-elektron
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 02, 2020 4:25 pm
Contact:

Multiple recipe for item

Post by Dron-elektron »

Hello. I was spending some time with parsing recipe prototypes and faced to a problem. Two files have same recipe for "engine-unit" item.

Image

Image

Is it normal? My expectations was something like this:
1) demo-* files have minimal set of items/recipes
2) other files have remaining items/recipes

User avatar
Dron-elektron
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 02, 2020 4:25 pm
Contact:

Re: Multiple recipe for item

Post by Dron-elektron »

Looks like this is a bug and somebody from devs forgot to remove recipe from... recipe.lua?

P.S. Moderators, please move this topic to "Bug Reports" section.

Koub
Global Moderator
Global Moderator
Posts: 7203
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Multiple recipe for item

Post by Koub »

[Koub] Right, moving this to bug reports then.
Koub - Please consider English is not my native language.

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: Multiple recipe for item

Post by TruePikachu »

It shouldn't affect anything within the game, however; since the recipies have the same name, the one that's read later is the one that will be used (and that one is the non-demo-file version).

User avatar
Dron-elektron
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 02, 2020 4:25 pm
Contact:

Re: Multiple recipe for item

Post by Dron-elektron »

Yes, I know that, but this is a potential problem if something suddenly changes in the data reading algorithm. It’s just ideologically wrong...

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

Re: Multiple recipe for item

Post by Deadlock989 »

Dron-elektron wrote:
Sat Jan 04, 2020 9:37 pm
Yes, I know that, but this is a potential problem if something suddenly changes in the data reading algorithm. It’s just ideologically wrong...
If it doesn't have any effect whatsoever, how is it a "bug"?
Image

User avatar
Dron-elektron
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 02, 2020 4:25 pm
Contact:

Re: Multiple recipe for item

Post by Dron-elektron »

Full and demo files shouldn't intersect and overriding is not a solution, it's just ignoring of a potential problem.

Let's developers to decide for themselves, is it a bug or not. I want developers to just know about this "little problem" :P

Jorn86
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sun May 01, 2016 7:08 pm
Contact:

Re: Multiple recipe for item

Post by Jorn86 »

Deadlock989 wrote:
Sat Jan 04, 2020 10:06 pm
Dron-elektron wrote:
Sat Jan 04, 2020 9:37 pm
Yes, I know that, but this is a potential problem if something suddenly changes in the data reading algorithm. It’s just ideologically wrong...
If it doesn't have any effect whatsoever, how is it a "bug"?
Because clean code matters.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Multiple recipe for item

Post by Klonan »

This will be fixed when we remove the NPE and cleanup what is in the demo

Post Reply

Return to “Minor issues”