Repository navigation
Closed
Description
Breaking Changes
Some old code may not compile in this version. Read through the notes down below.
Download
Features
- command names defined in SBL JSON files are now valid keywords (available in GTA III, VC, SA modes)
- HEX..END improvements #230
- new
byte(n)syntax - $include adds the file as a binary blob
- documentation
- new
- inline const and var declarations
- new operators
- Constants are not Highlighted Recursively #134
- Define types for special variables TimerA and TimerB #220
- VAR section of SB Footer should only include USED variable names #244
-
{$USE}directive accepts multiple comma-separated extensions - {$INCLUDE_ONCE CVehicle.h} #196
- documentation
- Make integration of custom opcodes easier #74
- the compiler now throws an error on a duplicate constant declaration
- document new error code 0090
- third-party updates
- CLEO 4.4.4 https://github.com/cleolibrary/CLEO4
- CLEO+ 1.1.5 https://github.com/JuniorDjjr/CLEOPlus
- help 1.18 https://github.com/MatiDragon-YT/help-system/releases/tag/1.18
- translation updates update for 3.9.0 translations#22
- opcode updates 3.9.0 data#27
Bug Fixes
- Can't use hexadecimal numbers in a for loop #212
- Alloc function does not work as expected #223
- Hint flickers when mouse is hovering over the bottom panel #152
- Auto complete ignores name text case #219
- bug in the constants #190
- wrong compilation when maximum parameters are given to a variadic command #240
- typed variable declaration allows malformed syntax #245
- typed variable declaration should not stomp on timer variables #246
- document new error code 0091
- while true should require the closing 'end' #247
- +0x - Plus Symbol Used In Hexadecimal Constant core#12
- language service should ignore multi-line comments core#14
- update list of objects after opening a new file with another edit mode (the compiler should not add ped or car models to DEFINE OBJECT list #233)
Activity
x87 commentedon Jul 4, 2023
Internal Changes
modes.xmlinto individual files. Sanny scans\datadirectory for folders withmode.xmland treats them as mode configs.SASCM.INIinto multiple INI files. Adding extra opcodes is as easy as just dropping a file namedSASCM.*.iniinto thedata\safolderx87 commentedon Jul 10, 2023
Breaking Changes
i.e. the following code is no longer valid if MODEL1 and MODEL100 are unknown names.
Previously the compiler would try to add those modes to the DEFINE OBJECT list if it was an SCM file (not CLEO) and replaced model names with negative indexes in that list, e.g. -1 or -2. This behavior most likely deviates from the script goal and leads to many confusions.
Solution
To compile this code, the compiler should have access to the game's data folder, meaning one should set the game directory in the options. Then, it scans the standard IDE files (see above) and finds an id for the given models (MODEL1 and MODEL100). If such names are not found, another error is thrown.
Alternative path is to replace model names in the code with their respective IDs (numbers).
Solution
Use unique name for each constant.
:invar v int). now parser obeys rules formalized here.Solution
Update the code to match the spec.
x87 commentedon Jul 12, 2023
Release Notes
beta.2
-xcommand-line argument is now parameter-less to reflect the fact there is no modes.xml anymorebeta.1
beta.0
alpha.2
iforwhilekeywordsalpha.1
0@ = $PLAYER_CHAR.CurrentCar())alpha.0
Now it is possible to write:
there should be no whitespace between a byte and a number of repetitions enclosed in braces. You can use this syntax many times per block:
will be unwrapped to
N can be a constant defined earlier in the code:
will read the
file.binfrom the disk as a binary file, then insert each byte of it into hex..end, and compile. Common {$INCLUDE} rules apply https://docs.sannybuilder.com/coding/directives#usdincludeI.e. now this code
will be compiled without need for opcodes. See #97 for the complete reference.
which is similar to SA SCR mode, but does not require any keywords be explicitly declared in keywords.txt.
To support an enormous amount of new keywords in IDE the autocomplete list was limited to 200 names.