Line 128: [Error] (201:57): Unknown identifier 'IncludePath'
Everyone has the includepath error what am I missing? I setup scar using this thread:
http://www.villavu.com/forum/showthread.php?t=53914
Printable View
Line 128: [Error] (201:57): Unknown identifier 'IncludePath'
Everyone has the includepath error what am I missing? I setup scar using this thread:
http://www.villavu.com/forum/showthread.php?t=53914
Hmm i get this too O.o One sec ill look to see what happen...
If you revert back to rev 366 of the OpenDev it will work, Looking for a way to fix this without reverting atm.
lol found out why this happens almost every script includes SMART.scar before srl.scar and IncludePath is defined in srl.scar O.o, hmmm... Another option is to not use smart comment the include, or to edit smart.scar back to how it was.
[edited cause i double posted >.>]
Yeah looks like the change was commited just a few hours ago.
Ok
1.) Go into your "Includes" folder where SRL is.
2.) Rightclick the "SRL" folder, Under the "TortiseSVN" submenu find "Update to Revision"
3.) You wanna revert to 366
OR
you can find /Includes/SRL/SRL/misc/SMART.scar
and edit line 128 from
toCode:prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
ORCode:prefix := ReadINI('World' + IntToStr(Server), 'Prefix', AppPath + 'Includes\SRL\SRL\misc\worlds.ini');
You can do what i did lol I edited SmartSetupEx() to
Code:procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
var
prefix, IncludePath: string;
begin
IncludePath := AppPath + 'Includes\';
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503);
//SmartSaveSettings([Server, Members, Signed, SuperDetail, SmartGetDC]);
end;
wow, I thought you were talking to yourself because your names are so similar...lol
kinda similar, while glancing at iSpy anyway
ooops sorry i didnt mean revert >.> "Update to Revision"
btw too test to see if the fix worked compile/run this
You shouldnt get any errors lolCode:program Test;
{.Include srl/srl/Misc/SMART.scar}
begin
end.
Brain: iSpy?
Did you copy your plugins again?
bring SCAR up and click Tools->Options->SRL Download->Move Plugins
if i were you i would just completely start all over.
i would follow this guide:http://www.villavu.com/forum/showthread.php?t=47714
why follow that guide? because it has worked for MANY people: enough to make it a sticky! and it is easy to follow.
if you complete every step in this guide, and u still have problems, i will be suprised
Yea I did it also tried manually it isnt the problem, the problems that smart.scar file it has an ! mark over it
Already did... same error...
in this thread he says that there was an update a few hours ago that changed something which causes this error in scripts.
ok ima go in steps to get this working for you=) Complete steps from downloading scar
1.) Make a new folder anywhere and name it "SCAR", rightclick it and click SVN Checkout.
2.) Under 'URL of repository" Enterand click OK.Code:http://freddy1990.com/svn/scarprerelease/
3.) When that is done downloading and says "Completed At revision: 80" go into the SCAR folder then into includes.
4.) Make a new folder "SRL" in includes and do another "SVN Checkout" with URL5.) Get the Patch.txt file I attached to the post and rename it to Patch.diff.Code:http://www.villavu.com/repositories/srl-opendev/
6.) When thats done rightclick the SRL folder and under the Tortise SVN submenu click "Apply Patch" browse to the patch.diff.
7.) now copy all files in "SCAR/Includes/SRL/place inside plugins folder/" to "SCAR/Plugins/"
8.) Run Scar =)
x[Warrior]x3500: Update your SRL and try to run a script with SMART.
Well you could have had BOTH errors but the first one Terminated the script so it never showed the second, you should also try updating Java.
Too test a script without running it, Click "Script" in the menubar then "Compile"
Ok you prob didnt apply the patch right so another step by step =)
1.) Rightclick the SRL folder in Includes
2.) Click Tourtise SVN-> Apply Patch
3.) Browse to my Patch.txt(.diff)
4.) Click Smart.scar from the list (Should see two SMART.scar's behind the list now))
5.) Click File->Save or ctrl+S
Should get a screen that looks something like the attached file but the two sides will be diffrent.
...Ill just tell you how to manualy do it Open Includes/SRL/SRL/msc/SMART.scar in SCAR and goto Line 124 Change
ToCode:procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
Code:procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
var
prefix, IncludePath: string;
begin
IncludePath := AppPath + 'Includes\';
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
lol had to google "teamviewer" to know what it was >.>
Yeah just installed it, ID? um you prob dont want the ID public um PM, Email(Dgby714[at]aol[dot]com) it?
Ok his is fixed =) idk why my patch didnt work on his pc >.>
I didnt know SMART was started when SetupSRL; is called O.o
Nah its been like that for a bit just never knew cause i remeber script from awhile ago when you started smart with a command it wasnt part of SetupSRL;