Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
updated version here: http://userscripts.org/scripts/show/29431 |
|
|
There is a line var nScript = document.getElementById("cityResources").getElementsByTagName("script")[0]; which is causing the script to fail. The id "cityResources" no longer has a tag "script"? |
|
|
new version out and it's not working anymore on v0.2.8 |
|
|
my island coordinate was 100:xx
|
|
|
Hi, There is a little error in the script.
In another words:
Can you fix it? |
|
|
Okay; I've finally made my own variant of this script's table, Kronos Overview. It isn't as full of options and features as this hack, and it never will be either, but it won't break as often under ikariam layout changes as this one does. |
|
|
этот скрипт не обновляет информацию о транспортных кораблях в пути
|
|
|
New issues today (July 1st). I have fixed them and uploaded a script here: http://userscripts.org/scripts/show/29431 (Doh - the original script I uploaded still had a bug. Fixed it now. The script at the link above now should work correctly). |
|
|
Haha, need the resources too much since the corruption has gone up. Ikariam gets tougher to play every time... :) I guess that's why you need it too so hard! Thanks for the update, will install it immediately. |
|
|
I re-uploaded the script here:
Maybe you guys can send me some extra *Marble*, Crystal, and Wine =) |
|
|
Ok, I lost track. I thought I updated all the code according to what was said below here, but now the entire table is gone... So I must have done something terrible wrong. Would Kevlar, LiuA or Johan be so kind to post a complete working version? I only know a little bit of javascript and I'm not able to figure this one out ;) |
|
|
Thanks LiuA,
|
|
|
KevlarTheGreat - Updated my previous comments w/ a check for undefined
if (island_id == undefined){
island_id = "";
}
Should be working now. Once again, new to greasemonkey scripts and this code. |
|
|
Thanks LiuA,
Thanks, Kevlar |
|
|
For the merchant navy transport fix, I had to remove the extra [xx,xx] island information from the city name. I added:
to Coop's Trim Whitespace Function:
/***********************************************************************
* Trim Whitespace Function ************************************************************************/
function Trim(str){
str = str.substring(str.indexOf(']')+1,str.length);
while(str.charAt(0) == (" ") ){
str = str.substring(1);
}
while(str.charAt(str.length-1) == " " ){
str = str.substring(0,str.length-1);
}
return str;
}
|
|
|
Here's a fix to the change in the city names. The island location was added to the city names. After this line:
I added the 5 lines:
var island_id = getNodeValue("id('breadcrumbs')//a[@title='Back to the island']");
if (island_id == undefined){
island_id = "";
}
city_idmainView = TrimIsland(island_id)+" "+city_idmainView;
Make sure you've applied Coop's previous fix w/ the extra white space to the line below (see previous posting from Coops)
Also added a TrimIsland Function:
/**************************************************************************************************
* TrimIsland Function ******************************************************************/
function TrimIsland(str){
var a = str.indexOf('[');
var b = str.indexOf(']');
str = str.substring(a,b+1);
return str;
}
I'm new to greasemonkey scripts, but this seems to fix part of the recent problems.. |
|
|
Johan, you seem to really know what you are doing and we haven't seen an update from the author in a long time.... maybe you could take over or post a clean update somewhere again? I appreciate your work on this so far and it sounds like you could change it so it doesn't break as often.. I would love to change it myself, I just don't have time to learn javascript right now. Anyhow, thanks either way,
|
|
|
Advice to whomever might fix this next time: Instead of the brittle XPath expression to look up the name of the current building, use the value of
This works stably across any page layout changes Gameforge ever does, and is what Kronos Utils does without ever encountering any trouble (track record back to 0.1.8, or thereabouts, when I think I started hacking on Kronos). |
|
|
Yup, the silent update this morning with all the crappy Ikariam Plus advertising has broken the (patched) script again. |
|
|
Gah, Gameforge must have tweaked something again, because ship and town updates aren't working anymore. It was working last night (with the tweaks posted here installed) and had been since v0.2.5, but now it's broken again :( -G |
|
|
Hello
|
|
|
Jut eszembe...
|
|
|
|
|
|
i have pushed the reset all data bottom, only now the tables will not work at all anymore, it will not show the correct data any more.
|