HomeGamesUpdatesPricingMethodology
Steam News14 December 20214y ago

Winter Update 1.5.3

Onset 1.5.3 (Protocol Compatibility 5) Client update Add function EnableSnowParticles(bEnable) Add function SetLandscapeSnowAlpha(Val) Example usage: AddEvent("OnPackageStart", function() EnableSnowParticles(true) SetLa

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

0 fixes6 additions7 changes0 removals
  • Compatibility
changedOnset 1.5.3 (Protocol Compatibility 5)Client update
addedOnset 1.5.3 (Protocol Compatibility 5)Add function EnableSnowParticles(bEnable)
addedOnset 1.5.3 (Protocol Compatibility 5)Add function SetLandscapeSnowAlpha(Val)
changedOnset 1.5.3 (Protocol Compatibility 5)Example usage:
addedOnset 1.5.3 (Protocol Compatibility 5)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.
addedOnset 1.5.3 (Protocol Compatibility 5)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'.

Onset changes

changedClient update
addedAdd function EnableSnowParticles(bEnable)
addedAdd function SetLandscapeSnowAlpha(Val)
changedExample usage:
addedThe 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.

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

Steam News / 14 December 2021

Open original post

Changelog.gg summarizes and formats this update. How we read updates.