SRL Archive - OSR Help

every script


Bl!ss

2012-11-16 18:58:47

every script i try to use is not working, i always get this
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(274:145): Invalid number of parameters at line 273
Compiling failed.

could some one please help me?

Silentcore

2012-11-16 19:00:31

This is like the easiest fix ever. All you have to do is go to the smartparams tab and delete -1 from one of the longest lines in there and then save it.

Bl!ss

2012-11-16 19:05:38

From: Silentcore
This is like the easiest fix ever. All you have to do is go to the smartparams tab and delete -1 from one of the longest lines in there and then save it.


i dont know how to do this :s. im a noob i know.

Swifte

2012-11-16 19:18:25

There should be a tut for this fix… Sometimes I get this error too. :L

Ashaman88

2012-11-16 19:22:36

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

If you're going to manually update to smart 8.0 make sure you read up on how to actually use it

Bl!ss

2012-11-16 19:28:20

From: Swifte
There should be a tut for this fix… Sometimes I get this error too. :L


thanks i fixed it though im getting this now.
[Hint] C:\Simba\Includes\SRL/SRL/core/globals.simba(55:3): Variable 'WORLDSWITCHERENABLED' never used at line 54
Compiled successfully in 640 ms.
SRL Compiled in 15 msec

CRASH_OVERRIDE

2012-11-16 19:30:28

He is saying, Open up Simba,

Use the script you used before that got you this error, and start the script, Simba will open a new tab with the error:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(274:145): Invalid number of parameters at line 273
Compiling failed.


On this tab it will also most likely have highlighted this tab called(Smart Params):
  {$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

From reading what was said above even though i am a noob myself, remove:
-1
from the second line.

Bl!ss

2012-11-16 19:33:35

From: tasmania
He is saying, Open up Simba,

Use the script you used before that got you this error, and start the script, Simba will open a new tab with the error:



On this tab it will also most likely have highlighted this tab called(Smart Params):
  {$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

From reading what was said above even though i am a noob myself, remove:
from the second line.


yea i found that out, getting different error now

KeepBotting

2012-11-16 19:36:32

From: Bl!ss
thanks i fixed it though im getting this now.
[Hint] C:\Simba\Includes\SRL/SRL/core/globals.simba(55:3): Variable 'WORLDSWITCHERENABLED' never used at line 54
Compiled successfully in 640 ms.
SRL Compiled in 15 msec

That's not an error.

It's a hint.

You're good to go now.

CRASH_OVERRIDE

2012-11-16 19:51:30

Lol,

This is the error i cant find a fix for yet;

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(284:131): Invalid number of parameters at line 283
Compiling failed.


My line of 283:
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');


Any ideas?

riwu

2012-11-16 19:55:52

From: tasmania
Lol,

This is the error i cant find a fix for yet;



My line of 283:


Any ideas?

You have SMART 7.2 instead of 8. Either upgrade to 8, or add back that -1. Or maybe your script DEFINE SMART8.

KingKong

2012-11-16 19:55:58

add another comma and empty quotes beforw the closing brackets

Bl!ss

2012-11-16 20:05:27

From: KeepBotting
That's not an error.

It's a hint.

You're good to go now.


smart does not open i just get a cmd that opens

CRASH_OVERRIDE

2012-11-16 20:07:55

Fixed,

Used this thread: http://villavu.com/forum/showthread.php?t=84334

Changed the {$DEFINE SMART8} to {$DEFINE SMART}

Added to the bottom:
{$IFDEF SMART}
{$IFDEF SIMBAMAJOR980}
Smart_Server := 72;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
{$ELSE}
SRL_SixHourFix := True;
Smart_FixSpeed := True;
{$ENDIF}
{$ENDIF}

Between Begin; and SetupSRL;

Also added back the ,-1

CRASH_OVERRIDE

2012-11-16 20:09:51

@ Bliss,

cmd as in a command prompt window? This window always comes up in simba, unless you disable/hide it. How new are you to simba? Have you updated everything including extensions?

Bl!ss

2012-11-16 20:14:59

From: tasmania
@ Bliss,

cmd as in a command prompt window? This window always comes up in simba, unless you disable/hide it. How new are you to simba? Have you updated everything including extensions?


i was using simba like a year ago and it was working fine then i quit came back, and everything is updated and year the command prompt window comes up but smart does not.

riwu

2012-11-16 20:16:41

From: Bl!ss
i was using simba like a year ago and it was working fine then i quit came back, and everything is updated and year the command prompt window comes up but smart does not.

Perhaps to do with your java path?

CRASH_OVERRIDE

2012-11-16 20:20:49

So are you sure you have updated and enabled all extensions? I know this might be way off but not updating everything i had this error where i couldnt get the rs window to popup. I ended up ininstalling, running ccleaner, reinstaliling neest update, re-enabled all extensions, reupdeated all extensions then i was good to go.