Jump to content

Pyrokinetics Explained and Bookcase


KnottaHooker
  • Fixed

If you try to put out anything fire with the Pyrokinetics book while wearing a backpack of any sort, it crashes the game. If you're not wearing a backpack, it doesn't crash. I've tested this with a full belt and without a full belt and while holding and not holding a torch.


Steps to Reproduce

1) put on backpack

2) find fire

3) try to extinguish fire with book

4) crash :(

  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
[00:02:11]: [string "scripts/components/inventory.lua"]:1170: attempt to perform arithmetic on local 'overflow_found' (a nil value)
LUA ERROR stack traceback:
scripts/components/inventory.lua:1170 in (method) HasItemWithTag (Lua) <1147-1174>
   self =
      ignoreoverflow = false
      dropondeath = false
      isvisible = true
      isexternallyinsulated = table: 00000000B6311AA0
      ignoresound = false
      isopen = true
      ignorefull = false
      inst = 128869 - wickerbottom (valid:true)
      equipslots = table: 00000000B6311280
      opencontainers = table: 00000000B6311190
      silentfull = false
      itemslots = table: 00000000B6310D80
      _ = table: 00000000B63118C0
   tag = firepen
   amount = 1
   num_found = 0
   overflow = table: 000000008E1B9970
   overflow_enough = table: 000000007BB8F0D0
   overflow_found = nil

 

components/container.lua:529-553

 

There are two Container:HasItemWithTag() functions.

The second one, which has only one return value, has overridden(?) the first one. Hence got nil value.

 

Share this comment


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