Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send palworld broadcast with spaces #1

Open
gavinnn101 opened this issue Jan 31, 2024 · 5 comments
Open

Can't send palworld broadcast with spaces #1

gavinnn101 opened this issue Jan 31, 2024 · 5 comments

Comments

@gavinnn101
Copy link
Owner

I believe this is a Palworld bug as far as I can tell. Trying to /Broadcast My Message! while in game will only broadcast My. I haven't found any special delimiters that make it work...

Related issue: gorcon/rcon-cli#34

@gavinnn101
Copy link
Owner Author

I'll note that PalworldUtil:log_and_broadcast replaces spaces with underscores as a temporary fix for this problem.

@Lukium
Copy link
Contributor

Lukium commented Jan 31, 2024

I dropped a PR that works pretty well. It uses "\x1F" (Unit Separator) to join args when the command is broadcast. The server parses Unit Separator as a blank space (albeit a wide space that looks like 2 spaces), but I think that's the best that can be done that looks like a space in ASCII

@gavinnn101
Copy link
Owner Author

I dropped a PR that works pretty well. It uses "\x1F" (Unit Separator) to join args when the command is broadcast. The server parses Unit Separator as a blank space (albeit a wide space that looks like 2 spaces), but I think that's the best that can be done that looks like a space in ASCII

Thanks a bunch! I built on your PR a bit and merged it. Will keep this issue open until a real solution is found.

@IMRastafari
Copy link

IMRastafari commented Feb 9, 2024

Cant figure out how to send it whe server is runnin with server watcher up.
I mean i can use info in source_rcon.py and get server info back.
But when i try to broadcast it end up saying unrecognized arguments

`C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Broadcast "Test"
usage: source_rcon.py [-h] [-ip SERVER_IP] [-port RCON_PORT] [-pwd RCON_PASSWORD] -cmd COMMAND [-args [ARGUMENTS ...]]
[-ll LOG_LEVEL]
source_rcon.py: error: unrecognized arguments: Test

C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Broadcast Test
usage: source_rcon.py [-h] [-ip SERVER_IP] [-port RCON_PORT] [-pwd RCON_PASSWORD] -cmd COMMAND [-args [ARGUMENTS ...]]
[-ll LOG_LEVEL]
source_rcon.py: error: unrecognized arguments: Test`

If i just put info comand i get full respond "C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Info
Welcome to Pal Server[v0.1.4.1] BAREV [RU | AM] - 1.5X 24/7"

@gavinnn101
Copy link
Owner Author

Cant figure out how to send it whe server is runnin with server watcher up. I mean i can use info in source_rcon.py and get server info back. But when i try to broadcast it end up saying unrecognized arguments

`C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Broadcast "Test" usage: source_rcon.py [-h] [-ip SERVER_IP] [-port RCON_PORT] [-pwd RCON_PASSWORD] -cmd COMMAND [-args [ARGUMENTS ...]] [-ll LOG_LEVEL] source_rcon.py: error: unrecognized arguments: Test

C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Broadcast Test usage: source_rcon.py [-h] [-ip SERVER_IP] [-port RCON_PORT] [-pwd RCON_PASSWORD] -cmd COMMAND [-args [ARGUMENTS ...]] [-ll LOG_LEVEL] source_rcon.py: error: unrecognized arguments: Test`

If i just put info comand i get full respond "C:\Users\IMRastafari>C:\Users\IMRastafari\Desktop\Palworld\palworld_dedi_helper\palworld_dedi_helper-main\src\palworld_rcon\source_rcon.py -cmd Info Welcome to Pal Server[v0.1.4.1] BAREV [RU | AM] - 1.5X 24/7"

You need to provide the -args CLI flag. The error you pasted is giving you usage examples. You can also do python source_rcon.py --help to get a clean help output.

python .\source_rcon.py -ll "DEBUG" -cmd Broadcast -args "test msg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants