Dedicated and standalone server app
Hi,
Like @adriel and @austeregrim points on discord networkplay, it would be good to have a dedicated and standalone server app.
To quote:
Basically, right now, in order to run a forge server you need to have access to the GUI. I fully believe forge could be written to where it has a server only mode, and everyone points to the same server to access a game lobby, and the server wouldn't need to be an active player. That doesn't exist at this moment, but forge is open source and something like that IS welcomed and requested heavily.
So this is why this draft PR is for.
It is very WIP, but at least for the moment it is working.
I have done this part to help some users on their server port for docker or another setup, but actually I don't really know or understand how this whole forge project works, so it's just a little POC.
- [ ] Need to change the starting game method. When all players ready and after a fixed time the game should launch.
- [x] Remove all this loading window and loading cards parts.
Hope this will help you. 👋
maybe related to this, but this might help us to run the test cases without the need of Gui too
Here's the full post, which can be found at https://discord.com/channels/267367946135928833/414846241659289620
austeregrim — 09/08/2022 Basically, right now, in order to run a forge server you need to have access to the GUI. I fully believe forge could be written to where it has a server only mode, and everyone points to the same server to access a game lobby, and the server wouldn't need to be an active player. That doesn't exist at this moment, but forge is open source and something like that IS welcomed and requested heavily. (and potentially opens the mechanic to have open lobby servers.) I don't play with docker much, but if you can start a docker of forge, and show the GUI (X or wayland? displays) then you can access and start the Server Lobby in the docker. The problem still is the instance of forge running the server has to be a player in the match... Something that can be done in the meantime is a shared cache directory, which will remove a lot of burden from the network of downloading card images. But if everyone has forge running on their own device, they're probably using their own cache directory... and a shared cache would make sense if you had a game room with multiple computers ready for friends (or customers) to just hop on and play... unfortunately the only thing that I can recommend is to help players set up their sessions, which isn't too bad, just can be a chore... what is everyone else playing forge from? desktops/laptops or mobile devices?
Ok I don't really know, what I've done with my fork, so I put here the commit which remove the gui part.
Remove all this loading window and loading cards parts.
🔗https://github.com/Card-Forge/forge/commit/472677b8466b9cdef969960ec69298d81180cf4a
This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed