Rusted Warfare - RTS

Strategy

Rusted Warfare - RTS patch notes · Mar 16, 2022

Experiment

v1.15p8 beta released

What's new in v1.15p8 beta released: 186 changes to Rusted Warfare - RTS, released Mar 16, 2022.

Balance · 6

  • A shootDelayMultiplier option is added, defaulting to 1.

    shootdelaymultiplier
  • A nanoReclaimSpeed option is added for builder reclaim speed, defaulting to nanoRepairSpeed*5.1.

    nanoreclaimspeed
  • A shootDamageMultiplier field is added, along with ignoreParentShootDamageMultiplier.

    shootdamagemultiplier
  • Turret delay and recoil are clamped when changing shootDelayMultiplier with setUnitStats.

    turret delay and recoil clamping
  • A nanoUnbuildSpeed option is added for how fast builders reclaim incomplete buildings, defaulting to 1.

    nanounbuildspeed
  • A resourceReclaimMultiplier option is added for builder resource reclaim speed, defaulting to 1.

    resourcereclaimmultiplier

Content · 11

  • Added self.isReversing() function.

    self.isreversing
  • Added displayPrefixInHUD to show text before a resource value, replacing the resource name and removing ': ', useful with appendResourceInHUD.

    displayprefixinhud
  • A new unit, the Heavy AA Ship, has been added, created by uber.

    heavy aa ship unit
  • Added selfRegenRate to setUnitStats.

    selfregenrate
  • Added onlyIfEmpty option to the unitDetect map trigger.

    onlyifempty
  • Added support for modulus in dynamic numbers.

    modulus support
  • Added appendResourceInHUD, which stacks another resource after this one in the HUD using the target resource's colors and icons.

    appendresourceinhud
  • Added displayPostfixInHUD to show text after a resource value.

    displaypostfixinhud
  • getOffsetAbsolute() and getOffsetRelative() now support dynamic parameters.

    getoffsetabsolute and getoffsetrelative dynamic parameter
  • Added showShotDelayBar (default true) to hide the cooldown bar of slow firing turrets.

    showshotdelaybar
  • The substring function now supports dynamic start and end numbers.

    substring dynamic start and end

Controls · 1

  • A warning popup is shown for overlapping key binds on PC.

    overlapping key bind warning

