radx5Blue / ImmersiveSolarArrays

ImmersiveSolarArrays for Project Zomboid
Apache License 2.0
36 stars 15 forks source link

[bug] [MP?] Solars crash on powerbank placement #13

Closed xcs011 closed 2 years ago

xcs011 commented 2 years ago

Describe the bug Solars error occasionally, and often when a powerbank is placed.

To Reproduce Steps to reproduce the behavior:

  1. place powerbank
  2. See error

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

LOG BELOW `[10-01-22 17:30:07.706] LOG : General , 1641853807706> 31,307,558> powerConsumption: 11.040000000000001. [10-01-22 17:30:07.707] LOG : General , 1641853807707> 31,307,558> setting noOff to 0. [10-01-22 17:30:07.707] LOG : General , 1641853807707> 31,307,559> ------------------------------------------------------------- attempted index: getX of non-table: null. [10-01-22 17:30:07.709] LOG : General , 1641853807709> 31,307,560> ----------------------------------------- STACK TRACE

function: solarscan -- file: SolarMoveables.lua line # 64 function: liteModeFunction -- file: ISAPowerSystem.lua line # 1160 function: TurnOnPower -- file: ISAPowerSystem.lua line # 104 function: solarscan -- file: SolarMoveables.lua line # 145 function: placeMoveable -- file: SolarMoveables.lua line # 9 function: placeMoveableViaCursor -- file: ISMoveableSpriteProps.lua line # 1510 function: perform -- file: ISMoveablesAction.lua line # 96. [10-01-22 17:30:07.714] ERROR: General , 1641853807714> 31,307,566> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getX of non-table: null at KahluaThread.tableget line:1689.. [10-01-22 17:30:07.714] ERROR: General , 1641853807714> 31,307,566> DebugLogStream.printException> Stack trace:. [10-01-22 17:30:07.717] LOG : General , 1641853807717> 31,307,568> ----------------------------------------- STACK TRACE

function: solarscan -- file: SolarMoveables.lua line # 64 function: liteModeFunction -- file: ISAPowerSystem.lua line # 1160 function: TurnOnPower -- file: ISAPowerSystem.lua line # 104 function: solarscan -- file: SolarMoveables.lua line # 145 function: placeMoveable -- file: SolarMoveables.lua line # 9 function: placeMoveableViaCursor -- file: ISMoveableSpriteProps.lua line # 1510 function: perform -- file: ISMoveablesAction.lua line # 96. [10-01-22 17:30:07.717] LOG : General , 1641853807717> 31,307,569> . [10-01-22 17:30:07.793] LOG : General , 1641853807793> 31,307,645> creating new sourcewindow: D:/Program Files (x86)/Steam/steamapps/workshop/content/108600/2623458493/mods/ImmersiveSolarArrays/media/lua/client/Moveables/SolarMoveables.lua. [10-01-22 17:31:15.123] LOG : General , 1641853875123> 31,374,975> 1641853875123 znet: Connection closed: reason=1 port=1. [10-01-22 17:31:15.124] LOG : General , 1641853875124> 31,374,975> 1641853875124 znet: CancelAuthTicket . [10-01-22 17:31:15.129] LOG : General , 1641853875129> 31,374,980> RakNetPeerInterface.connectionStateChangedCallback state=Disconnected message= thread=Thread[UdpEngine,5,Network]. [10-01-22 17:31:15.130] LOG : General , 1641853875130> 31,374,981> [VOICE MANAGER] VoiceConnectClose uuid=355784398289256576. [10-01-22 17:31:15.130] LOG : General , 1641853875130> 31,374,982> 1641853875130 znet: Java_zombie_core_raknet_RakVoice_CloseVoiceChannel. [10-01-22 17:31:54.343] LOG : General , 1641853914343> 31,414,195> EXITDEBUG: RenderThread.isCloseRequested 1. `

xcs011 commented 2 years ago

well the log destroyed formatting

xcs011 commented 2 years ago

I think it is something to do with two different solar grids in the server, I get another error with charge level whenever I try to put batteries in the second.

xcs011 commented 2 years ago

I think it is something to do with two different solar grids in the server, I get another error with charge level whenever I try to put batteries in the second.

Nevermind now it happens whenever I launch the server, and every so often

radx5Blue commented 2 years ago

Do you have liteMode on?