Log in

View Full Version : Every script has this error for me



grats
02-06-2010, 06:51 AM
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

Dgby714
02-06-2010, 06:59 AM
Hmm i get this too O.o One sec ill look to see what happen...

grats
02-06-2010, 07:02 AM
Hmm i get this too O.o One sec ill look to see what happen...

I am pretty bad at coding if you could help that would be awesome I was looking through pages to see if I could find the fix for this error, no dice yet

Dgby714
02-06-2010, 07:06 AM
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 >.>]

grats
02-06-2010, 07:15 AM
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...

Is this like a brand new thing that came out so everyones going to be having this problem? how do I revert back to the other one or is that not a good thing to do?

Dgby714
02-06-2010, 07:23 AM
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

prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
to

prefix := ReadINI('World' + IntToStr(Server), 'Prefix', AppPath + 'Includes\SRL\SRL\misc\worlds.ini');

OR

You can do what i did lol I edited SmartSetupEx() to

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;

Brain
02-06-2010, 07:25 AM
wow, I thought you were talking to yourself because your names are so similar...lol

kinda similar, while glancing at iSpy anyway

grats
02-06-2010, 07:26 AM
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 "revert"
3.) You wanna revert to 366

OR
you can find /Includes/SRL/SRL/misc/SMART.scar
and edit line 128 from "prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');"
to "prefix := ReadINI('World' + IntToStr(Server), 'Prefix', AppPath + 'Includes\SRL\SRL\misc\worlds.ini');"

My revert is completely empty I just installed scar on a virtual machine which is what I am on now


ok I just did what your edit said I am gonna try to run a script now

Dgby714
02-06-2010, 07:31 AM
ooops sorry i didnt mean revert >.> "Update to Revision"

btw too test to see if the fix worked compile/run this

program Test;
{.Include srl/srl/Misc/SMART.scar}

begin
end.
You shouldnt get any errors lol

Brain: iSpy?

grats
02-06-2010, 07:34 AM
ooops sorry i didnt mean revert >.> "Update to Revision"

Brain: iSpy?

Lol now I get this for every script

[Runtime Error] : Exception: Access violation at address 697C14D3 in module 'Embedded_SMART.dll'. Read of address 00000818 in line 81


uhg I fail no matter what :(

Dgby714
02-06-2010, 07:36 AM
Did you copy your plugins again?

grats
02-06-2010, 07:38 AM
Did you copy your plugins again?

No I have no idea what I am doing all I know is how to follow stuff step by step lol

Dgby714
02-06-2010, 07:43 AM
bring SCAR up and click Tools->Options->SRL Download->Move Plugins

x[Warrior]x3500
02-06-2010, 07:43 AM
No I have no idea what I am doing all I know is how to follow stuff step by step lol

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

grats
02-06-2010, 07:46 AM
bring SCAR up and click Tools->Options->SRL Download->Move Plugins

Yea I did it also tried manually it isnt the problem, the problems that smart.scar file it has an ! mark over it


x3500;682548']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

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.

x[Warrior]x3500
02-06-2010, 07:57 AM
in this thread he says that there was an update a few hours ago that changed something which causes this error in scripts.

i couldnt find that :( lol but on the other hand, i have the most recent SRL (Dev) and 3.23 pre. all of my scripts are still in working order and i do not get an error :D. could u possibly provide the script you are using?

EDIT:


'[Runtime Error] ... 'Embedded_SMART.dll'.':

This is a problem that most commonly occurs when you haven't moved your plugins properly. However, there are times that it occurs after you've moved them. There are two things that could be wrong:

Your Java is outdated. Simple fix, just update your Java.


You have the reflection SMART.dll file. Because some parts of reflection are currently broken, it can throw out errors such as this.

Dgby714
02-06-2010, 08:04 AM
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" Enter
http://freddy1990.com/svn/scarprerelease/ and click OK.

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 URL
http://www.villavu.com/repositories/srl-opendev/

5.) Get the Patch.txt file I attached to the post and rename it to Patch.diff.

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.

grats
02-06-2010, 08:06 AM
x3500;682550']i couldnt find that :( lol but on the other hand, i have the most recent SRL (Dev) and 3.23 pre. all of my scripts are still in working order and i do not get an error :D. could u possibly provide the script you are using?

EDIT:

Oh my god did you not read any part of the thread except for the past 2 posts before you entered? that error was caused by him trying to fix the first error, I do NOT have that error. I have the error stated in the first post.

Dgby714
02-06-2010, 08:11 AM
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.

grats
02-06-2010, 08:25 AM
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.

All my stuff is always updated :P
gonna try what you had now just finished doing it, starting a script

Dgby714
02-06-2010, 08:26 AM
Too test a script without running it, Click "Script" in the menubar then "Compile"

grats
02-06-2010, 08:29 AM
Too test a script without running it, Click "Script" in the menubar then "Compile"

I know that much lol, back at the first error now =[

Unknown identifier 'IncludePath' in script

Dgby714
02-06-2010, 08:32 AM
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

grats
02-06-2010, 08:34 AM
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

You didnt have 4 and 5 in the other list, I browse to patch.diff and click it? nothing happens after that

Dgby714
02-06-2010, 08:38 AM
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

procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL\SRL\misc\worlds.ini');
To

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');

grats
02-06-2010, 08:39 AM
Should get a screen that looks something like the attached file but the two sides will be diffrent.

Definitely nothing like that, I get that box completely empty

do you want to connect / can you connect with me on teamviewer? you can have full access to it

Dgby714
02-06-2010, 08:43 AM
lol had to google "teamviewer" to know what it was >.>

grats
02-06-2010, 08:44 AM
lol had to google "teamviewer" to know what it was >.>

Lol you just remote connect to my ID and you get full control to this computer so you can check what is wrong can you help like that?

Dgby714
02-06-2010, 08:46 AM
Yeah just installed it, ID? um you prob dont want the ID public um PM, Email(Dgby714[at]aol[dot]com) it?

grats
02-06-2010, 08:47 AM
Yeah just installed it, ID? um you prob dont want the ID public um PM, Email(Dgby714[at]aol[dot]com) it?

I can just private message you on this site it changes the password everytime so even if someone saw the message it wouldnt work unless I had the same password AND the program open which I dont...

Dgby714
02-06-2010, 08:56 AM
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

grats
02-06-2010, 09:03 AM
Ok his is fixed =) idk why my patch didnt work on his pc >.>

One little problem SMART_* varibles are set in SetupSRL;?

Is that second line to me? because I dont know what it means lol

could the error from the patch be possibly caused by VM? Some strange things are caused by it... things that dont make any sense XD

Dgby714
02-06-2010, 10:27 AM
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;