SRL Archive - FAQ

Smart


i luffs yeww

2010-02-28 21:44:02

With SCAR, if a SMART window is open, then you run a SMART script, it won't close and reopen a new SMART. But with Simba, it does. Any reason for this? Or is it going to change? :)

XcanadamanX

2010-02-28 23:21:13

ive noticed that sometimes it does that but other times it wont. i cant find a reason why…

i luffs yeww

2010-02-28 23:43:36

Maybe because it loads a different world. It chooses the least amount of players, I think, so if the least amount the first run is world one (example.. :p), then 500 people log in to world one, and then world two has one less player, it'll go to world two, and a new SMART would need to be opened.. Actually that makes sense. :p But I could just be making stuff up.

Boreas

2010-03-01 00:59:11

Set the SmartWorld etc variables before SetupSRL.

i luffs yeww

2010-03-01 01:49:12

Even if I do it does it.

Boreas

2010-03-01 01:55:12

Post your script?

i luffs yeww

2010-03-01 01:59:46

Uhh.. It was Narcle's smelter I think. I don't even remember. I'm on my Zune atm so I can't check :/ sorry.

mastaraymond

2010-03-01 14:21:36

Yeah I found this a bit weird as well, but I'm pretty sure this happens in SCAR as well..

Wizzup?

2010-03-01 14:26:28

From: Boreas
Set the SmartWorld etc variables before SetupSRL.


This must resolve the issue. There is no reason it will still restart SMART. I had the issue, but once I set those four variables, I never had a problem with it again.

RAM

2010-03-01 14:48:01

From: Boreas
Set the SmartWorld etc variables before SetupSRL.


From: Wizzup?
This must resolve the issue. There is no reason it will still restart SMART. I had the issue, but once I set those four variables, I never had a problem with it again.


Thank you, I was experiencing this also…

E. I still get it when running Yew Chomper…. http://villavu.com/forum/showthread.php?t=54797

Wizzup?

2010-03-01 14:59:29

Looks like it doesn't set Smart_Server. (to a default world)

RAM

2010-03-01 15:10:15

using …
Smart_Server := 131;
…doesn't select world 131 though ?

is there a way to restructure the PickWorld Procedure so it doesn't restart every time ?


Procedure PickWorld;
var
SWorld:Integer;
Begin
WaitFunc(@RSReady, 25, 60000);
OpenWorldScreen;
WaitFunc(@WorldScreen, 25, 5000);
if world=0 then
SWorld := 131 else
SWorld := World;
if not SelectWorld(SWorld) then
Writeln('couldnt select world requested, running script anyway');
end;

begin
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
PickWorld;
LoginPlayer;
SetAngle(True);
repeat

Wizzup?

2010-03-01 15:16:05

His problem is that he sets Smart_Server AFTER SetupSRL. Add Smart_Server := 72; (or whatever) BEFORE SetupSRL.

Wanted

2010-03-01 20:16:09

http://villavu.com/forum/showthread.php?t=55055

Nava2

2010-03-07 14:11:40

To be honest, I think that SMART should be changed so that it will store the world it loads etc.

Would make life slightly easier.

e: http://villavu.com/forum/showthread.php?p=691921