Stationeers

RocketWerkz · Simulation

Stationeers patch notes · Apr 27, 2023

Experiment

Integrated Circuitry

What's new in Integrated Circuitry: 145 changes to Stationeers, released Apr 27, 2023.

Content · 33

  • Added brnan, a MIPS instruction that relative-branches when the value is not a number.

    brnan instruction
  • A new pinf constant representing positive infinity is available in scripts.

    pinf constant
  • A HASH(..) preprocessor macro converts text to a hash before running, and can be used with sbn and lbn instructions.

    hash preprocessor macro
  • A new pi constant giving the circle circumference-to-diameter ratio in double precision is available.

    pi constant
  • A new degrees-to-radians conversion constant is available.

    deg2rad constant
  • Added a Lever Animation component.

    lever animation component
  • Added IC instruction lbs to load slot variables as a batch using device hash, slot index, variable and batch mode math.

    load slot variables batch instruction
  • A new epsilon constant representing the smallest double-precision value representable is available.

    epsilon constant
  • Added lbn, which works like lb but only applies loads to devices whose name hash matches the one provided.

    load batch named instruction
  • A new radians-to-degrees conversion constant is available.

    rad2deg constant
  • Updated thumbnails for the high volume has canister and extra large wireless battery.

    thumbnail
  • New German translations were added.; Added new German translations.

    german translation
  • Added LineNumber logic variable to query the current executing line number of an IC on a circuit housing; writing it is possible but risky.

    linenumber logic variable
  • A new bnan instruction branches to a line number based on whether a value is NaN.

    branch nan instruction
  • A new brnan instruction branches relative to the current line based on whether a value is NaN.

    relative branch nan instruction
  • Devices networks can be referenced via special syntax, letting cable networks store temporary data and ICs read/write connection networks.

    network read/write syntax
  • A new lbs instruction enables batch operations involving slots across multiple devices.

    load batch slot instruction
  • Added ExportGate prefab.

    exportgate prefab
  • Added bnan, a MIPS instruction that branches when the value is not a number.

    bnan instruction
  • Added ImportBin and ImportBinHazardStripes prefabs.

    import bin prefab
  • A new sbn instruction gives precise control over which devices a store is applied to based on name hash.

    store batch named instruction
  • A new lbn instruction gives precise control over which devices a load is applied to based on name hash.

    load batch named instruction
  • Added sbn, which works like sb but only applies stores to devices whose name hash matches the one provided.

    store batch named instruction
  • A new snanz instruction selects non-NaN values, the inverse of snan.

    select nan inverse instruction
  • Added ChuteImport Export bin prefabs.

    chuteimport export bin prefab
  • Extra non-shadow casting light effects were added to the jetpack.

    jetpack light effect
  • Added snanz, selecting 0 into a register when the value is not a number, otherwise 1.

    snanz instruction
  • A new snan instruction checks for NaN values in IC operations.

    select nan instruction
  • A new ninf constant representing negative infinity is available in scripts.

    ninf constant
  • Added a HASH("...") preprocessor macro generating PrefabHashes at compile time; it is case sensitive.

    compile-time hash preprocessor macro
  • Added snan, selecting 1 into a register when the value is not a number, otherwise 0.

    snan instruction
  • Added special tradeable items: infinite filter, extra large gas canister and extra large wireless battery (first pass).

    special tradeable item
  • A new nan constant representing 'not a number' (a quiet NaN) can be used in scripts; a signal NaN from some instructions will halt execution.

    nan constant

Economy · 9

  • Oxite and volatile ice trader volume on the ore trader reduced by 75%.

    oxite and volatile ice trader volume
  • T3 traders now have 150% volume on bulk tradables, up from 120%.

    t3 trader bulk tradable volume
  • Volatile gas sale price lowered from 10 to 7.5 and trader volume raised from 1000 to 2000 mole.

    volatile gas sale price and volume
  • Trader volumes, prices, and item availability were adjusted to improve balance and player trading.

    trader volumes, prices and item availability
  • Volatile ice buy price on the gas trader lowered from 1 to 0.8.

    volatile ice buy price
  • Ships are now 1/2 likely to wish to buy fuel, up from 1/5.

    ship fuel purchase chance
  • T1 traders now have 75% volume on bulk tradables, down from 100%.

    t1 trader bulk tradable volume
  • Volatile ice sale price on the ore trader raised from 0.5 to 0.75.

    volatile ice sale price
  • All max ice purchase volumes on the gas trader reduced from 1000 to 600.

    ice max purchase volume

Controls · 4

  • Removed localized-string reagent lookup from lr; this is a breaking change because it broke multiplayer across languages.

    lr reagent referencing
  • A breaking change to load reagent instruction syntax; old syntax no longer works, made to fix localization bugs on servers.

    load reagent instruction syntax
  • Load and store now work on Channel0 to Channel7; the Setting variable is no longer supported.

    mips device network referencing
  • lr now takes a register and a reagent hash, syntax 'lr <registerToLoadInto> <deviceToLoadFrom> <reagentMode> <reagentHash>'.

    lr hashed reagent value

