
The tool is written in Clojure and thus runs on every Java capable system.
This is as much a Clojure learning exercise as it is an attempt at actually getting something useful. Expect this program to be very rough around the edges.
It supports most script or mod plugins by now but has no support for ships, cockpis or maps yet.
(That doesn't mean it's not gonna blow up on you from time to time. Error checks are boring so I skipped them for the most part.


Usage is quite simple:
Code: Select all
% java -jar spktool-0.4.2.jar -h /path/to/spk1.spk /path/to/more/stuff/*.spk
Usage:
Switches Default Desc
-------- ------- ----
-h, --no-help, --help false Show help
-d, --no-dump, --dump false Dump SPK headers
-i, --no-info, --info false Show basic SPK info
-x, --no-xattr, --xattr true Use extended attributes (Java 7)
Code: Select all
% java -jar spktool-0.4.2.jar Shipkillednotifications-V1.0.3-16.11.2008.spk
Processing :extract on Shipkillednotifications-V1.0.3-16.11.2008.spk...
------------------------------------------------------------------------
Name: Ship killed notifications -- Author: ThisIsHarsh -- Version: 1.0.3
Description: Adds some extra audio and visual notifications for when a player-owned ship is destroyed.
Web: http://thisisharsh.maeyanie.com -- Forum: N/A
Dependencies: N/A
------------------------------------------------------------------------
Saving Ship_killed_notifications/t/7105.xml
Saving Ship_killed_notifications/scripts/plugin.killnotify.cfg.mnu.xml
Saving Ship_killed_notifications/scripts/plugin.killnotify.notify.xml
Saving Ship_killed_notifications/scripts/setup.plugin.killnotify.xml
Saving Ship_killed_notifications/scripts/plugin.killnotify.sig.xml
If your system has xattr support, it tags every file with user.SPKName and user.SPKVersion to help you track where it came from. (You need to use "mv" or "cp -a" to carry those attributes over.)
[ external image ] here.
If^H^H When you encounter any bugs or errors, please post here, preferably with the stacktrace in [ code ] tags and with a link to the offending SPK so that I can investigate.