mirror of
https://github.com/Virtual-World-RE/NeoGF.git
synced 2024-11-15 09:45:33 +01:00
Update README.md
This commit is contained in:
parent
01c240a9e0
commit
41758378ce
12
README.md
12
README.md
|
@ -69,19 +69,19 @@ afstool.py --stats path
|
||||||
```
|
```
|
||||||
|
|
||||||
### Extracted file tree
|
### Extracted file tree
|
||||||
root folder contains all files of the unpacked AFS
|
**root** folder contains all files of the unpacked AFS
|
||||||
|
|
||||||
sys folder contains AFS system files of the game and generated files needed for AFS operations:
|
**sys** folder contains AFS system files and generated files needed for AFS operations:
|
||||||
* tableofcontent.bin - TOC sys file: You can edit this file it will be handled by the --pack command.
|
* tableofcontent.bin - TOC sys file: You can edit this file it will be handled by the --pack command.
|
||||||
* filenamedirectory.bin - FD sys file: This file is created only if there is a FD in the AFS.
|
* filenamedirectory.bin - FD sys file: This file is created only if there is a FD in the AFS.
|
||||||
* filename_resolver.csv - Created when multiple files have the same name in the FD.
|
* filename_resolver.csv - Created when multiple files have the same name in the FD.
|
||||||
* afs_rebuild.conf - Edit this file for rebuilding the AFS.
|
* afs_rebuild.conf - Edit this file for rebuilding the AFS.
|
||||||
* afs_rebuild.csv - Edit this file with correct values set in afs_rebuild.conf for rebuilding the AFS.
|
* afs_rebuild.csv - Edit this file according to the configuration used in afs_rebuild.conf for rebuilding the AFS.
|
||||||
|
|
||||||
### filename_resolver.csv:
|
### filename_resolver.csv
|
||||||
When there is a FD, new names use "filename (N).ext" format with N:Integer. Each line contains a couple of "index/unpacked_filename". If there is no FD in the AFS, files are named with their index, for instance: "00000002" for the third file. You can use the resolver to rename files using the index like this: "2/my_new_filename.ext". Then during pack afstool.py will auto detect the file and put it at the right index.
|
When there is a FD, new names use "filename (N).ext" format with N:Integer. Each line contains a couple of "index/unpacked_filename". If there is no FD in the AFS, files are named with their index, for instance: "00000002" for the third file. You can use the resolver to rename files using the index like this: "2/my_new_filename.ext". Then during pack afstool.py will auto detect the file and put it at the right index.
|
||||||
|
|
||||||
### afs_rebuild.conf:
|
### afs_rebuild.conf
|
||||||
All offsets and indexes are stored in hexadecimal with 0x prefix: 0xabcdef. Use auto when it's possible.
|
All offsets and indexes are stored in hexadecimal with 0x prefix: 0xabcdef. Use auto when it's possible.
|
||||||
|
|
||||||
#### \[Default\] section
|
#### \[Default\] section
|
||||||
|
@ -108,7 +108,7 @@ files_rebuild_strategy is used to organise files (indexes, offsets, packed name
|
||||||
* 0xabcdef: Use a custom hexadecimal constant.
|
* 0xabcdef: Use a custom hexadecimal constant.
|
||||||
* unknown: Don't know yet what it represent.
|
* unknown: Don't know yet what it represent.
|
||||||
|
|
||||||
### afs_rebuild.csv:
|
### afs_rebuild.csv
|
||||||
afs_rebuild.csv contains entries describing how to pack files in the AFS. All offsets and indexes are stored in hexadecimal with 0x prefix: 0xabcdef. Use auto for offsets or indexes when it's possible. Offsets have to be aligned to 0x800 (2048). Put one line per selected file that you wan't to constraint using the format: "unpacked_filename/index/offset/packed_filename", for instance: "dummy (5).bin/0x12/0x80000/dummy.bin". You can put auto to index or offset: "dummy (5).bin/auto/auto/dummy.bin". For an empty block add only offset/length couple with values aligned to 0x800, for instance: "0x80000/0x5000".
|
afs_rebuild.csv contains entries describing how to pack files in the AFS. All offsets and indexes are stored in hexadecimal with 0x prefix: 0xabcdef. Use auto for offsets or indexes when it's possible. Offsets have to be aligned to 0x800 (2048). Put one line per selected file that you wan't to constraint using the format: "unpacked_filename/index/offset/packed_filename", for instance: "dummy (5).bin/0x12/0x80000/dummy.bin". You can put auto to index or offset: "dummy (5).bin/auto/auto/dummy.bin". For an empty block add only offset/length couple with values aligned to 0x800, for instance: "0x80000/0x5000".
|
||||||
|
|
||||||
When rebuilding, remove all files without constraints from afs_rebuild.csv. Then put auto in indexes and offsets that doesn't have constraints. While rebuilding the AFS filename_resolver.csv will be removed but you can keep changes about filenames by adding entries with unpacked_filename+index (and packed_filename when there is a FD) into this file.
|
When rebuilding, remove all files without constraints from afs_rebuild.csv. Then put auto in indexes and offsets that doesn't have constraints. While rebuilding the AFS filename_resolver.csv will be removed but you can keep changes about filenames by adding entries with unpacked_filename+index (and packed_filename when there is a FD) into this file.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user