Posted November 11, 2020
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
![TheBigCore](https://images.gog.com/fac9680b1e4de73a8c66ace7cd7a40e2d7b35e3819f6b44d01fcb7b57cda82b2_forum_avatar.jpg)
TheBigCore
Don't Shoot My Core!
Registered: Dec 2017
From United States
Posted February 19, 2021
![avatar](http://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_avm.jpg)
See here: https://gist.github.com/shmerl/202332219bebb5e5135ad41140f8f6d5
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
![admozb](https://images.gog.com/85238c5442d71488fea1397151503e6ffda9cc4e82d7018bf558557f59628c80_forum_avatar.jpg)
admozb
New User
Registered: Apr 2021
From United States
Posted April 30, 2021
[A bunch of silly stuff about not being able to run the script.}
Never mind, I figured out how to use it. Thanks for the super-helpful script, Shmerl!
Never mind, I figured out how to use it. Thanks for the super-helpful script, Shmerl!
Post edited May 01, 2021 by admozb
![Jonathan_The_Gamer](https://images.gog.com/b22b5e1aa66ce2027d57e140e28bc5c088c28b3ad523aa8108a0b842f1264003_forum_avatar.jpg)
Jonathan_The_Gamer
New User
Registered: Nov 2014
From Netherlands
Posted May 02, 2021
![avatar](http://images.gog.com/85238c5442d71488fea1397151503e6ffda9cc4e82d7018bf558557f59628c80_avm.jpg)
Never mind, I figured out how to use it. Thanks for the super-helpful script, Shmerl!
Using bash in Win10. Use following commands 1 by 1.
NES ROM Header
dd if=cc.exe skip=1041776 bs=1 count=16 > nes_header
dd if=cc.exe skip=124272 bs=1 count=131072 > castlevania
cat nes_header castlevania > castlevania.nes
dd if=cc.exe skip=255344 bs=1 count=262144 > castlevaniaii
cat nes_header castlevaniaii > castlevaniaii.nes
dd if=cc.exe skip=517488 bs=1 count=393216 > castlevaniaiii
cat nes_header castlevaniaiii > castlevaniaiii.nes
dd if=cc.exe skip=910704 bs=1 count=131072 > contra
cat nes_header contra > contra.nes
dd if=cc.exe skip=1041792 bs=1 count=131072 > jackal
cat nes_header jackal > jackal.nes
dd if=cc.exe skip=1172864 bs=1 count=262144 > superc
cat nes_header superc > superc.nes
After this repair the headers with this:
![avatar](http://images.gog.com/3dc37e58aae4c7b17d2972d3f04aafd9da9c0e44bdbc200ec008b57cfd992e40_avm.jpg)
NES header database: http://forums.nesdev.com/viewtopic.php?f=3&t=19940 (nothing illegal, just an XML database)
NES Header Repair python script: https://github.com/Kitrinx/NES_Header_Repair
I unzipped them both in the same directory as my reconstructed NES ROMs, and ran the script. Please note that it does a trial run to make sure that everything is OK -- to actually make any changes, you have to edit the script and change TRIAL RUN from 1 to 0.
Post edited May 02, 2021 by Jonathan_The_Gamer
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
![Time4Tea](https://images.gog.com/300843b8749132e805cd3d55a5d0ce1dae7cfc0171f6d50d14da48a43637d9bb_forum_avatar.jpg)
Time4Tea
Free speech and honey!
Registered: Jan 2015
From United States
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
![Time4Tea](https://images.gog.com/300843b8749132e805cd3d55a5d0ce1dae7cfc0171f6d50d14da48a43637d9bb_forum_avatar.jpg)
Time4Tea
Free speech and honey!
Registered: Jan 2015
From United States
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
Posted September 22, 2024
![avatar](http://images.gog.com/300843b8749132e805cd3d55a5d0ce1dae7cfc0171f6d50d14da48a43637d9bb_avm.jpg)
The way extraction script works is adding some pre-defined headers to the blobs of the games from the archive. May be that hack just expects something else.
Post edited September 22, 2024 by shmerl
![Time4Tea](https://images.gog.com/300843b8749132e805cd3d55a5d0ce1dae7cfc0171f6d50d14da48a43637d9bb_forum_avatar.jpg)
Time4Tea
Free speech and honey!
Registered: Jan 2015
From United States