mschnitzer / ark-survival-ascended-linux-container-image

A docker/podman container that is able to run an ARK: Survival Ascended on a Linux host.
93 stars 18 forks source link

RCON Questions #15

Closed DarkVentHead closed 1 year ago

DarkVentHead commented 1 year ago

I have the pre-requisites for RCON under GamUserSettings.ini. Also filed under [Serversettings] Tab. I attempt to execute the RCON command through docker and i get:

command: docker exec -t asa-server asa-ctrl rcon --exec 'saveworld' Response: World Saved

Is there a way to confirm the actual saving of the world? Mod dates?

command: docker exec -t asa-server asa-ctrl rcon --exec 'serverchat hello!' response: Server received, but no response!!

But in fact it DID send the serverchat message and can be seen. Is this expected RCON behavior?

command: docker exec -t asa-server asa-ctrl rcon --exec 'broadcast hello!' response: Server received, but no response!!

In this instance. The server does NOT receive the broadcast and nothing pops up. Can the broadcast command not be used with RCON?

I very much appreciate what you're putting together here. Thank you for taking the time to make it all work!

mschnitzer commented 1 year ago

The output you get from rcon --exec is what the ASA server responds with. In some cases, there's no output (e.g. using the serverchat command). As for checking whether saveworld worked, I'd say it's reliable to trust what the rcon --exec commands outputs. As the response World Saved is coming directly from the ASA server, I'd say you can trust that. Otherwise you could check file modification dates of the files located in the SavedArks/ directory. Also usually there's this window appearing ingame that says "Slow frame detected" which is in indicator the server is performing a heavy task and which is usually caused by saving the world (including auto saves).

I'm not sure about the broadcast command, because there's no public documentation of ASA specific RCON commands. They might have just removed that from ASA. What was that command doing in ASE? Sending a message to all players? In that case, this sounds like what serverchat is doing. Might just have been replaced by that.

DarkVentHead commented 1 year ago

I've used the broadcast command in with admincheat in-game. It pops up like the welcome message does for all players. I know it works for ASA (due to aforementioned reasons).

It just seems to fail when pushed through RCON

mschnitzer commented 1 year ago

You are right, I tested it myself. However, I think this is not an issue with asa-ctrl, as it just passes everything to the server without modifying the content you are passing. It might just not be an RCON command.

DarkVentHead commented 1 year ago

I also do not believe there is something wrong with your utility. I've went over the code (admittedly VERY weak on ruby though) and don't see anything that would prevent it from working when properly passed to the server. I suspect it is something on Wildcards side. I guess only time will tell!

mschnitzer commented 1 year ago

I'm closing this issue for now, as it doesn't seem to be a bug with the software. Please reopen if this is working in another RCON software, but not in asa-ctrl.