Page 1 of 1

Ingame simple calculator

Posted: Mon May 11, 2015 12:57 pm
by joon
I know that there are a lot of calculators for recipes and factories, but I'm looking for a simple calculator ingame so I can calculate for example:
how many chests I need to store 100k of ores, of course you can guess with 2,4k per chest, but like to know the exact amount.

I don't like to alt-tab because it will deactivate the info on all the factories and have to hit it multiple times to get it active again after. Hope it's not too much work to get as a mod or even in vanilla.

Thanks,

Jhonny

Re: Ingame simple calculator

Posted: Mon May 11, 2015 5:01 pm
by ssilk
Use the console? https://forums.factorio.com/wiki/inde ... a_commands

Code: Select all

/c game.player.print(123 * 45678)
for example

Re: Ingame simple calculator

Posted: Mon May 11, 2015 5:09 pm
by joon
Nice, that's good enough for me :) Thanks for the help

Also nice to see that the Arrow-up give the last given commands as well

Re: Ingame simple calculator

Posted: Mon May 11, 2015 5:38 pm
by ssilk
I change this suggestion like so:

A new command in the console:

Code: Select all

/p 1234 * 5678
Which is equal to:

Code: Select all

/c game.player.print(1234 * 5678)
So this should work, too:

Code: Select all

/p game.evolutionfactor
instead of

Code: Select all

/c game.player.print(game.evolutionfactor)

Re: Ingame simple calculator

Posted: Mon May 11, 2015 5:53 pm
by bobingabout
Except there's the question if game.player.print even works anymore, because game.player was replaced with an array, game.players, the equivelent command would be game.players[1].print in a single player game.

Though, does game.player still work when used in the console?

Re: Ingame simple calculator

Posted: Mon May 11, 2015 6:13 pm
by orzelek
bobingabout wrote:Except there's the question if game.player.print even works anymore, because game.player was replaced with an array, game.players, the equivelent command would be game.players[1].print in a single player game.

Though, does game.player still work when used in the console?
/c game.player works ok in console - it defaults to you. It doesn't work in scripts.

And I second the suggestion of adding /p - would make it much more handy.

Ingame Calculator

Posted: Thu Jan 04, 2018 4:31 pm
by DerMoritz98
Ingame Calculator
I would like to have an in-game Calculator.
This could maybe be solved by typing an mathematical formula in the chat, or more elegant and easier accessible by adding an extra button like the ones above the minimap, which then opens a calculator menu.
Why?
It would make it easier when you are playing Factorio at times like 2 o'clock and you can't think about the answer to 14*3, which I do sometimes need in-game.

Re: Ingame Calculator

Posted: Thu Jan 04, 2018 6:06 pm
by Caine
In my experience, Factorio handles alt+tab really well. In no way is it going to have a better calculator than an external program can provide.

Re: Ingame simple calculator

Posted: Thu Jan 04, 2018 6:28 pm
by Koub
[Koub] Merged into older topic with same suggestion

Re: Ingame simple calculator

Posted: Thu Jan 04, 2018 6:49 pm
by DerMoritz98
Yea, but my PC's hard drive is not the fastest and when you are using single monitor it's really annoying to tab out every here and there. An in-game calculator would make this redundant and often when it's really late (or early, depends on your definition) you have to tab out and in more than once, because while you tabbed out, you forgot the answer.
It would also be a nice gimmick which would make Factorio more awesome than it's now.
And would be much handier than the console.

Re: Ingame simple calculator

Posted: Thu Jan 04, 2018 7:27 pm
by pleegwat
If you have a smartphone, it almost certainly includes a calculator app as well.

Re: Ingame simple calculator

Posted: Fri Jan 05, 2018 12:58 pm
by olafthecat
I have a Casio scientific calculator and that seems to do the trick.

Re: Ingame simple calculator

Posted: Sun Jan 19, 2025 5:13 pm
by burninghey
Sorry for necro'ing old thread, but it's still missing.

/c game.player.print(1234 * 5678)

disables achievments..

Re: Ingame simple calculator

Posted: Sun Jan 19, 2025 10:27 pm
by DUBLGUNZ
You can also use the Arithmetic combinator to do
01-19-2025, 15-26-20.png
01-19-2025, 15-26-20.png (125.75 KiB) Viewed 318 times
your calculations. It doesn't display results with large numbers with all digits but would work in many instances and won't disable achievements.

Re: Ingame simple calculator

Posted: Mon Jan 20, 2025 12:41 am
by angramania
burninghey wrote: Sun Jan 19, 2025 5:13 pm Sorry for necro'ing old thread, but it's still missing.
You can use any text field for it. Was introduced in https://www.factorio.com/blog/post/fff-388