AuthorMessage
Corayzon
Regular
Posts: 67

Making Script Commands  has never been easier!
cSlave 1.0 Latest DevBuild Release
NOTE: CSLAVE REQUIRES MICROSOFTS .NET FRAMEWORK
For help and tutorials with scripting in the cSlave Scripting Studio vist the cSlave Forums
Code:
Thur May 26th
-------------------------------------------------------
Fixed: Template Editor: Control+C now copies! (doesnt close dialog!)
Fixed: Template Editor now accepts return and tab
Fixed: Bug in open project when no project is selected to open
Changed: PtokaX Functions NameSpace menu to PtokaX
Added: Pressing enter in find txtbox in frmFindText now auto clicks find
Added: Setting Script Editor for basic editing of setting scripts
Changed: frmMain's appearence
Added: New Command Script Wizard (WIIIIIIICCCCCCKKKKKKKEEEEDDDDDD!!!!!)
Changed: The way the new project dialog works in the Scripting Studio

Code:
Mon May 23rd
-------------------------------------------------------
Fixed: Error on start when cSlave is fuked up
Fixed: Scripting Studio Find Function now works %100
Added: NameSpace database for basic LUA5 functions
Added: cSlave NS commands into NS menu's
Fixed: Bug in hard coded arguments for NS menu's
Fixed: Scripting Studio Export feature now exports all data files in data directories
Fixed: Scripting Studio now minimizes when u click on the tastbar icon
Fixed: frmMain is now hiddin when Scripting Studio is loaded
Fixed: Bug in NNS name space command (Parses old menu when found!)
Added: Argument help for Ptokax namespace menu's
Added: Hard coded arguments to functions in namespace data(function(arg:help, !"hardcodedstring", !bHardCoded))
Added: STRING to name space menu files (Makes a string menu output)
Added: SEP to name space menu files (Makes a seperator in the current menu)
Added: argument help to functions in namespace data (function(arg:help info here, arg2:more help for this one))
Optimised: The argument input process for functions
Moved: Scripting Studio menu items around
Added: Addon profile settings api for addon scripts (rightclick->cSlave->API->Profile Setting->)
Fixed: Error in profile settings - Profile setting files are closed properly
Added: Right Click database for PtokaX scripting commands
Added: Right Click commands to Scripting Studio (WICKKKKKEDDDDDDDDD!!!!!)

Code:
Sat May 21st
-------------------------------------------------------
Added: Welcome Messages UI Feature - Remove Unused Files
Fixed: Welcome Messages UI Errors
Added: All new projects except Blank Project now build base templates! (WICKEEEEDDDDD!!!!)
Added: Insert command to Scripting Studio
Added: Insert function to Scripting Studio (Control+Shit+F)
Fixed: Export to cSlave in Scripting Studio
Fixed: Uninstall patch message (now it does show the patch name!)
Added: Installing a patch now automaticly enables it
Added: Reinstall to patch menu
Fixed: tabPage loads with proper filenames (couldnt save to new file until it was closed and reopened)
Changed: txtFile controls in the scripting studio now dont word wrap (i think its better this way)
Fixed: Error outputs in patch installations
Added: Error handling in patch installing and uninstalling
Added: copy <old>|<new>|[bOverwrite] - Added bOverwrite to patch commands
Fixed: cSlave now asks to install when enable is clicked on a uninstalled patch
X(
bastya_elvtars
n00b
Posts: 49

What is this scripting studio exactly?  :?
Corayzon
Regular
Posts: 67

cSlave Scripting Studio is an easy wasy for hub administrators to build or maintain there current Ptokax Hub.
Hubowners can simply install\uninstall the patchs they would like, while the scripters make them. Its whole aim is to make new commands with ease, and add these commands to the help dialog and user commands without typing a word!
The scripting studio itself, contains many usefull functions (not all added yet), to help the lua developer build their scripts faster then in notepad. The right click list allows scripters to quickly search for functions in LUA5, cSlave or PtokaX so you dont have to allways remember the functions and inputs.
The insert tools, make making loops and functions even more easy! sinse u dont have to know the syntax to make one! You just click, and type in a few names or conditions and your away.
The scripting studio, as i said:- is aimed at making scripts easier to write and implement into hubs (dont forget the adding to help and usercommands). And cSlave Scripting Studio has made life so easy, that in the new release. I have mad New Project Wizards. Which ask and then build all your settings into ur project! Incuding adding all ur commands to cSlave, the Help dialog and the user commands send automaticly! In also build you patch file automaticly so ur command is ready to output directly to cSlave without having to do anything.
Lets see how we make a command script in cSlave =]
Our first step in making a new command in cSlave is to open the Scripting Studio. Control+S in the main dialog.
Now that we have it open. Goto make a new project (Control+N)
In the new project dialog select Commands Script Project, and put in whatever name you like. Then click OK
Here we can see the wizard builds the base setting based on your projectname. In this example we dont need to edit them. We just need to
add some commands!
We all see the command settings we can input:
Command - The commands table name where settings are saved
Trigger - The trigger that calls the command in cSlave
Minimum Profile - The minimum profile needed to trigger the command
Args - The arguments the command needs (these are shown in help and in user commands as line inputs!)
Help - The extra help information that is shown in the help dialog
To add commands to the wizard, simply fill in the settings with basic settings (these setting are intial and can be edited from a settings scripting in cSlave), Then click add on the right.
Now ill add the needed commands to the wizard
Here we can see ive added to commands. ShowReleases and ShowAllReleases.
Once all ur basic command settings are correct, Click Make Project at the bottom right of the wizard dialog.
cSlave compiles all ur commands and makes your projects patch file.
cSlave first makes the load function for ur command script and registers it to be called by cSlave.
In the load function cSlave first executes the settings script. Then cSlave registers all the command to cSlave's commands cSlave's Help dialog.
Next it compiles all the command functions and adds tags telling users this command is waiting to be scripted.
cSlave then builds a SendUserCommands function and adds all the needed code to send the user commands when they are called.
Finally cSlave compiles a basic patch so that your script is ready to install\uninstall and compile with cSlave (After Export Patch is called (F5))
For this example we will just Export the patch without any changes to see what has been allready done.
Press the F5 Key to export the patch
Once the patch has exported we are now ready to install it into cSlave.
Close the scripting studio, and ull see your new patch come up in the addons list. Right click ur new patch, and select install
Once the new patch has installed, we now need to recompile cSlave's compile file so the new changes are loaded!
Goto File and select compile (F5)
Once cSlave has compiled the new changes, we need to restart Ptokax's scripts for them to become active.
Open Ptokax and restart its scripts.
Now we can go into the hub in dc++ and see what this script has done!
Meka][Meka
Unstopable
Posts: 700

looking great Corayzon 
Corayzon
Regular
Posts: 67

Quoted from Meka][Meka
looking great Corayzon 

So does ur new main page! 
I need to get something like this done for om-tribe.net (im a socket programmer, not a php expert) lol
bastya_elvtars
n00b
Posts: 49

Quoted from Corayzon
I need to get something like this done for om-tribe.net (im a socket programmer, not a php expert) lol

I am gonna help you.
Search me on my icq or msn at sunday 22:00 CET and we will see what we can do.
Jeevz
Clone
Posts: 1

can sumone giv me a link for cSlave 1.0 as the link is dead well for me it is
Corayzon
Regular
Posts: 67

This project was dropped to start Lua Slave...
Ull find info in this forum