Jump to content

Technical Implementation: Difference between revisions

no edit summary
m (Melker moved page Implementation to Technical Implementation without leaving a redirect)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Note: This page contains technical details, if you are new to this game, don't read it, at least not yet :-) '''
'''Warning: Information on this page IS out of date'''


'''Warning: Information on this page may be out of date'''
'''Note: This page contains some technical details as they were in an early stage of the game development '''


= Calculations done (on colonies) =
= Calculations done (on colonies and inventory) =
== Every other minute ==
== Every other minute ==
For now calculations take place every other minute. r_nnn below is the ratio on that order setting. Using a linear model. This makes one colony "slow to turn" but by using many colonies it gets done faster. Use ar_worker=worker/(worker+warrior) in some formulas instead of r_worker to reflect the actual population.
For now calculations take place every other minute. r_nnn below is the ratio on that order setting and ar_nnn in the acyual ratio in the nest (may differ from setting). Using a linear model. This makes one colony "slow to turn" but by using many colonies it gets done faster. Use ar_worker=worker/(worker+warrior) in some formulas instead of r_worker to reflect the actual population.
* capacity += r_expand * ar_worker * const
* capacity += r_expand * ar_worker * const
* secret capacity += r_expand * ar_worker * r_secret * const  (NOTE: secret is a part of the capacity)
* secret capacity += r_expand * ar_worker * r_secret * const  (NOTE: secret is a part of the capacity)
Line 26: Line 26:
* if (capacity < 2 and not inhabited) nest is broken and destroyed
* if (capacity < 2 and not inhabited) nest is broken and destroyed


== Every 12 minutes ==
== Every 10 minutes ==
* Animals at colonies eat and destroy
* Animals at colonies eat and destroy.
* Food in inventory slowly decay.
* Each warrior in inventory eat 0.01 food (if available), i.e. 0.06 per hour. (Comparison: They eat 0.1 per hour when in the colony)
* Warriors in inventory without food decrease in number by both by 0.2% and 5 in actual numbers.


= Network =
= Network =
Line 52: Line 55:


== Animals ==
== Animals ==
* Amount of animals: Is currently linear to the number of colonies
* Amount of animals: Is currently linear to the number of colonies + the number of old energy bars (attracting bears)
* Have a an (average) lifetime and disappears after that time (no matter if in inventory or on ground)
* Have a an (average) lifetime and disappears after that time (no matter if in inventory or on ground)
* Show up on colonies with notification to owners
* Show up on colonies with notification to owners


== Food ==
== Food ==
* Pretty evenly distibuted on earth
* Pretty evenly distributed on earth
* Only visible on zoomed in.
* Only visible on zoomed in.
* TODO Decrease and disappear after some time? New show up. How?
* If dropped, decrease and disappear after some time.
* When looking at area x1,x1 -> x2,y2, maybe it "scans the lines" and the distance to the next food occurrence is relative to the latitude to get it evenly distibuted. (instead of checking a square pattern)
* TODO But how to figure out where to spawn more food and where has it already been done?
* Math pattern having a fixed amount of food and a table with the removed ones (and dropped) and let the patters slowly slide/change in some way...
* Math pattern having a fixed amount of food and a table with the removed ones (and dropped) and let the patters slowly slide/change in some way...
* Where is it calculated?
* Where is it calculated?
** One table with lat L,LL and long L,LL values showing where it has been added
** One table with lat L,LL and long L,LL values showing where it has been added
** One table with actual food items on the map. When picked up, they respawn efter some time, or grow up again.
** One table with actual food items on the map. When picked up, they spawn after some time, or grow up again.
** After som time food disappear at the current location and get new distribution, with overlap. TODO HOW?)
** There are fixed areas where the food appear. (Maybe in the future: Over time the internal pos and location is changed. Two overlapping formulas or just one and a fix time when it is changed to the new. Once a week the removed resources are reset and the new ones appear?)
** There are fixed areas where the food appear. Over time the internal pos and location is changed. Two overlapping formulas or just one and a fix time when it is changed to the new. Once a week the removed resources are reset and the new ones appear?