libusb0-dll:err [control_msg] sending control message failed, win error: A device attached to the system is not functioning.

That message insinuates that the microcontroller has crashed, or is in an infinite loop, or is drawing more power than it's allowed to.

Ganbare Goemon Gaiden is an odd duck among the VRC2 carts, since it adds extra hardware to add support for RAM. Have you tried dumping it as though it were VRC4?

Author:

werewolfslayr925 [ Wed Jun 07, 2017 10:47 am ]

Post subject:

Re: Kazzo USB rom dumper / dev cart programmer

Quote:

Ganbare Goemon Gaiden is an odd duck among the VRC2 carts, since it adds extra hardware to add support for RAM. Have you tried dumping it as though it were VRC4?

I remember trying that because I saw that the VRC2 script pointed to something related to VRC4 anyway. I don't remember if it gave the same error or if it gave me a specific error for a particular line in the script. I'll have to wait to get home to find out.

If it does give the same error as mentioned above (libusb0 etc.), what would I need to do to dump it?

Author:

lidnariq [ Wed Jun 07, 2017 10:59 am ]

Post subject:

Re: Kazzo USB rom dumper / dev cart programmer

No idea.

Given that you do get through 15/16 of the PRG, it seems safe to assume that what's going wrong is somewhere in the last three lines

Oh, I see, you adapted the VRC2A code. Yeah, this is the VRC2A chr banking, not the VRC4b-style banking used by GGG1.

Replace those parameters with i>>4 ; i;j>>4; j

Author:

werewolfslayr925 [ Wed Jun 07, 2017 9:02 pm ]

Post subject:

Re: Kazzo USB rom dumper / dev cart programmer

OMIGOSH! IT WORKED!!

The Program ROM is a bit off, but it's yielding a working ROM! What's more, I needed this so I could test a translation patch for the game (for someone else...). So fyi, that should be ready soon if anyone is interested!

Thank you so much, tepples, lidnariq, and rainwarrior! Is there a master list of anago scripts to which I can contribute the script that successfully dumped the game? Should I contact Arantius so he can add it to his github or something?

EDIT:Okay, so the patch doesn't seem to like the slightly off ROM too much and some of the text sprites are in very weird places. What would I need to change in the script to get a perfect dump of the ROM?

I guess you could join GitHub, fork the project, add your script, and submit a pull request.

Author:

werewolfslayr925 [ Wed Jun 07, 2017 10:01 pm ]

Post subject:

Re: Kazzo USB rom dumper / dev cart programmer

I wanna make sure I get a clean copy of the ROM first, though. According to Bootgod's database, the CPU of the dump I got is slightly off

Code:

Program ROM: size 0x040000, crc32 0x825cba9e

VS

0x8360FA88

What can I change in the code to fix that?

Author:

rainwarrior [ Wed Jun 07, 2017 10:11 pm ]

Post subject:

Re: Kazzo USB rom dumper / dev cart programmer

You don't directly change the code to make the CRC match. The CRC is just a signature of the data you dumped.

If the dump for Bootgod was different at all from your cartridge, the CRC will be different.

If you incorrectly dumped, then there is something you might change in the code, but your goal should be getting an accurate dump of your cart, not matching a CRC. Can you run the dumped ROM in an emulator?

If you have a copy of the dump Bootgod used downloaded from somewhere (GoodNES set or something?), you can also use some binary compare tool to check that ROM against yours to see what's different, which could give a better idea of whether your dump is correct or not.