pyanodon / pybugreports

Central bug-report repository for pymods
The Unlicense
5 stars 1 forks source link

New Medium Oil Derrick eats modules #361

Open nitrah118 opened 8 months ago

nitrah118 commented 8 months ago

Mod source

Factorio Mod Portal

Which mod are you having an issue with?

Operating system

=Windows 10

What kind of issue is this?

What is the problem?

I placed 4 medium oil derricks on new bitumen seeps, fed drilling fluid mk2 to pop them open, and put 2x speed modules mk1 in each. After they opened up, they each only had a single speed module slot filled. I did not test other drill sizes, other module types, other fluid types, or other drill types.

Steps to reproduce

Place medium oil derrick on bitumen seep. Install 2x speed modules. Provide power and drilling fluid. Wait.

Additional context

No response

Log file

No response

ChaosSaber commented 5 months ago

The same happens with the tar extractor MK2 and Productivity Modules.

ChaosSaber commented 5 months ago

The issue lies here: https://github.com/pyanodon/pypetroleumhandling/blob/9be3c2fe0239d16ce3be33a84ca0df9e40610db8/control.lua#L245 An item is defined by a name and a count not an amount: https://lua-api.factorio.com/latest/concepts.html#ItemStackDefinition