Skip to content

Player information scan #5

@skiwi2

Description

@skiwi2

We intend to store all player information of all universes in OLog, therefore we need to scan the OGame XML API.

An example of this data can be found at: http://s135-en.ogame.gameforge.com/api/players.xml
More information is also available here: http://board.origin.ogame.gameforge.com/board175-user-projects/board38-new-tools-questions-answers/3927-ogame-api/

By this we can see that the players.xml file is updated every 24 hours, and as you can see the listed player data is for Universe 135 (Izar) on the "en" server group.

In order to scan for player information in all universes, we should do the following:

  • Define a list of server groups in the config
    • Example: ["en", "de", "nl"]
  • Scan the universes.xml that belongs to it
  • For every universe in that list scan the corresponding players.xml
    • Every player should be recorded in the database, and also the name should be updated if it has been changed
    • More data is present in the player tags, but this can be stored at a later moment

The scan for this player information should occur on these moments:

  • Startup
  • When new data is presented by the OGame XML API (hopefully this happens at timestamp + interval, so the scan would be at timestamp + interval + delta, where the delta would be most likely around one minute, as we don't know how consistent OGame is in pubishing these XML reports.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions