Razzmatazzz / ValheimServerWarden

Manage one or more Valheim dedicated server instances.
GNU General Public License v3.0
38 stars 4 forks source link

Server won't start when using HTML formatting in server name #13

Closed ScalaZen closed 3 years ago

ScalaZen commented 3 years ago

I just downloaded VSW after using only VSS for weeks.

I got an issue. I ran VSW added my server information and it all worked worked well, except it wouldn't change the name on the server list. So i closed it, opened tried opening it back up. Wont open. Restarted PC. Still wont open. Copied over the files from the Zip to replace it all and deleted the server .json.

Now it launches but wont stay open. If i try selecting the path to SteamCMD it crashes. If i input all server details and start it. Crash.

ScalaZen commented 3 years ago

Upon further testing. I still cannot change SteamCMD's location it crashes each time.

If valheim_servers.json file is written it wont even launch VSW

Razzmatazzz commented 3 years ago

To change the name of the server from the main app server list, you have to double-click it. You can also right-click the server, select Details, select the Settings tab in the details window, and then change the server name (and other settings) from there.

For troubleshooting, please try to walk through the detailed steps of what you're doing that causes a crash.

When you say the app won't stay open, do you mean it closes on its own without any input from you, or that it closes when you do something in particular?

Are you pointing it to an existing installation of the dedicated server or trying to install the dedicated server?

At what point does it crash when you try to set the path to SteamCMD? As soon as you click the "SteamCMD Path" button, or after you select the folder in the dialog window that opens?

Sounds like something got messed up with your app settings. To clear out all the app settings, try this:

After that, you should be able to re-launch the app with default settings.

ScalaZen commented 3 years ago

Screenshot 2021-02-28 220643

If i click that it crashes. If i launch it it crashes.

Now i cleared the local data already, with my own troubleshooting, exactly like that path you gave me, and re-downloaded and installed 0.4.1.0. I seem to have been able to load VSW, add my server detail and run the server. Was even able to use the Discord WebHooks. We're getting somewhere.

Except im still having the issue above where i click "SteamCMD Path" and the entire client crashes.

ScalaZen commented 3 years ago

%userprofile%/appdata/local/ValheimServerWarden/ is actually saved under %userprofile%/appdata/local/Razzmatazzz

Razzmatazzz commented 3 years ago

Very strange that it's saving the app settings under Razzmatazzz... I'll have to look into that.

But I just pushed out a new release that should fix the SteamCMD crash.

ScalaZen commented 3 years ago

Downloading it now. Thank you.

ScalaZen commented 3 years ago

Great. Worked for me without crashing!

ScalaZen commented 3 years ago

Also idk if it affected the .json file causing the instant crashing and not opening properly, from my first post. What i had was a "Dedicated Server" on my Batch file prior to using VSW. I removed that and it launched without issues.

Razzmatazzz commented 3 years ago

Something in the server name might have been causing a parse error for the json. I also added in some error handling so the whole app doesn't crash out if it can't read the json file.

ScalaZen commented 3 years ago

https://github.com/Razzmatazzz/ValheimServerWarden/issues/13#issuecomment-787608286

Something in the server name might have been causing a parse error for the json. I also added in some error handling so the whole app doesn't crash out if it can't read the json file.

Look right above :) that may be it.

Is the check on the 0.4.2.0?

Razzmatazzz commented 3 years ago

Yeah, the check is in the latest version. If there's an error, it won't load any of the saved servers. But at least it won't crash either.

ScalaZen commented 3 years ago

so the .json cannot support colors? I.e: "Dedicated Server </ color >"

i gotta break up the /color bit, seems like github hides it from the post.

Razzmatazzz commented 3 years ago

I just set the name of the server to <color=aqua>My Test Server</color>. Restarted the app and it launched just fine.

Razzmatazzz commented 3 years ago

Can attach your servers json file here with the color attribute set? Might want to remove the server password first.

ScalaZen commented 3 years ago

valheim_servers.zip

ScalaZen commented 3 years ago

With that json it crashes. on Server Start.

ScalaZen commented 3 years ago

The second i take off <color=aqua>Dedicatedr</color> Valheim Server It works totally fine

ScalaZen commented 3 years ago

What's also weird, it keeps launching a fresh version of the server. Not sure why. the Directory is going to the same place. Theirs only 1 World in the worlds folder. But it makes the same world except fresh.

Razzmatazzz commented 3 years ago

I think I figured out what's causing the crash. Try disabling the option to create a server log file for now and that might solve the crashing on server start issue for you.

As for the second issue, you have a save folder configured in the server settings, but it re-creates the world each time you start the server? Have you confirmed that the save folder is actually saved (have to click the Save button at the bottom of the settings) by closing the app and re-opening it?

ScalaZen commented 3 years ago

Cant save logs, bummer. Let me try that.

Yes, in confirmed it saved, it actually wont properly save unless i click save. Close VSW, and re-open it. Then i see the changes.

ScalaZen commented 3 years ago

Update.

The Logs being off let me adjust the color of my Server.

I'm still having the issue where it creates a fresh server, instead of using my current world.

I figured it out, i didnt have the proper path to the Save Folder in the AppData/LocalLow/IronGate/Valheim Dir.

ScalaZen commented 3 years ago

So all Seems Resolved. Would still like to have Logs, No rush.