daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jan 18th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2016-01-18 19:23:38: ERROR[Main]: ServerError: Lua: Runtime error from mod 'giants' in callback luaentity_Step(): ...projects/minetest_0.4.11/bin/../mods/giants/behavior.lua:185: bad argument #2 to 'find_node_near' (number expected, got nil)
  2. 2016-01-18 19:23:38: ERROR[Main]: stack traceback:
  3. 2016-01-18 19:23:38: ERROR[Main]:       [C]: in function 'find_node_near'
  4. 2016-01-18 19:23:38: ERROR[Main]:       ...projects/minetest_0.4.11/bin/../mods/giants/behavior.lua:185: in function 'reset'
  5. 2016-01-18 19:23:38: ERROR[Main]:       ...projects/minetest_0.4.11/bin/../mods/giants/behavior.lua:136: in function 'tick'
  6.  
  7.  
  8. ------------------------ code ---------------------
  9.  
  10.  
  11. function mkFindNodeNear(sel, _dist)
  12.    
  13.     return {
  14.         name="find node near",
  15.         kind="action",
  16.        
  17.         reset= function(node, data)
  18.             -- tprint(data)
  19.         print("\n\nlol----------------------\n\n")
  20.         print(data)
  21.         print(sel)
  22.             tprint(data)
  23.             tprint(sel)
  24.             local targetpos = minetest.find_node_near(data.pos, 20, sel) <--- now line 190, in lol.lua
  25.             tprint(targetpos)
  26.             data.targetPos = targetpos
  27.         end,
  28.            
  29.         tick= function(node, data)
  30.             if data.targetPos == nil then
  31.                 print("could not find node near")
  32.                 return "failed"
  33.             end
  34.            
  35.             return "success"
  36.         end,
  37.     }
  38.  
  39. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top