Jump to content

The game crashes if I click on a modded character used by another player (my first mod)


Recommended Posts

Hello everyone!

I created a character mod and uploaded it to the steam workshop (only friends). The problem is as follows:

when we use the new characters everything seems to be fine but if someone clicks on another player’s character the game is interrupted...

 

I used parts of other mods (that’s why I only published it for friends) and I changed the parameters of "bigportraits" (LUA) as others did... I can not understand what the problem is and therefore how to solve it. I’m very suspicious about the way "ispect" appears before the crash. The character is called "Emanuele" however the writing "Wilson" appears and the portrait is half.

This is my first mod and my first message (I hope it is correct in form). Thank you all for your time on the forum!

Spoiler

[00:03:19]: Spawning player at: [Fixed] (152.31, 0.00, -131.88)    
[00:03:19]: Serializing user: session/2C9E22DEC1F4E06B/A7JH7PLMPK2H/0000000004
[00:03:23]: [string "scripts/prefabs/player_common.lua"]:154: attempt to index field 'DESCRIBE' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/player_common.lua:154 in (upvalue) TryCharStrings (Lua) <152-157>
   inst = 117179 - emanuele (valid:true)
   charstrings = table: 0000000011C838A0
   modifier = GENERIC
scripts/prefabs/player_common.lua:162 in (field) getspecialdescription (Lua) <159-166>
   inst = 117179 - emanuele (valid:true)
   viewer = 117756 - emanuele (valid:true)
   modifier = GENERIC
scripts/components/inspectable.lua:59 in (method) GetDescription (Lua) <49-74>
   self =
      getstatus = function - scripts/prefabs/player_common.lua:134
      inst = 117179 - emanuele (valid:true)
      getspecialdescription = function - scripts/prefabs/player_common.lua:159
   viewer = 117756 - emanuele (valid:true)
   desc = nil
   filter_context = nil
   author = nil
scripts/actions.lua:790 in (field) fn (Lua) <785-803>
   act = Examine 117179 - emanuele (valid:true)
   targ = 117179 - emanuele (valid:true)
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
   self (valid:true) =
      action = table: 0000000011AF2A80
      doer = 117756 - emanuele (valid:true)
      onfail = table: 0000000009F16420
      doerownsobject = false
      rotation = 0
      onsuccess = table: 0000000009F16240
      options = table: 0000000009F177D0
      target = 117179 - emanuele (valid:true)
scripts/entityscript.lua:1430 in (method) PushBufferedAction (Lua) <1399-1442>
   self (valid:true) =
      DynamicShadow = DynamicShadow (00000000122BDBC0)
      EnableLoadingProtection = function - scripts/prefabs/player_common.lua:977
      inlimbo = false
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:246
      SetCameraDistance = function - scripts/prefabs/player_common.lua:1393
      CanSeePointOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:805
      skeleton_prefab = skeleton_player
      EnableBoatCamera = function - scripts/prefabs/player_common.lua:823
      playercolour = table: 000000002EB298F0
      MakeGenericCommander = function - scripts/prefabs/player_common_extensions.lua:816
      IsOverheating = function - scripts/prefabs/player_common.lua:216
      IsActing = function - scripts/prefabs/player_common_extensions.lua:857
      Light = Light (00000000122BDB00)
      _isrezattuned = false
      OnRemoveEntity = function - scripts/prefabs/player_common.lua:1018
      pendingtasks = table: 0000000031467AC0
      ApplySkinOverrides = function - scripts/prefabs/player_common.lua:1532
      ResetMinimapOffset = function - scripts/prefabs/player_common.lua:1387
      sg = sg="wilson", state="idle", time=0.40, tags = "idle,canrotate,"
      IsHUDVisible = function - scripts/prefabs/player_common.lua:1365
      ApplyScale = function - scripts/prefabs/player_common.lua:1470
      SetGhostMode = function - scripts/prefabs/player_common.lua:832
      ShowActions = function - scripts/prefabs/player_common.lua:1369
      SetGymStartState = function - scripts/prefabs/player_common.lua:47
      Transform = Transform (00000000122BD890)
      actionreplica = table: 0000000031466DA0
      event_listening = table: 0000000030F0A9F0
      actioncomponents = table: 0000000031467750
      lower_components_shadow = table: 0000000031466760
      GetMaxMoisture = function - scripts/prefabs/player_common.lua:236
      CanUseTouchStone = function - scripts/prefabs/player_common.lua:186
      updatecomponents = table: 0000000030F0DC40
      YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:77
      ShakeCamera = function - scripts/prefabs/player_common.lua:1413
      OnDespawn = function - scripts/prefabs/player_common.lua:1260
      persists = false
      MiniMapEntity = MiniMapEntity (00000000122BDAD0)
      IsFreezing = function - scripts/prefabs/player_common.lua:206
      _OnLoad = function - ../mods/workshop-2873786963/scripts/prefabs/emanuele.lua:36
      replica = table: 0000000031466C10
      killtask = PERIODIC 117756: 3.000000
      children = table: 000000002EBA7BC0
    
[00:03:23]: [string "scripts/prefabs/player_common.lua"]:154: attempt to index field 'DESCRIBE' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/player_common.lua:154 in (upvalue) TryCharStrings (Lua) <152-157>
    scripts/prefabs/player_common.lua:162 in (field) getspecialdescription (Lua) <159-166>
    scripts/components/inspectable.lua:59 in (method) GetDescription (Lua) <49-74>
    scripts/actions.lua:790 in (field) fn (Lua) <785-803>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
    scripts/entityscript.lua:1430 in (method) PushBufferedAction (Lua) <1399-1442>
    scripts/components/locomotor.lua:677 in (method) PushAction (Lua) <649-721>
    scripts/components/playercontroller.lua:3416 in (method) DoAction (Lua) <3358-3420>
    scripts/components/playercontroller.lua:3601 in (method) OnRemoteLeftClick (Lua) <3566-3608>
    scripts/networkclientrpc.lua:78 in () ? (Lua) <58-84>
    =[C]:-1 in (method) CallRPC (C) <-1--1>
    scripts/networkclientrpc.lua:1216 in (global) HandleRPCQueue (Lua) <1197-1266>
    scripts/update.lua:42 in () ? (Lua) <33-135>
    

 

1.png

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
 Share

×
  • Create New...