Simple Ikariam Town Resources Board

By SiCoTiC Last update Apr 13, 2013 — Installed 148,767 times.

1.070+ bug reports - CLOSED

in
Subscribe to 1.070+ bug reports - CLOSED 159 posts, 21 voices



SiCoTiC Script's Author
FirefoxWindows

If you have a problem with this release please post the problem here rather than making a new thread.

Thanks

Known issues.
Research/finance items initialy show up as 'undefined', this shouldnt happen but if it does i'll sort it out when i have time, should only affect upgrades and new installs and will dissapear after visiting the relevant ikariam views. - 1.074

Wine consumption is slightly out by + or - 1hr of consumtion, i dont use the hourly tick atm like ikariam, its not fatal but i'll sort it out when i get around to it.

Borders on a few content boxes disappear and reappear and i have no idea why as there are no relevant css styles on those items applied or inherited... *blank stare*'Infinityhrs' on wine consumption when 0 wine and 0 consumption - 1.075

Army view is wrong when you have friendlies in your town. - 1.074

Building a new structure puts 'NaN>NaN' in the relevant building box. - 1.075

Box still visible on the world/island view - added option to remove - 1.073

Current town buidings disappear in worldisland view - 1.075

anyway... have fun with it.

 
SVSV User
FirefoxWindows

nice update, maybe some improvements sugestions:

1> in military overvieuw if someone else got fleet in my town some random NAN will show up on the list

2> Extra line whit totals off my army
3> Extra line in finance overvieuw for totaling / then do the - army amount in a new line

4> the nice tooltip: like xxx of wood per hour to || xxx hr / xxx day
and maybe for the next to like crystal / marmer

but off all very nice tool / good updating , keep up the good work

 
SiCoTiC Script's Author
FirefoxWindows

1. Ok, i'll see if i can get someone to stick some troops in my towns :D

2. Fair enough

3. The finance stuff is pulled from the finance sheet and then displayed 'as is', the red value above the total at the bottom is army expendature... oh wait... *slaps forehead* its just ships not army... i'll sort that in a bit. Anyway, there are no calculations on those values at all as its all on the finance page, its jut finding places to put the data, for now i just wanted to get them in there somewhere :D. I'll reformat those eventually into something a bit more presentable.

4. To be perfectly honest, the tooltips are nice but almost completely superfluous, they convey no extra information as there is no other information that i personaly use that isn't already in the table, but if some information is needed by someone else i'd gladly add it; For me the only reason to have them still hanging around is for fields like the finance total where it could be used to show an actual breakdown, or when i finally get some kind of shipping added to show a nice breakdown as there is clearly not enough room on the table. The reason the other materials dont show anything in tooltips is because i was testing tooltip functionality on the wood field and it kinda just hung around :D

The current implementation of the tooltips is buggy, if the table updates while you have a tooltip open then the tooltip goes blank, its an unfortunate side effect of the way i update the resource table. I've been thinking about changing the way i update that particular table by storing the data in html5 data attributes and calculating on the fly, but it would require quite a re-write of all the update code and quite frankly... its working atm :D be it not as optimal as i would like.

I'll add totals, fix finances (add army and split them on a tooltip) and see about the fleet issue.

Thanks

SiCoTiC

 
SVSV User
FirefoxWindows

i dont got problems going blank on update ( tooltip) i yust added myself : mine

' + Math.floor(tmpResTot[0]) + ' wood per hour. TO mine
' + Math.floor(tmpResTot[0]) + ' hr / ' + Math.floor(tmpResTot[0])*24 + ' day.

so i know the product a day :) rest i dont know alot about programming / sometimes i like to look inside the code / but takes a long time ( and i can imagine what time you spend on it)

for the - army is good i mean totaling it up but i mean extra line whit the total income then the - army ill show u what i see in 1 line now

-47,746 (army expence)
+299 (per hr)

i rhater see:
+48,047 (income)
-----------------
-47,746 (army expence)
+299 (per hr)

the tooltip is nice and for good use i think :) ( for later on)

 
SiCoTiC Script's Author
FirefoxWindows

in retrospect, the total on the finances column is quite a mess, i actually play ikariam in a language i do not speak/write so sometimes i dont quite see something which may be plainly obvious for a little while :D also, i kinda rushed it :D

it should actualy be something that resembles

TotalCost
TotalIncome
with a tooltip of
Prod/Research :'+ProdResCost+'
Army :'+ArmyCost+'
Fleet :'+FleetCost+'
But this is all icing really, just wanted to get the cake baked first :)

 
Sacrifice Scriptwright
FirefoxWindows

Neither Buildings nor Army will be shown and yes i deinstalled the older version and took the new 1.07 so what can i do?

 
SiCoTiC Script's Author
FirefoxWindows

