I Currently Need beta Testers!
and someone to optimize the sst.scar. ;)
Please Reply in this Thread if you can help me out, i would be glad :).
Introduction:
I'm introducing my latest addition to scar : D...
With this Server tool the following things will be possible with scar.
- Bots that Communicate with each other
- Scripts that Help Each other. Ie. One Player Mines, the other one only banks.
- A Chat Client With Scar
- Scar Games With Multiplayer(network) Feature
- Basicly anything that requires 2 (or more) scar clients to connect with each other via ip.
Setup:
Super Easy!.
- Copy the sst.scar to your scar/includes Folder
- thats it.
Usage:
1. Run SST.exe, Click on Start Server
2. Include the sst.scar in your Script.
You can currently use the following functions with sst.scar.
SstSend(string):
Sends a Variable to the Server.
SstGet(string):
Receives a Variable From the Server.
More... See Example..
Example Code:
scar Code:program ScarServerExample;
{.include sst.scar}
var
status : string;
begin
SstIp := '127.0.0.5'; // If this is not set, it will connect to 127.0.0.1
SstDebug := TRUE; // Use Server Debug
SstSend('d=9'); // This sends data(var d=9) to the server.
If SstExists('d') then //SstExists checks if the variable is known. Results True If available.
status := SstGet('d'); // This Gets Data(var d) From the Server and saves it to status.
WriteLn(status); // Output var d
SstDelete('d'); // Deletes var d from the server. Returns TRUE if successful, False if not.
end.
Info:
So, what this server technically does is managing the variables it receives through SstSend(x=y :string);, and Sending the Requested Vars back.
On the programme interface the "Connect to Server" Feature, can be used to directly change Vars the script is using. For example, if you want to tell the script to go Banking, you can do it directly that way.
Conclusion:
I hope you appreciate my effort, and would be grateful if anyone supports me with this project( Debugging, testing, improving the .scar include)
This is in Alphastate, so dont yell at me if something doesnt work as smoothly as it could : D...
Though i did some testing, and didnt spot many problems yet.
Feel Free to offer Suggestions for the next version :).
//UPDATES
V0.2
- Quickfix for the Send Data Button o_o;;.
V0.3
- Functionality to the "Check for updates" button added.
- Updated sst.scar (Thanks ShuttleU)
- Minor Bugfixes.
V0.4
- Added SstExists Function to Server and .scar file
This will check if the server knows a var and results TRUE if its known.
- Improved sst.scar
- More Debug Functions
- Bugfixes...
- New Example Code
- Examples Folder Added
V0.5
- Bug that caused an exception when accesing server for the first time fixed
- Hopefully all other major bugs fixed ;)
- Added SstDelete(string)., Deletes a given Var. Returns TRUE if succesfully, FALSE if not.
- Added a chat.script as example :)
V0.6
- Minor Bugs fixed
- Port Selection
- sst.scar improved(No more access violation when the server is not running)
- Example scripts updated
~caused

