Onset 1.4.0 (Protocol Compatibility 4)

The game compatibility has changed in this release. Server owners must update their server via steamcmd in order to allow clients to connect.


Gas Station

Erwann reworked the gas station in the main city. It looks a lot more attractive now.

Click image for larger version  Name:	GasStation1.png Views:	0 Size:	854.6 KB ID:	2552
Click image for larger version  Name:	GasStation2.png Views:	0 Size:	822.2 KB ID:	2553

A new sign on top the city hills fill some empty space.

Click image for larger version  Name:	HighresScreenshot00001.png Views:	0 Size:	780.6 KB ID:	2554

The restricted rooms in the townhall are now open for usage.

Click image for larger version  Name:	Townhall.png Views:	0 Size:	837.9 KB ID:	2555

Bikes

Something that a lot have asked for. They are kind of experimental for now, so expect some bugs. The handling will also be further improved.

Click image for larger version  Name:	Motorcycle.PNG Views:	0 Size:	604.7 KB ID:	2557Click image for larger version  Name:	Scooter.PNG Views:	0 Size:	442.0 KB ID:	2558

Biker Suit

Code:
/Game/CharacterModels/BikerSuit/Meshes/SK_BikerSuit
Click image for larger version  Name:	HighresScreenshot00004.png Views:	0 Size:	836.5 KB ID:	2556

New wheeled vehicles

Apocalypse

Click image for larger version  Name:	Apocalypse.PNG Views:	0 Size:	836.9 KB ID:	2559

Sedan

Click image for larger version  Name:	Sedan07.PNG Views:	0 Size:	549.5 KB ID:	2560

Tank

Click image for larger version  Name:	Tank01.PNG Views:	0 Size:	839.7 KB ID:	2561

Forklift

You can lift up and down using the Q and E key.


Click image for larger version  Name:	Forklift.PNG Views:	0 Size:	831.1 KB ID:	2562

Shared Scripts

Lua scripts can now be marked as "shared". These will run on both the server and client. New functions have been added to check if the current scripts runs on the server or on the client.

Code:
IsServer()
IsClient()
Click image for larger version  Name:	shared_scripts.PNG Views:	0 Size:	5.0 KB ID:	2563Click image for larger version  Name:	IsServerClient.PNG Views:	0 Size:	5.4 KB ID:	2564

Support for custom maps water volumes

You can now place "Physics Volumes" on custom maps and use them as a swimmable volume for players and vehicles.

Click image for larger version  Name:	PhysicsVolume1.PNG Views:	0 Size:	8.9 KB ID:	2565

Make sure to set the following settings on your volume. Under "Brush Settings" you can change the size of the water volume.

Click image for larger version  Name:	PhysicsVolume2.PNG Views:	0 Size:	106.4 KB ID:	2566

New
- Support for wildcards in the package.json
- Add function GetPackageFiles(PackageName)
- Add function GetAllPackages()
- Add function GetPlayerVehicleSeat(player)
- Add function GetObjectByStaticMeshActor(StaticMesh)
- Add function IsClient() and IsServer()
- Function CreateSound() can now play sound files from the gameserver /public_html folder.
- The default map now has a proper navigation mesh. This can be used for AI Blueprints.
- Vehicles can now have more than 4 doors. Vehicle ID 8 now has 5 seats, ID 24 has 4 seats, ID 30 and ID 31 have 5 seats and ID 47 and 48 have 5 seats.
- New spawnable objects have been added. See https://dev.playonset.com/wiki/Objects

Fixes
- Fix texture size check in function UTexture.LoadFromFile().
- Fix multiple params and return values for UObject:ProcessEvent().
- Fix FAttachmentTransformRules and FDetachmentTransformRules.
- Fix crash in function IsVehicleWheelInAir() and GetVehicleWheelSeerAngle().
- Fix rear collision on Truck04 vehicle.
- Fix rear seats for Hatchback vehicle.
- Fix some sound effects for the Sports Car, Muscle Car and Golf Cart.
- Fix a game crash related to texture sampling.
- Fix possible crash when destroying doors, npcs and objects.
- An invalid or custom gamemode on custom maps no longer crash the game.
- Fix collision for the skyscapper buildings from the last update.
- Fix bug where you don't die when hitting the ground during skydive.

Improvements
- Function LoadPak() no longer requires RootPath and ContentPath parameter. These are now optional.
- Increase remote event string length to 65536
- Increase remote event max arguments to 14.
- Increase chat message length to 255.
- Increase remote event table dimensions to 5.
- Improve performance when the game loads existing package files/assets from disk.
- Improve night lighting and increase star intensity.
- Print a message in the devlog on network connection error
- Reduce game pak size by another 3GB
- Performance improvements in Townhall.
- Improve file download speed when connecting to a server.
- Improve acceleration on steep slopes for some vehicles.
- Increase ground clearance for Sports Car and Hatchback vehicle.
- Increase vehicle braking force and acceleration on all vehicles.
- Slightly reduce Golf Cart maximum speed.
- Improve Sports Car driver animation.
- Increase ground traction for all vehicles.
- Add proper sounds for the Steampunk vehicle.

Other changes
- Disable halloween fog.
- New game startup video sequence.
- Remove Vulkan support.

UnrealLua
Code:
- AActor
    SetActorRelativeLocation
    SetActorRelativeRotation
    RecreatePhysicsState
- UKismetMathLibrary
    MakeRotationFromAxes
    FindLookAtRotation
    MakeRotFromX
    MakeRotFromY
    MakeRotFromZ
    MakeRotFromXY
    MakeRotFromXZ
    MakeRotFromYX
    MakeRotFromYZ
    MakeRotFromZX
    MakeRotFromZY
    ComposeRotators
    RotatorFromAxisAndAngle
    ClampAxis
    NormalizeAxis
    FindClosestPointOnLine
    GetForwardVector
    GetRightVector
    GetUpVector
    NormalizedDeltaRotator
    ProjectVectorOnToVector
    RandomUnitVector
    RandomPointInBoundingBox
    RandomUnitVectorInConeInRadians
    RandomUnitVectorInConeInDegrees
    CreateVectorFromYawPitch
    GridSnap_Float
    Abs
    Sin
    Asin
    Cos
    Acos
    Tan
    Atan
    Atan2
    Exp
    Log
    Loge
    Sqrt
    Square
    RandomFloatInRange
    GetPI
    GetTAU
    DegreesToRadians
    RadiansToDegrees
    FClamp
    NormalizeToRange
    MapRangeUnclamped
    MapRangeClamped
    MakePulsatingValue
Server changes
- Add wildcard support for package.json.
- Increase hostname length to 260 characters.
- Fix player not respawning after skydive death.
- Terminal will now be disabled instead of crashing the server if it is not supported by the host.
- Update Lua to 5.4.2, plugins must be recompiled with the latest OnsetSDK or they might not work.
- Update Steamworks SDK.
- Add function GetPackageFiles(PackageName).
- Add function BroadcastRemoteEvent(EventName, ...).

Update your WorldDoors.lua script from the "default" package for the new map changes.

Plugins must be recompiled with the new OnsetSDK in order to work with the 1.4.0 server.