




Code: Select all
undertale quickbms reimport
aluigi wrote:That script (49games.bms) is not valid for reimporting because the re-compression algorithm is not available.
aluigi wrote:It's a problem of physical space, so there is no ready solution except writing a rebuilder from scratch (the format is not complex) or just appending the new content to the file and then modifying the OFFSET and SIZE field in the archive (something that requires manual work but may be easy with the help of quickbms -l -V).
Code: Select all
quickbms -l -V script.bms archive.dat > info.txt
Code: Select all
. 00000012 get comp_size 0x000032b4 4
. 00000016 get uncomp_size 0x0000981a 4
. 0000001a get name_len 0x0000000d 2
. 0000001c get extra_len 0x00000000 2
. 0000001e getdstr name "changelog.txt" 13
63 68 61 6e 67 65 6c 6f 67 2e 74 78 74 changelog.txt
. 0000002b getdstr extra "" 0
0000002b 38938 changelog.txt
Code: Select all
QuickBMS generic files extractor and reimporter 0.8.0
by Luigi Auriemma
e-mail: me@aluigi.org
web: aluigi.org
(Mar 12 2017 - 15:03:46)
quickbms.aluigi.org Homepage
zenhax.com ZenHAX Forum
@zenhax Twitter & Scripts
- GUI mode activated, remember that the tool works also from command-line
where are available various options like folder scanning, filters and so on
- select the BMS script to use
- select the input archives/files to extract, type * or "" for whole folder and
subfolders
- select the output folder where extracting the files
- REIMPORT mode enabled!
- remember to select the SAME script, file and folder you selected during
the previous extraction
- it's highly suggested to leave only the edited files in the folder, it's
faster and less prone to errors with compressed files
- open input file C:\XYZ\!Games\Onigiri\MOD\ORG\avatar_body-000d.kxr
- open script C:\XYZ\!Games\Onigiri\MOD\SCRIPTS\onigiri_online.bms
- set output folder C:\XYZ\!Games\Onigiri\MOD\OP TRIAL
offset filesize filename
--------------------------------------
- the script needs to load a pre-compiled function from the dll or code
MEMORY_FILE3
do you want to continue with this and any other requested dll/code (y/N)?
y
- library MEMORY_FILE3 loaded at address 0F7C0000
- function found at offset 0F7C0000
-
- 0 files reimported in 3 seconds
coverage file 0 1% 1350274 84488400 . offset 00000010
coverage file -1 100% 21177 21177 . offset 000052b9
coverage file -2 0% 0 363 . offset 00000000
coverage file -3 0% 0 69 . offset 00000000
Press ENTER or close the window to quit
Code: Select all
quickbms onigiri_online.bms PATH\avatar_body-000d.kxr PATH\output
quickbms -r -w onigiri_online.bms PATH\avatar_body-000d.kxr PATH\output