System · 40

  • OmniPowerTransmitter was changed to use the new animator components.

    omnipowertransmitter animation component
  • First pass of device connection referencing using <device>:<conn> for load and set; cable networks now implement ILogicable but are volatile and default to NaN.

    device connection referencing for ic
  • Cable networks are volatile, their IDs change with cable changes and data is lost on destructive changes, so they are not a reliable store.

    cable network volatility
  • The GasMixer animator was replaced with new animation components.

    gasmixer animation component
  • dynamicCrates was changed to use new animation components.

    dynamiccrates animation component
  • An IAudioParent interface was added.

    iaudioparent interface
  • ChuteBin was changed to use the new AnimComponents.

    chutebin animation component
  • The unloader's custom components were swapped from the Unity animator to the new system.

    unloader custom component animation
  • Many coroutines were removed across the project to reduce memory garbage.

    coroutine memory garbage
  • Cleaned up the SmallGrid Connection Validation function and removed debugging logs.

    smallgrid connection validation cleanup
  • SBD Silo was changed to use the new animation component system.

    sbd silo animation system
  • The number of virtual and real voices was increased to fix audio issues in large bases, possibly with a performance cost.

    audio voice count
  • The trader shuttle implements the IAudioParent interface.

    iaudioparent on trader shuttle
  • Solid fuel Generator now uses the new import component and no longer uses a Unity animator.

    solid fuel generator animation
  • Automation was added for setting up the activate button prefab.

    activate button prefab setup
  • Sorter was changed to use new animation components.

    sorter animation component
  • Refactored ExportAnimationComponent to use the InteractableAnimComponent class.

    exportanimationcomponent refactor
  • Added Export Animation component, removing the need for a Unity animator on new devices with an export slot.

    export animation component
  • A generic pooling system from Art of the Rail was applied, usable for pooling any objects, not just audio.

    generic object pooling system
  • Replaced the Unity animator on the stacker with animator components.

    stacker animation setup
  • A Transform property was added to Thing and removed from child classes.

    transform property on thing
  • The chute outlet was changed to use the new animation component.

    chute outlet animation component
  • The audio pool and audio collision pool sizes were increased.

    audio pool size
  • StopAllAudio on Thing now returns parented pooled audio sources to the pool.

    stopallaudio behaviour
  • Added automation for setting up animator components.

    animator component setup automation
  • Deep Miner swapped its Unity animator export handling for the new component as a test case.

    deep miner export handling
  • World log now syncs to clients.

    world log client sync
  • The audio pool was refactored to use IAudioParent for sound positioning.

    audio pool sound positioning
  • Added ImportAnimationComponent.

    importanimationcomponent
  • Refactored MIPS constants to nan, pinf, ninf, pi, deg2rad, rad2deg and epsilon, usable anywhere a number is.

    mips processor constants refactor
  • GameAudioSource was refactored to remove coroutines in favour of UniTasks, reducing memory garbage from audio fading and playing.

    gameaudiosource coroutine-to-unitask refactor
  • The stationpedia page and other classes were moved out of the stationpedia namespace.

    stationpedia class location
  • Trader shuttle sounds now send less signal to the reverb channel.

    trader shuttle reverb signal
  • Referencing slot and gas types by constant has changed, e.g. GasType.Oxygen, and scripts may need updating.

    gas and slot type reference syntax
  • Slot variable references beginning with SlotType were made consistent with GasType.

    slot variable reference naming
  • Added comments to help create world log event types.

    world log event comment
  • Devices sharing like components, specifically those with animated import/export slots, were optimized for performance.

    animated import/export slot device performance
  • Added a logging system to track trader events.

    trader event logging
  • Animators on music machines were replaced with animator components.

    music machine animator
  • Added abstract class InteractableAnimComponent.

    interactableanimcomponent base class

UI · 14

  • Refactored IC Editor help for slot variables, variables and functions with threaded search matching the stationpedia UI.

    slot, variable and function help search
  • Improved search handling was added to the variables page in script help.

    variables page search
  • Processor constants are now listed, described and searchable in the script help area.

    processor constants in script help
  • Deprecated instructions and variables now appear struck through in the editor and are omitted from help files.

    deprecated instruction display
  • Enum references were added so all usable constants, variables and enum types appear on the variables page; entering a name or category brings up the item.

    enum references on variables page
  • Structures and devices now show helpful error tooltips when they cannot be built, instead of a misleading requires-support message.

    structure build error tooltip
  • Added Type Name and Type Hash to Reagent Stationpedia entries, copyable by clicking their values.

    reagent stationpedia entry
  • The IC editor shows helpful background information when typed text matches an instruction, to aid correct formatting.

    predictive instruction help
  • Added a connections section to Stationpedia pages listing each device's connection indices.

    stationpedia connections section
  • All available mode types usable in scripts are now listed in the Functions help in the IC editor.

    mode type listing in functions help
  • Added a log panel to the comms motherboard.

    comms motherboard log panel
  • Entering an exact command or variable name and pressing enter on reference screens opens that entry.

    exact-name reference lookup
  • The function help menu gained a search to quickly find instructions.

    function help search
  • Instruction parameters in Script Help are now displayed with a standardized, clearer format.

    script help instruction display

