Using Command Line Tools - X-Hax/sa_tools GitHub Wiki

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.

Adding the PATH environment variable

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:

Environment Variables

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

Add New Environment Variable

You can now run the tools from any folder in the command prompt.

Examples and usage

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:

Typing CMD Hit Enter and you can now use the command line tools in this folder:

Command Prompt

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

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).

ObjScan example 2