enable previus reserched item "un-research"

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Sworn
Fast Inserter
Fast Inserter
Posts: 167
Joined: Sun Apr 03, 2016 8:10 pm
Contact:

enable previus reserched item "un-research"

Post by Sworn »

IF you put some mod that add an item when you research something, but you already research that. So, there is any console command that "un-research" so i can research it again and get the item enabled?

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: enable previus reserched item "un-research"

Post by prg »

No need to re-research the technology, you can just enable the recipe for the item directly:

Code: Select all

/c game.local_player.force.recipes["recipe-name"].enabled = true
If you still want to un-research a technology, you can use

Code: Select all

/c game.local_player.force.technologies["technology-name"].researched = false
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Sworn
Fast Inserter
Fast Inserter
Posts: 167
Joined: Sun Apr 03, 2016 8:10 pm
Contact:

Re: enable previus reserched item "un-research"

Post by Sworn »

lol thank you alot :D !

Post Reply

Return to “Modding discussion”