Fix · 44

  • Animations broken on some devices were fixed.

    broken animations on device
  • On a local player, portable lights and road flares no longer cast weird shadows on the first-person player.

    portable light and road flare weird shadow
  • Fixed walls and floor pieces being placeable on the Stairwell's internal faces, which should only allow wall placement on exterior faces.

    stairwell internal face placement
  • Animators were removed from these items.

    animators removed from sound cartridges, research capsules and mkii toolbelt
  • Animators were removed from dynamic liquid tanks.

    animators on dynamic liquid tank
  • Animators added in error to cooked food items were removed.

    erroneous animators on cooked food
  • Fixed vending machine item counts being higher than expected when more than one device is connected to the landing pad.

    vending machine item count
  • Animators added in error to mining backpacks were removed.

    animators on mining backpack
  • Fixed text parsing bugs for device and register referencing and optimized IC script parsing.

    ic editor text parsing
  • Fixed error spam when trying to merge insulated pipe with normal pipe.

    error spam on pipe merge
  • Animators added in error to some canned food were removed.

    erroneous animators on canned food
  • Cached device connection data for cheaper open-end checks, reducing cost when editing large networks.

    device connection registration performance
  • Traders no longer collide with objects and are correctly centered on the landing pad when the world loads.

    trader collision and landing pad centering
  • The config cartridge showing wrong logic types was fixed.

    config cartridge logic type
  • Inventory events were incorrect for some items, which could cause inconsistent inventory-reliant results; now fixed.

    inventory events for some item
  • Fixed contact resolve bars behaving incorrectly while the dish rotates.

    comms motherboard contact resolve bar
  • Tweaked large shuttle size and collider so they no longer collide with walls in a 6x6 hangar.

    large shuttle collision with hangar wall
  • Animators were removed from access cards.

    animators on access card
  • Fixed the gas trader buying used filters.

    gas trader used filter purchase
  • HASH(..) now hashes an entire string up to a quotation mark; quotation marks cannot be hashed, even escaped.

    hash string masking with space
  • Volume text not showing on stationpedia was fixed.

    volume text on stationpedia
  • TraderShuttles no longer permanently remove AudioSources from the audio pool.

    trader shuttle audio pool leak
  • Fixed several null reference exceptions when disconnecting the landing pad.

    comms motherboard null reference on landing pad disconnect
  • Fixed error spam when trying to place a structure where an existing frame blocks it.

    error spam on blocked placement
  • Fixed slots not having correct names in non-English languages.

    slot names in non-english language
  • HASH(..) now executes before the value is handed to the IC instead of on the IC, fixing inconsistent results with spaces.

    hash preprocessor timing
  • Added missing fertiliser slot name to localisation.

    missing fertiliser slot localisation
  • Fixed missing thumbnail on the ship fuel trade item.

    missing ship fuel thumbnail
  • Fixed logic transmitters being added to the list twice, which made cycling stick.

    logic transmitter duplicate listing
  • Belts and other items no longer cause weird shadow artifacts while a portable light is in inventory.

    shadow artifacts with portable light
  • Fixed the logic transmitters list not being cleared between world loads.

    logic transmitter list clearing
  • A debug error print when pooled audio sources are destroyed in the editor was removed.

    debug error print on pooled audio source
  • Script help variables were not sorted; now fixed.

    script help variable sorting
  • The DynamicLightNetworkTest debug prefab was deleted.

    dynamiclightnetworktest debug prefab
  • Pooled audio sources are now protected from deletion, fixing sounds that stopped playing after extended play.

    sounds stopping after extended play
  • Pipe devices that were not animating their lights correctly now animate properly.

    pipe device light animation
  • Hydroponics tray and tray device fertiliser slots now use the same scaling.

    hydroponics fertiliser slot scaling
  • Fixed ship fuel purchase text not mentioning that it is x100 mole.

    ship fuel purchase text
  • Items using the animation component now have their state synced when first built.

    animation state sync on first build
  • Script help search now correctly uses type hashes so text can be matched, with improved color formatting.

    script help search
  • Fixed trader contacts getting stuck on the comms terminal after departing mid-approach or being destroyed.

    trader contact stuck on comms terminal
  • Fixed shuttle not being centered on the pad when loading a world if the pad is evenly sized.

    shuttle pad centering on world load
  • Removed the unused GasTankAir prefab file that was causing errors.

    unused gastankair prefab removal
  • Issues with slot names in non-English languages were fixed.

    slot names in non-english language

Also in this patch1

  • A new pipeline is being developed to let the community contribute to translations.

    community translation pipeline