CerealOgameStats

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

    • CerealOgameStats


      Tool submitted for toleration by Shole | 14/01/2016
    • Hi, I'm the author.
      The script works (at least on my macbook and in a 4.0.4 universe) on:

      • Google Chrome (direct install, no addon needed)
      • Firefox + Greasemonkey
      • Firefox + Scriptish
      • Opera (manual install, User JavaScript directory)
      • Safari + NinjaKit

      Screenshot in english: img29.imageshack.us/img29/5982/capturadepantalla201206g.png


      An Example...

      Old data (previously saved):

      Source Code

      1. {"timestamp":1338045600,"strDate":"26/05/2012","strTime":"17:20:00","members":{"MocroxBoss":{"r":"COMADREJA FLOTERA","s":4636952,"p":964,"c":"1:119:10","d":"14/05/2012"},"ex3a2":{"r":"Vacaciones","s":23923162,"p":223,"c":"1:134:10","d":"29/12/2011"},"MesQ":{"r":"COMADREJA IMPERIAL","s":9952176,"p":594,"c":"1:212:12","d":"29/04/2012"},"Haze":{"r":"COMADREJA IMPERIAL","s":30793920,"p":144,"c":"1:225:11","d":"13/04/2012"},"Elparagua":{"r":"Vacaciones","s":17138496,"p":363,"c":"1:229:10","d":"04/02/2012"},"Arcangel_Samael":{"r":"COMADREJA IMPERIAL","s":20786814,"p":265,"c":"1:345:10","d":"21/03/2012"},"Piezas.":{"r":"COMADREJA IMPERIAL","s":28517538,"p":168,"c":"2:64:6","d":"19/03/2012"},"Cygnus":{"r":"COMADREJA GUERRIYERA","s":9789752,"p":593,"c":"2:460:7","d":"03/02/2012"},"Net0":{"r":"COMADREJA FLOTERA","s":9986546,"p":637,"c":"3:273:7","d":"13/09/2011"},"misterioso":{"r":"Vacaciones","s":14992530,"p":424,"c":"3:330:9","d":"23/02/2012"},"danipe":{"r":"COMADREJA FLOTERA","s":13291529,"p":498,"c":"4:163:9","d":"27/11/2011"},"PICHI":{"r":"COMADREJA DE HIERRO","s":14464820,"p":429,"c":"9:465:11","d":"21/07/2011"},"T-REX":{"r":"MINERO INPENETRABLE","s":4981933,"p":951,"c":"4:463:6","d":"07/05/2012"},"masuka":{"r":"Vacaciones","s":10126372,"p":591,"c":"3:132:4","d":"24/10/2011"},"kimiriako":{"r":"COMADREJA IMPERIAL","s":18005983,"p":330,"c":"3:69:11","d":"06/12/2011"},"Firmo":{"r":"REVIENTA DEFENSAS","s":13010560,"p":458,"c":"1:108:12","d":"09/05/2012"},"daerion":{"r":"REVIENTA DEFENSAS","s":10391074,"p":570,"c":"1:474:6","d":"10/01/2011"},"Machichaco":{"r":"COMADREJA FLOTERA","s":14813219,"p":412,"c":"3:425:8","d":"29/03/2011"},"D3pr3dadoR":{"r":"Puto amo estudiando","s":15191661,"p":418,"c":"2:193:12","d":"11/01/2012"},"nicerone":{"r":"FÍSICO CUÁNTICO","s":6127304,"p":828,"c":"2:319:12","d":"09/03/2012"},"rodrigo":{"r":"FÍSICO CUÁNTICO","s":6819939,"p":779,"c":"3:372:6","d":"01/04/2012"},"NainxX":{"r":"Vacaciones","s":13746068,"p":455,"c":"6:43:5","d":"08/02/2012"},"morpeus":{"r":"Vacaciones","s":7000334,"p":780,"c":"3:90:12","d":"11/04/2012"},"Cereal":{"r":"FÍSICO CUÁNTICO","s":9488014,"p":606,"c":"1:421:10","d":"14/05/2012"},"etsila":{"r":"","s":12726013,"p":0,"c":"5:24:12","d":""}}}


      New data: Generated by the script from the memberlist.

      Result:
      Display Spoiler
      Evolution of the alliance since 26/05/2012 (17:20:00) to 04/06/2012 (00:16:25)
      Elapsed time: 1w 1d 6h

      Alliance summary
      « Total points - 340,702,709 - 338,056,591 (-0.78 %) (-2,646,118 points)
      « Points per member - 13,628,108 - 13,522,264 (-0.78 %) (-105,845 points)

      Top 3 by score
      1 » Machichaco (+641,597 points)
      2 » Haze (+556,564 points)
      3 » Firmo (+554,872 points)

      Top 3 by percent
      1 » rodrigo (+4.67 %)
      2 » nicerone (+4.59 %)
      3 » MocroxBoss (+4.40 %)

      Score rank
      01 » Machichaco - 14,813,219 - 15,454,816 (+4.33 %) (+641,597 points)
      02 » Haze - 30,793,920 - 31,350,484 (+1.81 %) (+556,564 points)
      03 » Firmo - 13,010,560 - 13,565,432 (+4.26 %) (+554,872 points)
      04 » Piezas. - 28,517,538 - 28,902,340 (+1.35 %) (+384,802 points)
      05 » kimiriako - 18,005,983 - 18,362,261 (+1.98 %) (+356,278 points)
      06 » Cereal - 9,488,014 - 9,818,233 (+3.48 %) (+330,219 points)
      07 » rodrigo - 6,819,939 - 7,138,553 (+4.67 %) (+318,614 points)
      08 » nicerone - 6,127,304 - 6,408,348 (+4.59 %) (+281,044 points)
      09 » daerion - 10,391,074 - 10,650,411 (+2.50 %) (+259,337 points)
      10 » Cygnus - 9,789,752 - 10,007,088 (+2.22 %) (+217,336 points)
      11 » MocroxBoss - 4,636,952 - 4,840,933 (+4.40 %) (+203,981 points)
      12 » PICHI - 14,464,820 - 14,656,286 (+1.32 %) (+191,466 points)
      13 » MesQ - 9,952,176 - 10,048,272 (+0.97 %) (+96,096 points)
      14 ~ morpeus - 7,000,334 (no changes)
      15 ~ NainxX - 13,746,068 (no changes)
      16 ~ misterioso - 14,992,530 (no changes)
      17 ~ ex3a2 - 23,923,162 (no changes)
      18 ~ Elparagua - 17,138,496 (no changes)
      19 ~ Arcangel_Samael - 20,786,814 (no changes)
      20 « D3pr3dadoR - 15,191,661 - 15,179,550 (-0.08 %) (-12,111 points)
      21 « masuka - 10,126,372 - 10,037,096 (-0.88 %) (-89,276 points)
      22 « T-REX - 4,981,933 - 4,879,716 (-2.05 %) (-102,217 points)
      23 « Net0 - 9,986,546 - 9,374,123 (-6.13 %) (-612,423 points)
      24 « danipe - 13,291,529 - 12,540,806 (-5.65 %) (-750,723 points)

      Percent rank
      01 » rodrigo - 6,819,939 - 7,138,553 (+4.67 %) (+318,614 points)
      02 » nicerone - 6,127,304 - 6,408,348 (+4.59 %) (+281,044 points)
      03 » MocroxBoss - 4,636,952 - 4,840,933 (+4.40 %) (+203,981 points)
      04 » Machichaco - 14,813,219 - 15,454,816 (+4.33 %) (+641,597 points)
      05 » Firmo - 13,010,560 - 13,565,432 (+4.26 %) (+554,872 points)
      06 » Cereal - 9,488,014 - 9,818,233 (+3.48 %) (+330,219 points)
      07 » daerion - 10,391,074 - 10,650,411 (+2.50 %) (+259,337 points)
      08 » Cygnus - 9,789,752 - 10,007,088 (+2.22 %) (+217,336 points)
      09 » kimiriako - 18,005,983 - 18,362,261 (+1.98 %) (+356,278 points)
      10 » Haze - 30,793,920 - 31,350,484 (+1.81 %) (+556,564 points)
      11 » Piezas. - 28,517,538 - 28,902,340 (+1.35 %) (+384,802 points)
      12 » PICHI - 14,464,820 - 14,656,286 (+1.32 %) (+191,466 points)
      13 » MesQ - 9,952,176 - 10,048,272 (+0.97 %) (+96,096 points)
      14 ~ morpeus - 7,000,334 (no changes)
      15 ~ misterioso - 14,992,530 (no changes)
      16 ~ ex3a2 - 23,923,162 (no changes)
      17 ~ Elparagua - 17,138,496 (no changes)
      18 ~ NainxX - 13,746,068 (no changes)
      19 ~ Arcangel_Samael - 20,786,814 (no changes)
      20 « D3pr3dadoR - 15,191,661 - 15,179,550 (-0.08 %) (-12,111 points)
      21 « masuka - 10,126,372 - 10,037,096 (-0.88 %) (-89,276 points)
      22 « T-REX - 4,981,933 - 4,879,716 (-2.05 %) (-102,217 points)
      23 « danipe - 13,291,529 - 12,540,806 (-5.65 %) (-750,723 points)
      24 « Net0 - 9,986,546 - 9,374,123 (-6.13 %) (-612,423 points)

      Special cases
      » Javi - 7,254,439 (new member)
      « etsila - 12,726,013 (leaves the alliance)


      Latest data (for further statistics):

      Source Code

      1. {"timestamp":1338761785,"strDate":"04/06/2012","strTime":"00:16:25","members":{"MocroxBoss":{"r":"COMADREJA FLOTERA","s":4840933,"p":958,"c":"1:119:10","d":"14/05/2012"},"ex3a2":{"r":"Vacaciones","s":23923162,"p":223,"c":"1:134:10","d":"29/12/2011"},"MesQ":{"r":"COMADREJA IMPERIAL","s":10048272,"p":591,"c":"1:212:12","d":"29/04/2012"},"Haze":{"r":"COMADREJA IMPERIAL","s":31350484,"p":144,"c":"1:225:11","d":"13/04/2012"},"Elparagua":{"r":"Vacaciones","s":17138496,"p":363,"c":"1:229:10","d":"04/02/2012"},"Arcangel_Samael":{"r":"Vacaciones","s":20786814,"p":265,"c":"1:345:10","d":"21/03/2012"},"Piezas.":{"r":"COMADREJA IMPERIAL","s":28902340,"p":166,"c":"2:64:6","d":"19/03/2012"},"Cygnus":{"r":"COMADREJA GUERRIYERA","s":10007088,"p":593,"c":"2:460:7","d":"03/02/2012"},"Net0":{"r":"COMADREJA FLOTERA","s":9374123,"p":637,"c":"3:273:7","d":"13/09/2011"},"misterioso":{"r":"Vacaciones","s":14992530,"p":423,"c":"3:330:9","d":"23/02/2012"},"danipe":{"r":"COMADREJA FLOTERA","s":12540806,"p":496,"c":"4:163:9","d":"27/11/2011"},"PICHI":{"r":"COMADREJA DE HIERRO","s":14656286,"p":430,"c":"9:465:11","d":"21/07/2011"},"T-REX":{"r":"MINERO INPENETRABLE","s":4879716,"p":952,"c":"4:463:6","d":"07/05/2012"},"masuka":{"r":"Vacaciones","s":10037096,"p":592,"c":"3:132:4","d":"24/10/2011"},"kimiriako":{"r":"COMADREJA IMPERIAL","s":18362261,"p":327,"c":"3:69:11","d":"06/12/2011"},"Firmo":{"r":"REVIENTA DEFENSAS","s":13565432,"p":460,"c":"1:108:12","d":"09/05/2012"},"daerion":{"r":"REVIENTA DEFENSAS","s":10650411,"p":569,"c":"1:474:6","d":"10/01/2011"},"Machichaco":{"r":"COMADREJA FLOTERA","s":15454816,"p":411,"c":"3:425:8","d":"29/03/2011"},"D3pr3dadoR":{"r":"Puto amo estudiando","s":15179550,"p":417,"c":"2:193:12","d":"11/01/2012"},"nicerone":{"r":"FÍSICO CUÁNTICO","s":6408348,"p":824,"c":"2:319:12","d":"09/03/2012"},"rodrigo":{"r":"FÍSICO CUÁNTICO","s":7138553,"p":769,"c":"3:372:6","d":"01/04/2012"},"NainxX":{"r":"Vacaciones","s":13746068,"p":456,"c":"6:43:5","d":"08/02/2012"},"Javi":{"r":"WASA","s":7254439,"p":762,"c":"1:315:12","d":"01/06/2012"},"morpeus":{"r":"Vacaciones","s":7000334,"p":781,"c":"3:90:12","d":"11/04/2012"},"Cereal":{"r":"FÍSICO CUÁNTICO","s":9818233,"p":606,"c":"1:421:10","d":"14/05/2012"}}}

      Statistics performed with CerealOgameStats
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.
    • Tested, and seems to work fine, on OGame v4.1.0

      I would appreciate if someone could check the english locale (I'm from Spain).
      Code:
      Display Spoiler

      Source Code

      1. {
      2. // separators
      3. s_dec: ".",
      4. s_tho: ",",
      5. s_dat: "/",
      6. s_tim: ":",
      7. // abb time units
      8. a_wee: "w",
      9. a_day: "d",
      10. a_hou: "h",
      11. a_min: "m",
      12. a_sec: "s",
      13. // buttons
      14. b_sel:'Select',
      15. b_del:'Erase',
      16. b_get:'Get from this page',
      17. b_sav:'Save data',
      18. b_svt:'It\'ll be used as "Old data" in future statistics',
      19. b_loa:'Load saved data',
      20. // titles
      21. t_odt:'Old data',
      22. t_ndt:'New data',
      23. t_fmt:'Format',
      24. t_col:'Colors',
      25. t_out:'Statistics (code)',
      26. t_stb:'Status',
      27. // colors
      28. c_dbg:'Dark background',
      29. c_lbg:'Light background',
      30. // status (errors)
      31. e_nod:'No old data',
      32. e_nnd:'No new data',
      33. e_odf:'The old data has wrong format',
      34. e_ndf:'The new data has wrong format',
      35. e_unk:'Unexpected error',
      36. // status (success)
      37. w_dne:'Done',
      38. w_pcs:'Processing',
      39. // output
      40. o_tdt:'Evolution of the alliance since {oldDate} to {newDate}',
      41. o_tet:'Elapsed time',
      42. o_tas:'Alliance summary',
      43. o_ptl:'Total points',
      44. o_ppm:'Points per member',
      45. o_tts:'Top 3 by score',
      46. o_ttp:'Top 3 by percent',
      47. o_trs:'Score rank',
      48. o_trp:'Percent rank',
      49. o_tsc:'Special cases',
      50. o_cnm:'new member',
      51. o_cla:'leaves the alliance',
      52. o_bdg:'banned',
      53. o_bdq:'unbanned',
      54. o_ldt:'Latest data (for future statistics)',
      55. o_abt:'Statistics performed with {link}'
      56. }
      Display All

      Some clarifications:
      • I decided to include the "memberlist data object" in the output bbCode to allow that any member can make the stats if the member in charge is off or something similar
      • The "memberlist data object" stores some unused data for forward compatibility (for adding features in the future)

      To do list:
      • Truly identify players by extracting their id from the highscore link, for example: (done)
        http://uni106.ogame.com.es/game/index.php?page=highscore&searchRelId=100823&category=1&type=0
      • Save data and config preferences to localStorage (done, clicking "save" for data and triggering the "change" event for any preference)
      • Use saved data to show the stats info integrated in the alliance memberlist (ain't gonna do it, the memberlist is overloaded enough)
      • Ranking by positions gained in the highscore rank of the universe (the info is now shown but I didn't make a ranking sorted by it)
      • Allow to change between locales instead of only use the detected one
      • Add some checkboxes to decide wich segments include in the output (Alliance summary, Top 3 by score, etc) (done)
      • Fix: Reload script's DOM objects after changing between tabs in the Alliance view (done)
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.

      The post was edited 7 times, last by cereal ().

    • AKA47 wrote:

      doesn't seem to work if you are the alliance founder !


      The new version (1.11.5) seems to work fine if you are the alliance founder, but I couldn't test it very well because I'm the only member in this testing alliance, so let me know if still fails.
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.
    • Update the script info please:

      CerealOgameStats
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.
    • cereal wrote:

      Update the script info please:

      CerealOgameStats
      Done as requested
    • Add this, pls.

      Source Code

      1. if (/ru/.test(ogameInfo.language))i18n.set(
      2. {
      3. // separators
      4. s_dec: ".",
      5. s_tho: ",",
      6. s_dat: "/",
      7. s_tim: ":",
      8. // abb time units
      9. a_wee: "н",
      10. a_day: "д",
      11. a_hou: "ч",
      12. a_min: "м",
      13. a_sec: "с",
      14. // buttons
      15. b_sel:'Выделить',
      16. b_del:'Очистить',
      17. b_get:'Получить с этой страницы',
      18. b_sav:'Сохранить "Старые данные"',
      19. b_loa:'Загрузить сохраненные данные',
      20. b_res:'Обнулить статистику',
      21. // titles
      22. t_odt:'Старые данные',
      23. t_ndt:'Новые данные',
      24. t_fmt:'Формат',
      25. t_col:'Цвета',
      26. t_inc:'Показать/Скрыть',
      27. t_out:'Статистика (код)',
      28. t_stb:'Статус',
      29. t_pre:'Прогресс',
      30. t_exp:'Экспорт для форума',
      31. // period
      32. p_ago:'{period} с предыдущей даты',
      33. p_now:'сейчас',
      34. // colors
      35. c_dbg:'Темный фон',
      36. c_lbg:'Светлый фон',
      37. // status (errors)
      38. e_nod:'Нет старых данных',
      39. e_nnd:'Нет новых данных',
      40. e_odf:'Старые данные имеют неверный формат',
      41. e_ndf:'Новые данные имеют неверный формат',
      42. e_unk:'Неожиданная ошибка',
      43. e_ndt:'Нет данных',
      44. e_wft:'Неверный формат',
      45. // status (success)
      46. w_pcs:'Обработка',
      47. // output
      48. o_tdt:'Прогресс альянса с {oldDate} по {newDate}',
      49. o_tet:'Прошедшее время',
      50. o_tas:'Сумарно по альянсу',
      51. o_ptl:'Общее количество очков',
      52. o_ppm:'Очки на одного члена',
      53. o_ttt:'Топ 3 по общему количеству очков',
      54. o_tts:'Топ 3 по полученому количеству очков',
      55. o_ttp:'Топ 3 по полученому проценту',
      56. o_ttg:'Топ 3 по полученым позициям',
      57. o_trt:'Всего количество очей по топу',
      58. o_trs:'Приобретено количество очей по топу',
      59. o_trp:'Приобретено процентов по топу',
      60. o_trg:'Приобретено позиций по топу',
      61. o_tsc:'Особые случаи',
      62. o_cnm:'новый игрок альянса',
      63. o_cla:'покинул альянс',
      64. o_bdg:'заблокирован',
      65. o_bdq:'разблокирован',
      66. o_abt:'Первоисточник статистики: {link}',
      67. // OGame Error
      68. e_oga:'Ошибка OGame, перезагрузка страници может исправить данную ошибку'
      69. });
      Display All
    • Asiman wrote:

      Add this, pls.

      Russian i18n

      Source Code

      1. if (/ru/.test(ogameInfo.language))i18n.set(
      2. {
      3. // separators
      4. s_dec: ".",
      5. s_tho: ",",
      6. s_dat: "/",
      7. s_tim: ":",
      8. // abb time units
      9. a_wee: "н",
      10. a_day: "д",
      11. a_hou: "ч",
      12. a_min: "м",
      13. a_sec: "с",
      14. // buttons
      15. b_sel:'Выделить',
      16. b_del:'Очистить',
      17. b_get:'Получить с этой страницы',
      18. b_sav:'Сохранить "Старые данные"',
      19. b_loa:'Загрузить сохраненные данные',
      20. b_res:'Обнулить статистику',
      21. // titles
      22. t_odt:'Старые данные',
      23. t_ndt:'Новые данные',
      24. t_fmt:'Формат',
      25. t_col:'Цвета',
      26. t_inc:'Показать/Скрыть',
      27. t_out:'Статистика (код)',
      28. t_stb:'Статус',
      29. t_pre:'Прогресс',
      30. t_exp:'Экспорт для форума',
      31. // period
      32. p_ago:'{period} с предыдущей даты',
      33. p_now:'сейчас',
      34. // colors
      35. c_dbg:'Темный фон',
      36. c_lbg:'Светлый фон',
      37. // status (errors)
      38. e_nod:'Нет старых данных',
      39. e_nnd:'Нет новых данных',
      40. e_odf:'Старые данные имеют неверный формат',
      41. e_ndf:'Новые данные имеют неверный формат',
      42. e_unk:'Неожиданная ошибка',
      43. e_ndt:'Нет данных',
      44. e_wft:'Неверный формат',
      45. // status (success)
      46. w_pcs:'Обработка',
      47. // output
      48. o_tdt:'Прогресс альянса с {oldDate} по {newDate}',
      49. o_tet:'Прошедшее время',
      50. o_tas:'Сумарно по альянсу',
      51. o_ptl:'Общее количество очков',
      52. o_ppm:'Очки на одного члена',
      53. o_ttt:'Топ 3 по общему количеству очков',
      54. o_tts:'Топ 3 по полученому количеству очков',
      55. o_ttp:'Топ 3 по полученому проценту',
      56. o_ttg:'Топ 3 по полученым позициям',
      57. o_trt:'Всего количество очей по топу',
      58. o_trs:'Приобретено количество очей по топу',
      59. o_trp:'Приобретено процентов по топу',
      60. o_trg:'Приобретено позиций по топу',
      61. o_tsc:'Особые случаи',
      62. o_cnm:'новый игрок альянса',
      63. o_cla:'покинул альянс',
      64. o_bdg:'заблокирован',
      65. o_bdq:'разблокирован',
      66. o_abt:'Первоисточник статистики: {link}',
      67. // OGame Error
      68. e_oga:'Ошибка OGame, перезагрузка страници может исправить данную ошибку'
      69. });
      Display All

      Added, but not tested.
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.
    • Please mods, update the script info to add the russian language (русский), thanks.

      CerealOgameStats
      [Script] CerealOgameStats: Real time alliance evolution stats.
      [Script] OGame Trade Calculator: Embedded trade calculator.
      [Script] OGame Hidden Colony: Helps hiding colonies to the API.
    • cereal wrote:

      Please mods, update the script info to add the russian language (русский), thanks.

      CerealOgameStats
      Done as requested,
      Also removed legacy links as no longer needed