Editing Papyrus Runtime Errors
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 70: | Line 70: | ||
=== "Cannot call X() on a None object, aborting function call" === | === "Cannot call X() on a None object, aborting function call" === | ||
This error appears when function X, which is non-global, is called on an object variable that is None. Since you cannot call a non-global function on nothing, the call is ignored and the error printed out. If the variable is expected to be None, then you should probably check for None before calling the function on it. Otherwise you should inspect what is going on in the script at that time to see why the variable is None in the first place. See [[FAQ:_My_Script_Doesn%27t_Work!|My_Script_Doesn't_Work]] for some possibilities. | This error appears when function X, which is non-global, is called on an object variable that is None. Since you cannot call a non-global function on nothing, the call is ignored and the error printed out. If the variable is expected to be None, then you should probably check for None before calling the function on it. Otherwise you should inspect what is going on in the script at that time to see why the variable is None in the first place. See [[FAQ:_My_Script_Doesn%27t_Work!|My_Script_Doesn't_Work]] for some possibilities. | ||
=== "Unable to call X - no native object bound to the script object, or object is of incorrect type" === | === "Unable to call X - no native object bound to the script object, or object is of incorrect type" === |