Jump to content

Winona Battery Crash


Philip.
  • Pending
Spoiler

[string "scripts/prefabs/winona_battery_low.lua"]:257: bad argument #1 to 'random' (interval is empty)
LUA ERROR stack traceback:
=[C]:-1 in (field) random (C) <-1--1>
scripts/prefabs/winona_battery_low.lua:257 in (method) OnLoad (Lua) <249-260>
   inst = 105609 - winona_battery_low (valid:true)
   data = table: 0x15b35cd0
   ents = table: 0xaf66130
scripts/entityscript.lua:1765 in (method) SetPersistData (Lua) <1746-1767>
   self (valid:true) =
      GUID = 105609
      Transform = Transform (0x195dead0)
      inlimbo = false
      actionreplica = table: 0x195dee70
      event_listening = table: 0xe9076f0
      actioncomponents = table: 0x195de970
      lower_components_shadow = table: 0x195de760
      name = Winona's Generator
      entity = Entity (0x195de610)
      AnimState = AnimState (0x195ded30)
      prefab = winona_battery_low
      OnEntitySleep = function - scripts/prefabs/winona_battery_low.lua:125
      _inittask = PERIODIC 105609: 0.000000
      OnSave = function - scripts/prefabs/winona_battery_low.lua:245
      Network = Network (0x195ded80)
      Physics = Physics (0x195df270)
      MiniMapEntity = MiniMapEntity (0x195dede0)
      SoundEmitter = SoundEmitter (0x195deda0)
      OnEntityWake = function - scripts/prefabs/winona_battery_low.lua:129
      OnLoadPostPass = function - scripts/prefabs/winona_battery_low.lua:267
      OnLoad = function - scripts/prefabs/winona_battery_low.lua:249
      spawntime = 0
      event_listeners = table: 0xe907610
      replica = table: 0x195de9a0
      pendingtasks = table: 0x195e0070
      components = table: 0x195de6f0
      persists = true
   data = table: 0x15b35cd0
   newents = table: 0xaf66130
scripts/mainfunctions.lua:457 in (global) SpawnSaveRecord (Lua) <418-464>
   saved = table: 0x15b35c20
   newents = table: 0xaf66130
   inst = 105609 - winona_battery_low (valid:true)
   x = -543.5
   y = 0
   z = -323.5
   platform = nil
scripts/gamelogic.lua:662 in (upvalue) PopulateWorld (Lua) <394-698>
   savedata = table: 0x1e82b450
   profile = table: 0x9903f40
   savedata_overrides = table: 0x1a880900
   world = 100029 - world (valid:true)
   map = Map (0x16690540)
   newents = table: 0xaf66130
   prefab = winona_battery_low
   ents = table: 0x15b35bd0
   i = 1
   v = table: 0x15b35c20
scripts/gamelogic.lua:972 in (upvalue) DoInitGame (Lua) <855-1051>
   savedata = table: 0x1e82b450
   profile = table: 0x9903f40
   was_file_load = false
   options = table: 0xb41c9d0
   Levels = table: 0xd872f50
scripts/gamelogic.lua:1085 in (local) cb (Lua) <1079-1086>
   savedata = table: 0x1e82b450
scripts/shardindex.lua:214 in (upvalue) OnLoadSaveDataFile (Lua) <196-215>
   file = session/3DC5219ECB765791/0000000640
   cb = function - scripts/gamelogic.lua:1079
   load_success = true
   str = local savedata = {}

Looks like inst.AnimState:GetCurrentAnimationNumFrames() returned 0 or 1 when it was being loaded on a Caves shard which crashed it.


Steps to Reproduce

People were playing in caves (probably doing something with Winona's catapults) then they did a rollback.




User Feedback


There are no comments to display.



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...