Page 1 of 1

Question about tech upkeep

Posted: Thu Dec 20, 2018 11:01 am
by Corbeau
Tech upkeep is calculated with:

<Cost of technology> / tech_upkeep_divider - tech_upkeep_free

We are playing with techleak activated. So, in this case, what exactly is <Cost of technology>? Is it:

1. The current cost of all tehnologies that I have discovered (that is basically decreasing as more nations discover them)
2. The amount of bulbs that *I* spent in discovering those techs (meaning that, if someone is behind and discovers techs late, he will be paying less upkeep while being equally advanced as someone who discovered them first)
or
3. The base cost of techs, remaining unchanged for the whole game?

I assume (and hope) it is #3 because it would be most logical. But if anyone has more information, can you please clarify?

Re: Question about tech upkeep

Posted: Sat Dec 22, 2018 4:55 am
by Akechi
Base cost of technology:
https://github.com/freeciv/freeciv/blob ... ech.c#L240
Line 232, 240 and 249 (depends on tech_cost_style in game.ruleset)
If tech_cost_style is "Classic+" or "Experimental+" then base cost of technology relies on each technology's cost in techs.ruleset.

Tech upkeep:
https://github.com/freeciv/freeciv/blob ... rch.c#L904
Line 895 and 904 (depends on tech_cost_style in game.ruleset)

I think <Cost of technology> is your #3.
However, variable "total_research_factor" and "members" affect tech upkeep, so tech upkeep is modified from game.ruleset comment's formula. (maybe relates to team pooled research)
e.g. if you have technology Ceremonial Burial at 10 bulbs, rulesets' tech_upkeep_style = "Basic", tech_upkeep_divider = 1, Tech_Cost_Factor effect is 1, no Tech_Upkeep_Free effect, server option's sciencebox = 100 then your tech upkeep is 20 bulbs. (because "total_research_factor" is 2 and "members" is 1 I think)

Re: Question about tech upkeep

Posted: Sun Dec 23, 2018 7:35 am
by Corbeau
Thanks. So, basically, working as intended.