-
Notifications
You must be signed in to change notification settings - Fork 78
Home
Welcome to the EverDrive-Packs-Lists-Database wiki!
(this is a work in progress; untested workflow; do not use!)
Builders willing to maintain up-to-date one or several packs will have to deal with five atomic modifications to the file organization:
- add a file,
- rename a file,
- replace a file,
- move a file,
- remove a file
Some modifications can be applied without having to rebuild the complete pack from scratch, hence saving computation time. Let's go through what can be done.
adding a file is easy. The less error-prone way is to place the file in a folder and to call the build_pack.py
script using that folder as source and the pack folder as destination. The script will check that the file has the correct hash value, and add it to the pack with the proper name. Subfolders are created in the pack if necessary. Of course, a bunch of new files can be added at once.
# build the pack (-o . means create the pack here)
build_pack.py -i all_files/ -d EverDrive\ N8\ \&\ PowerPak\ SMDB.txt -o . -m N8_missing.txt
# later, add two new few files
build_pack.py -i new_files/ -d EverDrive\ N8\ \&\ PowerPak\ SMDB.txt -o .
# new_files/
# ├── new_file1
# └── new_file2
The new files will be added without altering the rest of the pack. Note that the --missing
option is not informative when adding new files (it reports that most files are missing).