Enshrouded

Enshrouded

View Stats:
dedicated server issues, json file goes to default
everytime I change the the json to what I want(only thing I change is name and password) I save it and when I launch the program it reverts back to default
< >
Showing 1-11 of 11 comments
Kappa Jan 4 @ 12:08pm 
Did you stop the server before making any modify?
Originally posted by Kappa:
Did you stop the server before making any modify?
yes. Idk whats going on with it. i just switched isp and new router and it took me awhile to get to even run at all.
Probably invalid json. If you're pasting the entire file in from somewhere else, then stop doing that and manually edit it.

Or, you could be entering a double quote (") in the name or password. Paste your config in a json validator like https://jsonformatter.org/ and see if it complains. FYI, don't paste anything important in there, as it is an online validator. I'm assuming the dedicated server password isn't really that important that anyone would care.
Last edited by Astro-not; Jan 4 @ 2:23pm
Originally posted by Astro-not:
Probably invalid json. If you're pasting the entire file in from somewhere else, then stop doing that and manually edit it.

Or, you could be entering a double quote (") in the name or password. Paste your config in a json validator like https://jsonformatter.org/ and see if it complains. FYI, don't paste anything important in there, as it is an online validator. I'm assuming the dedicated server password isn't really that important that anyone would care.
I already said what I've changed. I take the default file, change the name and the password. save. open it again to make sure it saved. start server. then its changed back. idk why I even posted here I knew I would get basic answers because most people are dumb.
I fixed It. there was something wrong with the json it was generating. I copied the one from the readme and made the same name and password changes and now its working.
Astro-not Jan 4 @ 2:49pm 
The devs probably singled you out and personally sent you buggy server binaries just to mess with you, I'm sure. There's no possible way you typed it wrong repeatedly and then lashed out like a toddler at someone trying to help.
Originally posted by Astro-not:
The devs probably singled you out and personally sent you buggy server binaries just to mess with you, I'm sure. There's no possible way you typed it wrong repeatedly and then lashed out like a toddler at someone trying to help.
lol just mad because you aren't the tech wiz you think you are
JSON - the pinnacle of tech wizardry. One of the most difficult data formats in the world to understand, but you've mastered it. I'm furious.
Originally posted by Astro-not:
JSON - the pinnacle of tech wizardry. One of the most difficult data formats in the world to understand, but you've mastered it. I'm furious.
"I've never had this bug so it doesn't exist and everyone is dumb but me" I can't lie though you sort of helped. I just did the opposite of what you said lol. I hadn't messed with it since they added multiple user (admin, guest, etc). I couldn't see any issues but I'm guessing the default user it generated wasn't working with the password I wanted. copying the 3 users from the readme (admin, friend, guest) and changing each of those passwords worked. even if I typed it wrong I only used letters and numbers between the quotes. at most that should stop the client from finding/logging in. It shouldn't change it back to defaults.
100% happened to me, it ended up working when I adjusted the json file to the version that includes Admin, friend and guest. But that was after like 3 hours of back and fourth research
Here is the link to what I was using.
https://enshrouded.zendesk.com/hc/en-us/articles/20453241249821-Server-Difficulty-Settings

Try changing settings slowly one by one, saving the json file in between every change, and boot up the server after every variable change. As soon as something sticks, make a copy of the json file (where the file name ends with -copy). That way you will have something to fall back on, versus having the file overwritten everytime.

Hope this helps.


-oh you fixed it, nice! yeah looks like the json that gets generated via the executable may be outdated.
Last edited by Mr.Shlopalopagus; Jan 4 @ 9:49pm
It's likely not outdated. It's probably the default state of the server config object without any additional settings. When you start the server they have code that executes and reads in the json to an in data model (it's likely they are using a 3rd party library to do this). If it fails, they probably catch the exception and then dump the default state of a new data model because they know that is good.

I've noticed A lot of stand alone game servers will replace an invalid config completely with a new one like this. I assume it's a pattern that came about due to amount and type of users they have. Devs rather have the server start and the user can just edit their settings again instead of having to deal with "server sucks / broken" complaints all the time.

That being said, they should pick a friendlier format for their settings. Json wasn't intended for humans to edit because it is really easy to screw up.

Also, the json settings in https://enshrouded.zendesk.com/hc/en-us/articles/20453241249821-Server-Difficulty-Settings are identical to those the enshrouded_server will create with one difference, it only has one user group. From the little testing I've done, you can create or remove as may user groups as you want. Less is better unless you are actually using them.

Anyway, that json it creates works just fine. Like I said, all the same settings as that website but with only one group. You can add more, or paste that other json back in it doesn't really matter.
Last edited by Astro-not; Jan 5 @ 12:15pm
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Jan 4 @ 11:57am
Posts: 11