Page 1 of 1

Complete Research in Console

Posted: Tue Feb 25, 2014 8:35 pm
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.

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 8:44 pm
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

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 8:46 pm
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.

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 9:07 pm
by rlerner
slpwnd - <3

Worked like a champ

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 9:09 pm
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.

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 9:20 pm
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

Re: Complete Research in Console

Posted: Tue Feb 25, 2014 10:39 pm
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.

Re: Complete Research in Console

Posted: Wed Feb 26, 2014 11:37 am
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

Re: Complete Research in Console

Posted: Wed Feb 26, 2014 12:34 pm
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