toc is a command line tool for working with Table of Contents files found in the game Star Wars Galaxies.
A toc file describes which tre file contains which files, such as iff, stf...
It's basically a lookup table, hence the name Table of Contents.
The tool requires Java SE 13 or newer.
You can download the tool under Releases.
$ sudo ln -s /path/to/toc.sh /usr/bin/toc
Here are some examples of use cases for the tool.
We'll search for a file named something along the lines of transport_arriving.snd in sku0_client.toc.
$ toc -i sku0_client.toc -p | grep "transport_arriving.snd"
voice/sound/voice_starport_transport_arriving.snd@bottom.tre
We want to know how many files are in sku0_client.toc
$ toc -i sku0_client.toc -p | wc -l
193475