resthop.blogg.se

Error on loading lua script files rappelz private server
Error on loading lua script files rappelz private server









error on loading lua script files rappelz private server

ERROR ON LOADING LUA SCRIPT FILES RAPPELZ PRIVATE SERVER CODE

You tried to use a local variable that was defined later in the code.Check your function calls for spelling errorsĪttempt to perform arithmetic on global '?' (a nil value)ĭescription: You tried to perform arithmetic (+, -, *, /) on a global variable that is not defined.Make sure your function is defined in the correct realm.You've misspelled the name of the function.The function you're calling has an error in it which means it is not defined.You're using a metafunction on the wrong kind of object.

error on loading lua script files rappelz private server

(e.g Calling a function on the client that only exists on the * server.) Your function might be defined in another Lua state.If it's not, it will print your message and halt just like error does.Ĭommon Errors Attempt to call global '?' a nil valueĭescription: You tried to call a function that doesn't exist. assert will check to make sure that something is true.ErrorNoHalt will print the file/line number and your message without halting the script.error will print your message, halt execution, and print the stack.If you want to print your own error messages, there are three functions to do it: Messages which look like errors but are colored differently, such as red or white, are not Lua errors but rather engine errors. If it's menu code, it will be green (not a typical scenario). If it happened clientside, it will be yellow. If the error happens serverside, the text color will be blue. Simplified - If the error is inside a function/chunk of code that is called from somewhere else, it will state where the code is called from. Lastly, the error itself - attempt to call global 'Print' (a nil value)īelow the error, we have the trace of the function.

error on loading lua script files rappelz private server

The first line includes the path to the file that is causing the error - addons/my_addon/lua/autorun/server/sv_my_addon_aĪfterwards, the line that's producing the error - sv_my_addon_a:2 (Line 2) That is because Print is not an existing function ( print, however, does exist). unknown - addons/my_addon/lua/autorun/server/sv_my_addon_a:2 lua:2: attempt to call global 'Print' (a nil value)ġ. Addons/my_addon/lua/autorun/server/sv_my_addon_autorun.











Error on loading lua script files rappelz private server