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

1.0.0-rc.3 corrupting server.properties #2308

Closed
Technofied opened this issue Sep 1, 2020 · 20 comments · Fixed by pterodactyl/wings#56
Closed

1.0.0-rc.3 corrupting server.properties #2308

Technofied opened this issue Sep 1, 2020 · 20 comments · Fixed by pterodactyl/wings#56

Comments

@Technofied
Copy link

Technofied commented Sep 1, 2020

Background (please complete the following information):

  • Panel or Daemon:
  • Version of Panel/Daemon: 1.0.0-rc.3
  • Server's OS: Ubuntu 20.04.1
  • Your Computer's OS & Browser: Safari, macOS Big Sur Public Beta 5

Describe the bug
A clear and concise description of what the bug is.
Please provide additional information too, depending on what you have issues with:
Panel: php -v PHP 7.3.21-1+ubuntu20.04.1+deb.sury.org+1 (cli) (built: Aug 7 2020 14:44:37) ( NTS )
Daemon: uname -a and docker info (your kernel version and information regarding docker)
Linux panel 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

A regular long MOTD gets split and randomly chucked across the server.properties file. Even after fixing it so its back on one line it breaks and gets thrown across again

To Reproduce
Steps to reproduce the behavior:
Just have a motd that's all on one line, upgrade to 1.0 then see it get thrown across the file.

Expected behavior
A clear and concise description of what you expected to happen. If applicable, add screenshots or a recording to help explain your problem.
Motd to stay on one line after saving and especially after restarts

See attached image of issue below:

Screen Shot 2020-09-02 at 7 49 44 am

@Technofied
Copy link
Author

Screen Shot 2020-09-02 at 8 01 04 am

This is what it should normally look like

@gabefraser
Copy link

Can confirm I have the exact same issue. Typically happens after a server restart.

@DaneEveritt
Copy link
Member

DaneEveritt commented Sep 2, 2020

Please post the actual file contents and not a picture if you don't mind, can't exactly copy and paste from an image.

@gabefraser
Copy link

gabefraser commented Sep 2, 2020

Providing some insight here as the OP hasn't responded as this seems like a major issue.

Special characters seem to be encoded after a server restart. This might be due to the way the egg rewrites the server-port= property in the server.properties file.

This seems to occur when I edit the file via File Manager and even when I've updated the file via SFTP.

Take a look at the below screenshots and text blobs:

Before restart:
motd=\u00A7n\u00A7l\u00A7aTest of \u00A7bPterodactyl Breakage

After restart:
motd=\u00C2\u00A7n\u00C2\u00A7l\u00C2\u00A7aTest of \u00C2\u00A7bPterodactyl Breakage
image

I am running the latest version of Panel and Wings 1.0.0-rc3 on Ubuntu 18.04.

Please let me know if you require any additional information @DaneEveritt.

@DaneEveritt
Copy link
Member

DaneEveritt commented Sep 2, 2020

@gabefraser see #2192 (comment)

To my knowledge your specific issue is not a bug with Pterodactyl at all, because even an egg that doesn't modify any of the configuration files still ends up with that messed up output for some reason.

@gabefraser
Copy link

Makes sense. Thanks for the follow up.

@DaneEveritt
Copy link
Member

@gabefraser you can confirm that is the case by disabling all of the config stuff for the egg (e.g. empty {} in the files field for the egg). If it still gets mangled, it is def not Pterodactyl specifically.

@DaneEveritt
Copy link
Member

@Technofied can you please do the same thing, disabling any config modification for the specific egg, and attempting to start the server. If the MOTD is still messed up it is likely not an issue with Pterodactyl.

@Technofied
Copy link
Author

@Technofied can you please do the same thing, disabling any config modification for the specific egg, and attempting to start the server. If the MOTD is still messed up it is likely not an issue with Pterodactyl.

That seems to have fixed it!

@DaneEveritt
Copy link
Member

DaneEveritt commented Sep 2, 2020

Well, if that fixed it then that is tragic because that means it is indeed something with Pterodactyl most likely. I'll have to test this against a file that the game doesn't touch, because server.properties seems far too volatile to be testing against if it is possible the game itself also messes with the file.

@fayeinmay
Copy link
Contributor

On a side note, this issue exists not only in rc3 but also in prior versions. I stumbled across this some weeks ago but thought it might be a spigot issue.

