-
Notifications
You must be signed in to change notification settings - Fork 27
Using Command Line Tools
In addition to GUI tools like Texture Editor and SAMDL, SA Tools include several command line tools useful for scripting and other purposes. These tools are located in SA Tools\bin. The bin folder contains a readme file with a brief overview of all command line tools.
To make using command line tools easier, add the bin folder to your system PATH environment variable. Go to System Properties, Advanced and Click "Environment Variables...". You will see the following window:

Select Path in in User Variables and click "Edit...". The click New and type the location of your SA Tools' bin folder. Example:

You can now run the tools from any folder in the command prompt.
One way to launch the command prompt in the folder you need is opening the folder in Explorer and typing cmd in the address bar:
Hit Enter and you can now use the command line tools in this folder:

To learn how to use a specific tool, run it without command line arguments.

Example: Scanning SA1 STG01.PRS for levels and models using the Object Scanner. Type the following in the command prompt and press Enter:
objscan SA1 STG01.PRS C900000 all
Note: the file STG01.PRS must exist in the folder you're running the command in (D:\test in this example).
