gekware / minecraft-server-hibernation

Autostart and stop minecraft-server when players join/leave
GNU General Public License v3.0
400 stars 38 forks source link

Failure to loadDefault #259

Open Dysthymia-1 opened 1 year ago

Dysthymia-1 commented 1 year ago

Current Behavior (🐛 Bug)

[error === ] main -> LoadConfig -> loadDefault: invalid character 'i' looking for beginning of value [03f000] [info ==== ] issuing msh termination

Expected Behavior

Default values are loaded. I'm sorry, I don't have the expected output on hand.

Steps to Reproduce

I'm receiving this fatal error every time I attempt to run the MSH executable. I've downloaded the config from the release. I've compared that config to my 2.4.0 config and adjusted it, having read the installation guidance and looked for solutions to this issue. I tried to join the Discord, but the link is no good and I wasn't able to find the appropriate server manually.

MSH Logs

image

MSH-Version

2.5.0

MSH-Commit

0876091

Operating system

Windows Server 2019

System architecture?

AMD64

Minecraft Version

1.20.2

Minecraft Server Software?

Vanilla

Is there an existing issue for this?

Dysthymia-1 commented 1 year ago

msh-config.json is as follows:

{ "Server": { "Folder": "C:\MinecraftServer", "FileName": "server.jar", "Version": "1.20.2", "Protocol": 764 }, "Commands": { "StartServer": "java -jar nogui", "StartServerParam": "-Xmx1024M -Xms1024M", "StopServer": "stop", "StopServerAllowKill": 10 }, "Msh": { "Debug": 1, "ID": "", "MshPort": 25555, "MshPortQuery": 25555, "EnableQuery": true, "TimeBeforeStoppingEmptyServer": 30, "SuspendAllow": false, "SuspendRefresh": -1, "InfoHibernation": " §fserver status:\n §b§lHIBERNATING", "InfoStarting": " §fserver status:\n §6§lWARMING UP", "NotifyUpdate": true, "NotifyMessage": true, "Whitelist": [], "WhitelistImport": true, "ShowResourceUsage": false, "ShowInternetUsage": false } }