Post by Creelien on Aug 15, 2020 18:37:19 GMT
These are a couple of batch scripts I wrote which use Quickbms 0.5.2(I love it forever) and Surveyor's Dmc4Patch_01, there's one for en masse .arc extraction and another for repacking .arcs with edited files. New and old modders alike should find them quite useful.
Please do note that they are all VERY DANGEROUS and its not my problem if anything happens to you, your DMC 4 installation or your family.
Link:
www.mediafire.com/?6ijwoen1ubxe8dh
Mirror:
dl.dropbox.com/u/12540524/Batchpack.zip
Descriptions:
+ DMC4EXTRACT&KILL.bat (Uses quickbms.exe, dmc4.bms and Dmc4Patch_01.exe):
This will extract all files from all .arcs in the same directory as this batch file, including sub-directories. Its what I used to find the missing files for the debug mode patch. The .arcs are then deleted, since Dmc4Patch_01 makes them useless anyway. SO BE EFFING CAREFUL, run it on it's own folder, and make a backup first.
Features:
1.The extracted files will have the proper extensions* (So it won't overwrite files with the same name and different extensions)
2.The directory structure is maintained
3.Each .arc is extracted to its own directory, with the prefix ARC_. So the extracted files will be in extracted\...\ARC_"arc name".
4.Use it to extract the whole game. I dare you.
+ applymod.bat (Uses quickbms.exe and dmc4.bms):
This will reimport files into .arc packages using quickbms's new reimport feature, as long as they are the same size as the originals, in the right directory tree, and without extensions. So no modelswaps, but reimporting hacked models, edited textures or dummy files is ok.
Just put your modded files with the right directory structure (nativepc\model\...) in the same directory as this batch file, remove all extensions**, then drop the target .arc file ON the batch file.
Obviously make a backup first.
*Some extensions, provided by Surveyor:
ARCEXT_MODEL .mod
ARCEXT_TEXTURE .tex
ARCEXT_RTEXTURE .rtx
ARCEXT_SHADER .bfx
ARCEXT_ANIMATION.anm
ARCEXT_SCHEDULE .sdl
ARCEXT_SOUND_OGG.sngw
ARCEXT_SOUND_STRQ.stq
ARCEXT_SBCOLLISION.sbc
ARCEXT_PLAY .pla
ARCEXT_MOTION .lmt
**How to remove all extensions quickly: If you can't follow these instructions, do it by hand.
Open a command line window in the target folder (Shift + Right click -> Open Command line window in windows 7), then copy and paste this:
FOR /F "DELIMS=" %%G IN ('dir /b /s *.*') DO (ren %%G %%~nG)
And press enter. I didn't include a batch file for this because if you can't follow these instructions, you shouldn't be given a script capable of removing all extensions from all files in a drive. For humor purposes, here's what would be in the description for that batch file, written before I realized that someone, somewhere would really run it on their C: drive:
removeextensions.bat (Uses nothing):
Drop this inside your mod's nativePc folder, run it, and it will remove all extensions from all files in that folder and sub-folders.
*Whatever you do, DON'T USE THIS IN A FOLDER WITH ANYTHING IMPORTANT IN IT.
I swear, if anyone comes crying to me saying "i uesd yor porgram on my c driv and windos dosent start how to fixx?!", I WILL punch said person in the face, and not a damn will be given that day.
Please do note that they are all VERY DANGEROUS and its not my problem if anything happens to you, your DMC 4 installation or your family.
Link:
www.mediafire.com/?6ijwoen1ubxe8dh
Mirror:
dl.dropbox.com/u/12540524/Batchpack.zip
Descriptions:
+ DMC4EXTRACT&KILL.bat (Uses quickbms.exe, dmc4.bms and Dmc4Patch_01.exe):
This will extract all files from all .arcs in the same directory as this batch file, including sub-directories. Its what I used to find the missing files for the debug mode patch. The .arcs are then deleted, since Dmc4Patch_01 makes them useless anyway. SO BE EFFING CAREFUL, run it on it's own folder, and make a backup first.
Features:
1.The extracted files will have the proper extensions* (So it won't overwrite files with the same name and different extensions)
2.The directory structure is maintained
3.Each .arc is extracted to its own directory, with the prefix ARC_. So the extracted files will be in extracted\...\ARC_"arc name".
4.Use it to extract the whole game. I dare you.
+ applymod.bat (Uses quickbms.exe and dmc4.bms):
This will reimport files into .arc packages using quickbms's new reimport feature, as long as they are the same size as the originals, in the right directory tree, and without extensions. So no modelswaps, but reimporting hacked models, edited textures or dummy files is ok.
Just put your modded files with the right directory structure (nativepc\model\...) in the same directory as this batch file, remove all extensions**, then drop the target .arc file ON the batch file.
Obviously make a backup first.
*Some extensions, provided by Surveyor:
ARCEXT_MODEL .mod
ARCEXT_TEXTURE .tex
ARCEXT_RTEXTURE .rtx
ARCEXT_SHADER .bfx
ARCEXT_ANIMATION.anm
ARCEXT_SCHEDULE .sdl
ARCEXT_SOUND_OGG.sngw
ARCEXT_SOUND_STRQ.stq
ARCEXT_SBCOLLISION.sbc
ARCEXT_PLAY .pla
ARCEXT_MOTION .lmt
**How to remove all extensions quickly: If you can't follow these instructions, do it by hand.
Open a command line window in the target folder (Shift + Right click -> Open Command line window in windows 7), then copy and paste this:
FOR /F "DELIMS=" %%G IN ('dir /b /s *.*') DO (ren %%G %%~nG)
And press enter. I didn't include a batch file for this because if you can't follow these instructions, you shouldn't be given a script capable of removing all extensions from all files in a drive. For humor purposes, here's what would be in the description for that batch file, written before I realized that someone, somewhere would really run it on their C: drive:
removeextensions.bat (Uses nothing):
Drop this inside your mod's nativePc folder, run it, and it will remove all extensions from all files in that folder and sub-folders.
*Whatever you do, DON'T USE THIS IN A FOLDER WITH ANYTHING IMPORTANT IN IT.
I swear, if anyone comes crying to me saying "i uesd yor porgram on my c driv and windos dosent start how to fixx?!", I WILL punch said person in the face, and not a damn will be given that day.