In this update1
Full notes
Full Onset update
Read the full published notes in a cleaner layout. The original post stays linked below.
What changed
- Compatibility
Onset changes
Onset 1.5.3 (Protocol Compatibility 5)
Client update
Add function EnableSnowParticles(bEnable)
Add function SetLandscapeSnowAlpha(Val)
Example usage:
AddEvent("OnPackageStart", function() EnableSnowParticles(true) SetLandscapeSnowAlpha(1.0) end)The loadstring function now has a 2nd optional parameter for the package name. You can specify a different package where the code will be executed in.
For example you could create a console function that executes code in a specific package. In the above picture you can see the new snow function being executed in the package 'default'.
Code used:
AddEvent("OnConsoleInput", function(input) local cmd local args = {} for word in input:gmatch("%w+") do if cmd == nil then cmd = word else table.insert(args, word) end end if cmd == "x" then if args[1] == nil then print("Usage: x ") return true end local code = input:sub(string.len(args[1]) + 4) print("Package Name:", args[1]) print("Code to be executed in package:", code) loadstring(code, args[1]) return true end end)Add two new constants to Lua.
_PACKAGENAME Holds the name of the current package.
_ONSETVERSION Contains the current Onset version as a string.
Example usage:
print("This message comes from", _PACKAGENAME)Add the following missing members of the Lua math table.
pi huge mininteger maxinteger
Example usage:
print(math.pi)
Source
Changelog.gg summarizes and formats this update. How we read updates.
