[2.0.73] MineEntityTechnologyTrigger is triggered by crafting

Things that has been reported already before.
half a cat
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

[2.0.73] MineEntityTechnologyTrigger is triggered by crafting

Post by half a cat »

MineEntityTechnologyTrigger is triggered when the mined item is crafted (not mined). I believe that it should not trigger the technology. While there are some other bug reports about MineEntityTechnologyTrigger, the other bug reports don't involve crafting.

This effect can be reproduced with just the space age mods. Cheat to create cliff explosives, then recycle them. This is treated as if you had mined calcite.

The attached save file reproduces the issue. A technology will be researched even though no calcite is mined.
Attachments
demo-mine-trigger.zip
(1.75 MiB) Downloaded 19 times
factorio-current.log
(7.61 KiB) Downloaded 15 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4542
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.73] MineEntityTechnologyTrigger is triggered by crafting

Post by boskid »

Ref viewtopic.php?p=662469#p662469 - for performance reasons, MineEntityTechnologyTrigger is triggered by ItemProduction statistics having income of items, not by entity being mined.

-- edit:

Check of ItemProduction statistics (or FluidProduction statistics) only happens when MineEntity trigger points at a resource entity. I do not think this will ever change because of the amount of resources mined by mining drills each tick in larger save files.
half a cat
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

Re: [2.0.73] MineEntityTechnologyTrigger is triggered by crafting

Post by half a cat »

Ok, thanks for explaining why the game engine does that.
Post Reply

Return to “Duplicates”