nebula icon indicating copy to clipboard operation
nebula copied to clipboard

NullReferenceException when player joins in PowerTowerUserLoadingRequestProcessor.ProcessPacket

Open hashworks opened this issue 4 years ago • 2 comments

error

The error occurred instantly when a player joined. We restarted multiple times, but the error kept occurring. The player then moved to the host planet while the error was active and the game was saved and restarted, "fixing" the error – but that might be unrelated.

It might happen here when either

  • packet is null
  • factory.powerSystem is null
  • factory.powerSystem.netPool is null
  • GameMain.galaxy.PlanetById(packet.PlanetId).star is null

hashworks avatar Nov 06 '21 15:11 hashworks

Additional note: The joining player was in another system where the host wasn't before. Three previous auto-saves also didn't work.

hashworks avatar Nov 06 '21 15:11 hashworks

It seems like the player returning to the host planet "fixing" the error was unrelated.

hashworks avatar Nov 07 '21 14:11 hashworks