Releases: cleolibrary/CLEO-Redux
Releases · cleolibrary/CLEO-Redux
0.7.4
0.7.3
- 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 namesspawner
,spawn01
,spawn02
respectively) - fix: internal address error could make a JS script execute a wrong instruction
BREAKING CHANGE
- minimum required version of
sa.json
is0.167
0.7.2
- 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
orHud
) now throws an error:
var hud = new Hud(); // error: Hud is not constructable
- minimum required version of
sa.json
is0.166
0.7.1
- 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
- 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
- add CALL_FUNCTION, CALL_FUNCTION_RETURN, CALL_METHOD, CALL_METHOD_RETURN. See Using Memory for more information.
- update typings to include links to relevant documentation
0.6.1
0.6.0
- add INT_ADD, INT_SUB, INT_MUL, INT_DIV commands
- math operations are now available through the native JavaScript
Math
object where possible (see documentation). - new static methods in
Memory
class. See documentation for more info
BREAKING CHANGES
asFloat
has been removed in favor ofMemory.ToFloat
- class
Object
has been renamed toScriptObject
to avoid conflicts with native JavaScript Object (info). - deprecated command
isKeyPressed
has been deleted. UsePad.isKeyPressed
instead
0.5.3
- add a new built-in JavaScript function
asFloat
to cast an integer value returned by theMemory.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 withint
andfloat
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 thecleo.log
withlogOpcodes=1