-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Download
Features
- spread operator
...
float pos[3]
float rot[3]
foo(...pos)
...pos = get_char_coordinates $scplayer
set_char_coordinates $scplayer ...pos
...pos, ...rot = bar()
function foo(x: float, y: float, z: float)
end
function bar: float, float, float, float, float, float
end
function SetCamPos(pos: float[3], offset: float[3])
Camera.SetFixedPosition(...pos, ...offset)
end
SetCamPos(100.0, 200.0, 44.1, 0.0, 1.0, 0.0)
- support for variadic functions (functions where last argument accumulates a variable number of values as an array)
function loadModels(...models: int[16]) // allow up to 16 values
int count = get_cleo_arg_count // get actual number of arguments, this is CLEO5 opcode
count--
int i
for i = 0 to count
request_model models[i]
end
load_all_models_now
end
// call with different number of arguments
loadModels()
loadModels(#ADMIRAL)
loadModels(#AMBULAN, #ALPHA)
- Break down Disassembler and Compiler options #167
- new selector to choose syntax of disassembled instructions: with opcodes, commands, or classes (replacement for Write Opcodes option)
- preview selected theme while in Options
- Model Id converter should use IDE configuration from edit modes #119
- Open File dialog uses the directory of the active file Feature: file dialog work dir #377
- new edit mode: LCS Mobile version 4.2.0 data#35
- new color theme Neon Dark by Vital New theme: Neon Dark themes#18
Fixes
- investigate performance issues with Show Opcode info #375
- script gets decompiled twice on open #372
- parser fails on variable initialized to a model name #371
- error compiling opcode 0417 (start_mission) with a user-defined const #369
- disassembler emits high-precision floats for lossless compilation
- wrong tab selected on unsaved file prompt
- some model names display twice #268
- the compiler should not add ped or car models to DEFINE OBJECT list #233
- wrong label in disassembled CLEO script #381
Breaking Changes
The compiler no longer scans the game directory to resolve the model id. Instead, it relies completely on the IDE configuration of the current mode #119. Existing modes have been updated to include the line (example for GTA SA):
<ide base="@game:\">@game:\data\gta.dat</ide>
This is the main file referencing other IDE files. It is called gta3.dat in GTA III, gta_vc.dat in GTA VC, and gta.dat in GTA SA. If you use a custom mode, update it accordingly to load that file.
Without this line you may experience compiler errors in CLEO scripts trying to compile a line with object model name.
Reactions are currently unavailable