Status
SteamPeaks
ChartsSalesUpcomingPatchesNewsCalculator
New on SteamEvery app, DLC and depot the minute Steam creates itAppsEvery app on Steam, newest change firstPackagesSubs and bundles, and what each containsDepotsDepots, manifests and install sizesTagsSteam's user tags and the games under themDevelopers & publishersCompanies and their cataloguesTechnologiesEngines, SDKs and anti-cheat found in the filesChange historyEvery PICS changelist as it lands
SignalsNineteen readings of the whole catalogueCompareAny games side by sideRecordsAll-time peaks and the days they were setReportsWeekly and monthly write-upsAlerts & newsroomWatch a game, get told when it movesSteam statusIs Steam up, right nowWeb API explorerTry the endpoints in the browser
NewsSteam's own announcements and the sales calendarCalculatorWhat a Steam account is worth, and its pile of shame
/
Sign in
/
SteamPeaks
The ultimate resource for Steam data.
ExploreChartsSalesSales and festsUpcomingPatchesNewsRecordsTrendingSignals
DatabaseAppsPackagesDepotsTagsDevelopersTechnologiesChange history
ToolsCalculatorCompareSearchAlertsSteam statusAPI
SiteMethodologyFAQDiscordSupportSign in via Steam
Not affiliated with Valve or Steam. Game names and artwork belong to their owners. All times UTC.
PrivacyCookiesFair useStatus
OnsetNewsOnset 1.4.1
In-game event

Onset 1.4.1

Onset · published 11 Jan 2021, 19:28 UTC

All newsPlayers around this dateRead on Steam

Onset 1.4.1 (Protocol Compatibility 4)

Package index.lua

Each package can now register package files and scripts in a special Lua file. The index.lua is executed before the server loads the package.json file. In this Lua file you can register scripts and files to this package.

The following functions are only available to the index.lua script. Besides that, only Lua library functions are exposed the index.lua but no other Onset server functions.

  • AddServerScript
  • AddClientScript
  • AddSharedScript
  • AddFile

Example for an index.lua script:

AddServerScript("server/*_s.lua")
AddClientScript("client/*_c.lua")
AddSharedScript("shared/*.lua")
AddFile("audio/sound.mp3")
AddFile("ui/*.html")

For the package to work, there has to be either an index.lua or a package.json config file. Both at the same time are also supported.

Package autostart folder

To autostart packages place them into the folder "autostart" where your OnsetServer.exe is located. If the folder does not exist, create a new one.
Packages inside this folder will be started alphabetically before any other packages.

The function StartPackage will attempt to look for packages in the autostart folder first.

SetPlayerVoiceRange

Besides the existing voice channel feature, a new function has been introduced that allows you to set the 3D range of a player's voice.
The range can't be greater than the voice distance set in the server_config.json.

To reset the voice range pass a value of 0.0 or less to this function.

Server:

AddRemoteEvent("ServerWhisper", function(player, whisper)
if whisper then
-- Player will be heard only 4 meters (400 cm)
SetPlayerVoiceRange(player, 400.0)
else
SetPlayerVoiceRange(player, 0.0)
end
end)

Client:

AddEvent("OnKeyPress", function(key)
if key == "N" then
CallRemoteEvent("ServerWhisper", true)
end
end)AddEvent("OnKeyRelease", function(key)
if key == "N" then
CallRemoteEvent("ServerWhisper", false)
end
end)

Config files comments

The server_config.json and package.json can now have comments starting with // or /* */.

Other server changes:

  • Update to VS2019 (VC16). If you have troubles starting the server make sure you have the latest 2019 vc_redist 64bit installed.
  • Print MB instead of KB to the console for the total client download if it exceeds a certain amount.
  • Add --port and --maxplayers parameter.

Client changes

  • Fix vehicles tires sometimes glitching through the ground.
  • Fix vehicle falling through the ground when getting out and the car is flipped.
  • Fix sportscar door position.
  • Fix Pak unloading too early when disconnecting and a custom map is still loaded.
  • WebUI whitelist PayPal and Cloudfront by default.
  • UObject.ProcessEvent now supports FName and FText.
  • Add function
UPrimitiveComponent:GetInertiaTensor(BoneName)

Wiki front page design updated

Check it out! https://dev.playonset.com/wiki/Main_Page

More from Onset

Other announcements

All news
In-game event9 Mar 2022Onset 1.5.5Onset 1.5.5 (Protocol Compatibility 5) 3D sound for 3D Web UIs There is a new parameter for the function CreateWebUI3D and CreateRemoteWebUI3D to set the sound falloff distance. New Lua functions SetWebVolume(web, volume) SetWebPitch(web, pitch) New Lua events The following events allow you to block certain input when you return false . OnActionKey(EventType, ActionName, KeyName) OnAxisKey(Even…In-game event5 Feb 2022Onset 1.5.4Onset 1.5.4 (Protocol Compatibility 5) This update removes the old server query mechanism & master server system. It is being replaced with the solution that the Steamworks library offers. Server operators must update their servers to be shown in the game main menu. Game · You can view a list of servers (outside of Onset) in Steam. Go to View -> Servers -> Change Filter to Onset. · The main men…Game update7 Jan 2022Onset 1.5.3 Patch 1Update WebUI library. · Update object images. · Update copyright year.