@Merzasphor Merzasphor released this Nov 15, 2017 · 3 commits to master since this release

Assets 3

Added

  • New function to get the race of the player and NPCs: xGetRace.
  • New function get the number of elements in an array: xGetArraySize
  • New function to remove all elements in an array: xClearArray

Fixed

  • Calling xSetArrayValue with an invalid array id could crash the game.

@Merzasphor Merzasphor released this Nov 12, 2017 · 14 commits to master since this release

Assets 3

Fixed

  • In some cases, evaluating string format codes could fail (xMessageFix, xStringBuild, xLogMessage, xFileWriteText).

@Merzasphor Merzasphor released this Nov 11, 2017 · 17 commits to master since this release

Assets 3

Added

  • New function to get maximum, current (modified), and unmodified encumbrance:
    xGetEncumbrance.
  • New functions to get maximum magicka and fatigue, to complement xGetMaxHealth:
    xGetMaxMagicka, xGetMaxFatigue

Changed

  • xMessageFix, xStringBuild, xLogMessage, xFileWriteText print a message to the
    log when invalid format codes are encountered. The log message contains the
    invalid codes, the original format string, and the resulting string.
  • xGetMagic now works with NPC and creature references, in addition to the
    player.
  • xGetMaxHealth, xGetSkill, xGetBaseAttribute, xGetAttribute, xModAttribute now
    work with creature references, in addition to the player and NPCs.
  • xGetEnchant now works with ammo.

Fixed

  • Better handling of invalid format codes in xMessageFix, xStringBuild,
    xLogMessage, xFileWriteText. All invalid codes are removed in the resulting
    string, preventing them from propagating to MessageBox via xMessageFix and
    potentially causing a crash.

@Merzasphor Merzasphor released this Oct 6, 2017 · 78 commits to master since this release

Assets 3

New in this version:

  • xNextRef no longer crashes when passed a null reference. Now it returns a null reference and prints a message to the log instead.

@Merzasphor Merzasphor released this Oct 17, 2015 · 82 commits to master since this release

Assets 3

New in this version:

  • xGetEnchant now works with scrolls.
  • Added functions to generate random numbers. (xRandomLong, xRandomFloat)
  • Updated internal interpolate() function to use std::strings instead of fixed
    character arrays. This removes the limits on string length for certain
    functions (xLogMessage, xStringBuild, xFileWriteText). xMessageFix also uses
    interpolate(), but its string length limit is determined by the following
    MessageBox.
  • Fixed a bug where xMessageFix ignored the trailing "%" flag (null
    terminator suppression) when updating button strings.
  • Upgraded boost to 1.59.0.

New Functions:

xRandomFloat
float rand_val xRandomFloat float min float max
Generates a random floating point value from a uniform distribution over [min, max).
Returns 0 if min > max.

xRandomLong
long rand_val xRandomLong long min long max
Generates a random long integer value from a uniform distribution over [min, max].
Returns 0 if min > max.

@Merzasphor Merzasphor released this Sep 3, 2015 · 88 commits to master since this release

Assets 3

New in this version:

  • xSetLevel is now a wrapper for the native SetLevel function.

@Merzasphor Merzasphor released this Aug 29, 2015 · 91 commits to master since this release

Assets 3

New in this version:

Bug fixes:

  • xContentList and xGetName now return ammo and lockpick names.
  • xSetName now sets lockpick names.
  • xSetQuality and xSetWeight now work with lockpicks.
  • xGetBaseSkill now supports npc references.

New functions:

  • xSetLevel
  • xGetSkill
  • xGetBaseAttribute
  • xGetAttribute
  • xGetMaxHealth
  • xModAttribute

@Merzasphor Merzasphor released this Jul 22, 2015 · 108 commits to master since this release

Assets 3

New in this version:

  • Added functions to read/write string GMSTs. (xGetGSString, xSetGSString)

@Merzasphor Merzasphor released this Jul 18, 2015 · 114 commits to master since this release

Assets 3

New in this version:

  • Fixed bug where newly created spells could not be added to an actor. (xCreateSpell)
  • Spell names are now properly truncated to 31 characters and don't use more memory
    than needed (xCreateSpell)
  • Spells are created with a default cost of 1. (xCreateSpell)
  • xStringMatch no longer finds partial pattern matches.
  • Added functions to read and write skill parameters. (xGetSkillInfo, xSetSkillInfo)
  • Progress functions no longer need an explicit player reference. They now
    implicitly access the player's reference as needed. (xGetProgressLevel,
    xSetProgressLevel, xModProgressLevel, xGetProgressSkill, xSetProgressSkill,
    xModProgressSkill)

@Merzasphor Merzasphor released this Jul 8, 2015 · 128 commits to master since this release

Assets 3

New in this version:

  • Fixed crash on exit caused by changing the name of a spell.
  • Spell names are now limited to 31 characters. (xSetSpellInfo)
  • Added spell origin (module, spellmaking) support. (xSetSpellInfo, xGetSpellInfo)
  • Combined skill and attribute ids into a single parameter/return value. (xAddEffect, xSetEffectInfo, xGetEffectInfo)
  • Added functions to read/write base magic effect properties. (xGetBaseEffectInfo, xSetBaseEffectInfo)
  • Added functions to create/delete custom spells. (xCreateSpell, xDeleteSpell)
  • Updated and corrected magic effect id list.