Ikariam Archive

By Ominous Last update May 31, 2011 — Installed 16,638 times.

Save reports of fighting

in
Subscribe to Save reports of fighting 12 posts, 2 voices



Cherry Scriptwright
FirefoxWindows

Failed to save reports of fighting and the following scripts
http://userscripts.org/scripts/show/54649 and
http://userscripts.org/scripts/show/56817
in the following two errors occur

Here, the city's list / review of the script instead of the troops will be stored in the archive list
the display is done with the script so links in the city list

tested both together then stores it in the cities list
list of cities is on the left on the car building
only one of two in each instead of troops, then the contents of each script Overview

If I turn off the script does it all

I hope it is to be understood because google translator :-)

 
Cherry Scriptwright
FirefoxWindows

more errors when missing troops are fighting the saved report also appears on the left of the window.

All in all just the battle reports
-----------------------------------

Mass emailing is stored in the name does not match.
went with the old version, but
normal mails, the name will be saved
--------------------------------------

I changed something and it would like to show here
first so you distinguish as in the old script the delete button for what is one where I personally found better
and secondly, that belongs to the click not only with the arrow is
one must take exactly ;-)

I once completely attached to the file.
http://rapidshare.com/files/350920855/ikariam_a...

 
Ominous Script's Author
FirefoxWindows

I can't understand You, I get that script is not working (mine). I think you are using those two scripts in the first post so maybe they are changing DOM before executing my script. To fix this, try in gresemonkey script management to place mine script higher, above these two. I can't tell you more because I don't understand you.

For the second post, as far as I can understand, saving reports is allowed only for battles that are finished, didn't tested in active battle, and archiving is for basic view of report, not detailed view.

For the "arrow" part, is it too small for clicking? I've made only arrow click able, less code is injected into page, so script is faster executed, not much faster, I guess I should add click action for expanding reports on all columns of tables.

pm me in German if you like, I'll find someone to translate it properly.

 
Cherry Scriptwright
FirefoxWindows

Script is at the top of Greasemonkey
yes, it's not just the two mentioned scripts

Pictures say more than words.
http://img215.imageshack.us/img215/1769/fehlera...

Pictures of Ikariam InterCity Trading with the battle report, I can make are not currently as there is still missing troops. I am rich, but after

All happened within the original script.
--------------------------
Das ganze noch in deutsch / german
Das script steht in greasemonkey ganz oben.
Wenn ich Kampfberichte speichere und die zwei genannten Scripte (oder nur das Trading) sind aktiviert erscheint im Kampfbericht die Städteliste (Bild wird nachgereicht) von Ikariam InterCity Trading.
Habe ich aber nur das Ikariam Auto Build & Upgrade aktiviert wird dieser Inhalt gespeichert.
Das ganze dann an der stelle wo die Truppenübersicht stehen sollte. Ich mache sofort ein Bild wenn ich kann weil...

Wenn es vermisste Truppen gibt siehe mein Bild passiert das verschieben der gespeicherten Kampfberichte auch. Ich denke daher das verschieben der Anzeige ist kein Problem der obigen scripte sondern ein Problem des Ikariam Archive.

Das speichern mit fremden Inhalt ist ein Problem was ich nicht sagen kann woran es liegt weil wenn ich beide deaktiviere und dann speichere wird mir alles richtig gespeichert.

Da ich wie man sehen kann ein etwas geändertes Script habe (eingedeutscht und Buttons vom ersten Script) habe ich es auch ausprobiert mit dem Originalen Script da treten die gleichen Fehler auf.

 
Ominous Script's Author
FirefoxWindows

Picture was really helpful. By looking at it I can tell that You have older version of script installed. New one that should support v.0.3.2 ik doesn't have that yellow x icon for deleting. Try uninstalling that script, and than install new one. Make a backup of current script if you need it. When I get some free tome I'll add autoupdate function, but for now You should update manually. Script that you posted on rapidshare is new version translated in German.I plan to make international version too. There is not much to translate so it should not be a problem. Tnx for translating, but for now script stays as is.

 
Cherry Scriptwright
FirefoxWindows

x icon in the new 0.3.1.1. Script has been installed refer to the notes which I have earlier made it. I like it better :-)

Translation is not the problem and can be easily done with a new version.
Therefore, an international version is to be welcomed but not urgent.

The problem remains the display of the battle reports.

I then invite still images up to the second error when I can.

 
Ominous Script's Author
FirefoxWindows

Ok. Here is how script works.
First, check if GET parameter VIEW is militaryAdvisorCombatReportsArchive, this means page you are viewing is actually ikariam archive page for combats. Than sets new css link so icons and page stile is like wen you look at report page. After that, script is looking for element with class name content, than finds 3th element, which should be in center of page. Than injects archive content saved by you in greasemonkey vars. I guess that some other script that you use is making another container with same class name than my script can't find right place to put it's content. I can try finding better selector that could inject content in right place. I'll post fix as soon I make it.

 
Ominous Script's Author
FirefoxWindows

try to change line 408:
from:
document.getElementsByClassName('content')[2].innerHTML = ViewCombatReports();

into:
document.getElementById('troopsOverview').getElementsByClassName('content')[0].innerHTML = ViewCombatReports();

 
Cherry Scriptwright
FirefoxWindows

ok so the battle reports are correct.
is the error
the overview, the troops will not be shown if there are missing troops
vermisste Truppen: 1 → here was supposed to be the troops Overview
http://img693.imageshack.us/img693/1374/fehlera...

Mass emailing is also not stored in the name.
even in the same alliance members
In the old script already ;-) see picture

foreign players have
http://img121.imageshack.us/img121/3250/fehlera...

 
Ominous Script's Author
FirefoxWindows

ok, seams like last problem. Try this:
lines 237 and 238
change into this:
var battle = document.getElementById('troopsReport').getElementsByClassName('content')[0].innerHTML.replace(/\s+/g,' ');
var result = document.getElementById('troopsReport').getElementsByClassName('result')[0].innerHTML.replace(/\s+/g,' ');

keep in mind that array element for content selector is now 0 not 2, so completely replace those two lines.

after that, delete that report from archive and go to military reports page and save new one. Check back in archive to see if it saved properly.

 
Cherry Scriptwright
FirefoxWindows

Thank you that it was now.
Now nothing is displayed incorrectly.

I also have my views changed version uploaded here.
To be found in the 2nd Earlier thread here or here.
http://rapidshare.com/files/350920855/ikariam_a...

My version is in German and in the archives of the display button has been changed on version 0.1. Furthermore, the stored messages to be extended not only to click on the arrow.

 
Ominous Script's Author
FirefoxWindows

Hi, could you translate this block:
lang = {
'selectall': 'Select all',
'selectnone': 'None',
'selectinvert': 'Invert',
'save': 'Save in archive',
'saveselected': 'Save selected',
'remove': 'Remove',
'removeselected': 'Remove selected from archive',
'messages': 'Messages',
'sender': 'Sender',
'title': 'Title',
'city': 'City',
'date': 'Date',
'to': 'To',
'targetcity': 'Target city',
'action': 'Action',
'battle': 'Battle',
'savereport': 'Save report',
'ikariamarchive': 'Ikariam archive',
'alertmultydelete':'You are about to delete multiple messages. Are you sure?',
'alertsaved': 'Saved',
'alertsavefailed': 'Saving failed!!!'
}
I would like to post you as translation author, since you already did the work :)
I'm launching new version today.

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