libretro / libretro-database

Repository containing cheatcode files, content data files, etc.
MIT License
870 stars 781 forks source link

Split fields in Database #1254

Open Ezekiel000 opened 2 years ago

Ezekiel000 commented 2 years ago

I'm not sure if this is a feature request or a lack of documentation, but is it possible to have split fields in database entries? Not sure if that's the right way to put it. For example "LEGO Star Wars" should come under both "LEGO" and "Star Wars" for franchise in explore, is this possible? Is there already a specific character that will tell retroarch to split the field? If not I guess this is a feature request. It would be useful for Genre, Franchise, Developer, Region etc.

RobLoach commented 2 years ago

Yes, the metadata is available in the database: https://github.com/libretro/libretro-database

Going to move this over there.

Ezekiel000 commented 2 years ago

If you think that's best place for it. I was thinking this is more how retroarch interprets the metadata rather than if the metadata exists.

I've been writing custom dat files and converting them to rdb with RDBEd. For example if you have this in the dat file: game1 franchise "LEGO, Batman" game2 franchise "LEGO, Indiana Jones" It shows up in explore as: LEGO, Batman LEGO, Indiana Jones But I would like it to show up as: Batman Indiana Jones LEGO

I tried different dividing characters , / | to see if that would make them show separately but that didn't work. I thought maybe having multiple entries per game: game1 franchise "Batman" franchise "LEGO" game2 franchise "Indiana Jones" franchise "LEGO" But that won't open in RDBEd so I assume it won't work in retroarch.

I tried this: franchise "LEGO" "Batman" franchise "LEGO" "Indiana Jones" But that won't open in RDBEd so I assume it won't work in retroarch.

I tried a second entry for each game that only has the franchise, rom, crc, md5 & sha1 but that results them showing up under unknown in categories other than the one changed. (which was what I was trying to fix in the first place) Having complete second entry for each game but with a different franchise just results in duplicate entry's showing up in explore in categories other than the one changed.

RobLoach commented 2 years ago

Ah, I understand now... Franchise is one entry. Got it. I don't believe there is another entry in RetroArch that allow splitting across multiple categories. Do you know of one?

Ezekiel000 commented 2 years ago

No I don't. But it would be a useful feature for a few fields in the databases.

i30817 commented 2 years ago

I mean series could be crossovers and many are, companies can collaborate, etc. It's not unusual. When you have series like Kingdom Hearts or Marvel vs. Capcom vs whatever, it's kind of necessary.

Not to mention other 'soft' characteristics. You could easily have a single game have both 'female protagonist' and 'male protagonist' and 'non-human protagonist' all at the same time, and replace all of that by 'multiple protagonists' and both lose and gain some nuance that would be preferable to keep by just adding all of those.