2018-10-23 17:48:54 +02:00
`ssn-installer` is a command line application that can be used to extract a single file from the disk files (.z01, .z02 etc.). This tool is very low-level and assumes that you have already read the .zip file and know the location, size and decryption keys of the specific file you want to extract.
2018-09-14 02:31:35 +02:00
2018-09-30 16:09:51 +02:00
If this is not a `-1to0` patch, the disk file may only contain the differences to the previous release. In this case, you can supply the location of this file's previous version, and this tool will generate the new version using VCDIFF/xdelta3.
2018-09-14 02:31:35 +02:00
2018-09-16 02:33:30 +02:00
If a target location is specified, the extracted file is saved to that location, otherwise it is written to stdout. From there, you can either dump it to disk or process it in memory.
2018-07-17 13:54:23 +02:00
2018-10-07 20:23:27 +02:00
# Installation
2018-09-14 00:48:53 +02:00
2018-09-30 16:09:51 +02:00
```bash
2018-10-07 20:23:27 +02:00
# Download repository
2018-10-08 15:04:12 +02:00
git clone https://git.jedipedia.net/swtor/ssn-installer.git
2018-10-07 20:23:27 +02:00
# Go into repository folder
2018-10-08 15:04:12 +02:00
cd ssn-installer
2018-10-07 20:23:27 +02:00
# Compile source code
2018-10-24 05:18:49 +02:00
npm install
2018-09-14 00:48:53 +02:00
```
2018-10-07 20:23:27 +02:00
# Usage
2018-09-14 00:48:53 +02:00
2018-09-30 16:09:51 +02:00
```bash
2018-10-07 19:33:20 +02:00
# Download disk
2018-09-14 02:31:35 +02:00
wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 & &
2018-10-07 20:23:27 +02:00
# Extract file from disk
2018-10-08 15:04:12 +02:00
./ssn-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > ../swtor_main_gfx_1.tor & &
2018-10-07 19:33:20 +02:00
# Verify that file exists
2018-09-14 02:31:35 +02:00
stat swtor_main_gfx_1.tor
2018-10-07 19:33:20 +02:00
# Delete disk
2018-09-14 02:31:35 +02:00
rm assets_swtor_main_-1to0.z08
2018-09-14 00:48:53 +02:00
```
2018-10-07 19:27:53 +02:00
For a description of the command line arguments, see [this file ](src/errorAndExit.c ).
2018-09-30 16:09:51 +02:00
2018-10-07 16:15:24 +02:00
# License
Copyright (C) 2018 Jedipedia.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see < https: / / www . gnu . org / licenses / > .
2018-07-17 13:54:23 +02:00
# Dependencies
2018-10-07 16:15:24 +02:00
## Miniz <[github.com/richgel999/miniz](https://github.com/richgel999/miniz)>
2018-07-17 13:54:23 +02:00
2018-07-17 17:19:13 +02:00
Copyright 2013-2014 RAD Game Tools and Valve Software
2018-09-14 02:31:35 +02:00
2018-07-17 17:19:13 +02:00
Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2018-10-07 16:15:24 +02:00
## Xdelta3 <[github.com/jmacd/xdelta](https://github.com/jmacd/xdelta)>
2018-09-14 03:16:31 +02:00
Copyright 2016 Joshua MacDonald
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.