SoftbearStudios / mk48

Mk48.io ship combat game
https://mk48.io
GNU Affero General Public License v3.0
339 stars 60 forks source link

Static client #207

Open 3kh0 opened 2 years ago

3kh0 commented 2 years ago

Is there a client that you can just upload to a Apache server and it will connect?

finnbear commented 2 years ago

Hi,

We usually recommend an <iframe/>-based solution. Even if the client could be served statically, it would break after every update.

finnbear commented 2 years ago

In fact we have a ready-made HTML file for this purpose: https://raw.githubusercontent.com/SoftbearStudios/mk48/main/assets/embed/iframe.html

3kh0 commented 2 years ago

@finnbear iframes do not work for my purpose

finnbear commented 2 years ago

Just took a peek at your project and it seems you are in the business of "unblocking" games. Depending on how the blocking is implemented, any connection to our official domain (whether from a copy of or iframe to our client) may be blocked. If we ever develop a single player version of Mk48.io (which we had in the past but didn't include in our port from Go to Rust), that might be more aligned with what you are trying to accomplish 🙂

3kh0 commented 2 years ago

@finnbear Yes, I first want to get a stand-alone client for the blocks that only detect the URL of the page, then later I can proxy the requests.

XenonPy commented 4 days ago

@3kh0 Perhaps look into hosting your own server (instructions in README.md)? Resilient DNS-based blockers will be able to work around most ways of proxying into the official public servers.