SRL Archive - S.M.A.R.T.

More Than One Smart Open Question


VastlySuperior

2012-07-26 08:20:41

I know this is a daft question, but I just don`t understand how you get to run 2 or more bots from within the same simba99. Every time I try it the other bot try to take over the first smart that is already open.

What command do i need to use to force it to create a new smart.

I have tried InitSmart(true), then it is supposed to force a new smart to open, and it does open a new smart but tries to take control again of the first smart that is already open and running.

Can someone give me an example thats easy to understand how to do this.

Thanks

riwu

2012-07-26 08:28:45

Did you try SetupSmart(true); ?
You can also use SmartClientID then SmartPairClient to manually pair the SMART to a specific script.

djborec

2012-07-30 08:34:04

This new SMART is really weird.. SetupSmart(true); loads everytime new smart ,even when u restart script wtf?

and SMARTID? thats prety weird if oyu do not know what ID will be generated

raees

2012-07-30 15:14:55

From: riwu
Did you try SetupSmart(true); ?
You can also use SmartClientID then SmartPairClient to manually pair the SMART to a specific script.


how do you do manually pair the SMART?

riwu

2012-07-30 18:04:40

You get the ID by calling writeln(SmartClientID) first (TerminateScript after its called), then just use SmartPairClient to pair it to the SMART that u opened. The script will stick to this paired SMART until u remove the function.

Brandon

2012-07-30 18:08:59

Ben is working on it.. https://github.com/BenLand100/SMART/issues/7#issuecomment-7383647