cfoust / sour

Sauerbraten for the web in a single Docker image.
https://sourga.me/
MIT License
159 stars 30 forks source link

Sour not loading on Gitpod #52

Closed catfoolyou closed 20 minutes ago

catfoolyou commented 11 months ago

When I try to deploy the repo on Gitpod, the game is stuck on "Loading Index Data (0/2)"

I have no idea how to fix this. Maybe it has something to do with the "Deprecated. Please use the Project Settings to configure prebuilds." error?

cfoust commented 11 months ago

interesting, huh, lemme take a look

cfoust commented 11 months ago

Gitpod is notoriously unstable and I haven't worked on Sour in a while, so it may have broken somehow

catfoolyou commented 11 months ago

I don't think there is any way to deploy it locally, as I have no admin access on this PC, and can't install Emscripten or NodeJS. Might try to do it when I get home.

catfoolyou commented 11 months ago

Also is there a way to deploy the original BananaBread? bb.html isnt in the repo anymore and I have no idea how to make it work either...

cfoust commented 11 months ago

I've thought about ways to make this much better recently, such as packaging up Sour as a single Go executable that would include the web client and the backend, which is totally possible. BananaBread is long gone and almost everything it included has been replaced. If you're looking to do something specific with Sour beyond hacking on it, I'd be happy to give you some pointers!

cfoust commented 11 months ago

So I tried this out and it is working, it's just that generating assets takes a while, after which you can refresh and it works. But honestly this is pretty awful; there's no way to know that's what's going on when you click the Gitpod link. So I'll revisit this and make it better soon. It used to wait until everything had been built before even displaying the page, but that broke at some point

catfoolyou commented 11 months ago

Ah, alright. Would it be possible to build it into a js/html game on linux so that it would run by itself? Without things like NodeJS, Emscripten, Docker, etc as it is not available where I am planning to deploy it.

cfoust commented 11 months ago

Yup! That's the goal! I will think about how and when I can prioritize this for you!

catfoolyou commented 11 months ago

Thanks. I'll try getting BananaBread to work in the meantime for offline bot deathmatch.

cfoust commented 20 minutes ago

You can now deploy Sour locally; instead of using Docker, it is now just a single executable available for macOS and Linux. Let me know if you have any trouble using it!