Stormworks: Build and Rescue

Sunfire Software · Simulation

Stormworks: Build and Rescue patch notes · Nov 13, 2020

Experiment

v1.0.21 - The LUA Functions Update!

What's new in v1.0.21 - The LUA Functions Update!: 44 changes to Stormworks: Build and Rescue, released Nov 13, 2020.

Balance · 1

  • Player ground collider radius was slightly increased to help players avoid getting stuck in small gaps.

    player ground collider radiu

System · 26

  • New functions return location data and component data for a playlist location.

    location and component data query
  • Player-specific functions were generalized to work on any character by object_id, and non-player characters can now be seated.

    kill, revive and seating functions for character
  • Lua data saving now supports unsigned key types in addition to the default string.

    lua data saving key type
  • Cargo container design was reworked to use toggle buttons for connectors.

    cargo container connector design
  • setVehicleSeat now accepts axis and button inputs for configuring a seat.

    vehicle seat configuration
  • New or updated functions return object and vehicle positions and names with success flags.

    object, vehicle position and name query
  • New functions spawn mission locations, including from the current playlist by name.

    mission location spawning
  • Map marker and label functions were updated with new parameters for positioning, parent vehicle, radius and hover label.

    map object and label function
  • onVehicleSpawn now passes a cost value, which is only calculated for player spawned vehicles.

    vehicle spawn callback cost
  • spawnFire now takes parameters for lit, initialized, explosive state and explosion magnitude, and returns object_id and success.

    fire spawning function
  • Mission objects were renamed to components, so spawnMissionObject became spawnMissionComponent and the callback was renamed too.

    mission objects renamed to component
  • A new function returns a player's character object_id from their peer_id.

    player character object id lookup
  • A new function returns an ocean transform within a search range.

    ocean transform query
  • A new function sets the position of an object and returns success.

    object position setting
  • teleportPlayer was renamed to setPlayerPos and teleportVehicle to setVehiclePos, with teleportVehicle arguments swapped to match other functions.

    player and vehicle teleport function
  • despawnCharacter and despawnMissionObject were removed as they duplicated despawnObject.

    character and mission object despawn function
  • getPlayers now returns a table including each player's id, name, admin status, auth status and steam id.

    player list data
  • onChatMessage callback is documented with peer_id, sender name and message parameters.

    chat message callback
  • New functions look up playlist and location indexes by name and return a playlist path.

    playlist lookup function
  • A new function returns the equipment id in a given slot of a character and a success flag.

    character item query
  • Voice audio volume boost was added.

    voice audio volume
  • A new function returns character hp, matrix, incapacitated, dead and interactable status.

    character data query
  • Functions for reading a player's name, position and look direction now return success flags.

    player name, position and look direction query
  • A new function reports whether a named vehicle button is on.

    vehicle button query
  • A new callback fires when a character sits in a vehicle seat.

    character sit callback
  • Spawn functions for objects, characters, animals and vehicles were added or updated and return ids with success flags.

    object, character, animal and vehicle spawning

UI · 1

  • New popup functions create popups and set their text, position, worldspace and screen offset display.

    popup creation and display

Fix · 16

  • Fixed several crashes originating from playlist Lua.

    playlist lua crash
  • onPlayerSit now only triggers for player characters.

    onplayersit triggering for non-player
  • Fixed a missing notification for loot crates.

    loot crate notification
  • Fixed a crash when returning a vehicle on fire via the map.

    crash when returning a burning vehicle via the map
  • Playlist Lua callback errors are now cleared so callbacks are no longer blocked after erroring.

    playlist lua callback blocking
  • Fixed ?save always saving to autosave on dedicated servers.

    dedicated server save command
  • Fixed being unable to place blocks on certain sides of doors.

    block placement on door side
  • Fixed a crash when an out-of-range outfit is passed to spawnCharacter.

    crash with out-of-range outfit
  • Fixed spawnFire rejecting the correct number of arguments.

    spawnfire argument count rejection
  • Fixed currency display not appearing in the vehicle editor after toggling infinite money.

    vehicle editor currency display
  • Fixed client character objects not updating their peer_id when reconnecting to a server.

    client peer_id on reconnect
  • Fixed scripts being duplicated when reloading.

    script duplication on reload
  • Fixed the Dev Train Junction MC showing in the inventory.

    dev train junction mc inventory display
  • Fixed the onPlayerDie event resending when dropping a dead body.

    onplayerdie event resending
  • Fixed a crash when Lua fails to find vehicle data.

    crash when lua fails to find vehicle data
  • Fixed a crash when an out-of-range item is passed to setCharacterItem.

    crash with out-of-range item