What's the console command to reset all techs?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Peter34
Smart Inserter
Smart Inserter
Posts: 1100
Joined: Mon Nov 10, 2014 12:44 pm
Contact:

What's the console command to reset all techs?

Post by Peter34 »

I'm running a test game, and I want to enforce an all-over rest of all techs, so that they are all set to "not_researched".

How do I do that?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: What's the console command to reset all techs?

Post by prg »

Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Peter34
Smart Inserter
Smart Inserter
Posts: 1100
Joined: Mon Nov 10, 2014 12:44 pm
Contact:

Re: What's the console command to reset all techs?

Post by Peter34 »

Thanks! To save others from having to click on the link:
/c for _,v in pairs(game.player.force.technologies) do v.researched=false end
(with the slash-c thing appended)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: What's the console command to reset all techs?

Post by ssilk »

Then you didn't read to the end:

Code: Select all

/c game.player.force.reset()
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Technical Help”