Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network Updates (Mods/News/Updates/...) #4

Open
1 task
numpad opened this issue Jan 21, 2024 · 0 comments
Open
1 task

Network Updates (Mods/News/Updates/...) #4

numpad opened this issue Jan 21, 2024 · 0 comments

Comments

@numpad
Copy link
Owner

numpad commented Jan 21, 2024

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:

  • Why not just do this using the 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant