Log in

View Full Version : Running Scripts with Includes



Nava2
11-20-2008, 09:11 PM
Well, it seems I have a problem, and I hope someone can help me! :(

Any time I run a script with includes which are not in the includes folder, SCAR will crash.

This includes my Abyssal Crafter, as well as Wizzup's Multi Miner.

I would love to test my script, and make some money with Wizzup's script ;) but I cannot.

Any help/ideas are appreciated! :)

Cheers.

E: It appears I cannot run Narcle's Nautilus well either. Might be my computer?

Kyle Undefined
11-20-2008, 11:08 PM
Like what do you mean? The includes at the top of the script? If that's the case wouldn't the best bet be reloading SRL? I don't know the exact way to help, sorry. I'm just throwing out ideas that I *think* will work. Kind of a shame that no one has posted here trying to help, after all the help that you do for us. But like I said, I'm guessing that reloading SRL would probably work but I'm not 100% sure. Try that and see how that works?

~Camo

Nava2
11-21-2008, 07:40 PM
No its when the scripts include files which are not in the SRL folder... Like, I cannot run my abyssal crafter.

GreatKhan
11-21-2008, 07:51 PM
Im guessing your trying to have them in a folder on the computer in some other location than the scar folder and be able to run off each other,
not sure if {.include C:\ffsjkjf\sdfsjd.scar} works
ya can get the location of the file by doing
ExtractFilePath(ScriptPath)+'filexxx.scar'

Kyle Undefined
11-21-2008, 08:52 PM
No its when the scripts include files which are not in the SRL folder... Like, I cannot run my abyssal crafter.

So there are includes that you need that you don't have?

~Camo

Rich
11-21-2008, 09:06 PM
All includes have to be in the your includes folder for them to be recognized.

A G E N T
11-21-2008, 09:08 PM
Make sure you're calling the include statement properly -

{.include X:\y.scar}

Will include x.scar relative to SCAR's include path. (i.e, X:\SCAR 3.15\X:\y.scar} which will, naturally, fail.


{include X:\y.scar}

Will include using the absolute (from root X:) path.

Nava2
11-22-2008, 02:44 AM
They run for others, but not me.

Btw, you can just include any file in the same folder as the current scripts being run.

Just so you know ;)

Kyle Undefined
11-22-2008, 06:44 AM
Is it for all scripts or just certain ones? This is really confusing me, I would really like to help tho, least I can do.

~Camo

Aser
11-22-2008, 07:07 AM
Try throwing the include you need inside of your include folder...?

then {.include file.scar}

Am I totally off or did I help?