Author | Message | ||||||
---|---|---|---|---|---|---|---|
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
| ||||||
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 |
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 |
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 |