Skip to content

0.9.0

Compare
Choose a tag to compare
@x87 x87 released this 23 Jan 20:00
· 173 commits to master since this release
  • add support for JS scripts in GTA III: The Definitive Edition (v1.0.0.14718) and Vice City: The Definitive Edition (v1.0.0.14718) (some limitations apply, see Feature support for the details)
  • add support for modern ES6+ syntax (arrow functions, const/let, classes, more methods in the standard library, etc), see Mines Drop script as an example
  • add support for importing other scripts and JSON files

For 64-bit games (The Trilogy):

  • you can now call game functions with floating-point arguments - thanks to @ThirteenAG.
  • new command Memory.CallFunctionReturnFloat that is similar to Memory.CallFunctionReturn but is used for functions that return a floating-point number
  let x = Memory.FromFloat(123.456);
  let y = Memory.FromFloat(456.555);
  let groundZ = Memory.CallFunctionReturnFloat(0x100cc50, true, 2, x, y);
  • new convenience method Memory.Fn.X64Float that can be used for functions that return a floating-point number:
  let CWorldFindGroundZForCoord = Memory.Fn.X64Float(0x100cc50, true);
  let x = Memory.FromFloat(123.456);
  let y = Memory.FromFloat(456.555);
  let groundZ = CWorldFindGroundZForCoord(x, y);