Skip to content

0.9.1

Compare
Choose a tag to compare
@x87 x87 released this 22 Feb 04:11
· 162 commits to master since this release
  • add SDK for developing custom commands in C++ and Rust
  • add support for fallible commands in JS (also known as IF and SET commands in SCM scripts), they return undefined when failing, e.g. DynamicLibrary.Load or Char.IsInAnySearchlight)
  • two new plugins adding commands to work with DLL (dylib.cleo) and INI files (IniFiles.cleo) in all supported games
  • add __dirname variable in JS scripts that resolves to the current file's directory
  • add a new function native that calls a scripting command by name (similar to op):
/** Executes a named command with the given arguments */
declare function native<T>(name: string, ...args: any[]): T;
const lib = native("LOAD_DYNAMIC_LIBRARY", "test.dll");
  • fix a rounding issue with floating-point numbers in GTA 3
  • fix an issue with imports not working in JS when the CLEO folder is located in the AppData directory
  • fix an issue with the showTextBox command in San Andreas displaying some garbage text
  • fix a conversion error when the showTextBox command is given an integer argument
  • fix an issue with scripts permissions not being validated for JS scripts
  • fix an issue when the object returned as a result of some commands (Object.GrabEntityOnRope(), Heli.GrabEntityOnWinch() and like) did not have relevant fields wrapped in a class instance

INSTALLATION STEPS

https://github.com/cleolibrary/CLEO-Redux/#installation

BREAKING CHANGES

Game File Minimum Required Version
GTA III, re3 gta3.json 0.208
GTA VC, reVC vc.json 0.210
GTA San Andreas (Classic) 1.0 sa.json 0.210
GTA III: The Definitive Edition gta3_unreal.json 0.210
Vice City: The Definitive Edition vc_unreal.json 0.212
San Andreas: The Definitive Edition sa_unreal.json 0.216