Skip to content

Commit

Permalink
1.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 committed Aug 13, 2023
1 parent 435eb8f commit 001ae0e
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 21 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
### 1.2.0 - June 18, 2023
### 1.2.1 - August 13, 2023

- fix an issue when importing the same file from different folders would result in duplicate code
- fix a crash in `Memory.Fn` [methods](https://re.cleo.li/docs/en/using-memory.html#convenience-methods-with-fn-object) returning 8-bit or 16-bit results
- fix a bug with [corona rendering](https://library.sannybuilder.com/#/vc/default/024F) when only one corona was visible [#98](https://github.com/cleolibrary/CLEO-Redux/issues/98)

**SDK AND PLUGINS**

- Dylib 2.0: the plugin rewritten to provide a behavior identical to CLEO4's [LOAD_DYNAMIC_LIBRARY](https://library.sannybuilder.com/#/sa/CLEO/0AA2?p=1&v=1). Now a returned value is the loaded module's address in memory.

**BREAKING CHANGES**

- bumped minimum required versions of [command definitions](https://re.cleo.li/docs/en/definitions.html)

### 1.2.0 - June 19, 2023

- add support for GTA The Trilogy - The Definitive Edition v1.0.17.39540 (Epic Games Store)
- fix an issue when constructor commands for derived classes returned incorrect values (`Heli.Create`, `Boat.Create`, etc.)
Expand Down
12 changes: 6 additions & 6 deletions docs/en/definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ At start CLEO validates that a definition file is present and correct and if not

| Game | File | Minimum Required Version |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------ |
| GTA III, re3 | [gta3.json](https://github.com/sannybuilder/library/blob/master/gta3/gta3.json) | `0.265` |
| GTA VC, reVC | [vc.json](https://github.com/sannybuilder/library/blob/master/vc/vc.json) | `0.271` |
| GTA San Andreas (Classic) 1.0 | [sa.json](https://github.com/sannybuilder/library/blob/master/sa/sa.json) | `0.316` |
| GTA III: The Definitive Edition | [gta3_unreal.json](https://github.com/sannybuilder/library/blob/master/gta3_unreal/gta3_unreal.json) | `0.227` |
| Vice City: The Definitive Edition | [vc_unreal.json](https://github.com/sannybuilder/library/blob/master/vc_unreal/vc_unreal.json) | `0.233` |
| San Andreas: The Definitive Edition | [sa_unreal.json](https://github.com/sannybuilder/library/blob/master/sa_unreal/sa_unreal.json) | `0.262` |
| GTA III, re3 | [gta3.json](https://github.com/sannybuilder/library/blob/master/gta3/gta3.json) | `0.267` |
| GTA VC, reVC | [vc.json](https://github.com/sannybuilder/library/blob/master/vc/vc.json) | `0.273` |
| GTA San Andreas (Classic) 1.0 | [sa.json](https://github.com/sannybuilder/library/blob/master/sa/sa.json) | `0.318` |
| GTA III: The Definitive Edition | [gta3_unreal.json](https://github.com/sannybuilder/library/blob/master/gta3_unreal/gta3_unreal.json) | `0.228` |
| Vice City: The Definitive Edition | [vc_unreal.json](https://github.com/sannybuilder/library/blob/master/vc_unreal/vc_unreal.json) | `0.234` |
| San Andreas: The Definitive Edition | [sa_unreal.json](https://github.com/sannybuilder/library/blob/master/sa_unreal/sa_unreal.json) | `0.263` |
| GTA IV | [gta_iv.json](https://github.com/sannybuilder/library/blob/master/gta_iv/gta_iv.json) | `0.78` |
| Unknown (32-bit) | [unknown_x86.json](https://github.com/sannybuilder/library/blob/master/unknown_x86/unknown_x86.json) | `0.225` |
| Unknown (64-bit) | [unknown_x64.json](https://github.com/sannybuilder/library/blob/master/unknown_x64/unknown_x64.json) | `0.228` |
Expand Down
12 changes: 6 additions & 6 deletions docs/en/using-memory-64.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ where `0xEFFB30` is the function offset relative to IMAGE BASE (think of it a ra

The `ib` parameter in `Memory.CallFunction` has the same meaning as in memory read/write commands. When set to `true` CLEO adds the current known address of the image base to the value provided as the first argument to calculate the absolute memory address of the function. When set to `false` no changes to the first argument are made.

To pass floating-point values to the function, convert the value to integer using `Memory.FromFloat`:
> To pass floating-point values to the function, convert the value to integer using `Memory.FromFloat`:
>
> ```js
> Memory.CallFunction(0x1234567, true, 1, Memory.FromFloat(123.456));
> ```
```js
Memory.CallFunction(0x1234567, true, 1, Memory.FromFloat(123.456));
```

The returned value of the function called with `Memory.CallFunction` is ignored. To read the result use `Memory.CallFunctionReturn` that has the same parameters. Use `Memory.CallFunctionReturnFloat` to call a function that returns a floating-point value.
A returned value of the function called with `Memory.CallFunction` is ignored. To read the result use `Memory.CallFunctionReturn` that has the same parameters. Use `Memory.CallFunctionReturnFloat` to call a function that returns a floating-point value.
CLEO Redux supports calling foreign functions with up to 16 parameters.
Expand Down
9 changes: 4 additions & 5 deletions docs/en/using-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,10 @@ The second parameter (`0x7001234`) is the object address. The `pop` parameter is

To call the method and get the result out of it, use `Memory.CallMethodReturn`.

Note that all arguments are read as 32-bit signed integers. If you need to provide an argument of the float type, use `Memory.FromFloat`, e.g.

```js
Memory.CallFunction(0x1234567, 1, 1, Memory.FromFloat(123.456));
```
> Input arguments are treated as 32-bit signed integers. If you need to provide a floating-point number, use `Memory.FromFloat`, e.g.
> ```js
> Memory.CallFunction(0x1234567, 1, 1, Memory.FromFloat(123.456));
> ```
CLEO Redux supports calling foreign functions with up to 16 parameters.
Expand Down
4 changes: 2 additions & 2 deletions installer/cleo_redux.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define AppName "CLEO Redux"
#define AppVersion "1.2.0"
#define AppVersion "1.2.1"
#define AppPublisher "Seemann"
#define AppURL "https://re.cleo.li"
#define SourceDir "..\"
Expand Down Expand Up @@ -56,7 +56,7 @@ Name: "program"; Description: "CLEO Redux"; Types: full; Flags: fixed
Name: "program/commands"; Description: "API files (unselect if you prefer to download the latest API files during the first game run)"; Types: full;
Name: "plugins"; Description: "Extensions"; Types: full
Name: "plugins/ini"; Description: "IniFiles 1.2"; Types: full
Name: "plugins/dylib"; Description: "Dylib 1.1"; Types: full
Name: "plugins/dylib"; Description: "Dylib 2.0"; Types: full
Name: "plugins/imgui"; Description: "ImGuiRedux (by Grinch_)"; Types: full
Name: "plugins/imgui/d3d8to9"; Description: "d3d8to9 Wrapper - for games using DirectX 8"; Types: full
Name: "plugins/imgui/SilentPatch"; Description: "SilentPatch - needed for the mouse to work properly in classic GTA"; Types: full
Expand Down
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h1 class="font-weight-bold d-flex justify-content-center">
data-translate="download"
>Download</a
>
<small class="pt-1 text-muted">v1.2.0 | June 19, 2023</small>
<small class="pt-1 text-muted">v1.2.1 | August 13, 2023</small>
</div>
</div>
</div>
Expand Down

0 comments on commit 001ae0e

Please sign in to comment.