OValue Exporter

  • ovalue-1.png



    OValue Exporter


    OValue Exporter is a userscript that collects empire production data from OGame

    and synchronizes it with the OValue web application (ovalue.net), a suite of

    calculators for mine production optimization, resource pack planning, and shop

    item management.


    schermata-20261024-173307.png



    TOOL INFORMATION


    TOOL CLASSIFICATION

    Userscript (Tampermonkey / Violentmonkey / Greasemonkey)



    BROWSER / PLATFORM COMPATIBILITY

    Supported Browsers / Platforms: all

    Minimum Version Requirements: Any modern browser


    SUPPORTED OGAME LANGUAGES / COMMUNITIES

    Currently fully supported: Italian (it), English (en), German (de), French (fr)


    TOOL DESCRIPTION


    OValue Exporter is a userscript that collects empire production data from OGame

    and synchronizes it with the OValue web application (ovalue.net), a suite of

    calculators for mine production optimization, resource pack planning, and shop

    item management.


    The script reads data passively as the user navigates standard OGame pages —

    no automated page requests, no gameplay interaction. Collected data is stored

    locally in Tampermonkey's secure storage and transferred to OValue exclusively

    via the browser's localStorage API when the user visits ovalue.net. No data is

    ever sent to external servers.



    COMPLETE FEATURE LIST


    Data Collection:

    [+] Mine level extraction per planet (Metal Mine, Crystal Mine, Deuterium Synthesizer)

    [+] Planet position and coordinates detection

    [+] Planet name extraction from sidebar and empire page

    [+] Lifeform type detection per planet (Humans, Rock'tal, Mechas, Kaelesh)

    [+] Lifeform-specific building levels (High Energy Smelting / Magma Forge)

    [+] Crawler count per planet

    [+] Per-planet active item detection (Bronze/Silver/Gold/Platinum metal amplifiers)

    [+] Custom resource amplifier percentage detection

    [+] Plasma technology level from Empire page

    [+] Economy speed from universe API endpoint

    [+] Universe name from universe API endpoint

    [+] Player class detection (Collector / General / Explorer)

    [+] Officer status tracking: active/inactive + remaining time with expiration

    (Commander, Admiral, Engineer, Geologist, Technocrat)

    [+] Lifeform bonus collection (Metal production bonus, Class bonus)

    [+] Global item detection with expiration times

    (Expedition Slots, Fleet Slots, etc.) — permanent items excluded

    [+] Multi-server support with separate data storage per server hostname


    Synchronization:

    [+] Automatic bridge synchronization: when user visits ovalue.net, collected

    data is transferred to the web app via localStorage and a custom DOM event

    [+] Manual export to clipboard (JSON format) for manual import into OValue

    [+] Data persistence across sessions using Tampermonkey GM_setValue/GM_getValue


    In-page Panel:

    [+] Non-intrusive floating panel added to OGame navigation

    [+] Step-by-step collection status for each required page

    (Overview, LifeForm Bonuses, Empire)

    [+] Visual indicators showing which data has been collected and what is missing

    [+] Officer status display with remaining time

    [+] Planet and lifeform summary

    [+] Active global items list

    [+] Cache reset functionality per universe

    [+] Panel visibility state persisted across page loads


    Internationalization:

    [+] Panel UI available in Italian, English, German, and French

    [+] Language auto-detected from OGame interface content

    [+] Language preference synchronized from OValue web app settings via bridge


    API USAGE

    Yes, the script uses two OGame endpoints:


    Endpoint: /api/serverData.xml

    Purpose: Fetch universe name and economy speed

    Trigger: Once per page load on Overview, only if not already cached


    Endpoint: ?page=standalone&component=empire

    Purpose: Read mine levels, planets, crawler counts, active items

    Trigger: Only when user manually navigates to the Empire page


    Expected request frequency:

    - /api/serverData.xml: at most once per Overview page load, skipped if cached

    - Empire page: passive read only when user navigates there manually


    The script never initiates page navigations or automated requests.

    It only reads the DOM of pages the user visits during normal gameplay.


    UI MODIFICATIONS

    The script makes the following additions to the OGame interface:


    1. Navigation menu entry:

    A new "OValue" item is appended to the left sidebar navigation (#menuTable),

    styled to match the existing menu. Clicking it toggles the data panel.


    2. Floating data panel:

    A panel positioned to the left of the game sidebar, containing collection

    status, officer summary, planet list, and action buttons.

    The panel does not overlap or modify any existing OGame UI elements.


    No existing OGame interface elements are modified, hidden, or replaced.

    Edited 5 times, last by Dalinar ().

  • RiV-

    Approved the thread.
  • 🔷 OValue Exporter — Update v3.9.0


    Hi everyone! New version of the OValue exporter, with an important fix for OGame 13:


    🐛 Important fix (OGame v13)

    With OGame version 13, the old method the script used to read mine levels and Lifeform data stopped working. The script now uses OGame's official External Data Export API: it pulls the data for all your planets in a single request, simply by opening the game. More reliable and lighter on the server.


    ✨ New: Alliance Class

    The script now also detects your alliance class (Warrior / Trader / Researcher) and passes it to OValue. If your alliance is Trader, the calculator automatically applies the +5% production bonus. You'll find it in the panel, under the Overview section.

    In

  • OValue Exporter — Changelog (3.9.0 → 4.5.2)


    4.5.2

    - New: from OValue (Settings → Sync Diagnostics) you can now delete the data the

    exporter keeps for universes you no longer play. Deletion happens only on your

    explicit request and only affects data stored locally in Tampermonkey.


    schermata-20261024-173724.png


    4.5.1

    - The exporter now reports itself to OValue even when no game data has been collected

    yet. OValue can tell "script not installed / disabled" apart from "script installed

    but Overview never opened", which makes sync problems much easier to diagnose.


    4.5.0

    - The exporter now sends its version and the time the data was collected in-game,

    so OValue can show how fresh your data is and log every sync for troubleshooting.


    4.4.0

    - Instant updates: with OValue already open in another tab, new data collected in

    the game (e.g. after "↻ Refresh Data") reaches OValue immediately, without

    reloading the page.

    - This is local communication between your browser tabs only: no extra requests

    to OGame. Tampermonkey will ask you to approve one new permission

    (GM_addValueChangeListener) when updating.


    4.3.0

    - Removed: global items (fleet/expedition slots, energy/crystal/deuterium boosters…)

    are no longer read or shown. They were only used by OValue's expiration tracker,

    which no longer exists. Metal and resource amplifiers per planet are kept, since

    they affect production.


    4.2.2

    - Fixed: the metal production shown in the panel now matches OGame exactly

    (the per-planet bonus is no longer rounded; only the daily total is, like OGame).


    4.2.1

    - One script only: v4 has been merged into the existing script on Greasy Fork.

    - Fixed: LF research bonus in the panel aligned with the OValue app (only the

    research-amplifier buildings of the active species count).


    4.2.0

    - Resource Amplifier (15/20/25/30/40%) is now filled into OValue's Production Core.

    - Fixed: the Expedition Resource Amplifier was counted as a production bonus.

    It is now ignored for production.

    - Fixed: the Resource Amplifier description could be misread as a Bronze metal

    booster. Items are now recognised by name only.


    4.1.0

    - On OGame v13, active items per planet (metal/resource amplifiers) are read

    from the account data loaded with the Overview: no need to open the Empire page.

    - Crawler overload (150%, Collector only) is read from the Resource Settings page

    when you open it. The panel shows which planets have been read and links to the

    missing ones.


    4.0.0

    - New Production Core inside the panel: your 24h metal production, calculated

    from the planets already collected, without opening OValue.

    - Class simulator: switch between Collector and General/Explorer to see the

    "what-if" production, with absolute and percentage difference.

    - All data collection and export features are unchanged.