Experimenting with CheerpJ to revive Dusk GMUD game
Here's an opensource game server/client that I would love to see run in the browser again. I made a demo amount of game-play content but it's still not quite ready to be online. The Dusk application loaded and I tried to log in game but got this error. Error at keyPressed java.net.SocketException:Operation not permitted (Write failed)
Here's the demo world server https://github.com/ZabinX/DuskRPG/tree/master/DuskFiles/Dusk47 start server like this java -cp . DuskServer
Here's the DuskCheerpJ client experiment https://github.com/ZabinX/DuskRPG/tree/master/DuskFiles/Duskcheerpj
Would be pretty awesome if CheerpJ could get Dusk going in the browser again. But I don't know how to fix that error and hope someone here could help. I know cheerpj networking is limited so please let me know if this is possible to get working.
GitHub
DuskRPG/DuskFiles/Dusk47 at master · ZabinX/DuskRPG
Dusk is a online graphical MUD. Gameplay is similar to text-based games but with a graphical interface. Coded in Java. - ZabinX/DuskRPG
GitHub
DuskRPG/DuskFiles/Duskcheerpj at master · ZabinX/DuskRPG
Dusk is a online graphical MUD. Gameplay is similar to text-based games but with a graphical interface. Coded in Java. - ZabinX/DuskRPG
4 Replies
Socket Exceptions are most usually raised when networking is not properly setup. You'll need to set up a tailscale network for your use case.
Browsers do not provide any functionality to support low-level networking, so a VPN of some sort is required.
Docs are here: https://labs.leaningtech.com/cheerpj3/guides/Networking#generalized-networking
If you'd like to know why Tailscale has been specifically selected,we wrote at length about our analysis in the context of WebVM, but the tech is exactly the same: https://labs.leaningtech.com/blog/webvm-virtual-machine-with-networking-via-tailscale
I figured I'd have to setup Tailscale. Thanks for your quick response. I will give it a try later today and get back to you if I have more questions and let you know how it went
👍 I am marking this specific question as resolved, feel free to have further discussion in the main #cheerpj channel, where other members of the community might help you as well.
Thanks again for the info and I will post there too