Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
by me is allways Full in: never :( |
|
|
How can I add my own lang? |
|
|
Actually, gradual decrease calculation is the main objective of this script.
|
|
|
There's a space under population growth rate that would be a logical place to put this kind of info. I did a messy hack of your script to do it:
var parentNode = divCityOverview.childNodes[3].childNodes[3]; var newNode = parentNode.childNodes[3].cloneNode(true); var insertedElement = parentNode.appendChild(newNode); insertedElement.style.position = "relative"; insertedElement.style.top = "74px"; insertedElement.innerHTML = msg_TimeLeft[lang] + timeRealToString(timeLeftEx, lang); I also shortened the English (for example, one of my towns reads "Full in: 3d 20h 4m") to fit in the space. |
|
|
Actually, to find the Exact growth rate you'll have to divide the number you get by 100 and trim a couple of decimal places. (((Satisfaction - Penalty)*2)-.01)/100 = Growth Rate |
|
|
Ok, I figured out the algorithm for how the population growth rate is calculated. Add all positive satisfaction items (Basic Bonuses, Wine, & Culture) and subtract all negative penalty points (Population and corruption). Multiply the number you get by 2 and subtract .01 from it. You now should have the same number as the growth rate in your town. ((Satisfaction - Penalty)*2)-.01 = Growth Rate |
|
|
Does this countdown take into account the gradual decrease in growth rate due to population growth? I'm not sure what the algorithm for that is, but I know the growth rate slows as the town grows. |
|
|
Well. I've made browser language detection and translate messages to English. |
|
|
A new version now available. Some bug fixes:
|
|
|
I didn't expect any attention to my little script. Just uploaded it here to share it with my ally.
|
|
|
Might also help to edit the script and change this line divCityOverview.childNodes[3].childNodes[3].childNodes[1].childNodes[3].title = "Time to Go: " + timeLeftHour + ":" + timeLeftMinutes; Change the russion text to english |
|
|
From looking at the script it calculates the remaining time until current population growth will equal max population. It then displays this result on the town view as a tooltip when hovering over the Max Population figure. |
|
|
Can you tell us what it does?
Greets |
|
|
wew
|
|
|
wew
|