So, my init procedure is this (using bonsai's for now, because I can't figure out how to do it myself just yet, hence the purpose of this thread)
Simba Code:
procedure initScript; //adapted from bonsai's init procedure
var i:integer;
begin
addOnTerminate('scriptTerminate');
clearDebug();
smartEnableDrawing := true;
setupSrl();
players.setup(playerNames, playerFile);
currentPlayer := 0;
for i := 0 to high(players) do
begin
players[i].world := desiredWorld;
players[i].isActive := true;
end;
while (players.getActive() > 0) do
begin
if (not isLoggedIn()) then
begin
if (not players[currentPlayer].login()) then break;
exitSquealOfFortune();
end;
end;
end;
I could call
or
but both of those results in one instance of Simba spawning two clients, pairing to the second one, and attempting to perform RS-related actions before it's fully loaded. (I'm calling these right after setupSrl)
Under SRL5, there was a way to do it (which I have forgotten and seem to have lost any documentation of) but for the life of me I can't figure out how to do it under srl-6.
tl;dr how do I get an instance of Simba to always spawn an new instance of SMART and always pair to said new instance?
Help is appreciated.