-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Milestone
Description
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"]
- Example:
- Scan the
universes.xmlthat belongs to it- Example: http://s1-en.ogame.gameforge.com/api/universes.xml
- It seems to be safe to always query
s1
- 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 attimestamp + 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.
Reactions are currently unavailable