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.

  • OValue Exporter 4.5.4

    This update fixes how the exporter reads Metal Boosters and Resource Amplifiers, and adds a few tools that help with sync issues. Please update the script from your userscript manager (Tampermonkey: Check for updates).


    Fixes

    • Boosters recognised in every language. Metal Boosters and Resource Amplifiers are now identified by the item’s internal ID, which is the same on every server, and no longer by the translated item name. Before this, detection was only reliable on Italian and English servers.
    • Resource Amplifier no longer shows 0%. The game sends this item’s name without the percentage, so the exporter could not read it. The percentage now comes from the item ID.
    • Expired boosters are removed. When a booster runs out, OValue stops counting it as soon as you open the Overview. Before, it stayed active until you visited the Empire page.
    • Overview and Empire now agree. The two pages used to read boosters from different sources, so the result depended on which one you opened last. Both now read the same data.


    Booster still wrong after updating? Open the Overview in game, then sync OValue. If it’s still wrong, post your export (or the diagnostic report) in this thread.



    OValue Exporter 4.6.0

    Please update the script from your userscript manager (Tampermonkey: Check for updates). On ovalue.net, the new Update script button in the top bar takes you straight to it.

    New

    • Direct link to OValue. The OValue title at the top of the in-game panel and the new Open OValue button at the bottom open ovalue.net in a new tab.

    Removed

    • Officers list. The panel no longer shows your officers and how long they have left. OValue still knows whether the Geologist and the full Commanding Staff are active, because both affect your production. That information now comes from the game’s account data, without reading the Overview page.

    On ovalue.net

    • Script button always in the top bar. It shows Install script until the exporter is detected. It shows Update script when your installed version is older than the latest one. Once you are up to date it becomes a small Script button.
    • Clearer first-time setup. The home page shows the three steps: install the script, open the Overview in game, come back to OValue. Until the script is detected, the other pages show a reminder banner. If you close it, it comes back on your next visit.