Improve get-games API

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
Natha
Fast Inserter
Fast Inserter
Posts: 175
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Improve get-games API

Post by Natha »

I hope It's right to post it here...

Since a few versions (I think since 0.15) each server has a server-id.json file with an id which is identical to that server id in the get-games JSON array (https://multiplayer.factorio.com/get-ga ... ]<username>[/i]&token=<token>).
So now there are possibilities to find a suitable array entry for a running server, which I want to use to enable player statistics in our user's server interfaces.

However I have to check ALL array entries to find a matching entry for a server, and that with ALL servers. Thats not efficient.


So it would be great if you make an associative json array where the keys are the server ids so I can easily get the correct item for a given id.


PS there is also the game-id field, which I can use to get more server details, but I can't find that id in any server files.


LG

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: Improve get-games API

Post by noliVe »

yes would be great to have more control over that api HTTP parameter to filter or better selection

i still want server - server game logs - we could program some little protection vs griefing ,
and even have irc/chat possibilities
would be good for streamers on yt or twitch
and sure to watch over bad guys ruining the server you are playing with

Post Reply

Return to “Ideas and Suggestions”