Trouble with the Aim Bone script...

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Darramouss
Posts: 96
Joined: Fri May 23, 2008 2:34 am
Location: Melbourne, Australia

Trouble with the Aim Bone script...

Post by Darramouss »

Hello all.

I've been downloading some scripts from Lost Marble, (nice work, guys!), and I've come across a little problem. I've been trying to install the Aim Bone script that HeyVern wrote and am encountering an unexpected problem.

When I download the .lua file and save it into the scripts/menu folder, as I have all of the other scripts, when I try to access it via the Scripts menu in AS it shows, and functions, exactly like the Torus script.

Didn't expect that to happen...

Any ideas, tips, tricks, fixes on the tips of anyone's tongue? (Hoping you're available Vern!!!)
Sheer will is my greatest talent - Sledge Hammer!
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

That script is not a menu script. It is a layer script.

There are 3 types of scripts:

Tool
Layaer
Menu

Tool scripts are modifications of the existing tools used in AS or they are brand new tools. Those go in the tools folder of the scripts directory.

Layer scripts are "embedded" or "linked" to a layer. Click the layer options and at the bottom is a check box for an emebedded script. Click it and select a layer script.

Layer scripts should not be saved in the scripts folder. It is best to put them in the same folder as the AS file so it can stay with the file and not break the link to it if you move the enclosing folder around.

You need AS Pro to add new layer scripts. Files with scripts embedded should still work with AS standard... you just can't add new ones.

If it works like the torus script... yikes! I don't know how that happened.

Menu scripts are just that... they pop up a menu and modify the open file in some way by changing things or creating things. Menu scripts go in the menu folder of the scripts directory.

Just to warn you, my Aim Bone script is not... perfect. It has some issues. Make sure you read about in that thread where it's posted. Also too, it is not "officially sanctioned" by the creators of AS... use at your own risk.

-vern
User avatar
Darramouss
Posts: 96
Joined: Fri May 23, 2008 2:34 am
Location: Melbourne, Australia

Post by Darramouss »

Vern,

You are a dead-set legend. Got it working perfectly.

Many thanks!!
Sheer will is my greatest talent - Sledge Hammer!
User avatar
Víctor Paredes
Site Admin
Posts: 5817
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

that script is wonderful :wink:
Post Reply