People who have been having some issues with login procedures. I've been experimenting with some edits to how the login procedures are handled and would like some testing. I want more power in the scripters hands when it comes to login procedures. On a high level, these edits basically only try to login once (but will try to successfully respawn the client as many times as smartresetattempts is set at). If it fails to login once, it returns false. That means it's the scripts job to decide things like, how many times to try and login again before switching to another player.
Here is an example of how I handle it in my script for a single player:
if not isLoggedIn then
begin
writeln('Attempting to log back in');
disableSRLDebug := false;
repeat
try
players[currentPlayer].login;
inc(i);
except
end;
if (i = 5) then
terminateScript;
until isLoggedIn;
disableSRLDebug := true;
end;
Obviously instead of terminating the script you could just do nextplayer to implement multiplayer. The reason for these changes is primarily that there are way too many terminates within the login procedures. Now the only terminate will occur when the client fails to respawn. Also functions have been simplified for ease of editing in the future. Replace your players.simba and smart.simba with the following:
http://paste.villavu.com/show/6446/http://paste.villavu.com/show/6447/Go ahead and try it out. I've been running it for the past week or so w/o issue. Oh and 1 more thing, you will probably notice more delays with the login procedures. I've added longer waits in places due to prevent random 1 off issues.
Happy testing.