SRL Archive - S.M.A.R.T. General and Q/A.

Scar Exiting?


Metagen

2007-11-22 17:47:58

Thats it… When i start it up it sais successfully compiled. then boom it exits.

here are the main aspects relating to smart


program CursedYOU;
{$Define SMART} // This is where I defined SMART. If you don't want to use SMART, take out this line.
{$IfDef SMART} // In the next 3 lines, it will only include SMART.scar if you have defined SMART.
{.include SRL/SRL/Misc/Smart.scar}
{$EndIf}
{.include srl/srl.scar}
{.include srl/srl/skill/magic.scar}

// ... later in the script ... //

begin
{$IfDef SMART}
SmartSetup('ams3', False, false);
while not(SmartReady) do Wait(100);
SetTargetDC(SmartGetDC);
if not(LoggedIn) then
while not(SmartGetColor(386, 249) = 65535) do Wait(100);
{$EndIf}
SetUpSrl;
SetUp;

repeat

Casted := 0
Proggy;
Curse;
ChangePlayer;
Until(Active = 0)
end.

Santa_Clause

2007-11-22 17:51:43

All that stuff in your mainloop should be in SetupSRL instead…

Infantry001

2007-11-22 17:58:49

It doesn't need to be though. Although it is easier if it was.

Try taking out the (if LoggedIn) then… within the {$IfDef SMART} and {$EndIf}. I think that will do it.

Metagen

2007-11-22 17:59:22

Ok 1 sec


procedure SetupSRL;
begin
{$IfDef SMART}
SmartSetup('ams3', False, false);
while not(SmartReady) do Wait(100);
SetTargetDC(SmartGetDC);
if not(LoggedIn) then
while not(SmartGetColor(386, 249) = 65535) do Wait(100);
{$EndIf}
MouseSpeed := 15;
NickNameBMP := 0;
CheckHPFirst := True;
Reincarnate := False;
TalkAfterRandoms := False;
// ... etc

ok it still exits
But the process is still going on… so im guessing scar crashes…

btw im using scar 3.13 and rev 7?

Edit: tried with scar 3.12c crashes… and rev 6

Im using firefox too… is that ok?

Metagen

2007-11-22 18:17:07

Ok new stuff. I played around with it and the SmartSetup function crashes it. (just narrowing it down)

:oops on double post

Macrosoft

2007-11-22 18:35:13

this was happening to me too

download the latest version of java

Metagen

2007-11-22 20:15:19

Yup yup that fixed it. thanx macro :)

Sebo

2007-11-22 20:56:34

ugh, people beet me too it, lmao, I was going to say, reinstall java or, get the new SCAR 3.13, or, you don't really need it {Define stuff in there.

FrÕzÑ_§ÕµL

2007-11-28 03:49:05

Hehe OK I have downloaded java but I guess I needa restart my comp… Its been running non stop like 80 hours now? I used up all 13gig of my data allowance lmao so I'm back to dial up, and I'm downloading a 937.8mb File :p hehe. At 70% now with 9hours 20 left! Thanks so much for all your help for nooby me guys :p