Jump to content

NullReferenceException: Object reference not set to an instance of an object


SkyRainz

Recommended Posts

My friends and I play in my world. The other day, one of my friends could not enter the game.  Whenever my friend tried to join my server it, My friend would be stuck loading the game on "character creation". His console only writes one error: "Null ReferenceException: object reference not set to an instance of an object". 

 

My one other friend could log in except this one

Here is the latest Log on my friends' computer

https://pastebin.com/6kz4TyPL

This is showed on her commands

https://imgur.com/a/Dwz81sP

 

She was able to join if i host a new world or if she join her own world.

 

i tried to find her player file but i couldn't understand

Here is the image of the folder on my computer

AppData\Roaming\7DaysToDie\Saves\Navezgane\New World\Player

https://imgur.com/a/YibUeLs

 

 

Edited by SkyRainz (see edit history)
Link to comment
Share on other sites

We really need a copy of her entire log file instead of a snippet of the error. There is ‘usually’ more info early in the log which leads to that error.

 

That being said, it sounds like her profile is corrupted on your server since she can play on new seeds. To delete her player profile you need to go the current saves folder. Instructions for finding your saves depends on your operating system and can be found by reading this pinned topic:  

 

Click into that folder until you find the player folder. In there are 3 files for each eos number. Now here you need to look at your server log at the point she joins the server or attempts to join and she is assigned an eos number which corresponds to her eos files in the player folder. Delete those 3 files. Now she should be able to join but she’ll be level one. Make her an admin temporarily so she can use the giveselfxp command to get her levels back and use the creative menu to get her items back.

 

Or you could post the entire log from her game and we can see if something else is going on.

Link to comment
Share on other sites

Yes, she needs more ram. She only has 4gigs of ram and her videocard only has 4gigs videoram. There is a line in the log stating there was not enough ram to perform a function. She really needs a minimum 8gigs of ram and a videocard having a minimum 8 gigs of video ram. Not having enough ram can and will cause data corruption, and in this case player profile corruption. You can delete her profile as I mentioned above but the likelihood of it happening again is pretty high. It looks like she is using a laptop so upgrading the videocard is out but depending on the laptop, she may be able to add more ram.

Link to comment
Share on other sites

Oops……I should have looked it up rather than going from memory. I can’t imagine the settings needed to get the game running smoothly with 4 gigs of vram.

2 hours ago, Jugginator said:

This part is incorrect kinda. 8 gigs of VRAM is nice yes but you can get away with 4 or 2 GB for this game.

 

Link to comment
Share on other sites

50 minutes ago, SkyRainz said:

So 4 GB is fine ?

4 GB of VRAM is fine. That's on your GPU. You need at least 8 Gb of system ram for the game. Preferably 16 Gb.

The only thing her computer needs is more system ram. Her cpu and gpu will run the game fine.

Link to comment
Share on other sites

  • 1 year later...

I can join games without issue.  However, if I try to start my own, at the player creation portion of generating Player, I get this same NullReferenceException that just spams red until the game crashes.  I have reinstalled.  I have Cleaned my game files from the launcher.  Deleted any PLAYER.XML or any Saves from my C:\Users\renfu\AppData\Roaming\7DaysToDie  Can't find the remnant that is still causing this issue.    Here is where the code goes nuclear.  The log file is too big to pastebin.com.   

2023-06-13T07:45:31 124.448 INF Started thread GenerateChunks
2023-06-13T07:45:32 124.926 INF Calculating world hashes took 445 ms (world size 189 MiB)
2023-06-13T07:45:32 125.134 INF Loading dtm raw file took 656ms
2023-06-13T07:45:32 125.295 INF Biomes image size w= 3072, h = 3072
2023-06-13T07:45:33 126.031 INF Loading and creating biomes took 896ms
2023-06-13T07:45:34 127.379 INF Loading and creating shader control textures took 1347ms
2023-06-13T07:45:35 127.812 INF Loading and parsing of generator took 432ms
2023-06-13T07:45:35 127.849 INF Computed 401 chunk groups containing a total of 7898 chunks. Largest group contains 462 chunks.
2023-06-13T07:45:35 127.852 INF Started thread SaveChunks C:\Users\renfu\AppData\Roaming\7DaysToDie\Saves\Navezgane\22T\Region
2023-06-13T07:45:36 129.353 INF [DECO] read 
2023-06-13T07:45:36 129.377 INF Decorating chunks
2023-06-13T07:45:36 129.603 INF Dynamic Music Initialized on Server
2023-06-13T07:45:36 129.621 INF Dynamic Music Initialized on Client
2023-06-13T07:45:37 129.827 INF AstarManager Init
2023-06-13T07:45:37 130.029 INF WeatherManager: Init 0 weather packages
2023-06-13T07:45:37 130.229 INF createWorld() done
2023-06-13T07:45:37 130.233 INF Loading players.xml
Exception: Item with name 'meleeHandPlayer' not found!
  at EntityAlive.CopyPropertiesFromEntityClass () [0x0005b] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayer.CopyPropertiesFromEntityClass () [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayerLocal.CopyPropertiesFromEntityClass () [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at Entity.InitCommon () [0x00029] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at Entity.Init (System.Int32 _entityClass) [0x00007] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityAlive.Init (System.Int32 _entityClass) [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayer.Init (System.Int32 _entityClass) [0x0002e] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayerLocal.Init (System.Int32 _entityClass) [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityFactory.CreateEntity (EntityCreationData _ecd) [0x0017c] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at GameManager+<StartAsServer>d__143.MoveNext () [0x00532] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <4bba812690714c578170328b4ec178d0>:0 

NullReferenceException: Object reference not set to an instance of an object
  at EntityPlayer.SetVisible (System.Boolean _isVisible) [0x00028] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayer.Start () [0x0000d] in <6e84410da6af456b89dc5c9197d3182b>:0 

NullReferenceException: Object reference not set to an instance of an object
  at EntityAlive.get_AimingGun () [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayerLocal.LateUpdate () [0x00069] in <6e84410da6af456b89dc5c9197d3182b>:0 

NullReferenceException: Object reference not set to an instance of an object
  at Inventory.get_holdingItemData () [0x00038] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityAlive.Update () [0x000fc] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayer.Update () [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
  at EntityPlayerLocal.Update () [0x00000] in <6e84410da6af456b89dc5c9197d3182b>:0 
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...