• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Monster CreateLoot error

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
Im using cykotitans mod for random loot, on tfs 0.4

Im getting this error when a monster is killed and it contains no loot for the monster

Code:
[string "LuaInterface::loadBuffer"]:53: attempt to compare number with nil
stack traceback:
        [string "LuaInterface::loadBuffer"]:53: in function 'createLoot'
        [string "LuaInterface::loadBuffer"]:225: in function <[string "LuaInterface::loadBuffer"]:212>
 
Generally you need to post the related script so people can see what it is loading off of, otherwise your not going to get help because nobody is going to know what your talking about.

@Topic
From what I remember the script has an event named 'buffer' so most likely it's when players login/logout that your getting this error as the character would be 'Nil' at the time of the monsters deaths.
Maybe they half killed something, and logged out, and now it is a nil value, and the script doesn't know what to do if the number is a nil value..

Anywho, this is simply guessing until we have the script to look at.

Give more information.
Post the script.
Post information about when this error occurs. (aka: start-up//random//every time monster dies//)
If your unable to locate the problem try finding a way to re-create the error, so we can have a better idea of what we should be looking for.

Xikini
 
Back
Top