Skip to content

Commit 448e63c

Browse files
committed
Add project files.
1 parent 7ff649d commit 448e63c

File tree

9 files changed

+1048
-0
lines changed

9 files changed

+1048
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Lovro Pleše
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Tekken 3 BinStream Extractor & Packer
2+
3+
This is a simple utility which allows you to unpack and pack the TEKKEN3.BNS file.
4+
5+
It achieves this by analyzing the game executable to retrieve the LBA table (and can update it accordingly).
6+
7+
## Usage
8+
9+
In order to extract a TEKKEN3.BNS file, you must provide a matching game executable with the file.
10+
11+
Here's a simple usage printout from the utility itself:
12+
13+
```
14+
USAGE: tek3ex BinStreamPath ExePath OutFolder
15+
USAGE (manual pos): tek3ex -m BinStreamPath ExePath LBATablePosInExe FileCount OutFolder
16+
USAGE (pack): tek3ex -p InFolder ExePath OutBinStream
17+
USAGE (manual pos pack): tek3ex -mp InFolder ExePath LBATablePosInExe FileCount OutBinStream
18+
```
19+
20+
Example: `tek3ex TEKKEN3.BNS SLPS_013.00 tekken3bnsfiles` should extract files to a folder "tekken3bnsfiles".
21+
22+
The utility will attempt to autodetect the LBA table, however, in cases where it cannot find it, you may use the manual mode.
23+
24+
### NOTES
25+
26+
- Please note that you cannot add or remove any files. Always use the same number of files that it was extracted with for repacking! In case there's a mismatch, you will be warned accordingly! Things will break if there is a mismatch!
27+
28+
- Keep the filenames numeric! Any non-numeric filename will be ignored! (extensions aren't taken into consideration, however, so you may use any extension)
29+
30+
- Theoretical maximum number of files is UINT16_MAX, or 65535 files
31+
32+
- Location of the TEKKEN3.BNS files isn't hardcoded, the game automatically detects its position! However, keep in mind, for any size changes, you **must** completely rebuild the ISO from scratch!
33+
34+
- Check the `useful-stuff` folder for more info about files and a way you can see which LBAs game is accessing in realtime (only for JP build for now)
35+
36+
## TODO
37+
38+
- Tekken 2? Appears to use a very similar format.
39+
40+
- Document more of the game stuff in general and make the debug cheat for the US build

0 commit comments

Comments
 (0)