AntiGame Origin

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • hmm i think i find solution, i change only:

    Source Code

    1. document.getElementsByTagName('head')[0].appendChild(document.createElement("style"));


    to:

    document.getElementsByTagName("body")[0].appendChild(document.createElement("style"));

    and now it`s work under Opera :)
  • with this small changes under Opera 11.60 and Opera 12 (next) i can use events list under or above and it`s works in 100%. antigame is always load on every page! finally . i tested this under FF and under FF works too. i don`t know how better is instead CSS rules but if better is insert to head you can do some like this:

    createStyleSheet: function()
    {
    document.getElementsByTagName("head")[0].appendChild(document.createElement("style"));
    Utils.stylesheet = document.styleSheets[document.styleSheets.length-1];

    if(window.opera) {
    document.getElementsByTagName("body")[0].appendChild(document.createElement("style"));
    Utils.stylesheet = document.styleSheets[document.styleSheets.length-1];
    }
    },
  • Normally style tags may only occur in head.

    Several browser are "tolerant" and use them also at other places. But this is against the work of the standard, and in the next version of a browser it can (or must) be more restrictive.

    I am at the moment not possible to test this change in IE :/
  • It's no problem for other browsers, i implemented already this


    var element = (this.isOpera ) ? 'body' : 'head';
    document.getElementsByTagName(element)[0].appendChild(document.createElement("style"));
    Utils.stylesheet = document.styleSheets[document.styleSheets.length-1];
  • ok. for fun i insert into: "Fleet2_insertCSSRules: function()"

    Utils.insertCSSRule('#fleet2 #speed_plain [rel="1"]{color:#f30}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="2"]{color:#f60}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="3"]{color:#f90}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="4"]{color:#fc0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="5"]{color:#ff0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="6"]{color:#cf0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="7"]{color:#9f0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="8"]{color:#6f0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="9"]{color:#3f0}');
    Utils.insertCSSRule('#fleet2 #speed_plain [rel="10"]{color:#0f0}');

    now it`s looks nice ;)

    edit by Valent- removed picture
  • The new test version 1.33.5 userscripts.org/scripts/show/117158 includes the first bugfixes for Opera - Thanks to Joks and Slowmotion


    26.11.2011 v1.33.5
    + Galaxy view: separated showing player and alliance rank
    * Fixed WebSim language selection
    + Fleet 2: Added colored speed selection (disable with setting "Fleet 2: Improve / fix layout)
    * Started with adding fixes for Opera
    - Insert styles to body
  • in code antigame we have:

    Source Code

    1. // @include http://*.ogame.*/game/index.php?page=*


    ogame notices have page:

    Source Code

    1. http://*.ogame.*/game/index.php?page=notices


    so the problem is not in include section

    and in code:

    Source Code

    1. if (Options.msg_spyReportLayout)

    you can insert:

    Source Code

    1. if (Options.msg_spyReportLayout) {
    2. Utils.insertCSSRule( '#messagebox td, #netz #inhalt .contentz td { padding-top:0px; padding-bottom:0px; }');
    3. Utils.insertCSSRule( '#showmessage #shortreport td { border-bottom-style:none }');
    4. }

    it will be remove from war report strange line construct from close point
  • Gentlemens, please be in touch with translation thread, which need also some rearrangement. There is need to be done a procedure to know which translations are for what version and ect.
    And someone from developing team should check this thread everytime a new version is anounced, if there is some updated translation available (so it can be implemented together with the new release).
    Also each translation/step should be noted in OMTool.

    My recommendation how to change the first post in translation thread:

    *************

    I reorganize the translations for AntiGame. Here you can help to improve/translate your language.

    Included languages: AR, BA, BG, BR, CZ, DE, DK, ES, FR, HR, GR, MX, NL, NO, IT, ORG, PL, PT, RO, RU, SK, US

    1. The template should be taken directly from following en spoiler and translated to your beloved language :)
    2. After translation, post it here or send an eMail to francolino@ogame.org (for updates, just reedit your existing spoiler).
    3. Note your action in this post with a version number matching to the version you have translated (use for that size 12font, bold, italic and yellow color)
    4. For updates only, note your action here with reedit the version number and place this smile :arrow: before it (so the dev team will update your lang in next version)
    5. Note your translation in OMTool, because we love bureaucracy :beer:

    - If you can't update this thread, please ask someone from team to do it
    - Thanks to you all for your help !

    EN - default template of Antigame Origin script - placed version 1.33.6
    EN template

    Source Code

    1. function lang_LabelsEN ()
    2. {
    3. return {
    4. lbl_missAttack: 'Attack',
    5. lbl_missColony: 'Colonization',
    6. lbl_missDeploy: 'Deployment',
    7. lbl_missDestroy: 'Moon Destruction',
    8. lbl_missEspionage: 'Espionage',
    9. lbl_missExpedition: 'Expedition',
    10. lbl_missFederation: 'ACS Attack',
    11. lbl_missHarvest: 'Harvest',
    12. lbl_missHold: 'ACS Defend',
    13. lbl_missTransport: 'Transport',
    14. lbl_shipSCargo: 'Small Cargo',
    15. lbl_shipLCargo: 'Large Cargo',
    16. lbl_shipLFighter: 'Light Fighter',
    17. lbl_shipHFighter: 'Heavy Fighter',
    18. lbl_shipCruiser: 'Cruiser',
    19. lbl_shipBattleship: 'Battleship',
    20. lbl_shipColonizator: 'Colony Ship',
    21. lbl_shipRecycler: 'Recycler',
    22. lbl_shipSpy: 'Espionage Probe',
    23. lbl_shipBomber: 'Bomber',
    24. lbl_shipDestroyer: 'Destroyer',
    25. lbl_shipRIP: 'Deathstar',
    26. lbl_shipBCruiser: 'Battlecruiser',
    27. lbl_shipSatellite: 'Solar Satellite',
    28. lbl_defRLauncher: 'Rocket Launcher',
    29. lbl_defLLaser: 'Light Laser',
    30. lbl_defHLaser: 'Heavy Laser',
    31. lbl_defGauss: 'Gauss Cannon',
    32. lbl_defIon: 'Ion Cannon',
    33. lbl_defPlasma: 'Plasma Turret',
    34. lbl_defSShield: 'Small Shield Dome',
    35. lbl_defLShield: 'Large Shield Dome',
    36. lbl_RequiredEnergy: 'Energy needed',
    37. rx_sendMail: /Send a message to (.+)\./
    38. }
    39. };
    40. function lang_InterfaceEN ()
    41. {
    42. return {
    43. opt_title: 'AntiGame Options',
    44. opt_btnOk: 'OK',
    45. opt_btnCancel: 'Cancel',
    46. opt_btnDefault: 'Default',
    47. opt_language: 'Language',
    48. opt_update_check: 'Auto-check for updates',
    49. opt_thousandSeparator: 'Thousand separator',
    50. opt_blockAutoComplete: 'Block Auto-Complete in Firefox',
    51. opt_showDeficient: 'Show missing resources',
    52. opt_showResources: 'Show extended resources information',
    53. opt_showNames: 'Show ship/building/research names over images',
    54. opt_nameColorOn: 'Name color: available',
    55. opt_nameColorOff: 'Name color: unavailable',
    56. opt_nameColorDisabled: 'Name color: not enough resources',
    57. opt_showConstructionTitle: 'Show construction titles in the planet list',
    58. opt_shortHeader: 'Always minimize planet image',
    59. opt_misc_scrollTitle: 'Scroll time to the next event in the window title',
    60. opt_uni_SpeedFactor: 'Speed factor of this universe',
    61. opt_uni_DFPercent: 'Percentage of fleet structure to debris',
    62. opt_uni_DefenseToDF: 'Percentage of defense to debris',
    63. opt_timeSetting: 'Change time values (hours only)',
    64. opt_showServerOgameClock: 'Keep server time for top-right Ogame clock',
    65. opt_showServerPhalanx: 'Keep server time for Phalanx view',
    66. opt_showPageStartTime: 'Display the time the page was last refreshed',
    67. opt_timeAMPM: 'Use 12-hours format (AM/PM) instead of 24-hours',
    68. opt_timeDontChange: 'Don\'t change time',
    69. opt_timeLocal: 'Always set to local timezone',
    70. opt_timeServer: 'Always set to server timezone',
    71. opt_killTips: 'Kill tooltips',
    72. opt_evt_dimReverse: 'Dim returning fleets',
    73. opt_phalanx_showDebris: 'Show theoretical debris in Phalanx view',
    74. opt_evt_expandFleetsEvt: 'Show fleet composition and cargo (EventList)',
    75. opt_evt_expandFleetsPhal: 'Show fleet composition and cargo (Phalanx)',
    76. opt_galaxyShowRank: 'Show player ranks in Galaxy view',
    77. opt_galaxyShowAllyRank: 'Show alliance ranks in Galaxy view',
    78. opt_galaxyRankColor: 'Player/alliance ranks color',
    79. opt_galaxyDebrisMin: 'Minimal size of debris to highlight (0 to turn off)',
    80. opt_galaxyDebrisColor: 'Color of highlighted debris',
    81. opt_galaxyHideMoon: 'Hide Moon picture (display moon size instead)',
    82. opt_galaxy_Players: 'Highlight the following players',
    83. opt_galaxy_PlayerColors: 'Colors for player highlighting',
    84. opt_galaxy_Allys: 'Highlight the following alliances',
    85. opt_galaxy_AllyColors: 'Colors for alliance highlighting',
    86. opt_galaxy_keepTipsPlanets: 'Keep tooltips for planets and moons',
    87. opt_galaxy_keepTipsDebris: 'Keep tooltips for debris fields',
    88. opt_msg_expandBox: 'Expand the messagebox height',
    89. opt_msg_PlunderThreshold: 'Low limit for theoretical plunder (x1000)',
    90. opt_msg_DebrisThreshold: 'Low limit for theoretical debris (x1000)',
    91. opt_msg_foldSmallPlunder: 'Fold reports with plunder and debris less than the limit',
    92. opt_msg_showPlunder: 'Show plunder in spy reports',
    93. opt_msg_addButtons: 'Additional buttons on Messages',
    94. opt_msg_fixColors: 'Fix colors of combat reports',
    95. opt_fleet1_fixLayout: 'Fleet 1: Improve Layout',
    96. opt_fleet_showCapacity: 'Fleet 1: Show ships capacity and speed',
    97. opt_fleet1_showResCalc: 'Fleet 1: Show resource calculator',
    98. opt_uni_maxPlayerScore: 'Fleet 1: The strongest player has more than 5M points',
    99. opt_fleet1_killTips: 'Fleet 1: Kill tooltips',
    100. opt_autocopyCoords: 'Fleet 2: Auto-copy coordinates',
    101. opt_autocopyGlobal: 'Fleet 2: Memorize coordinates from any other external page',
    102. opt_fleet2_setTargetDF: 'Fleet 2: Set target to DF if the fleet includes recyclers',
    103. opt_fleet2_fixLayout: 'Fleet 2: Improve Layout',
    104. opt_fleet2_ShortLinks: 'Fleet 2: Target shortlinks',
    105. opt_fleet2_MoonColor: 'Fleet 2: Color for moons in the shortlink list',
    106. opt_fleet2_MoonsToEnd: 'Fleet 2: Move moons to the end of the shortlinks list',
    107. opt_fleet2_expandLists: 'Fleet 2: Expand drop-down boxes (Speed, Shortcuts, ACSs)',
    108. opt_fleet2_checkProbeCapacity: 'Fleet 2: Check probes capacity before departure',
    109. opt_fleet3_fixLayout: 'Fleet 3: Improve Layout',
    110. opt_missionPriority: 'Fleet 3: Mission priority',
    111. opt_mvmt_expandFleets: 'Show fleet ships and cargo',
    112. opt_mvmt_showReversal: 'Show reversal time for fleets',
    113. opt_missColor: 'Mission color: ',
    114. opt_msg_addSimButton: 'Add buttons for submitting spy reports to simulator',
    115. lbl_sectionGeneral: 'General',
    116. lbl_sectionUniverse: 'Universe',
    117. lbl_sectionTime: 'Time settings',
    118. lbl_sectionEventList: 'Event list & Phalanx',
    119. lbl_sectionGalaxy: 'Galaxy',
    120. lbl_sectionMessages: 'Messages',
    121. lbl_sectionFleetDispatch: 'Fleet dispatch',
    122. lbl_sectionFleetMovement: 'Fleet movement',
    123. lbl_optionsNote1: 'The option is stored for this universe only',
    124. lbl_resetCoords: 'Reset - ',
    125. lbl_TotalCapacity: 'Total capacity',
    126. lbl_MinSpeed: 'Minimal speed',
    127. lbl_ExPoints: 'Expedition points',
    128. lbl_mvmt_Return: 'R',
    129. lbl_resources: 'Resources',
    130. lbl_debris: 'Debris',
    131. lbl_total: 'Total',
    132. lbl_loot: 'Loot',
    133. lbl_metal: 'Metal',
    134. lbl_crystal: 'Crystal',
    135. lbl_shipSCargoAlt: 'SC',
    136. lbl_shipLCargoAlt: 'LC',
    137. lbl_shipRecyclerAlt: 'Recs',
    138. lbl_shipSatelliteAlt: 'Sat.',
    139. lbl_deficientRes: 'Missing resources',
    140. lbl_Production: 'Production',
    141. lbl_ArrivalACS: 'Arrival (ACS)',
    142. lbl_btnMarkReadAll: 'Mark all displayed messages as read',
    143. lbl_btnDeleteSmallPlunder: 'Delete spy reports with plunder < $plunder and debris < $debris',
    144. lbl_Moon: 'Moon',
    145. lbl_onTop: 'On top',
    146. lbl_onBottom: 'On bottom',
    147. lbl_onLeft: 'On left',
    148. lbl_installNewVersion: 'Click to install new version',
    149. lbl_Save: 'Save',
    150. lbl_Clear: 'Clear',
    151. lbl_Quantity: 'Quantity',
    152. lbl_Duration: 'Duration',
    153. lbl_Consumption: 'Consumption',
    154. lbl_tmTime: 'Time',
    155. lbl_tmCountdown: 'Countdown'
    156. }
    157. };
    Display All

    -------------
    AR- 1.32.6 - Need to be finished
    BA- 1.32.0 - Need to be finished
    BR - 1.32.0 - by Danielxv
    CZ - 1.32.0 - by prebijak / unknown nick
    DE - 1.32.0 - by DerWoNetDaIst / Slowmotion
    DK - 1.32.0 - by Im Me, Bangsholt - Need to be finished
    ES - 1.32.6 - by Kramagon
    FR - 1.32.0 - by David M. / benneb
    GR - 1.32.0 - by camber - Need to be finished
    IT - 1.26.0 - by Grievous - Need to be finished
    HR - 1.32.0 - by zlay, zohar88
    MX- 1.32.6 - Need to be finished
    NL - 1.32.0 - paralyz3
    NO- 1.32.0 -
    PT - 1.32.0 - by HeD_pE
    PL - 1.32.0 - by Pussty / Johnson & Joksik
    RO - 1.32.0 - by DonCannabis - Need to be finished
    SK - :arrow: 1.33.2 - by sirEdward

    Added new sentences into script - please update your translations:
    opt_fleet1_fixLayout: 'Fleet 1: Improve Layout',
    opt_fleet1_killTips: 'Fleet 1: Kill tooltips',
    opt_fleet3_fixLayout: 'Fleet 3: Improve Layout',
    opt_missionPriority: 'Fleet 3: Mission priority',


    Please use ONLY the template from en spoiler (we're updating it to match the most actual version)!
    -Ogame Recension-
    Ogame need a change!
    -Check my account for my ideas-
  • in console error i have one small error with CSS antigame:

    Source Code

    1. Utils.insertCSSRule('#slPanel table { width: 640px; margin: 0px auto; padding: 0px auto }');


    it should be:

    Source Code

    1. Utils.insertCSSRule('#slPanel table { width: 640px; margin: 0px auto; padding: 0px }');


    auto is for margin, width and height only, not for padding

    Fixed in 1.33.7
  • I was actually wondering, can one of you guy's maybe also take a look at the Antigame_mod, cause i really liked the way it showed those images in the extra resources menu. But ever since the 2.3 update on Ogame the images have dissapeared.
    I for one would greatly appreciate it, like all the stuff that is already done for Antigame.
  • @ Kramagon :
    Fixed in userscripts.org/scripts/show/117158


    Bauwser wrote:

    I was actually wondering, can one of you guy's maybe also take a look at the Antigame_mod, cause i really liked the way it showed those images in the extra resources menu. But ever since the 2.3 update on Ogame the images have dissapeared.
    I for one would greatly appreciate it, like all the stuff that is already done for Antigame.



    We will have a look.
  • Antigame Testversion 1.33.7 userscripts.org/scripts/show/117158

    And a renewed changelog of the last days:

    Recent changes:
    28.11.2011 v1.33.7
    + Antigame settings: Improved layout, reorganize in subsections (done in Messages, Fleet dispatch)
    + Antigame settings: Messages : Added option for espionage report - Reducing row spacing with 25% up to 100%
    + Antigame settings: Fleet dispatch - Fleet page 2 : Added option to color moons in expanded list
    * Fleet page 2: Fixed layout with very long descriptions
    + OSimulate: Supports now all languages

    27.11.2011 v1.33.6
    + Antigame settings: Galaxy : separated showing player and alliance rank
    + Antigame settings: Fleet dispatch - Fleet page 2 : Added Improve layout checkbox
    + Fleet page 2: Improve layout - Added colored speed selection
    * Opera fix: Insert styles to body instead of head (fixes several problems with Opera)
    * Fixed WebSim language selection
    * Languages : Removed double variables, copy Label translations into Interface
    * Updated CZ

    26.11.2011 v1.33.4
    * Fixed Simulators
    * Fixed Uni speed from Metatag

    25.11.2011 v1.33.2
    * Changed layout on Fleet1 and Fleet2 a little

    25.11.2011 v1.33.0
    * Fixed problems with phalanx
    + Antigame settings: Fleet dispatch - Fleet page 1 : Added Improve layout checkbox
    + Fleet page 1 : Improve layout removes the small "all ships" buttons and increases inputbox - The icon selects all ships (native Ogame function)

    25.11.2011 v1.32.8
    + Antigame settings: Messages : Adjustable height of messagebox.
    * Fleetpage 2 : Improved design and handling, fixed bugs.
    + Added : Uni speed factor read from meta tags Open : clean up all uni_SpeedFactor
    * Fixed : Removed all code for Ogame 1.1 Opeon : clean up all ogameVersion
  • good work, thank to quick fix #TB_window position but if i can give you one suggest :)

    if someone don`t use option "Expand the messagebox height" then that person open war report and he must scroll page down to see option for click to see full war report :/ and if you will see carefully war report is with some strange dot line. and the default option for "Expand the messagebox height" is disabled that why many people don`t will have repaired war report to full window :(.

    so i think good idea will be change function "Fix colors of combat reports'". this function is default on in antigame so every one will have fixed that window. to fix war report we change line:

    Source Code

    1. else if ( Utils.isCurrentPage('showmessage,messages') ) {
    2. if ( Options.msg_fixColors && Utils.isCurrentPage('messages') )
    3. {
    4. Utils.insertCSSRule('.combatreport_ididattack_iwon { color: #00B000; }');
    5. Utils.insertCSSRule('.combatreport_ididattack_ilost { color: #D02222; }');
    6. Utils.insertCSSRule('.combatreport_ididattack_draw { color: #C0C000; }');
    7. }


    to:

    else if ( Utils.isCurrentPage('showmessage,messages') ) {
    if ( Options.msg_fixColors && Utils.isCurrentPage('messages,showmessage') )
    {
    Utils.insertCSSRule('.combatreport_ididattack_iwon { color: #00B000; }');
    Utils.insertCSSRule('.combatreport_ididattack_ilost { color: #D02222; }');
    Utils.insertCSSRule('.combatreport_ididattack_draw { color: #C0C000; }');
    Utils.insertCSSRule( '#showmessage #shortreport td { border-bottom-style:none}');
    }

    after that people that don`t use "Expand the messagebox height" will have default fixed war report, and the war report is nicer without strange background dot line