SRL Archive - Suggestions

Running list of scripts after prev script terminates/executed


Cstrike

2010-09-03 12:35:33

If this is actually possible then just lock the thread.

Would it be possible in the future to have Simba run a line of scripts?

Ex: I have a huge army I'd like to run during the night. A few autofighers, a few fishers..etc

So I run these while I sleep. The problem is a random may terminate them quickly, so 3 of my fishing bots could crap out after 3-4 hours. If there was a way that after 'fishing script' has terminated/executed, Simba would start up the next script in line (ex: what would be for me an autofighter) so that my time is well used overnight.

Of course this isn't something important since it is only 8 hours overnight that it's used… but you never know:

If you go on vacation for a week and want to run like 10-15 army men with sleeps in between, it could be VERY effective.

HyperSecret

2010-09-03 12:47:16

I believe this is what they are trying to accomplish with MSI, someone correct me if I am wrong.

Take a look at the MSI include to see how they do it (if they do).

Cstrike

2010-09-03 13:30:21

I did check out MSI (I'm hoping to add to it actually :p) and unless my eyes deceive me, I didn't find anything that could assist me.

Only because I need to be able to take ANY script (outside of MSI) and make it run in sequence after another script.

Frement

2010-09-03 13:35:05

Maybe extensions again for Simba? If there is not enough functions in Simba to do all this stuff, then maybe you can file a feedback "bug report" to mantis and maybe wizzup or someone will add it :)

Blumblebee

2010-09-03 13:36:57

you could easily make a script to do it. Run a script with simba, have all the other scripts open in sucession in the same simba. in a different simba run a script that watchings the play button to change colors and when it does (or make a dtm of sucessfully executed or NextPlayer(false)) then it switches tabs and pushes play.

Sir R. M8gic1an

2010-09-03 13:40:58

You guys are all forgetting one essential thing.

If your script stopped due to a random that SRL couldn't solve, how do you plan to solve it to be able to run the next script?

As for MSI, no it doesn't do it yet. It has quite a few essentials for it already done, and it is part of the plan.

~RM

Blumblebee

2010-09-03 13:41:57

From: Sir R. Magician
You guys are all forgetting one essential thing.

If your script stopped due to a random that SRL couldn't solve, how do you plan to solve it to be able to run the next script?

As for MSI, no it doesn't do it yet.

~RM


I think he means have 1 army fishing, 1 army autofighting, 1 army mining. When army 1 screws up and finishes, he wants a script to start army 2.

Sir R. M8gic1an

2010-09-03 13:51:42

Oh.


{$i Smart.scar}
{$i RM_GuildMiner.simba}
{$i /MSI/RunMe.simba}
{$i WizzupEssenceMiner.simba}

begin
SetupSRL;
Mainloop_RMGuildMiner;
Mainloop_MSI;
Mainloop_WizzupEssMiner;
end;

Declare your players in each script. Edit the scripts mainloop -> procedure. Take out the

begin
end.
from the script and you should be pretty much set.

~RM