RecourcesShortcuts

By A.Rosemary Last update Apr 9, 2008 — Installed 17,799 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 22 posts, 13 voices



Jesse Andrews Admin

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

 
fybz User

Doesnt work in 0.2.8??

 
mohammad555 User

good

 
Mr. Burns User

I have an error, it seems that in barracks the information is viewed to the right side off the screen. And it screws with the floating point of friendlist script. Besides that, good job!

 
Johan Sundström Scriptwright

Actually, you can kind of glean the gold and research rates, too, but there is a much greater risk that you occasionally show incorrect figures, unless you slam the server (agreement there; that's bad practice). Kronos estimates city income based on what numbers of free citizens you have, the number of researchers paid for and the last seen upkeep costs (either calculated backwards from town view, or forwards from the gold view) -- but I don't think it's really worth the work for a script like this one. :-)

 
Krellmax User

Actually I was mistaken, it reads "undefined" not "unknown". I forgot after I had fixed it, had to throw the original back on to check it. I also changed the trade good names so they are displayed with first letter capitalized.

 
Krellmax User

Bug: trade goods show up as "unknown"
Fix: line 202, change all instances of aCodeLines[19] to aCodeLines[20]

 
Krellmax User

I was getting trade good of "unknown". To fix it, I set this line:

sTradeGoodName = aCodeLines[19].substring(aCodeLines[19].indexOf('(')+2,aCodeLines[19].indexOf(')')-1);

To this:

sTradeGoodName = aCodeLines[20].substring(aCodeLines[20].indexOf('(')+2,aCodeLines[20].indexOf(')')-1);

What would be better is to not expect the value you're parsing to be at line 20 but instead find it by searching through the lines. That way it could survive script changes made by Gameforge. But I do acknowledge that this is quick and dirty and does the job. Works for me! ;)

 
A.Rosemary Script's Author

Adding Gold and Research rate is not possible without doing extra requests to the server. And thats something i am against :/
Anyway, I updated the meta with a notice.
I really encourage those interested in this script to use Kronos'.

 
Elisson Scriptwright

Brasileiros ....

Bugs fixes e traducao ...

clique aqui

 
Krondor Scriptwright

And the research rate

 
Krondor Scriptwright

Would be good to also show the current gold income rate.

 
omer karagoz User

if you think support multilanguages here is turkish translation:

Wood = Odun
wine = Sarap
Marble = Mermer
Sulfur = sulfur
Resources = Saatlik Gelir

www.ikariam.NET

 
Philip Weaver Scriptwright

(reply, again)

you're right as to the efficiency, it does take a toll if you query much more then 2 or 3 documents at a time, but under that usually it does ok.
As to adding the documents to the current one, in this particular script, you are right, I wouldn't have had to, I did it out of habit. The reason I do it usually is that it allows me to search through both (or more) documents at once using things like document.getElementsByTagName or such. As for the efficiency of adding/removing nodes it does surprisingly well, Originally I would have thought that it would slow things down horribly too, but firefox seems able to handle it well (again provided you only add/remove 2 or 3 things at a time - not counting children elements)

so yeah, that's that. :-)

 
Philip Weaver Scriptwright

(responce to your comment on my script)

I fixed an updated it, so if you would like you can go get it, it works now.

As for the AJAX, I would like to treat the page like it was XML, but since it's not valid, I can't. What I do is I use AJAX to get the page, but then instead of having AJAX read through it, I add it to the current page (hidden), and read it like the rest of the page and then delete it when I am done with it.

 
A.Rosemary Script's Author

I guess it's Turkish? can someone please translate it? :/
I tried a translator but it says just nonsese

 
MaNgOsEr Scriptwright

Merhaba kodları türkçeleştirdim fakat buraya yükleyemiyorum :D Sadece düzenleden hepsini türkçeye çevirdim fakat nasıl olcak bilmiyorum :D ??

 
chey User

extra menu is a good idea, may u can put it anywhere else :)
ty

 
A.Rosemary Script's Author

Added an extra menu on the top-left corner...Not very elegant but works so far.
No clue for the other issue yet :/ sry

 
A.Rosemary Script's Author

Thanks fo the feedback
The problem with the "1000+ ressources" issue is the size of the element into which the text is set. Since i don't want to mess with the CSS (because many things can be screwed). The solution would be to create a new menu somewhere else...I'll see ;)

About the "32 vs 29", i really don't know where lies the problem :/
I'll do some 'debug mode' so that i can get more info.
But not soon, too much work now

 
chey User

problem with the refresh, i just changed my wine prod, and now i prod 32/h, but it indicate me +29

 
chey User

hi

it work with all my town except, with the town where my ressources is bigger than 1000, when 1000+ ressources it put the +xxx down to the number and it's illisible :(

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