SRL Archive - SRL Site Discussion

Wikipedia entry.


Jason2gs

2007-03-04 15:30:20

I found the Wikipedia entry for SCAR :p

I have one question about it though.


Two instances of SCAR can also communicate with each other by using Inter-SCAR-Messaging functions.


Is this refering to the RC Master setup? It doesn't sound like it…

If it's not that, then what is it?

botmaster

2007-03-04 15:32:22

It's the interscar messaging function. Two different scar applications running at the same time are able to communicate with each other by using the following procedures/functions (taken from manual):

procedure SendInterSCARMessage(id, message: string) - Sends a string to another script. The ID is used for both scripts to communicate with each other by sending and reading the string/messages. Example: SendInterScarMessage('control', 'Please stop taking my chips');

function ReadInterSCARMessage(id: string): string - Reads string/messages sent by another script by means of an ID.
Example:
if(ReadInterScarMessage('control') = 'Please stop taking my chips') then
Writeln('But I already ate them!');


Smartzkid

2007-03-04 15:39:33

Those functions can be very helpful if you want to make a 'Control Box' type script to run alongside another. Kinda like a 'live' proggy report; you could see exactly what the main script is doing

If only it worked over networks…you could manage tons of scripts at once…

Jason2gs

2007-03-04 22:34:23

Thanks!

Now why have I never heard of this…

I'll have to check it out.

Edit: How do I get the script ID?

Boreas

2007-03-04 22:36:15

I will release something that uses it a lot one day.