diogomartino / palworld-ds-gui

A graphical user interface for managing local or remote Palworld dedicated servers. Web app available.
https://app.palgui.com/
MIT License
34 stars 3 forks source link

Could you also get the web interface via the exe? #4

Closed BoergiM87 closed 4 months ago

BoergiM87 commented 5 months ago

Hello, can you also get a web service when you start the EXE so that you can also open the GUI via the browser?

diogomartino commented 5 months ago

Wails in development mode does that out of the box, not sure if I can enable it in production builds (probably not). However if I go ahead and implement #2 that would probably be an out of the box experience. I'll see what I can do about it, thanks for the feedback!

BoergiM87 commented 4 months ago

Hey I have tried the dev mode... but the web version is black and nothing is displayed. Do you have any idea why? I don't know much about Wails

these errors are in the browser console localhost-1706980945424.log

diogomartino commented 4 months ago

I personally never use the browser, so I didn't try it before. The black screen is a known issue for me since it happens in the app as well. The logs show that there's something wrong with the event listeners, but I'm not sure what. It's probably a bug with Wails. This doesn't bother me too much because if I restart the app everything comes back (when not in the browser). Tried in the browser and in Chrome and Edge that black screen always happens. In Firefox it works as expected, which is being stuck in the Initializing screen because the go app is not ready to have multiple interfaces running at the same time. To overcome this you can simply add a line of code and everything should work:

Open the app.go and in the line 47 add:

runtime.EventsEmit(a.ctx, "SET_LOADING_STATUS", "DONE")

image

So, if you add this line and use Firefox you should be good to go! If you want to use it in the browser you'll need to do that, I don't have plans to officially support it in the near future.