IkariamPredict

By lavelas Last update Jul 28, 2008 — Installed 7,187 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 16 posts, 9 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Shakall User

by me is allways Full in: never :(

 
MindTwister Scriptwright

How can I add my own lang?

 
lavelas Script's Author

Actually, gradual decrease calculation is the main objective of this script.
But there is no need to calculate Growth Rate. It is already calculated at the town hall page. So I just get it and then decrease it for 0.02 for each man born in town.

 
Overkill Scriptwright

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.

 
Matthew Hancock Scriptwright

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

 
Matthew Hancock Scriptwright

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

 
Matthew Hancock Scriptwright

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.

 
lavelas Script's Author

Well. I've made browser language detection and translate messages to English.

 
lavelas Script's Author

A new version now available. Some bug fixes:
* didn't work in some conditions - shows 0 - fixed
* added infinity condition support
* remaining time now displayed in days, hours, minutes.

 
lavelas Script's Author

I didn't expect any attention to my little script. Just uploaded it here to share it with my ally.
Thank you ocdcsv. You are right. I gonna update script description with your explanation if you don't mind.
And yes, it's only in Russian now. Maybe the next versions will support English.

 
ocdcsv User

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

 
ocdcsv User

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.

 
TheHesser User

Can you tell us what it does?
I installed it but I don't see changes.

Greets

 
boogrex User

wew
what this
what using for

 
boogrex User

wew
what this
what using for

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel