Technology count_formula

Place to get help with not working mods / modding interface.
Post Reply
nagapito
Filter Inserter
Filter Inserter
Posts: 361
Joined: Fri Jul 29, 2016 12:18 am
Contact:

Technology count_formula

Post by nagapito »

What does the count_formula accept as valid parameters or math functions?

I know there is the L for the research level and that you cant do divisions.
Are there any other parameters available that we can use and some math functions like logarithmic?

kikker450
Inserter
Inserter
Posts: 30
Joined: Fri May 05, 2017 9:07 am
Contact:

Re: Technology count_formula

Post by kikker450 »

The lua has all the math function imported so that shouldn't be a problem: http://lua-users.org/wiki/MathLibraryTutorial
Have you tried assuring that the output is always a integer (and not a float)? Otherwise I don't know.

Jürgen Erhard
Filter Inserter
Filter Inserter
Posts: 298
Joined: Sun Jun 12, 2016 11:29 pm
Contact:

Re: Technology count_formula

Post by Jürgen Erhard »

But is there more than the L? Using other inputs than just the level could make for some amazing schemes.

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Technology count_formula

Post by ptx0 »

bump

would love logarithmic research costs

Post Reply

Return to “Modding help”