@Sacrifice
I went on the testserver to test for a few possible causes, i did find an issue but it its not the one you are having :(

did it work previous to 1.07?
do you have any other scripts active? if so can you disable them and try again?
when you say shown, do you mean the tab is empty or that there is a table but it has just town names in it?
is the resources tab shown? if so does the rendered data stop at a particular point? for instance after city 4 wine column the values for the other resources are blank.
Is there something perculiar about the particular town you had open when it stopped working? Occupied, has troops from another player, building upgrading, ran out of wine?

can you try resetting your database? (I'll upload a version in a min with a reset button on the settings tab)

 
Jardell User
FirefoxWindows

Nice work !
One glitch found though, I did delete my workshop and build a new building on the same spot, now i have both buildings there, How to get rid of the workshop in building overview table ?

 
Jardell User
FirefoxWindows

Also the army overview is viewing only cities and the shortcut icons to move troops or ships, but should there be seen my troops and ships also?
Visited all barracks and shipyards, but nothing happened.

 
Jardell User
FirefoxWindows

The pictures of normal views would be nice to have...

 
SiCoTiC Script's Author
FirefoxWindows

Army data comes from the city military view not the individual buildings. click the top icon on the left ikariam menu bar and all the data is in there, i'll see about adding the buildings parse also, but not until i've fixed up a few other things. The info wont appear in the table immediately, it will need a page refresh, i'll be adding that soon.

I've sorted out the building thing, it'll be in the next release.

i agree, should add some pictures and some kind of 'how-to' :D

 
Jardell User
FirefoxWindows

Thanks, i got the army and fleet, thanks for guidance.

 
Jardell User
FirefoxWindows

Now somebody should make "Simple Ikariam Town Resources Board updater" :)

 
SiCoTiC Script's Author
FirefoxWindows

greasemonkey has update functionality and i've added to the metadata to the next release to assist in that.

 
Morph/Morphias User
FirefoxWindows

This is a super minor observation

In the tool-tip, when you mouse-over the Total expenses, there is a line that says "City Expenses" that should read something like "Scientist expense" or something of that nature because that number is how much it costs to have your scientist's in your cities.

I love the template as it stands, now. For me - any other improvements are icing on the cake.

 
SiCoTiC Script's Author
FirefoxWindows

yep, you are correct. Fixed :D

That tooltip is very likely to change, the info will likely be the same but layout/wording wont stay like that for long, was a quick 2min addition

 
Jardell User
FirefoxWindows

by "Simple Ikariam Town Resources Board updater", I ment the script that goes and clicks all needed views to update tables on your script. like the Empire Board Update Manager by holyschmidt. :)
As now with only two accounts on different servers, the time needed to go through all buildings and view is quite long.
but anyway the script is great, and has improved all the time.
keep up the good work!

 
Sacrifice Scriptwright
FirefoxWindows

@ SICoTIC

the Tabs are shown but only the resources tab is shown an brings a table in Front - the other donĀ“t. But in the resources table not all column are filled - gold comes with the word undefined and research ist not filled. - No town is running out of wine but normaly in our allie we spent a spearman to each other in the cities. - I will try the new version with reset button.

 
Sacrifice Scriptwright
FirefoxWindows

@ SICoTIC

meanwhile I got a message on the last tab: This tab has no content atm. I will deinstall again reset the pc an install to take a new try.

 
goegae User
FirefoxWindows

I "lost" the Menue bar under the paneel in the upper left corner of the screen. How can I manage to "free" it from there? Greetings goegae

 
SiCoTiC Script's Author
FirefoxWindows

"This tab has no content atm" was added in 1.07 and removed in 1.071 so you dont have the latest version.

@goegae
Urm...
Open the console... CTRL+SHIFT+K
type document.getElementById('SITRBoard').style.top = 200+'px'; and press return
if its off the left of the screen also, you can use document.getElementById('SITRBoard').style.left = 100+'px'; as well

I never even considered that would be possible... i may have to stick it on top of that in future :D

also if someone could check this out for me so i know its not just me being nuts...

navigate to a city > open a SITR Tab > open a building popup > try to change tab
close the building popup > try to change tab again.

thanks

 
goegae User
FirefoxWindows

Wow, thank you, SiCoTic, I works greatly :-)
Greetings, goegae

 
SVSV User
FirefoxWindows

tbh SiCoTiC
if i go to (for example) world vieuw teh table still opens ...
so id like to see an "x" to close it (whare the old config button was, thats a good spot ;) )

 
SVSV User
FirefoxWindows

and if some1 put a army unit into your town , it breaks down the fleet vieuw?

some1 got 5 cook's in 1 of my towns, now my fleet whont update there.. :<
i think a redo instead of:
= parseInt($elem[16].innerHTML); ( this is the 1st ship )
but if some1 got army of them there its there 1st phalanx

so if some1 put 1 phalanx in your town it shows as your ship? (not tested yet)

so this is getting trikky, u need to lokalize the stuff to look for the army
For me:
u need to look inside :

Garnizoen

and not in

Verdediger

 
goegae User
FirefoxWindows

Hi SiCoTiC again me, goegae
on my other computer I have a different problem: I dont see the bar. If I click the Icon on the left for the Overview I get this message:
[18:27:24.851] this.mainContentBox is null @ resource://greasemonkey/runScript.js:333

What can I do? Greetings, goegae