@DaneEveritt
Copy link
Member

It seems to be an issue with the game server not realizing its a utf-8 encoded file, thus leading to issues. Its certainly caused by the server itself touching the file I believe, but is a result of Pterodactyl writing the contents and the file ending up as not utf-8? Perhaps?

I'm a little baffled to be honest.

@clienthax
Copy link

clienthax commented Sep 5, 2020

It seems to be an issue with the game server not realizing its a utf-8 encoded file, thus leading to issues. Its certainly caused by the server itself touching the file I believe, but is a result of Pterodactyl writing the contents and the file ending up as not utf-8? Perhaps?

I'm a little baffled to be honest.

It seems to be trying to escape any existing unicode characters with more unicode, two servers on two different boxes same problem.

motd=\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A75Haxys\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A76Hideout \u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A7f|\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A7a PVE Server \u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A7f| \u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0083\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0083\u00C3\u0082\u00C2\u0082\u00C3\u0083\u00C2\u0082\u00C3\u0082\u00C2\u00A7dOfficial

@DaneEveritt
Copy link
Member

Yeah, I'm quite sure it's the game itself doing that but Pterodactyl is saving the file in a format that makes the server not realize it should be utf8.

@clienthax
Copy link

clienthax commented Sep 5, 2020

Yeah, I'm quite sure it's the game itself doing that but Pterodactyl is saving the file in a format that makes the server not realize it should be utf8.

I think the problem may be that wings is parsing the original \u00A7 into the utf8 character § , then when it comes to writing it, placing the character § back into the file, instead of the original escaped code, likely hitting this bug https://bugs.mojang.com/browse/MC-2215

(Both of my servers are 1.12.2 forge with sponge)

A solution could be to simply re \uify the values

package main

import (
	"fmt"
	"strconv"
	"strings"
)

func main() {

	motdRaw := `\u00A75Haxys\u00A76Hideout \u00A7f|\u00A7a PVE Server \u00A7f| \u00A7dOfficial`
	fmt.Printf("%s\n", motdRaw)

	motdParsed := "\u00A75Haxys\u00A76Hideout \u00A7f|\u00A7a PVE Server \u00A7f| \u00A7dOfficial"
	fmt.Printf("%s\n", motdParsed )

	quotified := strings.Trim(strconv.QuoteToASCII(motdParsed), `"`)
	fmt.Printf("%s\n", quotified )

}
\u00A75Haxys\u00A76Hideout \u00A7f|\u00A7a PVE Server \u00A7f| \u00A7dOfficial
§5Haxys§6Hideout §f|§a PVE Server §f| §dOfficial
\u00a75Haxys\u00a76Hideout \u00a7f|\u00a7a PVE Server \u00a7f| \u00a7dOfficial

@fayeinmay
Copy link
Contributor

^ Either that, or wait for mojang to fix the issue ^^.

@clienthax
Copy link

clienthax commented Sep 5, 2020

^ Either that, or wait for mojang to fix the issue ^^.

No, wings shouldn't be modifying the contents of files for unrelated lines, and it won't be backported anyway.

@fayeinmay
Copy link
Contributor

^ Either that, or wait for mojang to fix the issue ^^.

No, wings shouldn't be modifying the contents of files for unrelated lines, and it won't be backported anyway.

Oops, yea, I didn't read the last replies properly, sorry.

@matthewpi
Copy link
Member

No, wings shouldn't be modifying the contents of files for unrelated lines, and it won't be backported anyway.

Wings has to rewrite the entire file to disk which requires decoding and then re-encoding it. There is no way around that process. The only work around for this is to disable the config parser on the egg so that wings doesn't even look at the file.

This shouldn't be difficult to fix.

@clienthax
Copy link

clienthax commented Sep 5, 2020

No, wings shouldn't be modifying the contents of files for unrelated lines, and it won't be backported anyway.

Wings has to rewrite the entire file to disk which requires decoding and then re-encoding it. There is no way around that process. The only work around for this is to disable the config parser on the egg so that wings doesn't even look at the file.

This shouldn't be difficult to fix.

The problem is that it's decoding escaped chars which causes this, (thanks golang... https://blog.golang.org/normalization )

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

Successfully merging a pull request may close this issue.

6 participants