SRL Archive - OSR Help

How to get script to run forever?


Nebula

2013-08-10 21:29:08

kk so I have a script that runs like forever, but gets stopped whenever theres a rs update/6hour/whatever.

What do I do do make smart reload rs?

@AshamanAKAMonthPlusProggyMan
reps to helpers <3
#YoHoJo4Admin

rj

2013-08-10 21:32:00

Sixhourfix := true;

Nebula

2013-08-10 21:34:29

From: Officer Barbrady
Sixhourfix := true;


Yeah I know about that, but is that really all you have to do? like will that also log your player back in and do all that stuff too?

theres gatta be more to it

or is there?

am I just making this more difficult than it has to be?

and simba cant multithread so wouldnt I have to call a function for the sixhourfix to do anything?

Sjoe

2013-08-10 21:36:21

edit Sixhourfix so it won't break if rsready fails, but keeps trying.

U should mention Ashaman correctly :p
here: @Ashaman88

Edit: there's 6hour fix for srl-osr wut?

Syntax

2013-08-10 21:50:57

This may sound stupid, but I use simba to restart simba…
If you want the script PM me, it is fairly simple.

DrChill

2013-08-10 21:54:01

Couldn't you do the time stuff yourself, something like log off every 6hrs, and log back in? Or kill the SMART client, and start it back up?

Nebula

2013-08-10 21:54:41

From: DrChill
kill the SMART client, and start it back up?



ganna try that

good idea

The Killer

2013-08-10 22:00:20

From: Syntax
This may sound stupid, but I use simba to restart simba…
If you want the script PM me, it is fairly simple.


but won't get him month proggies :/

Sjoe

2013-08-10 22:01:21

From: DrChill
Couldn't you do the time stuff yourself, something like log off every 6hrs, and log back in? Or kill the SMART client, and start it back up?


I thought I said that? :(

Nebula

2013-08-10 22:29:12

im such a boss

+ repped all

<3nebula

#yohojo4admin


procedure restartsmart;
begin
SmartKillClient(smartcurrentclient);
SetupSmart(Smart_ForceNew);
SmartPairClient(SmartGetClients(true));
LoginPlayer;
end;

Ashaman88

2013-08-11 00:19:49

If using OSR, I don't think it was implemented - you will have to do what you posted above. If you are doing EOC, then just put that sixhourfix to true before setupsrl, then everytime you call loginplayer and there is an rsupdate/sixhour/whatever it will restart smart automatically. There are times when it could fail but more edits would be needed to the include. So basically just have your script call loginplayer when not loggedin