sh1ny / WindowsGSM.ArkSurvivalAscended

🧩WindowsGSM plugin that provides Ark Survival Ascended Dedicated server support!
MIT License
29 stars 5 forks source link

Update ArkSurvivalAscended.cs #3

Closed mwerkmeister closed 8 months ago

mwerkmeister commented 8 months ago

--> fix parameters

The Server was ignoring all commands (even maxPlayers and SessionName) because of the blank after "_serverData.ServerMap" I have added the blank before _serverData.ServerParam to have the blank where it belongs.

sh1ny commented 8 months ago

Weirdly it doesn't fix maxplayers for me here:

https://i.imgur.com/y3JpH4R.jpeg

The reliable way to fix the maxplayers ( so far ) is in 1.1 version of the plugin ( adding -winlivemaxplayers at the end ).

sh1ny commented 8 months ago

Added this to 1.2, however i can't get MaxPlayers to work reliably for me ( read - i can't get it working at all ), thus i added :

            if (!string.IsNullOrWhiteSpace(_serverData.ServerMaxPlayer))
                param.Append($" -WinLiveMaxPlayers={_serverData.ServerMaxPlayer}");

It's on the end of the startup params, it works reliably 100% of the time. Thanks for the pull, i updated mine before looking at the pull request, but still it's your fix.