JensvandeWiel / ArkAscendedServerManager

A server manager for ARK: Ascended
https://discord.gg/vcfNeZ3SDN
MIT License
71 stars 13 forks source link

[BUG] RCON Command string #163

Open Kaffiend opened 9 months ago

Kaffiend commented 9 months ago

Describe the bug Setting RCON parameters in General Settings do not generate the required command line string for RCON, to allow commands to be run.

To Reproduce Steps to reproduce the behavior: Set RCON Port and admin password Expected behavior Expect RCON to be enabled either via command line args or ini. Currently have to manually match settings with extra question mark parameters to get RCON to work

ELSalvadore commented 9 months ago

I also have the same problem with RCON.

After a few minutes you can no longer send commands. The server can no longer be shut down either. You have to close the server window manually so that the server goes offline.

JensvandeWiel commented 9 months ago

Hello, sorry that you guys are having this problem, can you supply more context, config.json (of the server profile) gus.ini and what is the startup command. Please remove any sensitive information before sending it.

@ELSalvadore @Kaffiend

ELSalvadore commented 9 months ago

Hey JensvandeWiel @JensvandeWiel , attached the two dates. I had to rename the GUS.ini to GUS.JSON, otherwise I wouldn't have been able to upload it here.

Maybe you will find the error.

Thank you and best regards

config.json GameUserSettings.JSON

ELSalvadore commented 9 months ago

Could it perhaps be because the admin password appears twice in the config.json?

See also your wiki: https://github.com/JensvandeWiel/ArkAscendedServerManager/wiki/Custom-Configuration

}, "adminPassword": { "type": "string"

}, "serverAdminPassword": { "type": "string"

When I change the password in the manager it only makes a change to adminPassword but it doesn't change to serverAdminPassword.

Also take a look at the community wiki:

https://ark.wiki.gg/wiki/Server_configuration

Grandalfy commented 9 months ago

Hello Everyone, @ELSalvadore, @JensvandeWiel, @Kaffiend I've been looking into the duplicated INI values problem and believe to have a solution for this as well. I found that when it came time to save the new configs on startup it was just appending new key=value pairs above the old ones and not replacing values in the INI file, thus not changing anything (as well as the duplicates!).

I managed to fix the problem on my end and will submit a PR after I do some testing and a build to make sure I did not break anything else.

ELSalvadore commented 9 months ago

I once changed the map to Svartalfheim. Since then I haven't had any more RCON problems. Maybe the server also has a problem with the island map

JensvandeWiel commented 9 months ago

That's weird