Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
case 'ikariam.co.il':
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Hi !!! The french translate : case 'ikariam.fr':
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Translation to Russian
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
I did a really nasty hack on the script today. If you're in the transport page, you can open the overview, hit a button, and it uses the saved warehouse and resource info to fill out the values such that you can send either enough resources to balance out your resources or to max out the destination city. |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
I figured out why the bottom half wasn't working. in getCities(), you need to get rid of the extra space Ikariam puts in the <option>s.
trim:
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Hello.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Hello guys! Thanks a lot for all your submissions. I have to tell you that I've been really busy with my final exams for college. So, has you have already noticed, I've been away from the Ikariam Script. I want you all to know, that I've been reading all your comments, and I'm just waiting for all these exams to finish to start working on your feature requests, and getting the script work with the new FF3 release. Thanks for all your support! |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Some friends askme what thing must change for the auto-translation. Change this:
resources[8] = getResourcesProduction('island')[1].charAt(0).toUpperCase() + getResourcesProduction('island')[1].substr(1);;
for this:
var nombre = getResourcesProduction('island')[1];
if (nombre=='wine'){
resources[8] = keywords[1][1];
}
if (nombre=='marble'){
resources[8] = keywords[1][2];
}
if (nombre=='crystal'){
resources[8] = keywords[1][3];
}
if (nombre=='sulfur'){
resources[8] = keywords[1][4];
}
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
If you find that this script stops working, go to Manage User Scripts and rearrange the scripts so that this one is on top or near the top of your other Ikariam scripts. Other scripts may change the DOM in such a way that breaks this script. One change I'd like to see is reducing the footprint of the IkariamOverview div. With the score linker script, this is pushing the left hand side down and making the rendering of ikariam a little ugly. |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
when you adapt your script for the new version of ikariam, i try to translate in french |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Don't work whit the new version of Ikariam. (v.0.2.5) |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Excelent script perfect. Here an update on the Dutch line
some were not visible now they are (the wall is stadsmuur) and the handelshaven, you had twice handelspost but thanks, great script |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
I was corrected the Bug with the "Name of Goods".
// ==UserScript==
// @name Ikariam General Overview v1.5
// @namespace IkariamOverview
// @description An Ikariam game script to gather information from player towns
// @include http://*.ikariam.*/*
// @exclude http://board.ikariam.*/
// ==/UserScript==
/**
ABOUT:
» Ikariam General Overview v1.5
By: A. Maia F. (a.maia.ferreira[at]gmail.com)
Date: 3 June 08
Languages / working on servers:
» (en) English (UK) (ikariam.org)
» (us) English (US) (ikariam.com)
» (pt) Portuguese (ikariam.com.pt)
» (de) German (ikariam.de) [Thanks to t.b. - http://userscripts.org/users/29222]
» (pl) Polish (ikariam.pl) [Thanks to sip3k - http://userscripts.org/users/53611]
» (nl) Dutch (ikariam.nl) [Thanks to bogyi - http://userscripts.org/users/52238]
» (dk) Danish (ikariam.dk) [Thanks to Trigger - http://userscripts.org/users/53662]
» (es) Spanish (ikariam.es) [Thanks to Pyronhell - http://userscripts.org/users/52757]
» (cz) Czech (ikariam.cz) [Thanks to who e-mailed me the language]
» (it) Italiam (ikariam.it) [Thanks to Boydon]
» (se) Swedish (ikariam.se) [Thanks to rEacT - http://userscripts.org/users/54856]
CHANGELOG:
21/05/2008
* Version 1 released
* Minor bugfixes
22/05/2008
* Added colors to full (and almost full) warehouses
* Added German language
* Added Polish language
* Added Dutch language
* Added Danish language
23/05/2008
* Added Turkish language
* Minor bugfixes
03/06/2008
* Bugfix: At Island view, towns were on top of the general overview window (Thanks to Pyronhell that submited the bugfix - http://userscripts.org/users/52757)
* Bugfix: Production of island resources weren't working
* Added Spanish language
* Added Czech language
* Added Italian language
* Added English (US) language
05/06/2008
* Added Swedish language
WARNING:
Using this script with the game is forbidden!
I'm not responsible for banned accounts.
Quoted from Ikariam Rules:
"VII. Scripting
* Using a program as interface between the player and his game is prohibited. Any other form of automatically generated information generated for a group of players advantage with malicious intentions is forbidden as well.
This includes but is not limited to:
* Bots
* Macros
* Automated island databases.
Note: Only exceptions to this are programs that are expressly approved by GameForge."
FEATURES:
- Multi-language (12 of 21 languages currently available)
- Overview of all buildings for each town
- Overview of all resources for each town
- Resources maximum capacity for each town
- Resources production for each island
- Overview of all buildings under construction
- Shortcuts to island resources on the left-side box
- When storage is almost full for a resource, it changes it's color to bright red / when completely full, changes to red.
Note: You need to open each city first, to gather the data to complete the table.
KNOWN BUGS:
- When you open the Overview popup at the Island View, will not be visible.
TODO:
1 - Finishing times for building constructions (or a time bar?)
2 - Time bar until resource fulls a silo (to put in the table)
3 - Time bar / clock on upgrading buildings
- Finances table
- Workshop research table
- Research table
- Military table
?? - Loading everything together?
DONE - Various shortcuts on the script left panel (to resources, to buildings, etc)
DONE - Tooltips in capacity fields
DONE - Colors when near the maximum capacity
**/
/** MAIN VARIABLES STARTUP **/
var scriptName = "Ikariam General Overview v1.5"
var allCities = getCities();
var keywords = getLang();
try {
getBuildings(allCities, currentCity(allCities));
getResources(allCities, currentCity(allCities));
shortcuts = buildShortcuts(currentCity(allCities));
} catch(e) {
}
/**** FUNCTIONS ****/
function getLang() { /** returns array with language keywords.
TRANSLATIONS BELOW
ALL WORDS ARE CASE-SENSITIVE!
ALL BUILDING NAMES MUST MATCH THE SERVER BUILDING NAMES.
keywords[0] Building names
keywords[1] Resources names
keywords[2] Various words used in the data tables
**/
var keywords = new Array(2);
var tHost = window.location.host;
tHost = tHost.substring(tHost.indexOf('.')+1, tHost.length)
switch (tHost) {
case 'ikariam.org':
keywords[0] = ["Town hall", "Shipyard", "Trading port", "Warehouse", "Trading post", "Barracks", "Palace", "Hideout", "Embassy", "Academy", "Workshop", "Tavern", "Museum", "Town wall", "Governor´s Residence"];
keywords[1] = ["Wood","Wine","Marble","Crystal","Sulphur"];
keywords[2] = ["Level", "Close", "Click to open/close", "Buildings & resources overview", "* To update the data for each city go to the page of the correspondent city","Towns", "Buildings overview", "Resources overview", "Capacity","Under construction", "on", "under construction", "Building to level", "Production of", "City resources", "Maximum warehouse capacity", "for"];
break;
case 'ikariam.com.pt':
keywords[0] = ["Câmara Municipal", "Estaleiro", "Porto Mercantil", "Armazém", "Mercado", "Quartel", "Palácio", "Espionagem", "Embaixada", "Academia", "Oficina", "Taberna", "Museu", "Muralha da cidade", "Residência do Governador"];
keywords[1] = ["Madeira","Vinho","Mármore","Cristal","Enxofre"];
keywords[2] = ["Nível", "Fechar", "Clique para abrir/fechar", "Vista geral de edifícios & recursos", "* Para actualizar os dados de uma cidade, abre a página da cidade correspondente", "Cidades", "Vista geral de edifícios", "Vista geral de recursos", "Capacidade", "Em construção", "em", "em construção", "A construir para o nível", "Produção de", "Recursos da cidade", "Capacidade máxima do armazém", "para"];
break; // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
case 'ikariam.de':
keywords[0] = ["Rathaus", "Schiffswerft", "Handelshafen", "Lagerhaus", "Kontor", "Kaserne", "Palast", "Versteck", "Botschaft", "Akademie", "Erfinderwerkstatt", "Taverne", "Museum", "Stadtmauer", "Stadthaltersitz"];
keywords[1] = ["Baumaterial","Wein","Marmor","Kristallglas","Schwefel"];
keywords[2] = ["Stufe", "Schließen", "Hier klicken zum Öffnen/Schließen", "Gebäude- & Resourcenübersicht", "* Um die Daten der Städte zu aktualisieren, müssen die Seiten der jeweiligen Städte geladen werden.", "Städte", "Gebäudeübersicht", "Ressourcenübersicht", "Kapazität", "In Bearbeitung", "in", "in Bearbeitung", "Aufwerten auf Level", "Produktion von", "Stadtressourcen", "Maximale Lagerkapazität", "für"];
break;
case 'ikariam.pl':
keywords[0] = ["Ratusz", "Stocznia", "Port handlowy", "Magazyn", "Bazar", "Koszary", "Pa\u0142ac", "Kryj\u00F3wka", "Ambasada", "Akademia", "Warsztat", "Tawerna", "Muzeum", "Mur miejski", "Rezydencja Gubernatora"];
keywords[1] = ["Material budowlany","Wino","Marmur","Kryszta\u0142","Siarka"];
keywords[2] = ["Poziom", "Zamknij", "Kliknij by otworzyc/zamknac", "Podsumowanie budynk\u00F3w i zasob\u00F3w", "* Aby pobrac dane przejdz przez wszystkie miasta", "Miasto", "Podsumowanie budynk\u00F3w", "Podsumowanie surowc\u00F3w", "Pojemnosc", "W trakcie rozbudowy", "w", "W trakcie rozbudowy", "Rozbudowa do levelu", "Wydobycie", "Zasoby miasta", "Pojemnosc magazynu", "dla"];
break;
case 'ikariam.nl':
keywords[0] = ["Stadhuis", "Scheepswerf", "Handelspost", "Opslagplaats", "Handelspost", "Barakken", "Paleis", "Schuilplaats", "Ambassade", "Academie", "Werkplaats", "Taverne", "Museum", "Muur", "Gouveneurswoning"];
keywords[1] = ["Hout","Wijn","Marmer","Kristal","Zwavel"];
keywords[2] = ["Level", "Sluiten", "Klik om te opene/sluiten", "Gebouwen en Middelen overzicht", "* Om de data te updaten, ga apart naar elke stad","Steden", "Gebouwen overzicht", "Middelen overzicht", "Capiciteit","In aanbouw", "Aan", "In Aanbouw", "Aan het bouwen naar level", "Productie van", "Stad middelen", "Maximum opslagplaats capiciteit", "Voor"];
break;
case 'ikariam.dk':
keywords[0] = ["Rådhus", "Skibsværft", "Handelshavn", "Lagerbygning", "Handelsstation", "Kaserne", "Palads", "Skjulested", "Ambassade", "Akademi", "Værksted", "Værtshus", "Museum", "Bymur", "Guvernørs Residens"];
keywords[1] = ["Træ","Vin","Marmor","Krystal","Svovl"];
keywords[2] = ["Level", "Luk", "Klik for at åbne/lukke", "Bygnings & ressource oversigt", "* For at opdatere data for hver by gå til siden med den relevante by","Byer", "Bygningsoversigt", "Ressourceoversigt", "Kapacitet","Under opførsel", "på", "under opførsel", "Bygnings næste level", "Produktion af", "By ressourcer", "Maximal lager kapacitet", "for"];
break;
case 'ikariam.net':
keywords[0] = ["Belediye Binası", "Donanma Tersanesi", "Ticaret Limani", "Depo", "Ticaret Merkezi", "Kışla", "Saray", "İstihbarat Merkezi", "Büyük Elçilik", "Akademi", "Mucit Atölyesi", "Taverna", "Müze", "Sur", "Vali Konağı"];
keywords[1] = ["Odun","Şarap","Mermer","Kristal Cam","Sülfür"];
keywords[2] = ["Seviye", "Kapat", "Click to open/close", "Bina ve Kaynaklara Genel Bakış", "* Bilgiyi güncellemek için şehrin sayfasına gidin.","Şehir", "Bina Seviyeleri", "Kaynak Miktarları", "Kapasite","Yükseltiliyor", "on", "Yükseltiliyor", "Yükseltilen Seviye=", "Üretim=", "Şehir Kaynakları", "Maksimum depo kapasitesi", "için"];
break;
case 'ikariam.es':
keywords[0] = ["Intendencia", "Astillero de guerra", "Puerto comercial", "Depósito", "Comercio", "Cuartel", "Palacio", "Escondite", "Embajada", "Academia", "Taller de invenciones", "Taberna", "Museo", "Muro de la ciudad", "Residencia del gobernador"];
keywords[1] = ["Madera","Vino","Mármol","Cristal","Azufre"];
keywords[2] = ["Nivel", "Cerrar", "Click para abrir/cerrar", "Resumen de la ciudad", "* Para actualizar los datos de cada ciudad abre la página de cada ciudad.","Ciudades", "Resumen de construcciones", "Resumen de recursos", "Capacidad","En construcción", "en", "en construcción", "Actualizando al nivel", "Producción de", "Recursos de la ciudad", "Capacidad máxima del depósito", "para"];
break;
case 'ikariam.cz':
keywords[0] = ["Městská radnice", "Loděnice", "Obchodní přístav", "Sklad", "Tržiště", "Kasárna", "Palác", "Úkryt", "Ambasáda", "Akademie", "Dílna", "Hostinec", "Muzeum", "Městská zeď", "Guvernérova Rezidence"];
keywords[1] = ["Stavební materiál","Víno","Mramor","Krystalické sklo","Síra"];
keywords[2] = ["Úroveň", "Zavřít", "Klikni pro otevření/zavření", "Přehled budov & zdrojů", "* Pro aktualizaci dat jednotlivých měst je potřeba tyto města navštívit","Města", "Přehled budov", "Přehled zdrojů", "Kapacita","Staví se", "v", "staví se", "Úroveň budovy", "Produkce ", "Zdroje města", "Kapacita skladu", "pro"];
break;
case 'ikariam.it':
keywords[0] = ["Municipio", "Cantiere Navale", "Porto", "Magazzino", "Mercato", "Caserma", "Palazzo", "Nascondiglio", "Ambasciata", "Accademia", "Officina", "Taverna", "Museo", "Mura della città", "Residenza del Governatore"];
keywords[1] = ["Legno","Vino","Marmo","Cristallo","Zolfo"];
keywords[2] = ["Livello", "Chiudi", "Fare click per aprire/chiudere", "Panoramica Edifici e Risorse", "* Per aggiornare i dati di una città, visitare la pagina rispettiva.","Città", "Panoramica edifici", "Panoramica risorse", "Capacità","In costruzione", "a", "in costruzione", "In espansione al livello", "Produzione di", "Risorse prodotte dalla città", "Capacità massima del magazzino", "a"];
break;
case 'ikariam.com':
keywords[0] = ["Town hall", "Shipyard", "Trading port", "Warehouse", "Trading post", "Barracks", "Palace", "Hideout", "Embassy", "Academy", "Workshop", "Tavern", "Museum", "Town wall", "Governor´s Residence"];
keywords[1] = ["Wood","Wine","Marble","Crystal","Sulphur"];
keywords[2] = ["Level", "Close", "Click to open/close", "Buildings & resources overview", "* To update the data for each city go to the page of the correspondent city","Towns", "Buildings overview", "Resources overview", "Capacity","Under construction", "on", "under construction", "Building to level", "Production of", "City resources", "Maximum warehouse capacity", "for"];
break;
case 'ikariam.se':
keywords[0] = ["Rådhus", "Skeppsvarv", "Handelshamn", "Lagerlokal", "Handelsstation", "Kasern", "Palats", "Gömställe", "Ambassad", "Akademi", "Verkstad", "Taverna", "Museum", "Stadsmur", "Guvernörsresidens"];
keywords[1] = ["Trä","Vin","Marmor","Kristall","Svavel"];
keywords[2] = ["Nivå", "Stäng", "Klicka för att öppna/stänga", "Byggnader & resurser översikt", "* För att uppdatera informationen för varje stad gå till sidan för respektive stad","Städer", "Byggnader översikt", "Resurser översikt", "Kapacitet","Under utbyggnad", "på", "under utbyggnad", "Byggnadens nästa nivå", "Produktion av", "Stadsresurser", "Maximal lagerkapacitet", "för"];
break;
}
return keywords;
}
function getResourcesProduction(type) { /** returns array with all data related to resources produced on the current island
tradeGood[0] How much resource is being produced (ie: "+120")
tradeGood[1] Name of the resource
tradeGood[2] HREF to resource production spot
**/
var tradeGood = new Array(2);
tradeGood[0] = document.getElementsByTagName('script')[document.getElementsByTagName('script').length-2].innerHTML;
var islandID = document.getElementById('breadcrumbs').childNodes[3].href;
islandID = islandID.substring(islandID.indexOf("id=")+3, islandID.length);
switch (type) {
case 'island':
tradeGood[0] = tradeGood[0].substring(tradeGood[0].indexOf("startTradegoodDelta")+22, tradeGood[0].length);
tradeGood[1] = tradeGood[0].substring(tradeGood[0].lastIndexOf("value_")+6, tradeGood[0].length);
tradeGood[1] = tradeGood[1].substring(0, tradeGood[1].indexOf("'"));
tradeGood[2] = "?view=tradegood&type=tradegood&id=" + islandID;
break;
case 'wood':
tradeGood[0] = tradeGood[0].substring(tradeGood[0].indexOf("startResourcesDelta")+22, tradeGood[0].length);
tradeGood[1] = "wood";
tradeGood[2] = "?view=resource&type=resource&id=" + islandID;
break;
}
tradeGood[0] = tradeGood[0].substring(0, tradeGood[0].indexOf(";"));
tradeGood[0] = "+" + Math.round(tradeGood[0]*3600);
return tradeGood;
}
function getCities() { /** returns array with ata related to cities
cities[][0] City ID
cities[][1] City name
cities[][2] City HREF
cities[][3] City update time
**/
var tmp = document.getElementById('citySelect');
var cities = new Array();
for (i=0; i < tmp.childNodes.length; i++) {
if (tmp.childNodes[i].innerHTML != undefined) {
cities[cities.length] = new Array(3);
cities[cities.length-1][0] = tmp.childNodes[i].getAttribute('value');
cities[cities.length-1][1] = tmp.childNodes[i].innerHTML;
cities[cities.length-1][2] = "?view=city&id=" + tmp.childNodes[i].getAttribute('value');
}
}
var name = document.getElementsByTagName('li')[0].innerHTML;
name = name.substring(name.indexOf("")+7, name.length);
for (i=0; i < cities.length; i++) {
if (cities[i][1] == name) {
cities[i][3] = new Date();
}
}
return cities;
}
function currentCity(cities) { /** return the selected city index **/
var name = document.getElementsByTagName('li')[0].innerHTML;
name = name.substring(name.indexOf("")+7, name.length);
for (i=0; i < cities.length; i++) {
if (cities[i][1] == name) {
return i;
}
}
}
function getResources(cities, currentCity) { /** sets a GM script value with the resources in the current city
resources[0] Wood
resources[1] Wine
resources[2] Marble
resources[3] Crystal
resources[4] Sulphur
resources[5] How much wood is being produced (ie: "+120")
resources[6] HREF to island saw mill
resources[7] How much wine/marble/crystal/sulphur is being produced (ie: "+120")
resources[8] Name of the specific island resource (possible values: wine/marble/crystal/sulpfur)
resources[9] Specific island resource depot HREF
resources[10] Wood storage
resources[11] Wine storage
resources[12] Marble storage
resources[13] Crystal storage
resources[14] Sulphur storage
resources[15] Wood almost full? ----------------------
resources[16] Wine almost full? |
resources[17] Marble almost full? (CSS style to use in the
Only replace the resources[8] thing for this:
var a = getResourcesProduction('island')[1];
if (a=='wine'){
resources[8] = keywords[1][1];
}
if (a=='marble'){
resources[8] = keywords[1][2];
}
if (a=='crystal'){
resources[8] = keywords[1][3];
}
if (a=='sulfur'){
resources[8] = keywords[1][4];
}
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@rEacT Thanks for your translation. :-) |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Swedish translation: case 'ikariam.se':
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@ThisIsNotMyRealName Thanks for your kind words. Yes, "alarm and overview table script" has a lot of features. I already message the script author but with no answer until now. I'll add your features request to the ToDo section. Thanks a lot! |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
This is the best visually looking script out there. You did a great job. And the code is super clean too!! I wish it had gold income and the time that any of the resources are full, under "City Resources". The "Buildings & resources overview' doesn't quite have the muscle that "alarm and overview table script" has, but yours is more intuitive. You guys should join forces! |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@ordan Thanks
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
thank you for script, can you add close button to left side, thank you |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
All submited languages and bugfixes, are now applied.
I'll try to add new features soon. If you have any request or any idea that it isn't stated at ToDo section, be my guest to e-mail me or post it here. Again, thank you all for all support! |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@tryxter
No problem, I'll help with my poor js knowledge as much as I can. |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@Pyronhell Ok, thanks a lot! :-)
Again, thanks! |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@tryxter
I only noticed this:
Again, good work :D |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@Pyronhell Thanks for the translation and the bugfix. Have you tested it and it worked, right?
|
||||||||||||||||||||||||||||||||||||||||||||||||||
