Author |
Building AI and Technology projections |
Patience *TOA* Fleet Admiral
Joined: May 14, 2011 Posts: 16 From: Virginia, the land of farm boys.
| Posted: 2011-06-19 13:56  
I'm writing a builder AI and I'd like to know two things that play into the core calculations if I may:
1) What is the actual number of seconds between technology increase calculations?
2) Is the tech increase a float.
It appears that tech increase is (( Population / 2 ) / 10 ) yet this demands use of floating point for compounding the decimal.
Does DarkSpace add up the decimals over time on the back end or does it just round up (or down) for increasing tech?
Thanks,
Faedorne
_________________
|
The_Enforcer (The Vindicator) Fleet Admiral
Joined: March 05, 2010 Posts: 163 From: another dimension
| Posted: 2011-06-19 14:23  
I thought the rate grows on wht planet your on
(barren the slowest tech growth rate, to terran the fastest tech growth rate)
_________________ Problem Darkspace?
|
Deltabacon Fleet Admiral
Joined: August 17, 2007 Posts: 395 From: Liverpool, Great Britain
| Posted: 2011-06-19 14:30  
Because those planets have a higher starting population and food/habitat is provided prior to colonization/building.
_________________
|
Admiral Kamikaze Bacon Fleet Admiral *Renegade Space Marines*
Joined: July 01, 2010 Posts: 35 From: Admiral Kamikaze Bacon
| Posted: 2011-06-19 19:11  
O.o Isn't ([population]/2)/10 the same as [population]/20? Or is the 10 in there to give it a decimal base?
_________________
|
Patience *TOA* Fleet Admiral
Joined: May 14, 2011 Posts: 16 From: Virginia, the land of farm boys.
| Posted: 2011-06-22 09:33  
Generally speaking "/ 20" is the same, however, it could be multiple equations or separate variables calculated with internal hidden modifiers.
Terran grows faster because the base habitat and food are already there. You are starting further along in the process.
Everyone has additional input, factories increase tech increase, etc. I can get to 90 tech really fast without building a factory, but haven't tested whether there is a slight increase in that speed with 1 or more factories on a planet.
I will go a measure the time between tech increases in scenario, and post back if the thread is still open.
Fae
_________________
|
Fatal Perihelion Chief Marshal Fatal Squadron
Joined: April 15, 2010 Posts: 308
| Posted: 2011-06-22 11:05  
Factorys? Factorys just are a multiplicator for mines.
From what i know the fastest way to increase tech is bye growing population asap, disbanding infantry.
So you will need barracks, not factorys. But i dont know the math.
_________________
|
Talien Marshal Templar Knights
Joined: May 11, 2010 Posts: 2044 From: Michigan
| Posted: 2011-06-22 12:13  
Yup. Factories add to production which multiplies mining output, if you build a planet with all Mines you'll get over 100 mining per tick which might sound good, but if you scrap half those Mines to add some Factories you'd end up with something more like 60 mining and 10 production, which would give you 600 resources per tick.
I don't know the exact numbers for tech growth based on population/research either, but it's like I was telling you in game the other day, start off a planet with 10 barracks and keep disbanding troops after it gets to 10, or 20 if it's mid-late game to prevent it from being filled with enemy troops by transport rushes. This will build your population up quickly, which brings tech up and lets you get a functioning planet faster.
_________________ Adapt or die.
|