Complete Research in Console

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
rlerner
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Mar 05, 2013 1:26 am
Contact:

Complete Research in Console

Post by rlerner »

I have had to restart my factories a few times, and while starting up can be fun, there are times I'd like to just have all the research done and build a factory... Sort of like "Creative Mode" on Minecraft.

Is there a way to quickly research all technologies, or do them through the console? The waiting period is the killer, I can just give myself the potions if there's a way to disable the wait period, or "give" the research.

Any help would be swell.

Gammro
Filter Inserter
Filter Inserter
Posts: 361
Joined: Wed Oct 09, 2013 1:45 pm
Contact:

Re: Complete Research in Console

Post by Gammro »

I think the easiest way would be to install the test mode mod: https://forums.factorio.com/forum/vie ... f=14&t=895
Ignore this

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Complete Research in Console

Post by slpwnd »

Code: Select all

game.player.force.researchalltechnologies()
or just play the sandbox scenario and ask for all the technologies (and possibly a starting chestin) in the initial dialog.

User avatar
rlerner
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Mar 05, 2013 1:26 am
Contact:

Re: Complete Research in Console

Post by rlerner »

slpwnd - <3

Worked like a champ

User avatar
rlerner
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Mar 05, 2013 1:26 am
Contact:

Re: Complete Research in Console

Post by rlerner »

One more question while I'm at it -- is there a list of entities anywhere? To use with the "give" command?

Something like:
express-transport-belt

and so on? I think some deviate from the textual name, but can't think of them right now.

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Complete Research in Console

Post by ficolas »

I know logistic chest change, they are logistic-chest-provider, logistic-chest storgage etc.

But I find using the testmode muuuch eaaier (Mods arent bad :D )

if you still prefer to not use it, then you can look the nanes in the locale files

User avatar
rlerner
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Tue Mar 05, 2013 1:26 am
Contact:

Re: Complete Research in Console

Post by rlerner »

Makes sense -- for the most part, I try to avoid mods... a co-worker and I made a dense-coal mod a while ago, and I had a treefarm mod... something with those games happened that made my saves unplayable, so that was depressing.

I may end up giving that a shot at some point.

Good call at looking at the folders, didn't think of that.

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Complete Research in Console

Post by slpwnd »

There is no "list of entities" at the moment. Though it is a nice idea.

Edit: ok there is :D as kovarex has shown below

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Complete Research in Console

Post by kovarex »

rlerner wrote:One more question while I'm at it -- is there a list of entities anywhere? To use with the "give" command?

Something like:
express-transport-belt

and so on? I think some deviate from the textual name, but can't think of them right now.
There actually is way to get the name of all entities using this:
https://forums.factorio.com/wiki/inde ... prototypes

Example of printing all entities to console, the problem is, that the list is too long:

Code: Select all

local entities = game.entityprototypes;for index, entity in pairs(entities) do game.player.print(entity.name) end
Here is an example of command that prints all the names of tree types:

Code: Select all

local entities = game.entityprototypes;for index, entity in pairs(entities) do if entity.type=="tree" then game.player.print(entity.name) end end

Post Reply

Return to “Gameplay Help”