Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

IkariamPredict

Predicts Ikariam (browser based game) aspects. At that moment it is only one feature: town hall upgrade planning.

Overview:
This script calculates the remaining time until current population growth will equal max population.
It then displays it at the town hall view.

Screenshots:
Free Image Hosting at www.ImageShack.us





1 point
login to vote
Shakall user
Posted Sep 8, 2008

by me is allways Full in: never :(

1 point
login to vote
MindTwister scriptwright
Posted Aug 1, 2008

How can I add my own lang?

1 point
login to vote
lavelas script's author
Posted Jun 20, 2008

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.

1 point
login to vote
Overkill scriptwright
Posted May 25, 2008

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.

1 point
login to vote
Matthew Hancock scriptwright
Posted May 9, 2008

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

1 point
login to vote
Matthew Hancock scriptwright
Posted May 9, 2008

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

1 point
login to vote
Matthew Hancock scriptwright
Posted May 9, 2008

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.

1 point
login to vote
lavelas script's author
Posted May 9, 2008

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

1 point
login to vote
lavelas script's author
Posted May 9, 2008

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.

1 point
login to vote
lavelas script's author
Posted May 9, 2008

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.

1 point
login to vote
ocdcsv user
Posted May 2, 2008

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

1 point
login to vote
ocdcsv user
Posted May 2, 2008

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.

1 point
login to vote
TheHesser user
Posted May 2, 2008

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

Greets

1 point
login to vote
boogrex user
Posted May 2, 2008

wew
what this
what using for

1 point
login to vote
boogrex user
Posted May 2, 2008

wew
what this
what using for

You could comment on this script if you were logged in.