Ikariam Transport Countdown

By Matthew Hancock Last update Jan 15, 2009 — Installed 55,049 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 49 posts, 21 voices



Jesse Andrews Admin

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

 
Matthew Hancock Script's Author

It looks like Ikariam finally implemented their own version of this script in the actual game in v 2.8. Therefore, this script doesn't seem to be needed anymore. Thanks to all of those who helped me tweak it along the way! It's likely that the popularity of this script actually encouraged the Ikariam developers to add this functionality to the game!

 
nicon4454 User

with the new version of the game 0.2.8 the script needs a bit of tweaking and the mouse over no longer works when you mouse over the number of ships it done not give you what it is carrying. but i love the script all worked well till 0.2.8. Thanks Matthew

 
VinWij User

Works just fine on nl in ff3. Remember that you put the script above Ikariam ++ in the script-list, or the inferior countdown from Ikariam ++ is used. This one uses actual time, while Ikariam uses decimal time (eg 3,8 minutes).

Kudos!

 
kiss_of_kill User

Nicee

 
Matthew Hancock Script's Author

@Supernate
I'll have to take a look at that, but I'm sure its possible. I think the idea was that the timestamps would always be in the future, but clearly you've found an exception. Sorry for the crashing! 0_o

 
Supernate User

Great script. Love it. Looks like there might be a bug when the arrival time occurs in the past. I have an attacking army that is in a long battle. This ship is now at the top of the ships travel screen. The end of the mission is calculated to be in the future, but the script keeps having problems on the first time stamp which occurs in the past, so the script keeps reloading continuosly until the browser window crashes. Since it can't convert the first time stamp, none of the others get converted either. I had to disable the countdown script for now. Would it be possible to not convert the time stamp on arrival times that already happened in the past?

 
Strike4rc User

Thanks Matthew - Looks like it is working ok to me.

 
motatd User

thanks... i will see if it work

 
Matthew Hancock Script's Author

I tested Overkill's script and updated the install code. This should work now in most cases... Thanks for your hard work guys!

 
Matthew Hancock Script's Author

Awesome, so you guys have done some work correcting my NAN bug while I was away! Overkill has completely re-written the code using a much better method but I haven't had a chance to test it yet... :( If you all can confirm that the new code you've put together is working correctly, and someone can email that code to me @ matthewaaron at gmail dot com I will update the download link.

Thanks!

 
Enven2 Scriptwright

yeahhh!!!!! thanks everybody

 
Strike4rc User

Save the source file to you hard drive. E.g, Save as C:\ITC.user.js (It needs to have the extension .user.js to work) and make the modifications mentioned below using your favourite editor.

When this has been done open your browser, make sure greasemonkey is enabled, and type in the name of the file into the you browser address bar E.g, c:\ITC.user.js. You will then be asked to install the script as normal.

Alternatively, it would be nice for Matthew to update the script in the download link.

 
motatd User

hello
could you explain to me how i do the alteration on the script??
thanks

 
mercilessming User

Perfect - we now have a completely operational script!

 
Paul "T... User

To get this working with the tooltips on the merchantNavy screen, I changed:

    TDs = document.getElementsByTagName("td");

with
	mainview = document.getElementById('mainview');
    TDs = mainview.getElementsByTagName("td"); 

in the returnTableCells_merchantNavy function.

 
Enven2 Scriptwright

I'm sorry, mercilessming. It was my mistake. I'm grateful for your contribution. I'll wait to Overkill's code.

 
thanakar User

That fixed the actual countdowns in both screens, now the only problem remaining is when you mouse over the ships in the transport screen and everything goes haywire.

 
mercilessming User

Enven2, that fixes the trading port loading screen NOT the goods popup thing.

I read below that has already been addressed by Overkill, no point in reinventing the wheel eh?

 
Enven2 Scriptwright

sorry, but that change doesn't work. same problem

 
mercilessming User

To fix the port screen change the line:

if((contents.search(':') != -1) || (contents.search('Remaining') != -1)){

to

if(contents.search('is loading') == -1 && (contents.search(':') != -1) || (contents.search('Remaining') != -1)){

 
thanakar User

Made the change and the countdown is working now but the script still messes up the trade port loading screen.

 
Enven2 Scriptwright

thanks mercilessming. i changed that line and the script works better, but not perfect. if you pass the mouse over the number of boats (the third column), to see how many resources are been transported, the countdown stops, and if you do the same with boats coming from a combat, you get again the "NaNh NaNm NaNs" problem. if someone knows how to solve it, please, tell us

 
mercilessming User

To fix this just replace the line

if((contents.search(':') != -1 && contents.search('.') != -1) || (contents.search('Remaining') != -1)){

with

if((contents.search(':') != -1 && contents.search('.') != -1 && contents.search(': ') == -1) || (contents.search('Remaining') != -1)){

Cheers Matthew this is an invaluable script!

 
Enven2 Scriptwright

when you use the boats to transport troups and pillaging, you get de "NaNh NaNm NaNs" problem. look: http://img56.imageshack.us/img56/9860/saqueocb5...
thank'u for the script

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