itzg / rcon-cli

A little RCON cli based on james4k's RCON library for golang
Apache License 2.0
175 stars 15 forks source link

Constant "Weird. This response is for another request." message. #28

Open Capadillo opened 1 year ago

Capadillo commented 1 year ago

I am getting the "Weird. This response is for another request." message after every message sent. Often it is accompanied with "Keep Alive".

Game server is Ark: Survival Evolved running on Ubuntu 20.04 LTS.

itzg commented 1 year ago

I have only tested rcon-cli with Minecraft and would in fact be pleasantly surprised if it works with any other games with RCON access. I can see if updating the rcon library would happen to resolve this.

Capadillo commented 1 year ago

I have only tested rcon-cli with Minecraft and would in fact be pleasantly surprised if it works with any other games with RCON access. I can see if updating the rcon library would happen to resolve this.

Ah! In that case it works perfectly! Sending commands in the cli args works beautifully, only issue was in the console version (which wasn't my requirement anyway.)

itzg commented 1 year ago

Glad to hear the non-interactive worked fine.

When you get a chance, can you see if https://github.com/itzg/rcon-cli/releases/tag/1.6.1 happens to work better for interactive access?

Mazorlion commented 1 year ago

Using the latest version of the container this still happens. It seems like it might happen when the output for a single command exceeds the maximum response size during interactive mode or something?

> help
/advancement (grant|revoke)
/attribute <target> <attribute> (get|base|modifier)
/execute (run|if|unless|as|at|store|positioned|rotated|facing|align|anchored|in)
/bossbar (add|remove|list|set|get)
/clear [<targets>]
=== # snip 93 lines... ===
/sbp (list|give|removeNonPlayer)
/sophisticate
> forge generate 0 0 0 300
Weird. This response is for another request.
dbackpacks -> sbp
/pigpen (say|hand|book|tile)
/polymorph conflicts
/fluxnetworks superadmin 
=== # snip... ===
> /forge generate 0 0 0 200
Weird. This response is for another request.
Starting to generate 300 chunks in a spiral around 0, 0 in dimension ServerLevel[world].

The command responses are then off-by-one.

Pen9G commented 7 months ago

I have only tested rcon-cli with Minecraft and would in fact be pleasantly surprised if it works with any other games with RCON access. I can see if updating the rcon library would happen to resolve this.

Actually this works on Palword Server too,though same 'Weird. This response is for another request.' appears and some commands cant be executed well.Still,thank you for your work