Add a basic mechanism to receive news/updates/list of available mods/... from an external source.
This should probably be separate from the game server?
This should just be static information. Like from a git repo hosted somewhere.
The client needs to do the diff itself. (If at some point it is absolutely required to have dynamic content, we could specify a user ID in the request and implement our own dynamic server).
Usecases:
- Fetch the last 5 news entries as json from
example.com/news.json.
- Fetch the most popular mods from
example.com/mods-landingpage.json. We could do this json-api pagination thingy: next: "example.com/mods-page2.json".
- Compare local ENGINE_VERSION to
example.com/latest-version.json. If lower, show an update banner.
Might be cringe, but fun:
- Do a vcpkg and make a github repo the official/approved mod source. would automatically allow to add third party repos?
- Allow any user to input any url "other.example.com/3rd-party-mod.json" to download a custom mod from?
Open Questions:
Add a basic mechanism to receive news/updates/list of available mods/... from an external source.
This should probably be separate from the game server?
This should just be static information. Like from a git repo hosted somewhere.
The client needs to do the diff itself. (If at some point it is absolutely required to have dynamic content, we could specify a user ID in the request and implement our own dynamic server).
Usecases:
example.com/news.json.example.com/mods-landingpage.json. We could do this json-api pagination thingy:next: "example.com/mods-page2.json".example.com/latest-version.json. If lower, show an update banner.Might be cringe, but fun:
Open Questions:
gameserver? All networking would be centralized, which is simpler to maintain than two separate systems. OTOH it's currently less reliable to self-host for me.