From 0dab44799e01977236a1a6d262ac2f7fad3d3b24 Mon Sep 17 00:00:00 2001 From: tapple Date: Tue, 20 Jan 2026 09:56:12 -0800 Subject: added missing libraries --- .../newview/app_settings/keywords_lua_default.xml | 2864 ++++++++++++++------ 1 file changed, 2069 insertions(+), 795 deletions(-) diff --git a/indra/newview/app_settings/keywords_lua_default.xml b/indra/newview/app_settings/keywords_lua_default.xml index 084b42a736..cd722edf8b 100644 --- a/indra/newview/app_settings/keywords_lua_default.xml +++ b/indra/newview/app_settings/keywords_lua_default.xml @@ -263,7 +263,7 @@ type rotation = quaternion constants - + nil tooltip @@ -291,6 +291,111 @@ type rotation = quaternion value false + + lljson._NAME + + tooltip + Name of the lljson library + type + string + value + lljson + + lljson._VERSION + + tooltip + Version of the lljson library + type + string + value + 2.1.0.11 + + lljson.array_mt + + tooltip + Metatable for declaring table as an array for json encode + type + { [any]: any } + value + {} + + lljson.empty_array + + tooltip + A constant to pass for an empty array to json encode + type + userdata + + lljson.empty_array_mt + + tooltip + Metatable for declaring table as an empty array for json encode + type + { [any]: any } + value + {} + + lljson.null + + tooltip + A constant to pass for null to json encode + type + userdata + + math.huge + + tooltip + A value larger than any other numeric value (infinity) + type + number + value + inf + + math.pi + + tooltip + The value of pi + type + number + value + .14159265358979 + + quaternion.identity + + tooltip + Identity quaternion constant + type + quaternion + value + <0, 0, 0, 1> + + utf8.charpattern + + tooltip + Pattern that matches exactly one UTF-8 byte sequence + type + string + value + [\\\\x00-\\\\x7F\\\\xC2-\\\\xF4][\\\\x80-\\\\xBF]* + + vector.one + + tooltip + A one vector + type + vector + value + <1,1,1> + + vector.zero + + tooltip + A zero vector + type + vector + value + <0,0,0> + ACTIVE @@ -10388,7 +10493,7 @@ vector position - position in local coordinates functions - + assert type-arguments @@ -11208,23 +11313,25 @@ vector position - position in local coordinates tooltip Converts a value to a vector, returns nil if invalid - - buffer - - energy - -1.0 - tooltip - buffer namespace. - - buffer.create + + bit32.arshift arguments - size + x tooltip - Size of the buffer to create. + + type + number + + + + disp + + tooltip + type number @@ -11233,69 +11340,69 @@ vector position - position in local coordinates energy 10 return - buffer + number sleep 0 tooltip - Creates a buffer of the requested size with all bytes initialized to 0. + Arithmetic right shift - buffer.fromstring + bit32.band arguments - str + ... tooltip - String to initialize the buffer with. + type - string + ...number energy 10 return - buffer + number sleep 0 tooltip - Creates a buffer initialized to the contents of the string. + Bitwise AND of all arguments - buffer.tostring + bit32.bnot arguments - b + x tooltip - Buffer to convert to a string. + type - buffer + number energy 10 return - string + number sleep 0 tooltip - Returns the buffer data as a string. + Bitwise NOT - buffer.len + bit32.bor arguments - b + ... tooltip - Buffer to get the size of. + type - buffer + ...number @@ -11306,28 +11413,42 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the size of the buffer in bytes. + Bitwise OR of all arguments - buffer.readi8 + bit32.btest arguments - b + ... tooltip - Buffer to read from. + type - buffer + ...number + + energy + 10 + return + boolean + sleep + 0 + tooltip + Returns true if bitwise AND of all arguments is not zero + + bit32.bxor + + arguments + - offset + ... tooltip - Byte offset to read from. + type - number + ...number @@ -11338,35 +11459,63 @@ vector position - position in local coordinates sleep 0 tooltip - Reads a signed 8-bit integer from the buffer at the given offset. + Bitwise XOR of all arguments - buffer.writei8 + bit32.byteswap arguments - b + n tooltip - Buffer to write to. + type - buffer + number + + energy + 10 + return + number + sleep + 0 + tooltip + Swap byte order + + bit32.countlz + + arguments + - offset + n tooltip - Byte offset to write at. + type number + + energy + 10 + return + number + sleep + 0 + tooltip + Count leading zeros + + bit32.countrz + + arguments + - value + n tooltip - Value to write. + type number @@ -11375,98 +11524,103 @@ vector position - position in local coordinates energy 10 return - void + number sleep 0 tooltip - Writes a signed 8-bit integer to the buffer at the given offset. + Count trailing zeros - buffer.readstring + bit32.extract arguments - b + n tooltip - Buffer to read from. + type - buffer + number - offset + field tooltip - Byte offset to start reading. + type number - count + width tooltip - Number of bytes to read. + type - number + number? energy 10 return - string + number sleep 0 tooltip - Reads a string of the given length from the buffer at the specified offset. + Extracts bits from n at position field with width - buffer.copy + bit32.lrotate arguments - target - - tooltip - Target buffer to copy into. - type - buffer - - - - targetOffset + x tooltip - Offset in target buffer. + type number - source + disp tooltip - Source buffer to copy from. + type - buffer + number + + energy + 10 + return + number + sleep + 0 + tooltip + Left rotate + + bit32.lshift + + arguments + - sourceOffset + x tooltip - Offset in source buffer (optional). + type number - count + disp tooltip - Number of bytes to copy (optional). + type number @@ -11475,80 +11629,80 @@ vector position - position in local coordinates energy 10 return - void + number sleep 0 tooltip - Copies bytes from the source buffer into the target buffer. + Left shift - buffer.fill + bit32.replace arguments - b + n tooltip - Buffer to fill. + type - buffer + number - offset + v tooltip - Byte offset to start filling. + type number - value + field tooltip - Value to fill with. + type number - count + width tooltip - Number of bytes to fill (optional). + type - number + number? energy 10 return - void + number sleep 0 tooltip - Fills the buffer with the specified value starting at the given offset. + Replaces bits in n at position field with width using value v - buffer.readu8 + bit32.rrotate arguments - b + x tooltip - Buffer to read from. + type - buffer + number - offset + disp tooltip - Byte offset to read from. + type number @@ -11561,35 +11715,26 @@ vector position - position in local coordinates sleep 0 tooltip - Reads an unsigned 8-bit integer from the buffer at the given offset. + Right rotate - buffer.writeu8 + bit32.rshift arguments - b - - tooltip - Buffer to write to. - type - buffer - - - - offset + x tooltip - Byte offset to write at. + type number - value + disp tooltip - Value to write. + type number @@ -11598,45 +11743,67 @@ vector position - position in local coordinates energy 10 return - void + number sleep 0 tooltip - Writes an unsigned 8-bit integer to the buffer at the given offset. + Right shift - buffer.readi16 + + buffer + + energy + -1.0 + tooltip + buffer namespace. + + buffer.create arguments - b + size tooltip - Buffer to read from. + Size of the buffer to create. type - buffer + number + + energy + 10 + return + buffer + sleep + 0 + tooltip + Creates a buffer of the requested size with all bytes initialized to 0. + + buffer.fromstring + + arguments + - offset + str tooltip - Byte offset to read from. + String to initialize the buffer with. type - number + string energy 10 return - number + buffer sleep 0 tooltip - Reads a signed 16-bit integer from the buffer at the given offset. + Creates a buffer initialized to the contents of the string. - buffer.writei16 + buffer.tostring arguments @@ -11644,40 +11811,45 @@ vector position - position in local coordinates b tooltip - Buffer to write to. + Buffer to convert to a string. type buffer + + energy + 10 + return + string + sleep + 0 + tooltip + Returns the buffer data as a string. + + buffer.len + + arguments + - offset - - tooltip - Byte offset to write at. - type - number - - - - value + b tooltip - Value to write. + Buffer to get the size of. type - number + buffer energy 10 return - void + number sleep 0 tooltip - Writes a signed 16-bit integer to the buffer at the given offset. + Returns the size of the buffer in bytes. - buffer.readf32 + buffer.readi8 arguments @@ -11707,9 +11879,9 @@ vector position - position in local coordinates sleep 0 tooltip - Reads a 32-bit floating-point number from the buffer at the given offset. + Reads a signed 8-bit integer from the buffer at the given offset. - buffer.writef32 + buffer.writei8 arguments @@ -11748,9 +11920,9 @@ vector position - position in local coordinates sleep 0 tooltip - Writes a 32-bit floating-point number to the buffer at the given offset. + Writes a signed 8-bit integer to the buffer at the given offset. - buffer.readf64 + buffer.readstring arguments @@ -11767,7 +11939,16 @@ vector position - position in local coordinates offset tooltip - Byte offset to read from. + Byte offset to start reading. + type + number + + + + count + + tooltip + Number of bytes to read. type number @@ -11776,71 +11957,57 @@ vector position - position in local coordinates energy 10 return - number + string sleep 0 tooltip - Reads a 64-bit floating-point number from the buffer at the given offset. + Reads a string of the given length from the buffer at the specified offset. - buffer.writef64 + buffer.copy arguments - b + target tooltip - Buffer to write to. + Target buffer to copy into. type buffer - offset + targetOffset tooltip - Byte offset to write at. + Offset in target buffer. type number - value + source tooltip - Value to write. + Source buffer to copy from. type - number + buffer - - energy - 10 - return - void - sleep - 0 - tooltip - Writes a 64-bit floating-point number to the buffer at the given offset. - - buffer.readu16 - - arguments - - b + sourceOffset tooltip - Buffer to read from. + Offset in source buffer (optional). type - buffer + number - offset + count tooltip - Byte offset to read from. + Number of bytes to copy (optional). type number @@ -11849,13 +12016,13 @@ vector position - position in local coordinates energy 10 return - number + void sleep 0 tooltip - Reads an unsigned 16-bit integer from the buffer at the given offset. + Copies bytes from the source buffer into the target buffer. - buffer.writeu16 + buffer.fill arguments @@ -11863,7 +12030,7 @@ vector position - position in local coordinates b tooltip - Buffer to write to. + Buffer to fill. type buffer @@ -11872,7 +12039,7 @@ vector position - position in local coordinates offset tooltip - Byte offset to write at. + Byte offset to start filling. type number @@ -11881,7 +12048,16 @@ vector position - position in local coordinates value tooltip - Value to write. + Value to fill with. + type + number + + + + count + + tooltip + Number of bytes to fill (optional). type number @@ -11894,9 +12070,9 @@ vector position - position in local coordinates sleep 0 tooltip - Writes an unsigned 16-bit integer to the buffer at the given offset. + Fills the buffer with the specified value starting at the given offset. - buffer.readi32 + buffer.readu8 arguments @@ -11926,9 +12102,9 @@ vector position - position in local coordinates sleep 0 tooltip - Reads a signed 32-bit integer from the buffer at the given offset. + Reads an unsigned 8-bit integer from the buffer at the given offset. - buffer.writei32 + buffer.writeu8 arguments @@ -11967,9 +12143,9 @@ vector position - position in local coordinates sleep 0 tooltip - Writes a signed 32-bit integer to the buffer at the given offset. + Writes an unsigned 8-bit integer to the buffer at the given offset. - buffer.readu32 + buffer.readi16 arguments @@ -11999,9 +12175,9 @@ vector position - position in local coordinates sleep 0 tooltip - Reads an unsigned 32-bit integer from the buffer at the given offset. + Reads a signed 16-bit integer from the buffer at the given offset. - buffer.writeu32 + buffer.writei16 arguments @@ -12040,9 +12216,9 @@ vector position - position in local coordinates sleep 0 tooltip - Writes an unsigned 32-bit integer to the buffer at the given offset. + Writes a signed 16-bit integer to the buffer at the given offset. - buffer.readstring + buffer.readf32 arguments @@ -12059,16 +12235,7 @@ vector position - position in local coordinates offset tooltip - Byte offset to start reading. - type - number - - - - count - - tooltip - Number of bytes to read. + Byte offset to read from. type number @@ -12077,13 +12244,13 @@ vector position - position in local coordinates energy 10 return - string + number sleep 0 tooltip - Reads a string of the given length from the buffer at the specified offset. + Reads a 32-bit floating-point number from the buffer at the given offset. - buffer.writestring + buffer.writef32 arguments @@ -12109,16 +12276,7 @@ vector position - position in local coordinates value tooltip - String to write. - type - string - - - - count - - tooltip - Number of bytes to write (optional). + Value to write. type number @@ -12131,53 +12289,67 @@ vector position - position in local coordinates sleep 0 tooltip - Writes data from a string into the buffer at the specified offset. + Writes a 32-bit floating-point number to the buffer at the given offset. - buffer.copy + buffer.readf64 arguments - target + b tooltip - Target buffer to copy into. + Buffer to read from. type buffer - targetOffset + offset tooltip - Offset in target buffer. + Byte offset to read from. type number + + energy + 10 + return + number + sleep + 0 + tooltip + Reads a 64-bit floating-point number from the buffer at the given offset. + + buffer.writef64 + + arguments + - source + b tooltip - Source buffer to copy from. + Buffer to write to. type buffer - sourceOffset + offset tooltip - Offset in source buffer (optional). + Byte offset to write at. type number - count + value tooltip - Number of bytes to copy (optional). + Value to write. type number @@ -12190,84 +12362,140 @@ vector position - position in local coordinates sleep 0 tooltip - Copies bytes from the source buffer into the target buffer. + Writes a 64-bit floating-point number to the buffer at the given offset. - - debug + buffer.readu16 + arguments + + + b + + tooltip + Buffer to read from. + type + buffer + + + + offset + + tooltip + Byte offset to read from. + type + number + + + energy - -1.0 + 10 + return + number + sleep + 0 tooltip - debug namespace. + Reads an unsigned 16-bit integer from the buffer at the given offset. - debug.info + buffer.writeu16 arguments - co + b tooltip - Optional thread or function reference. + Buffer to write to. type - thread|function|number + buffer - level + offset tooltip - Stack level or function reference for inspection. + Byte offset to write at. type number - s + value tooltip - String specifying requested information. + Value to write. type - string + number energy 10 return - any + void sleep 0 tooltip - Returns information about a stack frame or function based on specified format. + Writes an unsigned 16-bit integer to the buffer at the given offset. - debug.traceback + buffer.readi32 arguments - co + b tooltip - Optional thread reference for traceback. + Buffer to read from. type - thread + buffer - msg + offset tooltip - Optional message prepended to the traceback. + Byte offset to read from. type - string + number + + energy + 10 + return + number + sleep + 0 + tooltip + Reads a signed 32-bit integer from the buffer at the given offset. + + buffer.writei32 + + arguments + - level + b tooltip - Optional stack level to start traceback. + Buffer to write to. + type + buffer + + + + offset + + tooltip + Byte offset to write at. + type + number + + + + value + + tooltip + Value to write. type number @@ -12276,71 +12504,1106 @@ vector position - position in local coordinates energy 10 return - string + void sleep 0 tooltip - Returns a human-readable call stack starting from the specified level. + Writes a signed 32-bit integer to the buffer at the given offset. - debug.getinfo + buffer.readu32 arguments - thread + b tooltip - Optional thread whose stack frame is being inspected. + Buffer to read from. type - thread + buffer - function + offset tooltip - Function reference or stack level number. + Byte offset to read from. type - function|number + number + + + + energy + 10 + return + number + sleep + 0 + tooltip + Reads an unsigned 32-bit integer from the buffer at the given offset. + + buffer.writeu32 + + arguments + + + b + + tooltip + Buffer to write to. + type + buffer - what + offset tooltip - String specifying which fields to retrieve. + Byte offset to write at. type - string + number + + + + value + + tooltip + Value to write. + type + number energy 10 return - table + void + sleep + 0 + tooltip + Writes an unsigned 32-bit integer to the buffer at the given offset. + + buffer.readstring + + arguments + + + b + + tooltip + Buffer to read from. + type + buffer + + + + offset + + tooltip + Byte offset to start reading. + type + number + + + + count + + tooltip + Number of bytes to read. + type + number + + + + energy + 10 + return + string + sleep + 0 + tooltip + Reads a string of the given length from the buffer at the specified offset. + + buffer.writestring + + arguments + + + b + + tooltip + Buffer to write to. + type + buffer + + + + offset + + tooltip + Byte offset to write at. + type + number + + + + value + + tooltip + String to write. + type + string + + + + count + + tooltip + Number of bytes to write (optional). + type + number + + + + energy + 10 + return + void + sleep + 0 + tooltip + Writes data from a string into the buffer at the specified offset. + + buffer.copy + + arguments + + + target + + tooltip + Target buffer to copy into. + type + buffer + + + + targetOffset + + tooltip + Offset in target buffer. + type + number + + + + source + + tooltip + Source buffer to copy from. + type + buffer + + + + sourceOffset + + tooltip + Offset in source buffer (optional). + type + number + + + + count + + tooltip + Number of bytes to copy (optional). + type + number + + + + energy + 10 + return + void + sleep + 0 + tooltip + Copies bytes from the source buffer into the target buffer. + + + coroutine.close + + arguments + + + co + + tooltip + + type + thread + + + + energy + 10 + return + (boolean, string?) + sleep + 0 + tooltip + Closes a coroutine, returns success and optional error message + + coroutine.create + + arguments + + + f + + tooltip + + type + (...any) -> ...any + + + + energy + 10 + return + thread + sleep + 0 + tooltip + Creates a new coroutine from a function + + coroutine.isyieldable + + arguments + + energy + 10 + return + boolean + sleep + 0 + tooltip + Returns true if the coroutine can yield + + coroutine.resume + + arguments + + + co + + tooltip + + type + thread + + + + ... + + tooltip + + type + ...any + + + + energy + 10 + return + (boolean, ...any) + sleep + 0 + tooltip + Resumes a coroutine, returns success and results + + coroutine.running + + arguments + + energy + 10 + return + thread? + sleep + 0 + tooltip + Returns the running coroutine, or nil if called from main thread + + coroutine.status + + arguments + + + co + + tooltip + + type + thread + + + + energy + 10 + return + "running" | "suspended" | "normal" | "dead" + sleep + 0 + tooltip + Returns the status of a coroutine + + coroutine.wrap + + arguments + + + f + + tooltip + + type + (...any) -> ...any + + + + energy + 10 + return + (...any) -> ...any + sleep + 0 + tooltip + Creates a coroutine and returns a function that resumes it + + coroutine.yield + + arguments + + + ... + + tooltip + + type + ...any + + + + energy + 10 + return + ...any + sleep + 0 + tooltip + Suspends the coroutine and returns values to resume + + + debug + + energy + -1.0 + tooltip + debug namespace. + + debug.info + + arguments + + + co + + tooltip + Optional thread or function reference. + type + thread|function|number + + + + level + + tooltip + Stack level or function reference for inspection. + type + number + + + + s + + tooltip + String specifying requested information. + type + string + + + + energy + 10 + return + any + sleep + 0 + tooltip + Returns information about a stack frame or function based on specified format. + + debug.traceback + + arguments + + + co + + tooltip + Optional thread reference for traceback. + type + thread + + + + msg + + tooltip + Optional message prepended to the traceback. + type + string + + + + level + + tooltip + Optional stack level to start traceback. + type + number + + + + energy + 10 + return + string + sleep + 0 + tooltip + Returns a human-readable call stack starting from the specified level. + + debug.getinfo + + arguments + + + thread + + tooltip + Optional thread whose stack frame is being inspected. + type + thread + + + + function + + tooltip + Function reference or stack level number. + type + function|number + + + + what + + tooltip + String specifying which fields to retrieve. + type + string + + + + energy + 10 + return + table + sleep + 0 + tooltip + Returns a table containing debug information about a function or stack frame. + + debug.getlocal + + arguments + + + level + + tooltip + Stack level number. + type + number + + + + index + + tooltip + Index of the local variable. + type + number + + + + energy + 10 + return + string|any + sleep + 0 + tooltip + Returns the name and value of a local variable at the specified stack level. + + debug.setlocal + + arguments + + + level + + tooltip + Stack level number. + type + number + + + + index + + tooltip + Index of the local variable. + type + number + + + + value + + tooltip + New value for the local variable. + type + any + + + + energy + 10 + return + boolean + sleep + 0 + tooltip + Sets the value of a local variable at the specified stack level. + + debug.getupvalue + + arguments + + + function + + tooltip + Function whose upvalues are being retrieved. + type + function + + + + index + + tooltip + Index of the upvalue. + type + number + + + + energy + 10 + return + string|any + sleep + 0 + tooltip + Returns the name and value of an upvalue for a given function. + + debug.setupvalue + + arguments + + + function + + tooltip + Function whose upvalues are being modified. + type + function + + + + index + + tooltip + Index of the upvalue. + type + number + + + + value + + tooltip + New value for the upvalue. + type + any + + + + energy + 10 + return + string + sleep + 0 + tooltip + Sets the value of an upvalue for a given function. + + debug.getmetatable + + arguments + + + value + + tooltip + Value whose metatable is retrieved. + type + any + + + + energy + 10 + return + table|nil + sleep + 0 + tooltip + Returns the metatable of the given value, if any. + + debug.setmetatable + + arguments + + + value + + tooltip + Value whose metatable is to be set. + type + any + + + + metatable + + tooltip + Table to be set as the new metatable. + type + table|nil + + + + energy + 10 + return + any + sleep + 0 + tooltip + Sets the metatable for a given value. + + + coroutine + + energy + -1.0 + tooltip + coroutine namespace. + + coroutine.create + + arguments + + + f + + tooltip + A function to be executed by the new coroutine. + type + function + + + + energy + 10 + return + thread + sleep + 0 + tooltip + Returns a new coroutine that, when resumed, will run function f. + + coroutine.running + + arguments + + energy + 10 + return + thread? + sleep + 0 + tooltip + Returns the currently running coroutine, or nil if running in the main coroutine. + + coroutine.status + + arguments + + + co + + tooltip + The coroutine to check status of. + type + thread + + + + energy + 10 + return + string + sleep + 0 + tooltip + Returns the status of the coroutine: "running", "suspended", "normal", or "dead". + + coroutine.wrap + + arguments + + + f + + tooltip + A function to execute in a coroutine. + type + function + + + + energy + 10 + return + function + sleep + 0 + tooltip + Creates a coroutine and returns a function that resumes it. + + coroutine.yield + + arguments + + + args + + tooltip + Values to pass to the resuming code. + type + variadic + + + + energy + 10 + return + variadic + sleep + 0 + tooltip + Yields the current coroutine, passing arguments to the resuming code. + + coroutine.isyieldable + + arguments + + energy + 10 + return + boolean + sleep + 0 + tooltip + Returns true if the coroutine can yield. + + coroutine.resume + + arguments + + + co + + tooltip + The coroutine to resume. + type + thread + + + + args + + tooltip + Arguments to pass to the coroutine. + type + variadic + + + + energy + 10 + return + (boolean, variadic) + sleep + 0 + tooltip + Resumes a coroutine, returning true and results if successful, or false and an error. + + coroutine.close + + arguments + + + co + + tooltip + The coroutine to close. + type + thread + + + + energy + 10 + return + (boolean, any?) + sleep + 0 + tooltip + Closes a coroutine, returning true if successful or false and an error. + + + bit32 + + energy + -1.0 + tooltip + bit32 library functions. + + bit32.arshift + + arguments + + + n + + tooltip + Number to shift. + type + number + + + + i + + tooltip + Number of bits to shift. + type + number + + + + energy + 10 + return + number + sleep + 0 + tooltip + Shifts n by i bits to the right. If i is negative, a left shift is performed. + + bit32.band + + arguments + + + args + + tooltip + Numbers to perform bitwise AND on. + type + array + + + + energy + 10 + return + number + sleep + 0 + tooltip + Performs a bitwise AND operation on input numbers. + + bit32.bnot + + arguments + + + n + + tooltip + Number to negate. + type + number + + + + energy + 10 + return + number + sleep + 0 + tooltip + Returns the bitwise negation of the input number. + + utf8 + + energy + -1.0 + tooltip + UTF-8 library functions. + + utf8.offset + + arguments + + + s + + tooltip + Input string. + type + string + + + + n + + tooltip + Character position. + type + number + + + + i + + tooltip + Starting position (optional). + type + number + + + + energy + 10 + return + number + sleep + 0 + tooltip + Returns the byte offset of the nth Unicode codepoint in string s. + + utf8.char + + arguments + + + args + + tooltip + Unicode codepoints. + type + array + + + + energy + 10 + return + string sleep 0 tooltip - Returns a table containing debug information about a function or stack frame. + Creates a string from Unicode codepoints. - debug.getlocal + utf8.codepoint arguments - level + s tooltip - Stack level number. + Input string. + type + string + + + + i + + tooltip + Starting position (optional). type number - index + j tooltip - Index of the local variable. + Ending position (optional). type number @@ -12349,112 +13612,156 @@ vector position - position in local coordinates energy 10 return - string|any + array sleep 0 tooltip - Returns the name and value of a local variable at the specified stack level. + Returns the Unicode codepoints in the specified range of string s. - debug.setlocal + utf8.len arguments - level + s tooltip - Stack level number. + Input string. type - number + string - index + i tooltip - Index of the local variable. + Starting position (optional). type number - value + j tooltip - New value for the local variable. + Ending position (optional). type - any + number energy 10 return - boolean + number sleep 0 tooltip - Sets the value of a local variable at the specified stack level. + Returns the number of Unicode codepoints in the specified range of string s. - debug.getupvalue + utf8.codes arguments - function + s tooltip - Function whose upvalues are being retrieved. + Input string. type - function + string + + energy + 10 + return + iterator + sleep + 0 + tooltip + Returns an iterator that produces the byte offset and Unicode codepoint for each character in string s. + + + llbase64.decode + + arguments + - index + data tooltip - Index of the upvalue. + type - number + string energy 10 return - string|any + string sleep 0 tooltip - Returns the name and value of an upvalue for a given function. + Decodes a base64 string to a string - debug.setupvalue + llbase64.encode arguments - function + data tooltip - Function whose upvalues are being modified. + type - function + string | buffer + + energy + 10 + return + string + sleep + 0 + tooltip + Encodes a string or buffer to base64 + + + lljson.decode + + arguments + - index + json tooltip - Index of the upvalue. + type - number + string + + energy + 10 + return + any + sleep + 0 + tooltip + Decodes a JSON string to a Lua value + + lljson.encode + + arguments + value tooltip - New value for the upvalue. + type any @@ -12467,32 +13774,32 @@ vector position - position in local coordinates sleep 0 tooltip - Sets the value of an upvalue for a given function. + Encodes a Lua value as JSON - debug.getmetatable + lljson.sldecode arguments - value + json tooltip - Value whose metatable is retrieved. + type - any + string energy 10 return - table|nil + any sleep 0 tooltip - Returns the metatable of the given value, if any. + Decodes a JSON string to a Lua value preserving SL types - debug.setmetatable + lljson.slencode arguments @@ -12500,220 +13807,232 @@ vector position - position in local coordinates value tooltip - Value whose metatable is to be set. + type any - metatable + tight tooltip - Table to be set as the new metatable. + type - table|nil + boolean? energy 10 return - any + string sleep 0 tooltip - Sets the metatable for a given value. + Encodes a Lua value as JSON preserving SL types. Use tight to encode more compactly. - - coroutine + + math energy -1.0 tooltip - coroutine namespace. + math namespace. - coroutine.create + math.abs arguments - f + n tooltip - A function to be executed by the new coroutine. + A number. type - function + number energy 10 return - thread + number sleep 0 tooltip - Returns a new coroutine that, when resumed, will run function f. + Returns the absolute value of n. - coroutine.running + math.acos arguments - + + + n + + tooltip + A number in the range [-1, 1]. + type + number + + + energy 10 return - thread? + number sleep 0 tooltip - Returns the currently running coroutine, or nil if running in the main coroutine. + Returns the arc cosine of n in radians. - coroutine.status + math.asin arguments - co + n tooltip - The coroutine to check status of. + A number in the range [-1, 1]. type - thread + number energy 10 return - string + number sleep 0 tooltip - Returns the status of the coroutine: "running", "suspended", "normal", or "dead". + Returns the arc sine of n in radians. - coroutine.wrap + math.atan2 arguments - f + y tooltip - A function to execute in a coroutine. + The y-coordinate. type - function + number + + + + x + + tooltip + The x-coordinate. + type + number energy 10 return - function + number sleep 0 tooltip - Creates a coroutine and returns a function that resumes it. + Returns the arc tangent of y/x in radians. - coroutine.yield + math.atan arguments - args + n tooltip - Values to pass to the resuming code. + A number. type - variadic + number energy 10 return - variadic + number sleep 0 tooltip - Yields the current coroutine, passing arguments to the resuming code. + Returns the arc tangent of n in radians. - coroutine.isyieldable + math.ceil arguments - + + + n + + tooltip + A number. + type + number + + + energy 10 return - boolean + number sleep 0 tooltip - Returns true if the coroutine can yield. + Rounds n upwards to the next integer boundary. - coroutine.resume + math.cosh arguments - co - - tooltip - The coroutine to resume. - type - thread - - - - args + n tooltip - Arguments to pass to the coroutine. + A number to compute the hyperbolic cosine of. type - variadic + number energy 10 return - (boolean, variadic) + number sleep 0 tooltip - Resumes a coroutine, returning true and results if successful, or false and an error. + Returns the hyperbolic cosine of n. - coroutine.close + math.cos arguments - co + n tooltip - The coroutine to close. + An angle in radians. type - thread + number energy 10 return - (boolean, any?) + number sleep 0 tooltip - Closes a coroutine, returning true if successful or false and an error. - - - bit32 - - energy - -1.0 - tooltip - bit32 library functions. + Returns the cosine of n. - bit32.arshift + math.deg arguments @@ -12721,16 +14040,7 @@ vector position - position in local coordinates n tooltip - Number to shift. - type - number - - - - i - - tooltip - Number of bits to shift. + A value in radians. type number @@ -12743,19 +14053,19 @@ vector position - position in local coordinates sleep 0 tooltip - Shifts n by i bits to the right. If i is negative, a left shift is performed. + Converts n from radians to degrees. - bit32.band + math.exp arguments - args + n tooltip - Numbers to perform bitwise AND on. + A number to compute e^n. type - array + number @@ -12766,9 +14076,9 @@ vector position - position in local coordinates sleep 0 tooltip - Performs a bitwise AND operation on input numbers. + Returns the base-e exponent of n. - bit32.bnot + math.floor arguments @@ -12776,7 +14086,7 @@ vector position - position in local coordinates n tooltip - Number to negate. + A number to round down. type number @@ -12789,42 +14099,26 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the bitwise negation of the input number. - - utf8 - - energy - -1.0 - tooltip - UTF-8 library functions. + Rounds n down to the previous integer. - utf8.offset + math.fmod arguments - s - - tooltip - Input string. - type - string - - - - n + x tooltip - Character position. + The dividend. type number - i + y tooltip - Starting position (optional). + The divisor. type number @@ -12837,32 +14131,32 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the byte offset of the nth Unicode codepoint in string s. + Returns the remainder of x modulo y, rounded towards zero. - utf8.char + math.frexp arguments - args + n tooltip - Unicode codepoints. + A number to split into significand and exponent. type - array + number energy 10 return - string + array sleep 0 tooltip - Creates a string from Unicode codepoints. + Splits n into a significand and exponent. - utf8.codepoint + math.ldexp arguments @@ -12870,25 +14164,16 @@ vector position - position in local coordinates s tooltip - Input string. - type - string - - - - i - - tooltip - Starting position (optional). + The significand. type number - j + e tooltip - Ending position (optional). + The exponent. type number @@ -12897,39 +14182,39 @@ vector position - position in local coordinates energy 10 return - array + number sleep 0 tooltip - Returns the Unicode codepoints in the specified range of string s. + Returns s * 2^e. - utf8.len + math.lerp arguments - s + a tooltip - Input string. + Start value. type - string + number - i + b tooltip - Starting position (optional). + End value. type number - j + t tooltip - Ending position (optional). + Interpolation factor. type number @@ -12942,40 +14227,32 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the number of Unicode codepoints in the specified range of string s. + Linearly interpolates between a and b using factor t. - utf8.codes + math.log10 arguments - s + n tooltip - Input string. + A number to compute base-10 logarithm. type - string + number energy 10 return - iterator + number sleep 0 tooltip - Returns an iterator that produces the byte offset and Unicode codepoint for each character in string s. - - - math - - energy - -1.0 - tooltip - math namespace. + Returns base-10 logarithm of n. - math.abs + math.log arguments @@ -12983,30 +14260,16 @@ vector position - position in local coordinates n tooltip - A number. + A number to compute logarithm. type number - - energy - 10 - return - number - sleep - 0 - tooltip - Returns the absolute value of n. - - math.acos - - arguments - - n + base tooltip - A number in the range [-1, 1]. + Base of the logarithm (default is e). type number @@ -13019,19 +14282,19 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the arc cosine of n in radians. + Returns logarithm of n in the given base. - math.asin + math.max arguments - n + list tooltip - A number in the range [-1, 1]. + A list of numbers to find the maximum from. type - number + array @@ -13042,28 +14305,19 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the arc sine of n in radians. + Returns the maximum value in the given list. - math.atan2 + math.min arguments - y - - tooltip - The y-coordinate. - type - number - - - - x + list tooltip - The x-coordinate. + A list of numbers to find the minimum from. type - number + array @@ -13074,9 +14328,9 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the arc tangent of y/x in radians. + Returns the minimum value in the given list. - math.atan + math.modf arguments @@ -13084,7 +14338,7 @@ vector position - position in local coordinates n tooltip - A number. + A number to split into integer and fractional parts. type number @@ -13093,21 +14347,30 @@ vector position - position in local coordinates energy 10 return - number + array sleep 0 tooltip - Returns the arc tangent of n in radians. + Returns the integer and fractional parts of n. - math.ceil + math.pow arguments - n + x tooltip - A number. + Base value. + type + number + + + + y + + tooltip + Exponent value. type number @@ -13120,9 +14383,9 @@ vector position - position in local coordinates sleep 0 tooltip - Rounds n upwards to the next integer boundary. + Returns x raised to the power of y. - math.cosh + math.rad arguments @@ -13130,7 +14393,7 @@ vector position - position in local coordinates n tooltip - A number to compute the hyperbolic cosine of. + A value in degrees. type number @@ -13143,17 +14406,26 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the hyperbolic cosine of n. + Converts n from degrees to radians. - math.cos + math.random arguments - n + min tooltip - An angle in radians. + Minimum value of the range (optional). + type + number + + + + max + + tooltip + Maximum value of the range (optional). type number @@ -13166,17 +14438,17 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the cosine of n. + Returns a random number within the given range. - math.deg + math.randomseed arguments - n + seed tooltip - A value in radians. + Seed for the random number generator. type number @@ -13185,13 +14457,13 @@ vector position - position in local coordinates energy 10 return - number + void sleep 0 tooltip - Converts n from radians to degrees. + Sets the seed for the random number generator. - math.exp + math.sinh arguments @@ -13199,7 +14471,7 @@ vector position - position in local coordinates n tooltip - A number to compute e^n. + A number to compute the hyperbolic sine of. type number @@ -13212,9 +14484,9 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the base-e exponent of n. + Returns the hyperbolic sine of n. - math.floor + math.sin arguments @@ -13222,7 +14494,7 @@ vector position - position in local coordinates n tooltip - A number to round down. + An angle in radians. type number @@ -13235,26 +14507,17 @@ vector position - position in local coordinates sleep 0 tooltip - Rounds n down to the previous integer. + Returns the sine of n. - math.fmod + math.sqrt arguments - x - - tooltip - The dividend. - type - number - - - - y + n tooltip - The divisor. + A number to compute the square root of. type number @@ -13267,9 +14530,9 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the remainder of x modulo y, rounded towards zero. + Returns the square root of n. - math.frexp + math.tanh arguments @@ -13277,7 +14540,7 @@ vector position - position in local coordinates n tooltip - A number to split into significand and exponent. + A number to compute the hyperbolic tangent of. type number @@ -13286,30 +14549,21 @@ vector position - position in local coordinates energy 10 return - array + number sleep 0 tooltip - Splits n into a significand and exponent. + Returns the hyperbolic tangent of n. - math.ldexp + math.tan arguments - s - - tooltip - The significand. - type - number - - - - e + n tooltip - The exponent. + An angle in radians. type number @@ -13322,35 +14576,35 @@ vector position - position in local coordinates sleep 0 tooltip - Returns s * 2^e. + Returns the tangent of n. - math.lerp + math.noise arguments - a + x tooltip - Start value. + X coordinate for the noise function. type number - b + y tooltip - End value. + Y coordinate for the noise function (optional). type number - t + z tooltip - Interpolation factor. + Z coordinate for the noise function (optional). type number @@ -13363,9 +14617,9 @@ vector position - position in local coordinates sleep 0 tooltip - Linearly interpolates between a and b using factor t. + Returns Perlin noise value for the point (x, y, z). - math.log10 + math.clamp arguments @@ -13373,39 +14627,25 @@ vector position - position in local coordinates n tooltip - A number to compute base-10 logarithm. + The value to be clamped. type number - - energy - 10 - return - number - sleep - 0 - tooltip - Returns base-10 logarithm of n. - - math.log - - arguments - - n + min tooltip - A number to compute logarithm. + Minimum allowable value. type number - base + max tooltip - Base of the logarithm (default is e). + Maximum allowable value. type number @@ -13418,19 +14658,19 @@ vector position - position in local coordinates sleep 0 tooltip - Returns logarithm of n in the given base. + Returns n clamped between min and max. - math.max + math.sign arguments - list + n tooltip - A list of numbers to find the maximum from. + A number to get the sign of. type - array + number @@ -13441,19 +14681,19 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the maximum value in the given list. + Returns -1 if n is negative, 1 if positive, and 0 if zero. - math.min + math.round arguments - list + n tooltip - A list of numbers to find the minimum from. + A number to round to the nearest integer. type - array + number @@ -13464,49 +14704,47 @@ vector position - position in local coordinates sleep 0 tooltip - Returns the minimum value in the given list. + Rounds n to the nearest integer. - math.modf + + os + + energy + -1.0 + tooltip + os namespace. + + os.clock arguments - - - n - - tooltip - A number to split into integer and fractional parts. - type - number - - - + energy 10 return - array + number sleep 0 tooltip - Returns the integer and fractional parts of n. + Returns a high-precision timestamp in seconds for measuring durations. - math.pow + os.date arguments - x + s tooltip - Base value. + Optional format string for the date representation. type - number + string - y + t tooltip - Exponent value. + Optional timestamp to format; defaults to the current time. type number @@ -13515,21 +14753,30 @@ vector position - position in local coordinates energy 10 return - number + table|string sleep 0 tooltip - Returns x raised to the power of y. + Returns a table or string representation of the time based on the provided format. - math.rad + os.difftime arguments - n + a tooltip - A value in degrees. + First timestamp value. + type + number + + + + b + + tooltip + Second timestamp value. type number @@ -13542,28 +14789,19 @@ vector position - position in local coordinates sleep 0 tooltip - Converts n from degrees to radians. + Returns the difference in seconds between two timestamps. - math.random + os.time arguments - min - - tooltip - Minimum value of the range (optional). - type - number - - - - max + t tooltip - Maximum value of the range (optional). + Optional table with date/time fields; returns the corresponding Unix timestamp. type - number + table @@ -13574,86 +14812,45 @@ vector position - position in local coordinates sleep 0 tooltip - Returns a random number within the given range. + Returns the current Unix timestamp or the timestamp of the given date. - math.randomseed + + quaternion arguments - seed + x tooltip - Seed for the random number generator. + type number - - energy - 10 - return - void - sleep - 0 - tooltip - Sets the seed for the random number generator. - - math.sinh - - arguments - - n + y tooltip - A number to compute the hyperbolic sine of. + type number - - energy - 10 - return - number - sleep - 0 - tooltip - Returns the hyperbolic sine of n. - - math.sin - - arguments - - n + z tooltip - An angle in radians. + type number - - energy - 10 - return - number - sleep - 0 - tooltip - Returns the sine of n. - - math.sqrt - - arguments - - n + s tooltip - A number to compute the square root of. + type number @@ -13662,85 +14859,71 @@ vector position - position in local coordinates energy 10 return - number + quaternion sleep 0 tooltip - Returns the square root of n. + - math.tanh + quaternion.conjugate arguments - n + q tooltip - A number to compute the hyperbolic tangent of. + type - number + quaternion energy 10 return - number + quaternion sleep 0 tooltip - Returns the hyperbolic tangent of n. + Returns conjugate of quaternion - math.tan + quaternion.create arguments - n + x tooltip - An angle in radians. + type number - - energy - 10 - return - number - sleep - 0 - tooltip - Returns the tangent of n. - - math.noise - - arguments - - x + y tooltip - X coordinate for the noise function. + type number - y + z tooltip - Y coordinate for the noise function (optional). + type number - z + s tooltip - Z coordinate for the noise function (optional). + type number @@ -13749,41 +14932,32 @@ vector position - position in local coordinates energy 10 return - number + quaternion sleep 0 tooltip - Returns Perlin noise value for the point (x, y, z). + Constructor - math.clamp + quaternion.dot arguments - n - - tooltip - The value to be clamped. - type - number - - - - min + a tooltip - Minimum allowable value. + type - number + quaternion - max + b tooltip - Maximum allowable value. + type - number + quaternion @@ -13794,19 +14968,19 @@ vector position - position in local coordinates sleep 0 tooltip - Returns n clamped between min and max. + Dot product of two quaternions - math.sign + quaternion.magnitude arguments - n + q tooltip - A number to get the sign of. + type - number + quaternion @@ -13817,70 +14991,58 @@ vector position - position in local coordinates sleep 0 tooltip - Returns -1 if n is negative, 1 if positive, and 0 if zero. + Returns magnitude of quaternion - math.round + quaternion.normalize arguments - n + q tooltip - A number to round to the nearest integer. + type - number + quaternion energy 10 return - number - sleep - 0 - tooltip - Rounds n to the nearest integer. - - - os - - energy - -1.0 - tooltip - os namespace. - - os.clock - - arguments - - energy - 10 - return - number + quaternion sleep 0 tooltip - Returns a high-precision timestamp in seconds for measuring durations. + Returns normalized quaternion - os.date + quaternion.slerp arguments - s + a tooltip - Optional format string for the date representation. + type - string + quaternion + + + + b + + tooltip + + type + quaternion t tooltip - Optional timestamp to format; defaults to the current time. + type number @@ -13889,66 +15051,80 @@ vector position - position in local coordinates energy 10 return - table|string + quaternion sleep 0 tooltip - Returns a table or string representation of the time based on the provided format. + Spherical linear interpolation - os.difftime + quaternion.tofwd arguments - a + q tooltip - First timestamp value. + type - number + quaternion + + energy + 10 + return + vector + sleep + 0 + tooltip + Returns forward vector from quaternion rotation + + quaternion.toleft + + arguments + - b + q tooltip - Second timestamp value. + type - number + quaternion energy 10 return - number + vector sleep 0 tooltip - Returns the difference in seconds between two timestamps. + Returns left vector from quaternion rotation - os.time + quaternion.toup arguments - t + q tooltip - Optional table with date/time fields; returns the corresponding Unix timestamp. + type - table + quaternion energy 10 return - number + vector sleep 0 tooltip - Returns the current Unix timestamp or the timestamp of the given date. + Returns up vector from quaternion rotation string @@ -14953,6 +16129,104 @@ vector position - position in local coordinates tooltip Creates a shallow copy of a table. + + utf8.offset + + arguments + + + s + + tooltip + + type + string + + + + n + + tooltip + + type + number + + + + i + + tooltip + + type + number? + + + + energy + 10 + return + number? + sleep + 0 + tooltip + Returns the byte position of the n-th character + + + uuid + + arguments + + + self + + tooltip + + type + any + + + + value + + tooltip + + type + string | buffer | uuid + + + + energy + 10 + return + uuid? + sleep + 0 + tooltip + Allows calling uuid() as a constructor + + uuid.create + + arguments + + + value + + tooltip + + type + string | buffer | uuid + + + + energy + 10 + return + uuid? + sleep + 0 + tooltip + Creates a new uuid from a string, buffer, or existing uuid. Returns nil if the string is not a valid UUID. Throws an error if the buffer is shorter than 16 bytes. + vector -- cgit v1.3