System · 68

  • Added internal storage option on Android so saves, mods and custom maps work without storage permissions.

    internal storage option on android
  • Unit reference functions can be chained, and references self, attachment, attacking, lastDamagedBy, parent, activeWaypointTarget and customTarget1/2 are added.

    unit reference chaining
  • trueGravity is added to affect heightSpeed, giving real acceleration unlike the old gravity.

    truegravity
  • Resource shortcuts such as self.resource.credits and self.resource('credits') are added.

    resource shortcut
  • autoTriggerCheckRate with everyFrame, every4Frames and every8Frames options is added, with lower rates improving performance substantially.

    autotriggercheckrate
  • Large mod loading is faster on all platforms, especially with heavy copyFrom use.

    mod loading speed on all platform
  • Overrides are added per player: AI difficulty can differ per AI player, starting units can differ per player for mod faction selection, and unit color can be overridden per player.

    per-player overrides in multiplayer and advanced skirmish
  • customTarget1 and customTarget2 are added to all units to store unit references, with customTarget1 defaulting to the creating unit.

    customtarget1 and customtarget2 on all unit
  • A switchToTeam: {logicNumber} action is added.

    switchtoteam action
  • A self.teamId() function returns the team id of a unit or market, starting at 0 with -1 for neutral.

    teamid logic function
  • setUnitStats dynamically changes maxHp, hp, maxShield, shield, shieldRegen, maxEnergy, energy, armour, mass, shootDelayMultiplier, moveSpeed, maxAttackRange, shootDamageMultiplier, maxTurnSpeed, fogOfWarSightRange and nanoRange using =, += and -=.

    setunitstats action
  • Multi-line values are supported on any key using triple quotes to start and end.

    multi-line value
  • Importing a changed rwmod file now refreshes data without restarting the game.

    rwmod data refresh on import
  • A readUnitMemory(name, type) logic function reads unit memory, returning a default if the memory is missing or the type is wrong.

    readunitmemory function
  • Added a 'save logs' debug option on Android.

    save logs debug option on android
  • borrowResourcesWhileBuilt is added, applying resource borrowing only once built, useful for houses adding to a unit cap.

    borrowresourceswhilebuilt
  • defineUnitMemory creates custom per-unit storage variables of boolean, float, unit and string types.

    defineunitmemory
  • globalSearchForFirstUnit(withTag, relation) returns the first unit matching the filter.

    globalsearchforfirstunit function
  • A streamingCost is added for queued actions, pausing the queue when resources run out, with flags to pause and unpause from triggers.

    streamingcost for action
  • The desktop-only experimental -teamshaders command-line switch uses shaders for team coloring, reducing memory use and first-application lag for mods with large images.

    team coloring via shader
  • New Android debug option 'saf force on' tests SAF on older Android versions.

    saf force on debug option
  • A resetUnitStats boolean action is added.

    resetunitstats action
  • A self.maxHp() logic function is added.

    maxhp logic function
  • mod-info.txt data is cached to avoid zip extraction for disabled mods, speeding up load times.

    mod-info.txt data caching
  • Logic booleans and numbers support the arithmetic operators + - * /.

    logic boolean/number math
  • New Android debug option 'saf force off' tests direct access; not recommended.

    saf force off debug option
  • A self.priceCredits() function returns the credits a unit costs.

    pricecredits logic function
  • eventSource is added for autoTriggerOnEvent, replacing thisActionTarget in those examples.

    eventsource for autotriggeronevent
  • null/nullUnit is added as a missing unit for comparisons.

    null unit reference
  • A switchPriceWithStreamingCost option sets streamingCost to the price value and clears price, and can be added to all-units.template to switch a mod to streaming resources.

    switchpricewithstreamingcost shortcut
  • createMarker(x,y) returns a temporary marker usable as a move or attack reference, automatically removed when unreferenced.

    createmarker function
  • File reading speed improved.

    file reading speed
  • A @memory shortcut is added to define a single memory variable, working better with templates and copyFrom.

    @memory shortcut
  • Warnings are shown to modders when a starting unit with canNotDirectlyBeAttacked causes instant defeat.

    cannotdirectlybeattacked warning
  • setResourcesWithLogic and addResourcesWithLogic actions are added to set or add resources using logic expressions.

    setresourceswithlogic and addresourceswithlogic
  • takeResources gains options for excluding units without a matching customTarget1 and for saving the first unit to customTarget1 or customTarget2.

    takeresources custom target option
  • fireTurretXAtGround_withTarget is added, taking a unit or marker reference.

    fireturretxatground_withtarget
  • readUnitMemory and eventData with a string type now auto convert non-string data for easier debugging.

    readunitmemory and eventdata auto conversion
  • A memory(name) logic function shortcut reads the current unit's defineUnitMemory variables.

    memory shortcut function
  • distance(x1,y1,x2,y2), distanceSquared, distanceBetween and distanceBetweenSquared logic functions are added, with the squared variants faster.

    distance logic function
  • self.x(), self.y(), self.z() and self.dir() functions return location and direction for units and markers.

    position and direction logic function
  • takeResources_includeReference unit reference option is added.

    takeresources_includereference
  • autoTriggerOnEvent tookDamage supports an optional withTag parameter that reads projectile tags.

    tookdamage tag filter
  • Logic booleans support the comparison operators ==, !=, <, >, >= and <=, allowing forms like 'if self.energy > 100'.

    comparison operators in logic boolean
  • Dynamic logic boolean is overhauled with new dynamic number, unit and string types.

    dynamic logic boolean type
  • Rendering on PC with many small units on screen is over 100% faster, running smoothly with 10,000+ units on-screen in tests.

    rendering performance
  • spawnSource(unitRef) sets spawn location and team, and copyWaypointsFrom(unitRef) copies waypoints to spawned units.

    spawnsource and copywaypointsfrom spawn parameter
  • whenBuilding_temporarilyConvertTo_keepFields keeps listed fields unchanged during temporary conversion.

    whenbuilding_temporarilyconvertto_keepfield
  • setUnitMemory assigns values to unit memory variables, including string concatenation and unit lookups.

    setunitmemory
  • convertTo_keepCurrentFields keeps listed fields unchanged when converting a unit.

    convertto_keepcurrentfield
  • getAsMarker creates a temporary marker at a unit's position, and getOffsetAbsolute and getOffsetRelative return offset markers.

    getasmarker and offset function
  • thisActionTarget is added to reference the action target or event source inside actions, set as a unit, marker or null depending on trigger.

    thisactiontarget reference
  • Added Storage Access Framework support on Android to meet the API level 30 requirement for Google Play.

    storage access framework support on android
  • A Quick Reload button in sandbox reloads only active units to work around slower SAF performance on Android.

    saf sandbox quick reload button
  • addWaypoint_target_fromReference unit reference option is added.

    addwaypoint_target_fromreference
  • pivotOffset is added like dirOffset but also rotates relative keys and child effects, plus pivotOffsetRandom.

    pivotoffset and pivotoffsetrandom
  • Random logic is more random, with a shared random seed per match, and rnd(min,max) is added as a synchronised random float.

    random number generation
  • New Android debug option 'share logs' saves game logs then shows the share popup.

    share logs debug option
  • sendMessageTo, sendMessageWithData and sendMessageWithTags actions are added, read via autoTriggerOnEvent:newMessage and the eventData function.

    message and data sending
  • self.isInMap(), game.mapWidth() and game.mapHeight() functions are added.

    isinmap and map size function
  • Android 9 or less reverts to legacy direct access storage to avoid OS bugs and missing file managers.

    android storage on version 9 or less
  • A streamingCost is added that is paid over time while a unit is queued or built, pausing construction or queue when resources run out.

    streamingcost mechanic
  • Moddable streaming-style resource systems similar to TA and C&C are added.

    moddable resource streaming
  • The modulus operator % is added to ${} template blocks.

    modulus operator in template block
  • New logic functions int, select, debug, str, substring, length, squareRoot, min, max, lowercase, uppercase, cos, sin, direction and directionBetween are added.

    math and string logic function
  • nearestUnit(withinRange, withTag, relation) searches for a unit, with a default range of 500, slow and not recommended in autoTriggers.

    nearestunit search
  • setCustomTarget1, setCustomTarget2 and swapCustomTarget1And2 actions are added, plus dynamic logic access to customTarget1 and customTarget2.

    custom target setter
  • refundAllQueuedItems and removeAllQueuedItemsWithoutRefund boolean actions are added.

    queue refund and removal action

