Skip to content

Releases: cleolibrary/CLEO-Redux

0.7.3

09 Nov 01:30
@x87 x87
Compare
Choose a tag to compare
  • ensure custom scripts have unique in-game names when the first 7 characters of their file names are the same (e.g. scripts in files spawner_a.cs, spawner_b.cs, spawner_c.cs would now have names spawner, spawn01, spawn02 respectively)
  • fix: internal address error could make a JS script execute a wrong instruction

BREAKING CHANGE

  • minimum required version of sa.json is 0.167

0.7.2

04 Nov 19:25
@x87 x87
Compare
Choose a tag to compare
  • add ONMISSION variable that can be used to manipulate the global player's on a mission status
if (!ONMISSION) {
    showTextBox("Not on a mission. Setting ONMISSION to true");
    ONMISSION = true;
}

BREAKING CHANGES

  • using new operator on a static object (for which Sanny Builder Library does not define a constructor, e.g. Audio or Hud) now throws an error:
    var hud = new Hud(); // error: Hud is not constructable
  • minimum required version of sa.json is 0.166

0.7.1

02 Nov 21:36
@x87 x87
Compare
Choose a tag to compare
  • new static function Memory.Translate to get memory address of a function or variable by its name (see documentation)
  • new function exit to terminate the script early

See the example of using those new functions.

0.7.0

30 Oct 01:57
@x87 x87
Compare
Choose a tag to compare
  • CLEO Redux can now work as an extension to CLEO Library (see Relation to CLEO Library)
  • CLEO Redux is now able to execute JavaScript in GTA San Andreas with CLEO 4.4 installed
  • new config parameter AllowCs to control *.cs scripts
  • fix: ini config was ignored if there were missing parameters in the cleo.ini

BREAKING CHANGE

CLEO Redux' primary distribution file has been renamed to cleo_redux.asi. To avoid conflicts with previously installed versions of CLEO Redux manually delete old cleo.asi file from the game directory.

0.6.2

11 Oct 19:26
@x87 x87
Compare
Choose a tag to compare

0.6.1

08 Oct 18:56
@x87 x87
Compare
Choose a tag to compare
  • fix crash in Memory class methods

0.6.0

08 Oct 18:13
@x87 x87
Compare
Choose a tag to compare

BREAKING CHANGES

  • asFloat has been removed in favor of Memory.ToFloat
  • class Object has been renamed to ScriptObject to avoid conflicts with native JavaScript Object (info).
  • deprecated command isKeyPressed has been deleted. Use Pad.isKeyPressed instead

0.5.3

02 Oct 20:23
@x87 x87
Compare
Choose a tag to compare
  • add a new built-in JavaScript function asFloat to cast an integer value returned by the Memory.Read command to a floating point number (IEEE 754)
var gravity = asFloat(Memory.Read(gravityAddress, 4, false)); // the gravity var now holds a floating point number
  • auto-generated *.d.ts files now make a distinction between integer and floating-point parameters, VS Code autocomplete now displays them with int and float types respectively
  • auto-generated *.d.ts files now have /// <reference no-default-lib="true"/> so it is no longer needed to add this line in a script file to exclude unsupported JS commands from autocomplete
  • fix: op incorrectly returned any single value as integer regardless of the type information
  • fix: showTextBox command was missing in the cleo.log with logOpcodes=1

0.5.2

30 Sep 12:31
@x87 x87
Compare
Choose a tag to compare
  • CLEO now checks for updates and notifies in the main menu (can be disabled with CheckUpdates=0)
  • command isKeyPressed has been deprecated, use Pad.isKeyPressed instead
  • fix: deadlock causing timeouts in JS scripts

0.5.1

28 Sep 02:50
@x87 x87
Compare
Choose a tag to compare
  • add support for Boolean, null and undefined as arguments of the op command
  • allow arbitrary size in 0A8C WRITE_MEMORY to fill a continuous block of memory with a single byte value
  • fix: after reloading the game JS scripts could have been duplicated