github cleolibrary/CLEO-Redux 1.5.0

4 hours ago

FEATURES

  • add support for GTA The Trilogy - The Definitive Edition v1.0.112.6680 (Epic Games Store)
  • add FXT support in Vice City: The Definitive Edition (only for the latest release)
  • add support for boot scripts (synchronous one-shot scripts that run on the host startup)
    • they use the .boot.mjs or .boot.mts file extension
    • they don't have access to wait() or asyncWait() commands
  • add support for declaring script metadata and permissions in a mod.json manifest file located in the script directory (alternative to file name suffixes)
  • let configuring a directory for the cleo_redux.log via the LogDirectory option in the cleo.ini (e.g. LogDirectory=CLEO)
  • add Memory.GetImageBase() to retrieve the address of the main module. Can be used to calculate absolute addresses in games with ASLR (e.g. The Trilogy)
  • unload manually spawned scripts (CLEO.runScript) if the main script is reloaded

FIXES

  • fix some Memory class methods not working (ReadU64, WriteU64, Fn.X64)
  • fix command MISSION_HAS_FINISHED not working after ONMISSION = false
  • update default generated tsconfig.json to use options "moduleResolution": "bundler" and "module": "esnext" so TypeScript won't complain about file imports without extensions (e.g. import * as enums from ".config/enums");
  • when parsing class metadata in a JSON file, CLEO Redux correctly remaps "extends": "Object" to "extends": "ScriptObject" (needed for the CutsceneObject class in GTA III / VC)
  • string results returned by CLEO Library commands in GTA III, Vice City, and San Andreas are no longer limited to 16 characters and can now be up to 1024 characters long:
log(Text.GetLabelString("INSMCP")); // Output: Load failed!~n~~n~The current Mission Pack is not available. Please recheck that the current Mission Pack is installed correctly or start a new game.

SDK AND PLUGINS

  • add FxtLoader to import FXT files in scripts
/*
 my.fxt:
 Key1 Text1
 Key2 Text2
*/

import myFxt from "./cleo_text/my.fxt";

log(myFxt.Key1); // Output: Text1
log(myFxt.Key2); // Output: Text2

BREAKING CHANGES

Portable version

Archive with CLEO Redux and essential plugins only. To install, unzip the archive to the folder with the game executable.

ASI Loader and some third-party plugins are not included. Download and install them separately, or use the CLEO Redux installer.

Don't miss a new CLEO-Redux release

NewReleases is sending notifications on new releases.