SRL Archive - OSR Help

script was working perfect than it broke


Feroc1ty

2011-02-26 14:11:03

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

my script was working perfectly yesterday, and now it's broken (updated SRL 1 version, and reflection like 4-5 versions)

gets stuck at login, i know my code is fine because its been working for a week+

edit: solved, you can't have favorite worlds or SRL gets mad and stops working

PatDuffy

2011-02-26 14:29:42

I've noticed the exact same thing with my scripts aswell, except I found a fix. Try leaving the script go for a few minutes at the world select screen (on my scripts it's will appear to freeze here). It will eventually say in the Debug, "world list not loaded after 1minute,refreshing ". Then it will freeze for a second and click play.

I'm not sure what is causing the bug, but that's how I found to get around it.

Wanted

2011-02-26 14:46:48

{$DEFINE SMART}
{.include SRL/SRL.scar }

begin
Smart_Server := 1;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetUpSRL;
SetLength(Players, 1);
with Players[0] do
begin
Name := '';
Pass := '';
Active := True;
//Member := False;
//Member := True;
//WorldInfo := [True, -1, False];
//WorldInfo := [False, -1, False];
//WorldInfo := [True, -1, True];
//WorldInfo := [False, -1, True];
//WorldInfo := [True, 2];
//WorldInfo := [False, 1];
end;
LoginPlayer;
end.

Works in both SCAR and simba with latest SRL.
I also ran your script, which logged in just fine.

It leaves me to believe your script has some problem in it that causing it not to work on a not always basis.

Probably something to do with that world switcher you are trying to use wrong, how I showed you to use in the other thread.

Feroc1ty

2011-02-26 17:59:29

The world switcher doesn't even get a chance to run, it gets stuck on the loginplayer function, play my script it will show you the debug.

Train

2011-02-26 18:31:34

Fixed screen size? o-o

Feroc1ty

2011-02-26 20:41:24

same exact thing happens to me as does to patduffy, if i wait for a minute the script starts

PatDuffy

2011-02-26 20:57:49

From: Feroc1ty
same exact thing happens to me as does to patduffy, if i wait for a minute the script starts


Glad I could help. I honestly have no idea why it does this, but its just a nuisance and doesn't actually harm anything.

Echo_

2011-02-27 08:36:04

Is your script attempting to use your switch worlds procedure before you even log in? That may explain the issues you are having if it is linked to your previous bug.

PatDuffy

2011-02-27 10:24:39

From: Echo_
Is your script attempting to use your switch worlds procedure before you even log in? That may explain the issues you are having if it is linked to your previous bug.


This could be his problem, but it can't be mine. I started seeing this issue around 4 days ago on a script without a world switching procedure. I'm thinking it might be just some type of lag issue.

Feroc1ty

2011-02-27 11:42:40

the problem is with having favorite worlds, if anyones having the same issue remove your favorite worlds because SRL dislikes it if you have a favorite world and stops working cause it gets mad

PatDuffy

2011-02-27 11:54:02

From: Feroc1ty
the problem is with having favorite worlds, if anyones having the same issue remove your favorite worlds because SRL dislikes it if you have a favorite world and stops working cause it gets mad


Ill try this when I get home although "getting mad " probably isn't the best description of what is happening. :p