ddakebono / PalworldRcon

Simple WPF/.net 7 Rcon tool for Palworld Dedicated Servers
MIT License
60 stars 8 forks source link

Shell/CMD line access? #6

Open Osinedges opened 7 months ago

Osinedges commented 7 months ago

This would be a great tool to help with automation, would it be possible to add cmd line tools much like you can call mcrcon in cmd with mcrcon.exe -c -H address -P port -p password "Command"

This would be super useful! Thanks in advance

ddakebono commented 7 months ago

I can look at making a separate tool for command line usage, everything needed is already there, just gotta strip out the UI

Osinedges commented 7 months ago

It's no big deal if it's a pain, I just am not familiar with .net / c# and would be good to integrate to discord bots, similar to how mcrcon works. I was trying my best with that, but it doesn't seem to get return values from ShowPlayers, in fact, no .js modules do right now.

ddakebono commented 7 months ago

Most off the shelf rcon have a bit of a fit with the Palworld server since it doesn't properly implement the rcon protocol.

Mainly most of them expect the ID of a packet to be echoed back, which is how the protocol is defined, but Palworld doesn't do that, which makes things a bit annoying lol

As for a command line tool, I can probably get one out pretty soon, things get alot easier when you aren't dealing with UI lol