Skip to content

Releases: MSUTeam/MSU

v1.6.0

17 Sep 15:29
Compare
Choose a tag to compare

New features

GitHubTags as an alternative mod source #416

1.5.1

25 Aug 16:13
Compare
Choose a tag to compare

FIXES

  • fix: Quickhands not working for AI

1.5.0

05 Aug 23:03
Compare
Choose a tag to compare

NEW FEATURES

  • add: functions in ::MSU.Text to colorize values, percentages and multipliers (#401) (documentation)
  • add: ::MSU.Utils.benchmark function to benchmark and compare performance of different functions (#398) (documentation)
  • add: ::MSU.Array.removeValues function (#399) (documentation)
  • add: onCombatStarted function in starting_scenario (#392) (documentation)
  • add: ::MSU.Text.colorDamage function (#403) (documentation)
  • add: getMaxMoraleState() function in actor (vanilla only has setMaxMoraleState but no getter) (#407) (documentation)

FIXES

  • fix: a bug introduced in MSU 1.4.0 causing shields' FatigueOnSkillUse not being properly included in the base cost of their skills (#408)
  • fix: an edge case where the FatigueOnSkillUse for skills added by weapons/shields would not immediately update for the last added skill (#408)
  • fix: add a general solution to our handling of the vanilla case of paying for item action during certain AI behaviors. This fixes the issue of the ai being able to pick up a weapon for free (#406)
  • fix: ::MSU.Injury.ExcludedInjuries.get extending the original injuries array (#404)
  • fix: ::MSU.Injury.ExcludedInjuries.get not including extra injuries of included ones (#404)
  • fix: some msu exceptions in screens bb classes not throwing properly (#400)
  • fix: being unable to start scenario battles from the main menu without first having loaded a saved game (ea731fe)
  • fix: events added via ::MSU.Skills.addEvent not working when a custom function was declared (8ceed69)
  • fix: potential naming collision of msu world brush with other brushes of the same name (942385d)

1.4.2

16 Jul 20:32
Compare
Choose a tag to compare

FIXES

  • fix: serialization metadata used for serialization emulators becoming invalid after making a save game (#396)
  • fix: vanilla bb code toggle not applying to text bolded using JS (#395)

1.4.1

14 Jul 18:49
Compare
Choose a tag to compare

Hotfix build. See release notes of 1.4.0.

  • fix: update checker showing with 0 updates (312bcdb)

1.4.0

14 Jul 18:28
Compare
Choose a tag to compare

NEW FEATURES

  • add: new mb/mi tags to allow modders to use bbcode to bold or italicize text (#379)
  • add: small popup notification and expose functions for other mods to add messages (#381)
  • add: print campaign length and time to log when loading campaign (#385)
  • add: roundToMult function in MSU math utils to round to nearest multiple of given number (#358)
  • add: roundToSig function in MSU math utils to round to given significant figures (#386)
  • add: roundToDec function in MSU math utils to round to given decimal places (#388)
  • add: truncf function in MSU math utils to truncate a given float to given decimal places (#388)

CHANGES

  • change: temporarily print full stack trace during deserialization errors (to check for deserialization log spam introduced in 1.3.0) (#387)
  • change: the damage type ratios for vanilla skills with mixed injuries is now dynamically calculated (#383)
  • change: the damage type container in skills is now an instance of a new MSU class DamageType which inherits from WeightedContainer (#389)
  • fix(vanilla): sallet and barbute using wrong variant in setPlainVariant (#380)

FIXES

  • fix: prevent adding reserved keywords to OrderedMap (#384)
  • fix: being forced to have a non-vanilla ui due to font fixes (#379)
  • fix: weapon skills potentially getting wrong base FatigueCost in certain cases (#394)
  • fix: manipulating a skill's DamageType via hooks potentially causing issues (esp. for vanilla skills) (#389)
  • fix: data class type mismatch during loadDataFromFlagContainer leading to error spam in log (#393)

1.3.0

24 Jun 08:22
cd2efd9
Compare
Choose a tag to compare

MAJOR

New Features

Changes

  • change: migrate to Modern Hooks! (#316)
  • change: port mod settings to use persistent data (#375) (existing settings will be converted)

Vanilla Fixes

  • fix: not calling onLeave on settlement when using port travel (3bb8ca6)
  • fix: onCombatStarted not being called for AI characters (#275). We also remove perk.inspiring_presence from standard_bearer to maintain vanilla behavior which may cause issues with some mods.
  • fix: add missing vanilla fonts and fix font-face declarations (ac5cc6b). This changes some vanilla tooltips because the styles they were trying to apply were not working.

MINOR

New Features

  • add: ::MSU.deepClone function (#360)
  • add: ::MSU.deepEquals function (#367) (#371)
  • add: input blocker setting which blocks input when a JS input or textarea field is focused (#337)
  • add: addMany function to weighted containers (#319)
  • add: uniques function to array utilities (#322)
  • add: ::MSU.Tile.getNeighbors (#265) (1cbcc84, f35f674, c6d3759)
  • add: isDisarmed function to actor (449a4ae)
  • add: ::MSU.Text.Color with reference Red and Green (87cbd1a)
  • add: colorPositive and colorNegative functions to ::MSU.Text (cc62c89)
  • add: Type mutator and accessor functions to skill (dc93557)
  • add: missing tooltips for the keybind add/change menu (3cc1cb0)
  • add: ::MSU.Serialization.serialize and ::MSU.Serialization.deserialize to replace ::MSU.Utils.serialize and ::MSU.Utils.deserialize. The older functions have been deprecated and the new ones handle all data types instead of only array/table. (1176530)

Changes

  • change: deprecate ::MSU.BBClass.Empty as it is not necessary with Modern hooks (b1cade9)
  • change: remove ButtonSetting title and move text inside of button (0a70ab0)
  • change: don't show damage type if damagetype is only None (600078f)
  • change: ::MSU.Log.printStackTrace will no longer print lines with no variables (9635747)

Fixes

  • fix: SettingsPage tostring not returning the string it creates (#363)
  • fix: BooleanSetting still allowing UI interaction when disabled (#334)
  • fix: handling for adding/removing weapontype during hooks (#369) (#376)

Vanilla fixes

  • fix: some road and shore brushes missing (b8dc639)

1.3.0-rc.5

20 Jun 09:05
d5b258f
Compare
Choose a tag to compare
1.3.0-rc.5 Pre-release
Pre-release

Changes

  • change: port mod settings to use persistent data (#375) (existing settings will be converted)

Fixes

  • fix: table and class cases for ::MSU.deepEquals (#371)
  • fix: WeaponType being wiped for weapons without Categories (#376)

1.3.0-rc.4

17 Jun 11:50
93f4826
Compare
Choose a tag to compare
1.3.0-rc.4 Pre-release
Pre-release

Hotfix Release

  • fix: hasFile not working (221ee84)

1.3.0-rc.3

16 Jun 14:15
59ac699
Compare
Choose a tag to compare
1.3.0-rc.3 Pre-release
Pre-release

Hotfix Release

Fixes

  • fix: getFiles not working (65c0b1d)