mcrcon icon indicating copy to clipboard operation
mcrcon copied to clipboard

new lines

Open dustfeather opened this issue 11 years ago • 8 comments

The output does not know how to handle 'new line' characters. It displays all output on a single line. Same on windows and linux. I don't know C that well, but I think line 713 might be the problem.

dustfeather avatar Jul 18 '14 04:07 dustfeather

Hi!

What version of minecraft server you are using?

Tiiffi avatar Jul 26 '14 00:07 Tiiffi

It's a FTB DW20, but that's not the problem, because if I go to the server console the output from there it's just fine. But when I use the mcrcon, the output comes in only 1 line event if the raw output is on multiple lines. I can give you a screenshot if that would help you.

dustfeather avatar Jul 27 '14 07:07 dustfeather

Some servers (vanilla for example) does not send newlines at all so this might be tricky to fix on the clientside.

Obvious fix would be to fix this on the serverside. Any other suggestions?

Tiiffi avatar Jan 13 '15 16:01 Tiiffi

1.6.4 On 26 Jul 2014 03:52, "Tiiffi" [email protected] wrote:

Hi!

What version of minecraft server you are using?

— Reply to this email directly or view it on GitHub https://github.com/Tiiffi/mcrcon/issues/1#issuecomment-50218446.

dustfeather avatar Jan 13 '15 16:01 dustfeather

Well, the client doesn't seem to have that problem :) On 13 Jan 2015 18:31, "Tiiffi" [email protected] wrote:

Some servers do not send newlines at all so this might be tricky to fix on the clientside.

Obvious fix would be to fix this on the serverside. Any other suggestions?

— Reply to this email directly or view it on GitHub https://github.com/Tiiffi/mcrcon/issues/1#issuecomment-69772972.

dustfeather avatar Jan 13 '15 16:01 dustfeather

This is known bug in minecraft vanilla server: https://bugs.mojang.com/browse/MC-7569

I could try to write some workaround hacks (if even possible) but I rather wait for proper fix on serverside before doing that.

Tiiffi avatar Jan 13 '15 17:01 Tiiffi

@Tiiffi could you please add a command-line option to force new-line insertion in RCON. Vanilla MC server has this bug since 2013 and it seems it will never be fixed. So I know that it's better to fix it on serverside but we don't have such option. I believe this should be a simple change. No need to do any tricks to detect is RCON contains new-line or not. End user will specify it in command-line.

MaxMelehov avatar Jul 30 '20 18:07 MaxMelehov

@Tiiffi could you please add a command-line option to force new-line insertion in RCON.

I am not sure how to do that.

Minecraft server is pushing out one big block of data without any new line markers. As far as I know it's impossible to detect where new lines should be.

Only thing I can do is to add workarounds for some command responses (like add newline before every '/' character when invoking "help" command).

Tiiffi avatar Sep 02 '20 00:09 Tiiffi