Repository navigation
Closed
Description
Download
Features
- debugger for SCM scripts
- implement Function Syntax RFC #263 (
function..end)- function annotations with
/// - language service support (local vars highlighting, autocomplete, showing param descriptions)
- string arguments
- documentation
- function annotations with
- initial support for Modules RFC #264
- compiler support for Custom CLEO Header
- import and export commands
- disassembler support
- documentation
- First-class support for the Sanny Builder Library files #170
- new SBL modes for GTA III, VC and SA See the difference between legacy and SBL modes
- delete SA SCR mode (use SA SBL mode instead)
- Delete extensions.txt and use SBL JSON #271
- use of CLEO extension (via
{$USE CLEO}or{$CLEO}) also enables all standard CLEO extensions (bitwise, ini, file, debug, memory) - don't use keywords.txt when disassembling a file with SBL data available #305
- docs
- language features and improvements
- Binary Number support #31
- Support for switch statement
- Improve string ergonomics #255
- allow keywords in expressions #243
- Variable declaration and type conversion not working in single line #320
- Argument order important for equality operators #321
- support enum syntax in keywords/opcode commands (e.g.
clear_mission_audio MissionAudioSlot.Slot1) - allow custom variable declaration in SCM missions and external scripts (#284)
- document new hotkeys and error codes
- new tabs Support for tabs scroll 📑 #121
- can reorder and pin tabs
- context menu with various closing options (Close Others, Close to the right)
- Open in Windows Explorer
- themes updates for 4.0 themes#14
- Keep last active tab when Sanny starts
- increase max number of tabs restored at startup from
8to24
- New hotkey Ctrl+Shift+T to reopen Last closed file
- Make language service aware of the new
$INCLUDE_ONCEdirective added in 3.9.0 - remove the ability to put the mouse cursor past the end of line (Potential improvements and features #253)
Bug Fixes
- Compiler now correctly reports Max Main size for SA Mobile (270,000 instead of 200,000)
- When decompiling a file that was previously open in Sanny with different edit mode, current edit mode should not switch
- fix cast assignment operator (
=#) not working with arrays - Compiler incorrectly treats string literals with some characters #66
- ⚠ SB cannot decompile and compile a main.scm (unmodified) #186 (new Strict IF validation option, disabled by default)
- array name could be a constant #250
- Normalize VAR section before outputting ALLOC in decompiled file #272
- disassembler should only ALLOC used global variables #286
- Compiler should throw if too many parameters are given #150
- invalid result when indexing adma variable #278
- crash during SBL update #288
- inconsistent result of var declarations #289
- VCS main.scm does not compile due to a syntax error in callable functions 99RED...()
- see the Breaking changes section. main.scm needs to be disassembled again, or all
99REDhave to replaced with_99RED
- see the Breaking changes section. main.scm needs to be disassembled again, or all
Third-party
-
update CLEO library to CLEO5removed from archive due to false virus reports - update CLEO+ plugin to v1.2.0
- update SASCM.INI
- new theme NeoDark by JaggerJam and Johnnie
- update some existing themes by @VitalRus95
- update Portuguese translation by @johnnie-br
- update Chinese translation by @BengbuGuards
Breaking Changes
- Alloc command allowed ADMA type as a noop command: e.g.
Alloc(&2, 4). Now this is a compile error. - Typed array elements allowed hexadecimal notation for
size: e.g.array(index,0xff)(float array of size 0xf). Now this is a compile error. - String literals in opcode argument now support escape sequences similar to strings inside hex..end. This behavior can be disabled with
SB3_COMPATdebug option - second argument in Alloc command is now required (previously was optional and 0 by default). This behavior can be disabled with
SB3_COMPATdebug option. - hardcoded indexes in opcodes 05B6, 0A66, 0A67, 0A68, 0A6E are no longer supported. This behavior can be disabled with
SB3_COMPATdebug option - constant can not be used in a new variable name (inconsistent result of var declarations #289)
const a = $100
int a = 0
is now a compile error (0090) in 4.0.0 beta.0
- variable and constant names can not match class names (
int carorconst car) is now a compile error) - callable labels starting with a number are now a syntax error. Previously you can do the following:
:1
1() // gosub @1
this won't compile now. It is still possible to reference such label using @ prefix (e.g. jump @1 or gosub @1)
Also disassembler checks script names (opcode 03A4) and if the name starts with a number, it prefixes all labels with an underscore (_). It should solve the compilation issue in the original script of Vice City Stories that has a script named '99RED'. All labels of this script now start with _99RED
Activity
x87 commentedon Oct 13, 2023
Tabs Preview
sb-tabs-preview.mp4
x87 commentedon Oct 29, 2023
DEV CHANGELOG
rc.0
beta.14
beta.13
Download
beta.11
beta.10
0AB2: 0as function'send(previously was0051: return)returncommand in missionsF2toTabfor easier access, also configurable in Options->Hotkeysifthen->if,fn->function)beta.9
exportkeywordbeta.8
Download
export function ...syntax for CLEO Modules{and}on QWERTZ keyboardsbeta.7
Download
()to be compiled as a function call. otherwise they are compiled as regular variablesendkeyword is now compiled with opcode 0051: return, not 2003: cleo_return_fail. CLEO5 is required for the0051: returncommand to support SCM functionsreturnsemantic in functions(). Function name without()will be compiled as a number. For SCM functions it will be function offset (like a label), for static foreign functions it will be the address.@is not a valid label. use function name without@insteadoptionallogicalfunctiondirectlybeta.6
Download
@is a valid labelreturn(opcode 0051) to exit from a function SCM function handling by GOSUB return. cleolibrary/CLEO5#96beta.5
Download
8to24_1())main.scmscripts when declared and used insidefunction..end{$USE CLEO}or{$CLEO}) also enables all standard CLEO extensions (bitwise,ini,file,debug,memory)beta.4
Download
=#) not working with arraysCtrl+Space)///Ctrl+Shift+Space)beta.3
Download
beta.2
Download
car,char, etc)car handle,char myPed)function..end)var a: intnow mirrorsint abehavior, previously was ignored (inconsistent result of var declarations #289)beta.1
Download
switchstatement elseif and switch Support #160 (comment)$INCLUDE_ONCEdirective added in 3.9.0, and binary number format (0b)var $player: Player)beta.0
Download
alpha.3
Download
not:before
now
alpha.2
Download
Player.CanMove(0, True)andPlayer.CanMove(0) = True) for backward compatibilityint value = read_memory 0xDEADD0D0 4 false$x, $y, $z = Object.GetCoordinates(0@)$x, $y, $z = Object.GetCoordinates(0@)clear_mission_audio MissionAudioSlot.Slot1alpha.1
Download
MatiDragon-YT commentedon Oct 29, 2023
The version you passed is removing members from some classes
Either he is omitting them or I don't know what is going on. Why is it not appearing in the autocomplete
the error only disappears if the following syntax is followed.
but I emphasize that the class member does not appear in the autocomplete.
Also now SB4 does not allow to compile classes with extra parameters written by mistake. Previously SB3 removed these extra parameters, which made the editor more user friendly.
As usual, I'm passing you the code of DYOS (the same project that always detects bugs) and the editing mode I use 😆
my edit mode: sa_cp.zip
my proyect adapted to SB4: DYOS.zip
x87 commentedon Oct 29, 2023
@MatiDragon-YT this is correct behavior. You define SetCollisionDetection as a prop (using ^ syntax) and require a '=' operator to be used
Compiler previously allowed two-way form of writing this command:
or
But this was a bug. Only the second form should be used.
If you want to use
SetCollisionDetectionas a method, use method syntax in classes.db:I'll take a look. It should appear
#150
MatiDragon-YT commentedon Oct 29, 2023
@x87 What? that was a bug? I thought it was syntactic sugar. I know it's easy to fix, but can't that be added back?
well, if this is not a bug, then I have nothing to report. excellent update 👍
x87 commentedon Oct 29, 2023
@MatiDragon-YT use this core.dll for the autocomplete fix, should display SetCollisionDetection now
core.zip
MatiDragon-YT commentedon Oct 29, 2023
runing with't problem! Epic :D
x87 commentedon Nov 4, 2023
it was added back under SB3_COMPAT debug option (enabled by default) in alpha.2. So you can still write