UI · 13

  • displayColorUseInText (default true) shows the resource color in action descriptions.

    resource color in action description
  • Error message for missing thumbnail on Steam workshop upload is clearer.

    workshop thumbnail error message
  • Added appendResourceInHUD_whenThisZero (default true); false lets appended resources like max values hide along with the parent resource.

    appended resource visibility with parent
  • displayTextAppendResource now automatically breaks lines that are too wide for the screen.

    automatic line breaking
  • Error message shown when dynamic logic is used on a static function parameter is clearer.

    error message for dynamic logic on static parameter
  • Text can embed dynamic values such as %{ self.teamName } and %{ parent.resource('gold') }, supported in text, description, setUnitMemory, showMessageToPlayer, showMessageToAllPlayers, showMessageToAllEnemyPlayers, showQuickWarLogToPlayer, showQuickWarLogToAllPlayers and debugMessage.

    dynamic text
  • Unit flags in sandbox debug mode are now human readable.

    sandbox debug unit flag
  • Progress popup shows when importing mods on Android, avoiding UI freeze.

    mod import progress popup on android
  • The minVersion message shows build numbers and the current version.

    minversion message in mod-info.txt
  • Added displayTextAppendResourceWithGap (default false) to add space between unrelated resources placed on the same line.

    resource spacing
  • Android menu improvements were made.

    android menu
  • iconImage shows an image for a resource in the HUD and text, with iconImageUseInText defaulting true, and displayNameHideWhenIconShownInText and displayNameHideWhenIconShownInHUD options to hide names when icons show.

    resource icon display
  • Current attachment is shown in sandbox debug mode.

    sandbox debug attachment display

