good nes data file ?

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

mattmatteh
Posts: 345
Joined: Fri Jul 29, 2005 3:40 pm
Location: near chicago

good nes data file ?

Post by mattmatteh »

i was looking at goodnes for a dat file with game info like crc32 info and rom sizes. i can not find it. i thought blargg said he found it or something like it.

an xml or some file would be nice for emulators to use for loading games. i am at the poing in mine where i am adding mapper support, but not sure how to go about that. i am thinking of using a text file as a database to check for known games.

matt
User avatar
Disch
Posts: 1848
Joined: Wed Nov 10, 2004 6:47 pm

Re: good nes data file ?

Post by Disch »

mattmatteh wrote:an xml or some file would be nice for emulators to use for loading games.
I must be the only person in the world who thinks storing binary data in plain text form is like the dumbest idea ever. Since when has XML been considered an easy file format to work with? Give me a plain old binary .dat file any day of the week. No chance to screw up... much simpler, much, much more efficient, and a whole lot easier to work with.

But I see lots of people doing stuff like this all the time now. Even a friend of mine online (bbitmaster) is doing something like this for data for his game he's working on. I guess I must be in the minority. Or perhaps there are benfits I'm unaware of.

</totally offtopic and unhelpful>
mattmatteh
Posts: 345
Joined: Fri Jul 29, 2005 3:40 pm
Location: near chicago

Post by mattmatteh »

doesnt have to be plain text. i didnt think it would be that large. doesnt matter. any file. i just want the data so i can use it my emu for opening games.

but what ever the file is, binary or plain text, it should be agree'ed on every one.

and i think it should be installed like a lib. that way one file to keep up to date and multiple emu's can use it.

back to the topic.... does goodnes have this data file ?

matt
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: good nes data file ?

Post by tepples »

Disch wrote:I must be the only person in the world who thinks storing binary data in plain text form is like the dumbest idea ever.
Game titles and board names are not "binary data" as it is normally understood; they're plain text.
Since when has XML been considered an easy file format to work with? Give me a plain old binary .dat file any day of the week. No chance to screw up
Unless no documentation for the format is available. You try reverse-engineering the Microsoft Word document format from scratch.
much simpler, much, much more efficient, and a whole lot easier to work with.
And a lot harder to make semi-self-documenting. I'd choose pipe-separated or comma-separated or tab-separated for publicly distributable files containing much text.
mattmatteh
Posts: 345
Joined: Fri Jul 29, 2005 3:40 pm
Location: near chicago

Post by mattmatteh »

is there a dat file from goodnes ? or anywhere else ? i was thinking about grabbing some of the data from bootgod's site to start with but not sure bootgod would like the hits on his site.

bootgod, do you have a dump or mind the hits ? probably less than 10 games.

matt
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

No, the database is INSIDE GoodNES. People have made GoodNES-like databases such as the TOSEC dats which are open for people to use. If the GoodNES convention is what you're after, at least a few people have managed to RE GoodXXXX because there are unofficial Japanese versions of GoodXXXX, so it's possible.
mattmatteh
Posts: 345
Joined: Fri Jul 29, 2005 3:40 pm
Location: near chicago

Post by mattmatteh »

do you know where i can get a database ? maybe just somthing to start with?

thanks

matt
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

Here, I found the data file versions in some kind of MAME text format:

http://www.emuxhaven.net/cowering.shtml#goodnes

I just downloaded the latest GoodNES and it doesn't have the same files as the one I downloaded a while back. I guess the author changed the format to be internal and compressed in the program
mattmatteh
Posts: 345
Joined: Fri Jul 29, 2005 3:40 pm
Location: near chicago

Post by mattmatteh »

thanks blargg. i noticed that there is only one crc32 for a game. is that for the prg and chr rom ?

matt
User avatar
Quietust
Posts: 1786
Joined: Sun Sep 19, 2004 10:59 pm
Contact:

Post by Quietust »

GoodNES stores a single checksum covering everything past the first 16 bytes of the file. That's right, it doesn't even check the PRG/CHR counts in the header, nor does it actually fix them if they're incorrect. There are actually a few hundred recognized "bad dumps" that are actually truncated files, likely resulting from incomplete uploads.

Nice useful program, that GoodNES.
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.
User avatar
blargg
Posts: 3717
Joined: Mon Sep 27, 2004 8:33 am
Location: Central Texas, USA
Contact:

Post by blargg »

It looks as if GoodNES 3 does correct the headers, based on the readme. Apparently the author is keeping the database in a proprietary format, preventing others from improving on it.
User avatar
hap
Posts: 355
Joined: Thu Mar 24, 2005 3:17 pm
Contact:

Post by hap »

Ah, so a new version is out then...
It looks as if GoodNES 3 does correct the headers, based on the readme.
Well, then the readme should be corrected (with GoodREADME maybe?), because I've just tried it with a random bunch of games that I know to have bad headers, and it corrected about half of them, a few of which were even corrected incorrectly.

*edit* looks like most of blargg's tests have been included too, useless in this format though: scattered, renamed, no documentation, eg. what would an ignorant person make of IRQ Handler Test by Shay Green (30 Jun 2005) (PD)? ... I'm interested, what's your (blargg) opinion on their inclusion? Knowing that every ROMs site in the future will have them for download, washing away the intended purpose you've created them for in the first place.
Last edited by hap on Tue Jul 25, 2006 3:03 pm, edited 1 time in total.
Nessie
Posts: 134
Joined: Mon Sep 20, 2004 11:13 am
Location: Sweden
Contact:

Post by Nessie »

Quietust wrote:GoodNES stores a single checksum covering everything past the first 16 bytes of the file. That's right, it doesn't even check the PRG/CHR counts in the header, nor does it actually fix them if they're incorrect. There are actually a few hundred recognized "bad dumps" that are actually truncated files, likely resulting from incomplete uploads.

Nice useful program, that GoodNES.
Numerous "bad dumps" also come from Vimm, who figured it was a good idea to append his name and url to the end of every rom on his site, thus giving the rom a different signature in GoodNES.
User avatar
Quietust
Posts: 1786
Joined: Sun Sep 19, 2004 10:59 pm
Contact:

Post by Quietust »

Nessie wrote:
Quietust wrote:GoodNES stores a single checksum covering everything past the first 16 bytes of the file. That's right, it doesn't even check the PRG/CHR counts in the header, nor does it actually fix them if they're incorrect. There are actually a few hundred recognized "bad dumps" that are actually truncated files, likely resulting from incomplete uploads.

Nice useful program, that GoodNES.
Numerous "bad dumps" also come from Vimm, who figured it was a good idea to append his name and url to the end of every rom on his site, thus giving the rom a different signature in GoodNES.
Actually, those are overdumps. Those are different from bad dumps.
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.
BootGod
Posts: 359
Joined: Wed Jul 13, 2005 3:14 pm

Post by BootGod »

mattmatteh wrote:is there a dat file from goodnes ? or anywhere else ? i was thinking about grabbing some of the data from bootgod's site to start with but not sure bootgod would like the hits on his site.

bootgod, do you have a dump or mind the hits ? probably less than 10 games.

matt
You can do what you like with the info, that's what it's there for :) If you'd like, I could generate a text file for you to use, just let me know which data fields you need. It surely beats trying to grab the info manually from the site.
Post Reply