Kaphook
Script's Author
|
have fun...
|
|
|
jarasur
User
|
nothing happend !!
|
|
|
jarasur
User
|
is this just for test server : s666 ??
|
|
|
kazeragr
User
|
I have included the server I am playing but I don't get any tables at all
|
|
|
Kaphook
Script's Author
|
The testserver was the only server with the new layout so it was the only include.
I just changed the include to s*.*.ikariam.*/*
If you visit 1 city you should see the start of the table.
The whole table is visible after you visit all your cities.
For the people with NON-standard caracters in citynames...
DON'T DO THAT. it crashes the program..
If i have time I might fix that someday.
|
|
|
-DG-
User
|
doens't work I tray change everything and nothing happing
|
|
|
-DG-
User
|
solved!
between line 502 and 503 press enter
put
if ( citys[key].relationship == 'ownCity'){
and close before
ind_cityId++;
the code is
for (var key in citys){ // list all keys and fill array
if ( citys[key].relationship == 'ownCity'){
cityId[ind_cityId] = citys[key].id;
cityCoords[ind_cityId] = citys[key].coords;
cityName[ind_cityId] = citys[key].name;
cityRecId[ind_cityId] = citys[key].tradegood;
cityRecStr[ind_cityId]=resourcetrad[(citys[key].tradegood)].toLowerCase();// all icons are lowercase
if (cityRecStr[ind_cityId]=="crystal glass")
{
cityRecStr[ind_cityId] = "glass"; // make 'glass' for the icon; "server"/skin/resources/icon_glass.gif
}
if (cityRecStr[ind_cityId]=="sulphur")
{
cityRecStr[ind_cityId] = "sulfur"; // make 'sulfur' for the icon; "server"/skin/resources/icon_sulfur.gif
}
}
ind_cityId++;
}
this remove all occupation citys ;)
|
|
|
Kaphook
Script's Author
|
I have to look in to that..
Like I said.. still testing all features
But I already encoutered simular errors with troops in towns that are not your own.
|
|
|
Qed
User
|
This will help immensely with the version change. Thank you. It seems to work for me!
|
|
|
Qed
User
|
I guess this guy hasn't updated his script for over a year, but you may use some of his code in yours, if you are feeling adventurous :)
http://userscripts.org/scripts/show/42504
It's the one I used with the old version. The military part was broken for me, but the rest was awesome as long as you remembered to update it. And it would keep track, like if you hovered over the town name it would tell you how long it's been since you updated and stuff. Just a suggestion, I really appreciate your script. It was exactly what I was looking for.
|
|
|
Kaphook
Script's Author
|
That script is gone and not found anymore un US.
Tried it once, don't have it in achive anymore
|
|
|
kazeragr
User
|
Yes -DG- fix does the work. The problem was the occupation cities and now I can see the tables.
GREAT WORK!!!!!
|
|
|
Kaphook
Script's Author
|
That fix does the trick to stop storing the data if you are not in your own towns but an occupied town.
The same thing happens with troops stationed in an other town..
Fixed that also.
btw, it does not kill the program, it only stops the tables from appearing.
When you go back to one of your own towns everything is back to normal.
|
|
|
jarasur
User
|
that script still doesn't work in turkey server !!
s23.tr.ikariam.com
what is problem :((
|
|
|
Kaphook
Script's Author
|
I have absolutely no idea why it does not work for you.
Tell me what you see in the errorconsole.
What error is generated by the script?
|
|
|
fabbronet
User
|
Great work! Next days I will send you the italian translation...thanks a lot!!
|
|
|
Kaphook
Script's Author
|
I am not gonna do translations.. at least for now.
It just makes the program bigger with unused data for languages you don't use.
All that data is on the pages..
I just got to find a way to get it out
Take a look at the source of a citypage..
There is a list of buildings in-use there at he end, the ingame-name and the local-name.
I'll probably end up with a list that has all the buildings you use and '-' for the rest.
Just got to rip it out and store it in a list
If I can't get it out Ill think about translations...
All that data is here from other scripts.
Example: italian.....
buildings = {
"townHall" : ["Municipio", "Municipio"],
"temple" : ["Temple", "Temple"],
"academy" : ["Accademia", "Accademia"],
"port" : ["Porto", "Porto"],
"shipyard" : ["Cantiere navale", "Cantiere navale"],
"warehouse" : ["Magazzino", "Magazzino"],
"wall" : ["Muro", "Muro"],
"tavern" : ["Taverna", "Taverna"],
"museum" : ["Museo", "Museo"],
"palace" : ["Palazzo", "Palazzo"],
"palaceColony" : ["Governatore", "Governatore"],
"embassy" : ["Ambasciata", "Ambasciata"],
"branchOffice" : ["Mercato", "Mercato"],
"safehouse" : ["Nascondiglio", "Nascondiglio"],
"barracks" : ["Caserma", "Caserma"],
"workshop" : ["Officina", "Officina"],
"carpentering" : ["Carpentiere", "Carpentiere"],
"forester" : ["Guardaboschi", "Guardaboschi"],
"stonemason" : ["Tagliapietre", "Tagliapietre"],
"glassblowing" : ["Vetraio", "Vetraio"],
"winegrower" : ["Viticoltore", "Viticoltore"],
"alchemist" : ["Alchimista", "Alchimista"],
"architect" : ["Architetto", "Architetto"],
"optician" : ["Ottico", "Ottico"],
"vineyard" : ["Cantina", "Cantina"],
"fireworker" : ["Pirotecnico", "Pirotecnico"]
};
texts = {
"cityName": "Città ", "currentlyBuilding": "Costruzione in corso", "summary": "Sommario",
"hide_settings": "Nascondi opzioni", "show_settings": "Mostra opzioni",
"Population": "Popolazione",
"finishedBuilding": "Costruzione completata","Incomes":"Saldo oro",
"Wood": "Legno", "Wine": "Vino", "Marble": "Marmo", "Crystal": "Cristallo", "Sulfur": "Zolfo"
|
|
|
fabbronet
User
|
In your scripts there are LocalStrings yet, you can take them to make table headers. I found only for resources but probably it's the same for buildings.
|
|
|
Kaphook
Script's Author
|
To bad but they are only there in a string for the buildings that are in the city you are looking at.
I got to find a way to harvest those and keep them safe.
Tableheaders for the resources is fixed.
Using the localizationsString.
|
|
|
chim1aap
User
|
Language is something for the long term i guess... I'd be more happy if get the script to work. One thing though: at the buildingstabel, there is twice "palace". There should be once "gouverment residence", OR the two collums are joined, since both building cannot be in the same city.
|
|
|
Kaphook
Script's Author
|
Those 2 strings are from the internal names..
"palace" & "palaceColony"
That will get fixed if and when I have the translations fixed
|
|
|
jarasur
User
|
Now, it's working in TR servers.
Thanks :)
I cahnged my city names az like as normal charters, but there is a small problem.
I cant see my first city (BORAN AORT) in first tables. Also therse no titeles. :(
Look at picture http://www.hizliupload.com/di-X6XYSBV1.jpg
|
|
|
Kaphook
Script's Author
|
:) big screen with resolution higher than 1280x1024.
You are working on a screen probably 1600x1200 so.... 174 pixels more
Quick fix now for you...
Change line 146...
h.setAttribute('style','z-index:0;position:relative;top:910px;margin:0px auto 00px;width:980px;');
p.appendChild(h);
/////....................................................^.............fix this to set height depending on your screen............
to
h.setAttribute('style','z-index:0;position:relative;top:1084px;margin:0px auto 00px;width:980px;');
So the 910 to 1084
There are your 174 pixels!!!!!!!!
still working on that to make it work for all resolutions
|
|
|
jarasur
User
|
Thanks a lot.
Now it's ok :)
|
|
|
jarasur
User
|
And there is another things, please forgive me :)
http://www.hizliupload.com/di-HZK5.jpg
The picture explain everything, something about population..
|