TechnologyModifier character-additional-mining-categories not working

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
SWeini
Inserter
Inserter
Posts: 35
Joined: Mon Apr 04, 2022 6:43 am
Contact:

TechnologyModifier character-additional-mining-categories not working

Post by SWeini »

What's up with "character-additional-mining-categories" as a technology effect.

https://wiki.factorio.com/Types/ModifierPrototype
This site doesn't list it as valid for "type" property, but it's mentioned further down.

https://lua-api.factorio.com/latest/Con ... gyModifier
This site lists it as valid.

Using it in a mod leads to an error during load.
Unknown modifier type "character-additional-mining-categories"

Can you please either remove all mentions of this from the documentation or make it work.

In case you don't want to support this, I believe the proper way is to listen to on_research_finished events and change the character's character_additional_mining_categories property manually, right?

Genhis
Factorio Staff
Factorio Staff
Posts: 120
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: TechnologyModifier character-additional-mining-categories not working

Post by Genhis »

This is not a bug. Modifier "character-additional-mining-categories" is not listed as a valid type for the prototype stage (the wiki docs). I am moving this topic to Modding interface requests.

Currently the only way to change the value is at runtime using LuaControl::character_additional_mining_categories.

Post Reply

Return to “Modding interface requests”