Fix · 87

  • displayWhenZero now works when the player has no custom resources of any type.

    displaywhenzero with no custom resource
  • Fixed crash when an import fails to write to the target file.

    crash when import fails to write target file
  • Fixed crash when maps have no tiles defined.

    crash on maps with no tile
  • Fixed rwmod mods with extra folders not being deletable or shareable.

    rwmod mods with extra folders deletion/sharing
  • Fixed blank screen with Android OpenGL after context loss.

    blank screen after android context loss
  • unloadUpToXUnitsAndGiveAttackOrder now unloads units at the turret location, pending testing.

    unloaduptoxunitsandgiveattackorder unload location
  • Fixed building placement guide sometimes revealing enemy locations through fog.

    building placement guide revealing fog
  • Many crash fixes were made.

    multiple crash
  • Fixed race condition threading crashes on iOS.

    threading race condition on io
  • Fixed a regression crash with builtFrom_x_isLocked when no message is set.

    regression crash with builtfrom_x_islocked
  • selfRegenRate in setUnitStats is no longer rounded.

    setunitstats selfregenrate rounding
  • gridAlign in spawnUnits is now applied after offsetRandomX/Y instead of before.

    spawnunits gridalign order
  • Fixed a desync bug caused by convertToNeutralIfNotTransporting.

    desync from converttoneutralifnottransporting
  • Empty color fields in mods no longer show a confusing error message.

    empty color field error message
  • Fixed crash when creating a directory over SAF fails.

    crash creating directory over saf
  • Fixed a bug with setCustomTarget2.

    setcustomtarget2 bug
  • Fixed issues restoring game rules such as no nuke and income multiplier from save files; old saves load in advanced skirmish as a workaround.

    restoring game rules from save file
  • Fixed flickering between unit types with whenBuilding_temporarilyConvertTo.

    whenbuilding_temporarilyconvertto flickering
  • Fixed experimental teamshaders for some PC devices.

    experimental teamshaders on pc
  • Fixed the changeCredits map trigger showing incorrect add/set warnings.

    changecredits warning
  • Aggressive neutral team no longer captures neutral.

    neutral team capturing neutral
  • String variables can now be set and compared to null.

    string variable null handling
  • Guard order ends if the target is an enemy that becomes stealthed.

    guard order ending on stealthed enemy
  • Fixed threading crashes when reloading mod data on Android.

    threading crashes reloading mod data on android
  • add/setResourcesWithLogic no longer lowercases all input.

    add/setresourceswithlogic input lowercasing
  • Cooldowns now show on actions from showAllActionsFrom.

    cooldowns on showallactionsfrom action
  • Fixed crash on game start in some cases when replay file creation fails, normally from SAF.

    crash on game start when replay creation fail
  • Fixed appendResourceInHUD icons showing too small.

    appendresourceinhud icon size
  • Fixed crash when importing files fail to send file data on Android.

    crash when file send fails on android import
  • Fixed teamTagDetect map trigger throwing a missing team error.

    teamtagdetect missing team error
  • Fixed external custom maps not streaming to other players in multiplayer on Android with SAF.

    external custom maps multiplayer streaming on android
  • Ships unloaded underwater no longer stay underwater.

    ships unloaded underwater staying underwater
  • These triggers no longer fire when an item fails to add or remove.

    queueitemadded and queueitemcancelled triggering on failure
  • builtFrom_x_isLocked now works on old style units like the land factory.

    builtfrom_x_islocked on old style unit
  • Fixed beta bug where save files could not be deleted or renamed on Android in 1.15.

    save file deletion and renaming on android
  • Improved minVersion mod checks, fixing messages and edge cases.

    minversion mod check
  • Fixed crash when importing files still downloading in browser.

    crash importing files downloading in browser
  • Fixed a rare resume crash on Android.

    rare resume crash on android
  • Fixed custom projectile imageShadow not showing on Android.

    custom projectile imageshadow on android
  • Fixed crash rendering too many circles on iOS.

    circle rendering crash on io
  • Trigger Debug no longer shows on all sandbox tabs.

    trigger debug showing on all sandbox tab
  • globalMessage in map scripts now supports globalMessage_LANG.

    globalmessage localization
  • displayPos now works with global resources, defaulting to 0.

    displaypos with global resource
  • Fixed v1.15p6 regression that stopped live reloading of textures with the texture atlas.

    live texture reloading with texture atla
  • Attempted fixes for audio glitches when many sounds play on some Android devices.

    audio glitches with many sounds on android
  • Fixed rendering of the unit help screen on PC.

    unit help screen rendering
  • Changes to fogOfWarSightRange unit stats now refresh fog.

    fog refresh on sight range change
  • Fixed some properties of the modular spider unit.

    modular spider unit property
  • Mac OS __MACOSX temp folders are skipped in mod data.

    __macosx temp folders in mod data
  • Fixed dropdown map not selecting the right map in battleroom or advanced skirmish on Android in 1.15.

    dropdown map selection on android
  • Fixed sandbox replay mode not using modded units.

    sandbox replay mode modded unit
  • Fixed crash starting game from a save file that fails to be read.

    crash starting from unreadable save file
  • Fixed delay when spawning many building type units on map load.

    delay spawning building units on map load
  • Fixed attacking unit reference missing in 1.15p1.

    attacking unit reference missing
  • Fixed a logic boolean type error on first load.

    logic boolean type error on first load
  • Fixed UI scaling regression on PC from the last 1.15 beta.

    ui scaling regression on pc
  • Fixed horizontal scrolling of the multiplayer game list on Android.

    multiplayer game list horizontal scrolling on android
  • Fixed deleting and renaming of saves and replays on Android beta.

    deleting and renaming saves and replays on android
  • Fixed UI crash with fireTurretXAtGround limits on converted or reloaded units.

    crash with fireturretxatground limits on converted unit
  • Fixed reclaiming with the new streaming system allowing resources to be gained.

    reclaiming resource gain with streaming
  • Fixed v1.15p6 regression where the texture atlas caused rendering artifacts.

    texture atlas rendering artifacts regression
  • Fixed crash when used with attack ground UI and different numbers of turrets.

    crash with showactionswithmixedselectionifotherunitshavetag
  • Fixed projectiles passing through units when moving down at high speed.

    projectiles passing through units at high speed
  • Stealthed units can now be seen by spectators and in replays.

    stealthed unit visibility to spectators and replay
  • An error is now raised if keys in sendMessageWithData contain spaces.

    sendmessagewithdata key space
  • DamagingBorder no longer hurts transported units.

    damagingborder hurting transported unit
  • Fixed sandbox editor map export on Android when using SAF.

    sandbox map export on android with saf
  • Imported changed rwmod files now replace existing mods instead of duplicating them under SAF.

    saf rwmod import duplicating mod
  • Fixed addWaypoint_target_randomUnit missing some targets.

    addwaypoint_target_randomunit missing target
  • Fixed DPI scaling issue on the 64 bit Windows version.

    dpi scaling on 64 bit window version
  • Fixed newlines in ${} static blocks.

    newlines in static block
  • Fixed battleroom on PC when using UI scaling.

    battleroom with ui scaling on pc
  • Debug language overrides now affect strings like map triggers.

    debug language overrides for map trigger
  • Fixed mid-path pause when high speed units take a long path.

    mid-path pause for high speed unit
  • Fixed crash when invalid map thumbnails or images load in the GUI on PC.

    crash on invalid map thumbnails on pc
  • Fixed crash in the experimental OpenGL renderer on Android.

    experimental opengl renderer crash on android
  • Fixed Android screen rotation in OpenGL mode sometimes cutting off half the screen.

    android screen rotation half-screen cutoff
  • Fixed crash when loading a save file.

    crash loading save file
  • Fixed crash when running out of memory creating some bitmaps.

    crash creating bitmaps out of memory
  • Temporary tags are no longer reset on sandbox unit reload.

    temporary tags reset on sandbox unit reload
  • Fixed crash when music fails to list an internal folder.

    crash loading music internal folder
  • Fixed teamColoringMode when the same image is used with different modes.

    teamcoloringmode with same image
  • nearestUnit logic boolean now finds neutral units.

    nearestunit neutral units detection
  • Fixed crash when maps have invalid float properties.

    crash on invalid map float property
  • Crash fixes for Android experimental OpenGL mode.

    crashes in android experimental opengl mode
  • sendMessageData now has the right scope to access things like memory.

    sendmessagedata scope
  • displayWhenZero now shows for resources that haven't been used yet.

    displaywhenzero for unused resource