Lurkars / ghs-server

Server component for Gloomhaven Secretariat
https://gloomhaven-secretariat.de
GNU Affero General Public License v3.0
39 stars 14 forks source link

FR: embedded client should auto connect to server #24

Open slcraft opened 9 months ago

slcraft commented 9 months ago

Feature Request:

When installing the client alongside the server, the client should be able to auto connect to said server using a configuration option which should be available to standalone client installs too (maybe a pass through in the application config)

Lurkars commented 9 months ago

So in v0.83.1 I added a property ghs-server.defaultClientSettings, when set to true, it will generate a ghs-settings-default.json file with the server settings matching the server. It just takes first host not named localhost, so depending on system, this may still not be the right host.

Anyways, what was already working before, that when you have a ghs-settings-default.json placed in your <home>/.ghs folder it will automatically be copied to the client when ghs-server.lastestClientOnStartup is enabled.

So you can also just adjust the settings for GHS as you wish, go to Data Management, Export Settings to File, rename that file to ghs-settings-default.json and place in your .ghs and/or .ghs/gloomhavensecretariat folder.

Hope that helps you. Please close the issue if solved for you!