A low-level patch installer written in C.
Find a file
2019-07-22 22:52:18 +02:00
.vscode 👷 Avoid specifying each file by nam,e 2019-07-22 00:00:27 +02:00
lib 👷 Upgrade miniz to 2.1.0 2019-07-21 22:37:18 +02:00
src 🐛 Fix file open on Windows 2019-07-22 21:42:27 +02:00
.editorconfig 🏗 Add editorconfig 2018-07-17 14:07:17 +02:00
.gitignore 🙈 Add cspell to gitignore and fix typos 2018-10-25 15:26:32 +02:00
build.js 🎨 Clean up code 2019-07-22 22:30:39 +02:00
LICENSE 📄 Add license 2018-10-07 16:15:24 +02:00
package-lock.json 👷‍♂️ Add package-lock.json file 2018-10-23 17:48:54 +02:00
package.json 👷 Remove "bin" entry since file name varies between OS 2019-07-22 22:52:18 +02:00
README.md 📝 Fix output path, add checksum 2019-07-21 22:19:57 +02:00

ssn-installer

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.

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.

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.

Installation

# Download repository
git clone https://git.jedipedia.net/swtor/ssn-installer.git
# Go into repository folder
cd ssn-installer
# Compile source code
npm install

Usage

# Download disk
wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 &&
# Extract file from disk
./ssn-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > swtor_main_gfx_1.tor &&
# Verify that file exists
stat swtor_main_gfx_1.tor &&
# Verify integrity - should be 9375978a57d22188f9450d6779483da12ee3a8d645080fc0bcae5ca1e087bfb2
sha256sum swtor_main_gfx_1.tor
# Delete disk
rm assets_swtor_main_-1to0.z08

For a description of the command line arguments, see this file.

License

Copyright (C) 2018-2019 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/.

Dependencies

Miniz

Copyright 2013-2014 RAD Game Tools and Valve Software

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.

Xdelta3

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.