Log in

View Full Version : smartparams



mika
10-15-2012, 08:41 PM
i keep getting for the past 3 days
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(279:145): Invalid number of parameters at line 278

Ian
10-15-2012, 08:56 PM
Scroll down until you see a line with a "-1" at the end of it. (should be one of the longer lines). Delete the ",-1" and save smartparams. then try running the script again.

mika
10-15-2012, 09:08 PM
thanks works great now.

Ian
10-15-2012, 09:25 PM
Np. Also, you may need to do this again if SRL updates. I just turn off auto-updating unless I start having problems.

NKN
10-15-2012, 09:39 PM
Np. Also, you may need to do this again if SRL updates. I just turn off auto-updating unless I start having problems.
I think the update fixes it?
My SMARTParams has a IFDEF for it, changing to -1 if needed.

Solar
10-15-2012, 09:43 PM
I think the update fixes it?
My SMARTParams has a IFDEF for it, changing to -1 if needed.

Mine updated too but I still got the same error about parameters, so even though using SMART v8.0, I still had to remove the -1 before it ran.

riwu
10-16-2012, 12:11 AM
Mine updated too but I still got the same error about parameters, so even though using SMART v8.0, I still had to remove the -1 before it ran.
Only works if you have {$Define Smart8}. Most scripts just have {$Define Smart} to maintain compatibility with past and future Smart versions. Probably have to wait for the official release of Smart 8 before the -1 gets removed for all versions.

I've personally stopped using autoupdater as i changed too many stuffs in the include for testing :p you can just retrieve the changes directly from github, as usually only a few files are changed every update but all your files get rewritten.