Jump to content
SteveThatOneGuy

Help Profile Issue - Potentially Corrupted

Recommended Posts

Posted (edited)

I'm running a dedicated 18.4 server on Linux (Ubuntu), and one of the save profiles appears to have a problem.

After initializing world, and then clicking "Continue", I am getting the following error:

NullReferenceException: Object reference not set to an instance of an object (see attached image)1124966607_2020-06-0912_06_34-7DaysToDie.thumb.png.8fec538a831afd0b8d11daa3bb3dde91.png

 

This is only happening with one player's profile in particular.

I have tried validating the integrity of local files within Steam, and also just reinstalling 7 days on the client for the affected user. I restarted the server just in case as well.

 

The steamcmd/7dtd_server/ directory (install directory) is backed up relatively regularly, but I'm just finding out that the player profiles may be saved elsewhere on the server.

 

My questions are:

1. Is there any known way to fix this error (or is more information needed?)

2. If not, can I restore the player profile from the backups that I do have? If so, where are these stored? I checked the FAQ page but didn't quite get where it was saying the profiles are stored. I do see a saves file under .local...

3. If I cannot restore the player profile, how do I at least "reset" it? Worst case, I can modify the XP gains to have the player get back to what they are at, although I am assuming inventory will be lost.

Edit: Adding logs
Server log: https://pastebin.com/Z4QBHkcg
 

 

Client Log: https://pastebin.com/HnWgTBjg

 

Second Client Log (I think it created a new one on each of my attempts, which I have many, so here is another just in case): https://pastebin.com/mqNdJ6da

Edited by SteveThatOneGuy
adding additional information (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

1. There is a sticky thread here in General Support telling people to post the logfile (through pastebin).

 

2. Yes, the saves are stored under .local if you didn't change the location with serverconfig.xml (together with self-generated world data). The save generally consists of player data and any changes you do to the world (sort of a diff to the fixed world data)

 

3. Without logs it is hard to say anything definite. I don't remember to have to click "continue" anywhere at startup.

 

3a. Besides a seriously damaged player profile (which certainly would mean it has to be deleted) it could be just one item in the inventory that is damaged. Simply throwing away anything in the backpack, belt and anything worn could make that error go away.

 

Edited by meganoth (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

I edited the original post to supply the server and client logs. I think I got the right client logs because I see the nullreferenceexception in there.

 

How could I throw away anything in the backpack without logging in? Is there an easy file I can edit to do this? If so, would this be located on the server somewhere or on the client end?

 

Also regarding clicking Continue, that is a server message/prompt you can configure in the server file

Edited by SteveThatOneGuy (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

Yeah, player profile is toast. 

2020-06-09T11:33:18 1453.651 INF RequestToSpawnPlayer: 22891, SteveThatOneGuy, 6
2020-06-09T11:33:18 1453.659 INF Created player with id=22891
2020-06-09T11:33:18 1453.659 WRN InitBreadCrumbs SteveThatOneGuy (0.0, 0.0, 0.0)
2020-06-09T11:33:18 1453.660 WRN Spawned entity with wrong pos: [type=EntityPlayer, name=SteveThatOneGuy, id=22891] id=22891 pos=(0.0, 0.0, 0.0)

Will need to delete the player files on the server.

76561198118395800.ttp

76561198118395800.ttp.bak

 

If you have a backup to restore, that's a good way to go. Otherwise delete it and start over.

Edited by SylenThunder (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)
12 minutes ago, SylenThunder said:

Yeah, player profile is toast. 


2020-06-09T11:33:18 1453.651 INF RequestToSpawnPlayer: 22891, SteveThatOneGuy, 6
2020-06-09T11:33:18 1453.659 INF Created player with id=22891
2020-06-09T11:33:18 1453.659 WRN InitBreadCrumbs SteveThatOneGuy (0.0, 0.0, 0.0)
2020-06-09T11:33:18 1453.660 WRN Spawned entity with wrong pos: [type=EntityPlayer, name=SteveThatOneGuy, id=22891] id=22891 pos=(0.0, 0.0, 0.0)

Will need to delete the player files on the server.

76561198118395800.ttp

76561198118395800.ttp.bak

 

If you have a backup to restore, that's a good way to go. Otherwise delete it and start over.

Where are those located on the server? Would it be only in the .local directory? And does each player have their own file?

I think I found them actually... Will delete the .ttp and .ttp.bak for that profile

Edited by SteveThatOneGuy (see edit history)

Share this post


Link to post
Share on other sites

Yes, each player has their own trio of files.

 

SteamID.ttp is the main player file.

SteamID.ttp.bak is the backup. Gets over-written by the .ttp file when player logs in.

SteamID.map is the map data. This shouldn't need to be removed usually.

 

If you're hosting with something like LGSM it would be similar to /home/zedrising/.local/share/7DaysToDie/Saves/ZedRising/Valoko Territory/Zed Rising/Player

Share this post


Link to post
Share on other sites

Following those steps to delete the .ttp and .ttp.bak file to recreate the particular profile, then modifying the xp gains to get the levels back in conjunction with the creative menu to get my things back works, although it is a bit of a hassle that I hope to not have to go through again.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...