Ikariam CR Converter

By holyschmidt Last update Dec 9, 2011 — Installed 1,122,684 times.

BUGS

in
Subscribe to BUGS 72 posts, 23 voices



oliezekat Scriptwright

Nice idea but don't work for mine on s5.ikariam.fr
NB: I set your script with top priority.

Firefox Error Console report this :

Erreur : L_REPORT is undefined
Fichier Source : file:///D:/BureauPortable/FirefoxPortable/Data/profile/gm_scripts/ikariam_cr_converter/ikariam_cr_converter.user.js
Ligne : 190

 
holyschmidt Script's Author

This is been under development the last couple days and has not been intended for public use. Give it another try and let me know if you still have problems (make sure you uninstall the old script, if you still have it installed).

 
oliezekat Scriptwright

Same error but line 949 ;)

 
holyschmidt Script's Author

What language is this? Currently, the only support languages are Bulgarian, Chinese, Dutch, English, Greek, Hebrew, Polish, Romanian, Viatnamese. If you'd like to help translate, I need the language you are translating to the words: "Offense", "Defense", "Stamina", "Loot", "Damage", "Back to Report", "Victors".

 
oliezekat Scriptwright

French server on ikariam.fr

Translation: "Attaque", "Defense", "Endurance", "Butin", "Pertes", "Retour au rapport", "Vainqueurs"

 
holyschmidt Script's Author

Thanks, I added the translations. Try again and let me know if you still have problems.

 
oliezekat Scriptwright

It's fine, thank you :)

 
SolarCobra User

hi holyshmidt,
I want to report a bug on posting the CR on the ikariam boards.
when I previewed my CR to post on ikariam boards,
when the number8 and close pharentesis "8)" is combined it turns into a cool smiley.
example
Archer......................171(-28). the "8)" turns to smiley with shades

 
holyschmidt Script's Author

You need to make sure you disable smilies when posting. There's little I can do to avoid this from my side. There is a checkbox when posting to disable the "auto-insertion" of smilies.

 
holyschmidt Script's Author
FirefoxWindows

I have found a fix for the smiley issue, without requiring the user to change their settings. Simply update the latest and the smiley problem should go away. :)

 
bagaco User
FirefoxWindows

hi, are you sure the damage is count correctly?
I'm almost sure that only half is considered...

 
holyschmidt Script's Author
FirefoxWindows

Damage:
Attackers Damage = #Resources lost from units killed
Defenders Damage = #Resources lost from units killed + #Resources lost from loot pillaged.

Feel free to double-check my math. If something doesn't add up, let me know (maybe an example CR screenshot?)

 
bagaco User
FirefoxWindows

You're right, my mistake.
The other CR converter i try is wrong. Sorry

 
bagaco User
FirefoxWindows

Hi, can you confirm the damage of the "gyrocopter" and the "diving"?
I think there're not correct:
gyrocopter 256 (not 257) & diving 712 (not 955).

 
holyschmidt Script's Author
FirefoxWindows

Looks like there are some mistakes. I will go through all of them and update later today.

EDIT: Version updated. I double-checked all the units again and did not find any other errors, but let me know I missed any.

 
GigeL Scriptwright
FirefoxWindows

when you reply to message, adds an ">" in front of every line.
fix:
#123

$(this).html($(this).html().replace(/</g,'<').replace(/>/g,'').replace(/>/g,'>'));

in function BuildPlayPen() replace $("body").append with $("#battleReportDetail").append and you will get the CR's textarea under the battle report :)

 
holyschmidt Script's Author
FirefoxWindows

Thanks GigeL. I couldn't quite get your code working to fix the reply issue, but worked something out that should work as well. I have also moved the report into the area you suggested. I like it there a lot better.

 
GigeL Scriptwright
FirefoxWindows

:)

try to think to use as included url
http://s*.ikariam.*/*view=military* or something like this.

 
holyschmidt Script's Author
FirefoxWindows

There is one problem with that, and that is the script needs to run on pages which display in-game message (for those to be formatted correctly). I realize that *most* cases can be solved by including also *view=diplomacyAdvisor*, but not all (for instance, after sending a message, you are directed back to the diplomacy page, but the page url is just http://s*.ikariam.*/index.php).

 
GigeL Scriptwright
FirefoxWindows

yeah, need to be like this:

// @include        http://s*.ikariam.*/*view=military*
// @include        http://s*.ikariam.*/*view=diplomacy*
// @include        http://s*.ikariam.*/index.php

 
holyschmidt Script's Author
FirefoxWindows

I could do that. A couple questions:
1) Why include the first two, when the second one covers all of them?
2) I currently have
// @include http://s*.ikariam.*/*
How is that different (or worse) than the last one?

 
randalph Scriptwright
FirefoxWindows

i found a bug, your converter give only the half of the damage,
if y use the official converter it give me the double for each side

here is your converter:
───────────────────────────────────────────────────────────────
Généraux...............-28,290 - Généraux...............-71,370
Pertes...............1,414,530 - Pertes...............3,568,521
───────────────────────────────────────────────────────────────

here the official

Les attaquants ont perdu 2`829`060 points.
Les défenseurs ont perdu 7`137`042 points.

 
holyschmidt Script's Author
FirefoxWindows

I'm not sure what "official" converter you are talking about. "Damage" is a relative term, and should not be used/compared to any other "damage" calculation in other scripts. The damage calculation in my converter, is nothing more than a total number of resources lost from the pillaged goods + units lost.

 
randalph Scriptwright
FirefoxWindows

You right sorry, in my case the "official converter" is for ikariam.fr (france)
why our damage are multiplied by 2 i dont know, french guy's never do nothing like all other's^^

 
Sihulagen Scriptwright
FirefoxWindows

Version 2.3.2 -
Bugfix: Script version not being displayed correctly.

Only does not display there where materials be plundered.

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