Page 1 of 1

how to reset a specific technologie ?

Posted: Sun Apr 24, 2016 1:05 pm
by Thyrguilar
Hi, I was wondering how to reset a specific tech, and after hours, found nothing.

I get a mod that modify existing tech, adding recipe in it. But because it was allready research in my save game, i can't research it again (yeah, cpt obvious is here !) but the new recipe in that tech do not appear in the "e" menu (works normaly on a new game).

So, if anyone knows a command to reset one single particular tech (not reseting all) i ll be greatfull.

P.S : sorry if my english is not correct, not my birth language.

Re: how to reset a specific technologie ?

Posted: Sun Apr 24, 2016 1:11 pm
by Kayanor
I think it was

Code: Select all

/c game.player.force.technologies["technology-name-here"].researched=false
Tested it - works fine. :D

Re: how to reset a specific technologie ?

Posted: Sun Apr 24, 2016 1:16 pm
by Thyrguilar
works great thanks a lot ^^.

Re: how to reset a specific technologie ?

Posted: Sun Apr 24, 2016 1:31 pm
by Thyrguilar
hummm, at least works for some, but not for "Advanced-Material-Processing-2" (i tried a few different way to spell it with what i found). can't manage to make it works. where can i find the correct lua name for that one ?

edit : same prob with "Electric energy distribution 2"

edit 2 : prob solve : was the capital letter -_-

Re: how to reset a specific technologie ?

Posted: Sun Apr 24, 2016 2:18 pm
by Kayanor
All the vanilla technologies are listed in your Factorio installation directory:

"C:\Program Files\Factorio\data\base\prototype\technology" (default standalone installation directory)
"C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\base\prototype\technology" (default Steam installation directory on x64 systems)