Jump to content

ERR NullReferenceException: Object reference not set to an instance of an object and ERR GetFloat: InvalidCastException GameDifficultyBonus


blackcore89

Recommended Posts

Hello together,

 

we experience a heavy lag issue in our current multiplayergame which came out of nowhere.

We could see several error-messages in the console: 

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

and a spamming message:

"ERR GetFloat: InvalidCastException GameDifficultyBonus"

 

What we did so far:

- Several restarts 

- Validated Game Files via Steam

- Deactivated EAC 

 

Here is the log-file of the server:

https://pastebin.com/JFtDaVtk

 

And here is the log-file of the client:

https://pastebin.com/aw2ayHbQ

 

Would be nice if anybody could help.

 

Best,

blackcore

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

I definitely see some issues. Starting with the server log: you have both litenetlib and steamnetworking active. In your serverconfig.xml, under the setting called:  ServerDisabledNetworkingProtocals, have it =steamnetworking. Steamnetworking causes some serious lag. This is important because according to the players log, the litenetlib connection is failing and it is failing usually because you do not have all the necessary ports forwarded on the servers end so the server is utilizing steamnetworking. So on top of disabling steamnetworking protocol, verify that the port 26900 tcp is forwarded and the ports 26900-26903 udp are forwarded on the servers router. If you have forwarded them in the router software, use any free online port checker to verify that those ports are indeed forwarded.

 

Make sure that on the server that you have created an exclusion in the antivirus software for the game folder and save folder.

 

Also in the players log, there is a missing chunk at 2880 1600 and some other errors. I would recommend that the player uses the game launcher, select tools tab, select clean game data then check all of the boxes and hit clean. Next he should verify the integrity of the game files and run it twice. It should download good files to replace the bad ones.

 

At this point, I would have him (and you) join the game. Since he cleaned his files, he will need to redownload the map when he first tries to join. See if your issue goes away. If it does, then great. If it still isn't working well then that missing chunk is a problem. It could mean that your save is corrupted, and you might need to start over. If you really want to continue where you left off, be sure both of you write down your inventories, books read and player levels. Delete the save, generate a new map with the same seed. You, as admin, enter dm in the console then hit esc. Here you will see the ability to change day and time so adjust it to where you left off. Use the giveselfxp command to give you all of your levels back. It will take it a few times until you get all your xp back. The other player will need to be given admin powers so he can use the same command to get his levels back. Now you can spend your points again. In the console, type cm then hit enter. This allows access to the creative menu where you can get your inventories and books back. To bring up the creative menu, hit the U button. Now you should be good to go. If you don't want to do all this work then just start a new map from the beginning.

 

Someone else might have suggestions on getting the missing chunks back without deleting the save as I'm not knowledgeable in that area.

Link to comment
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...