SRL Archive - S.M.A.R.T. Bugs and Improvements.

rev #35: can't user decide server anymore?


marpis

2009-06-19 11:08:33

does SMART automatically pick the best world for you, or can we still somehow decide which world to log in?

Rich

2009-06-19 11:13:25

Some guy said this in the SMART thread.
so uh to add this to a script, i take out the SmartSetupEx line and the SmartGetDC line and add
Smart_Server: Integer;
Smart_Members, Smart_Signed, Smart_SuperDetail: Boolean;
to the variables? then what?

E: nmd i got it, i added
Code:

Smart_Server:= (SmartWorld);
Smart_Members:= (Members);
Smart_Signed:= (SignedC);
Smart_SuperDetail:= false;

before setupsrl

and put
Code:

SmartWorld= 69; //Smart World?
Members= True; //members world or no
SignedC= False; //use signed client?

in the const
Zephy then confirmed this.

Sir R. M8gic1an

2009-06-19 16:38:10

From: marpis
does SMART automatically pick the best world for you, or can we still somehow decide which world to log in?


SmartInitServer picks the server for you. You can always override this decision by either putting

SmartServer := ServerHere; in the script before SetupSRL or you can go to your own SRL.scar and define your settings as you wish.


{$IFDEF srl_SMART}
SmartInitServer;
SmartSetupEx(Smart_Server, Smart_Members, Smart_Signed, Smart_SuperDetail);
SetTargetDC(SmartGetDC);
repeat
wait(100)
if (GetTimeRunning - t) > 120000 then
Break;
until(RSReady);
{$ENDIF}

that's SRL.scar , so just change the SmartSetupEx params into whatever you'd like.

~RM

XcanadamanX

2009-06-19 17:54:16

I've tried that but i never get the world i want.
      World         = 125; //world number
    Smart_Server:=World;
Smart_Members:=False
Smart_Signed:=True;
Smart_SuperDetail:=False;

i never seem to get world 125…

Method

2009-06-19 18:33:56

SMART only connects you to the server you choose, not the world. You need to manually select the world if you want a specific one. Try using the functions in WorldSwitcher.scar (I believe).

ZephyrsFury

2009-06-19 18:50:55

Perhaps you guys could discuss this stuff in the tut I've posted: http://www.villavu.com/forum/showthread.php?goto=newpost&t=46748

That way all frequently asked questions about this are in the same spot and easily found.