[Release] SCAR Titan 4.00 Pre-Alpha
Hey guys,
Today I'm releasing the pre-alpha of SCAR Titan 4.00, the future of SCAR.
SCAR 4 will be about 50% rewritten from scratch, the main IDE will be rewritten and like half of the core. Backwards compatibility to SCAR Divi is not being maintained to get a fresh start where I can lay out everything nicely without any old compatibility that has to be maintained. It would be fairly impossible anyway because of the changes to the scripting and such.
Currently the application isn't much to look at yet, except for some basic functionality and some functions in the core, it doesn't do that much yet. But it's growing fast, as I go along I can merge in more stuff from Divi as well.
Includes are now divided up into namespaces, each represented by a unit, for more info about that, check out the release topic. The core is also divided up into namespaces.
To provide some measure of backwards compatibility, I've created the namespace Legacy, which contains the TLegacyPlugin class which can be used to load plugins written for SCAR Divi. The class lets you retrieve pointers to functions in the plugin. Types have to be declared in the script itself.
Some new features are classes, interfaces, operator overloading, pointers, overloading, ... A more complete list can be found in the release topic as well.
I've also gone ahead and write a wrapper unit for SMART in case anyone would like to use it with SCAR 4. It contains all functions from SMART 6.6 and it automatically links SMART functions into the core.
The latter can be done by using the new core structure SCAR maintains. To make it easier to switch between in-/output methods, SCAR now has functions like Set_GetMousePos, which allows you to set a function which should be called by GetMousePos. That way one could for example easily switch between SMART or color based macroing without having to change large quantities of code.
SCAR Titan compiles scripts to native machine code rather than interpreting scripts like SCAR Divi, this results in the scripts themselves being about 100 times faster, almost as fast as native code in plugins. This will reduce a lot of the need for plugins in general.
The release topic: http://forums.scar-divi.com/thread-86.html
The svn: http://svn.scar-divi.com/titan/
The manual: http://wiki.scar-divi.com/titan/
The SMART wrapper: http://svn.scar-divi.com/titan_wrappers/SMART.scar
To use the SMART wrapper, put it in the Includes folder or the script's folder and include it by adding "uses SMART;" to the script. An example:
SCAR Code:
uses
SMART, Mouse, Time;
begin
SmartSetup('http://world1.runescape.com/',
'plugin.js?param=o0,a0,m1', 765, 503, 's');
Wait(5000);
repeat
SetMousePos(Random(765), Random(503));
Wait(100);
until False;
end.
The Embedded_SMART.dll should be placed in the same folder as SCAR, this will soon change to the Plugins folder.
I hope everyone will enjoy this new stage in SCAR's development.
~Freddy