PyRomInfo - extract data from ROMs using python
#16
Hi garbear, I've written a basic cdi parser for reading Dreamcast cdi images. I know that there's no libretro core for the reicast emulator yet, but I think this could be added to pyrominfo anyway. My problem is that it's somehow impractical to support the parseBuffer()-call, since dreamcast images are easily >600MB in size. Any hints?

EDIT: This might be easier to discuss when looking at the actual code, so I opened a pull request: https://github.com/garbear/pyrominfo/pull/3
Reply
#17
As posted earlier, i have been working on adding parsers to the hachoir framework.
And to test if it would work as a kodi addon i created the following repo:
https://github.com/Woerd88/plugin.program.gameinfo

I am not sure how this addon could/should be used in the RetroPlayer project,
but else it was fun to work on Smile (This addon is now a simple program addon)

As i started to test and researched the web i noticed that some files can't be detected or parsed.
(Like Atari or MAME roms).
But there is a way to detect/identify these roms by .dat files.
These dat files consits of a list of game titles with it's rom size and a hash. (crc/md5/sha1).
Communities like http://www.no-intro.org/ manages these dat files.
Libretro also hosts these files in their repo: https://github.com/libretro/libretro-dat...master/dat

Maybe i could parse these .dat files (clrmamepro format) in the addon so we could extract/detect the ROM info using the hashlib?
Reply
#18
You can create a dat file mame itself I believe.
Reply
#19
Holzhaus, Woerd88, thanks for your work.

Woerd88, can you put hachoir into a separate add-on named script.module.hachoir that plugin.program.gameinfo depends on? I plan to package it with Kodi for my unified content scrapers
Reply
#20
Sure, i could try to do that.
But i have to say that the rom detection doesn't always work correctly.
Since some rom types don't have that many static bytes or a detectable header.

Thats why i maybe thought we should detect roms by calculating a hash over all bytes.

Should i only pack game parsers in the hachoir module?
Or the all parsers hachoir has to offer?
Reply
#21
what's the size of the parsers? if it's a few hundred K, sure, but if it's 2 or 3 MB then maybe just the game parsers

I remember running into some of these problems when writing PyRomInfo. Hachoir is nice, but the framework makes some easy things hard and some hard things easy. I'll prolly port most of the PyRomInfo parsers to hachoir, and leave the ones that require tricky header detection
Reply
#22
Holzhaus, you know what needs to happen?

Image

jasper integration into Kodi jarvis Wink
Reply
#23
@garbear, i have removed the hachoir framework from the gameinfo addon and created a new addon for it:
https://github.com/Woerd88/script.module.hachoir

If you have any questions or want me to help/change/add stuff. Please let me now.Smile
Reply

Logout Mark Read Team Forum Stats Members Help
PyRomInfo - extract data from ROMs using python0