Welcome!

Final Burn Neo => FBN Discussion => Topic started by: xerf84 on May 23, 2024, 05:20:29 PM

Title: Load game from Romdata
Post by: xerf84 on May 23, 2024, 05:20:29 PM
Hello guys.

What is the idea of ​​this option?, could someone explain how it works?
Title: Re: Load game from Romdata
Post by: dink on May 23, 2024, 08:20:37 PM
Hi Xerf84,
I don't have a full understanding of this feature, but from what I understand so far, it allows one to side-load romsets that fbneo doesn't have yet in it's database.  Maybe taoenwen will explain better, as he added it :)

best regards,
- dink
Title: Re: Load game from Romdata
Post by: xerf84 on May 23, 2024, 09:24:15 PM
Well, it would be good if he explained what the *.dat syntax is or what data goes there and in what order. I don't think the syntax is the same as the kawaks loader data, but the idea should be similar.
Title: Re: Load game from Romdata
Post by: taoenwen on May 24, 2024, 08:51:14 AM
Well, it would be good if he explained what the *.dat syntax is or what data goes there and in what order. I don't think the syntax is the same as the kawaks loader data, but the idea should be similar.

fbneo's romdata allows some romsets that are not on the list, but run with a common driver.

The format of *.dat is as follows:
Code: [Select]
///////////////////////////////////////////////////////////
// ZipName:  Zip names that are not in the game list     //
// DrvName:  Select which driver exists in the game list //
// ExtraRom: NeoGeo specific extra rom                   //
// FullName: Detailed name of the game                   //
///////////////////////////////////////////////////////////

ZipName:  cyborgforce
DrvName:  mslug
ExtraRom:
FullName: "Cyborg Force! (Homebrew)"

// romname romsize crc type
cyborg-p1.bin 0x0100000, 0x89e1c728, 1 | BRF_ESS | BRF_PRG
cyborg-p2.bin 0x0300000, 0xe4a8b27a, 1 | BRF_ESS | BRF_PRG
cyborg-s1.bin 0x0020000, 0x5bd29810, 2 | BRF_GRA
cyborg-c1.bin 0x1000000, 0x77078687, 3 | BRF_GRA
cyborg-c2.bin 0x1000000, 0xa5abdb83, 3 | BRF_GRA
cyborg-m1.bin 0x0010000, 0x06da3cec, 4 | BRF_ESS | BRF_PRG
cyborg-v1.bin 0x0800000, 0xdc50718c, 5 | BRF_SND
cyborg-v2.bin 0x0800000, 0x8135d5a8, 5 | BRF_SND

Cyborg Force! (Homebrew) as an example:

ZipName, the set we want to use, usually *.zip or *.7z.

DrvName, the driver we want to run from, it is recommended to use clone when possible, so that we don't have to prepare some ROMs that are common to the parent set;

FullName, well understood, the name of the game.

romname/romsize/crc/type,It's almost identical to the fbneo source code, and corresponds to the ROMs in our ZipName zip file, just write to *.dat.

The dat file can be saved anywhere we can find it, and romset can just be saved in one of the paths of the 20 recognizable ROMs.

After that, Ctrl+R, find dat and select it.

By the way, a graphical listing of romdata functions will be coming next to make it easier to use.
Title: Re: Load game from Romdata
Post by: xerf84 on May 24, 2024, 12:58:30 PM
Perfect, I try with a patch of kof99 dreamcast version and svc playstation version.
Title: Re: Load game from Romdata
Post by: xerf84 on May 24, 2024, 08:33:12 PM
Very good, I was able to get it to work however I didn't quite understand some things:

1. On some occasions it sends me to the cross hatch test menu and on other occasions it sends me to the game.
2. If the rom loading failed due to some error in the data, I could no longer call the option but instead had to forcefully close the program and start again.
3. I managed to play kof games, but necessarily in DrvName I had to leave mslug instead of kof98, 99, etc.
4. Despite trying to associate the rom with a parent so as not to repeat the unmodified roms, I did not understand how to do it, I had to leave a *.zip with all the roms, the modified ones and those of the unmodified parent game.
Title: Re: Load game from Romdata
Post by: taoenwen on May 24, 2024, 09:33:46 PM
Very good, I was able to get it to work however I didn't quite understand some things:

1. On some occasions it sends me to the cross hatch test menu and on other occasions it sends me to the game.
2. If the rom loading failed due to some error in the data, I could no longer call the option but instead had to forcefully close the program and start again.
3. I managed to play kof games, but necessarily in DrvName I had to leave mslug instead of kof98, 99, etc.
4. Despite trying to associate the rom with a parent so as not to repeat the unmodified roms, I did not understand how to do it, I had to leave a *.zip with all the roms, the modified ones and those of the unmodified parent game.

1、I'm not sure I understand exactly what you mean by this, can you describe it further?
2、If the game of dat fails, we can choose in the menu to quit this game and then choose another dat file, the borrowed driver is within the list and must be restored.
3、As I said before, borrowing some common compatible driver, as far as ROMs loading order and initialization are consistent, we try to choose the set with the closest ROMs structure as possible, e.g., if we have a kof97-based modification in hand, we can try to use kof97h as the driver.
4、The rules for ROMs in romdata are the same as for any other game.If your game is based on a clone set driver, it will inherit the ROMs from the parent set, and you only need to prepare ROMs that differ from the parent set. If your game is based on a parent set driver, you must set all the ROMs needed to prepare it.
Title: Re: Load game from Romdata
Post by: xerf84 on May 24, 2024, 10:30:19 PM
1. I change the name of the driver to the clone, it loads fine every time.
2. If the load fails, it no longer allows me to load another *.dat until I close the application and start it again.
3 and 4. Also works with the driver name changed.

Thank you.
Title: Re: Load game from Romdata
Post by: taoenwen on May 25, 2024, 12:49:35 AM
1. I change the name of the driver to the clone, it loads fine every time.
2. If the load fails, it no longer allows me to load another *.dat until I close the application and start it again.
3 and 4. Also works with the driver name changed.

Thank you.

Any specifics? Like the dat+ROMs you're having problems with?

I'd like to test it, thanks!
Title: Re: Load game from Romdata
Post by: xerf84 on May 26, 2024, 11:16:45 AM
(https://imgur.com/zeAGA2D.png)
Title: Re: Load game from Romdata
Post by: xerf84 on May 26, 2024, 11:17:50 AM

ZipName:  kf2k2ps2re
DrvName:  kf2k2mp
ExtraRom:
FullName: "The King of Fighters 2002 (PS2 ver. 1.0) [EGCG & GSC2007]"

// romname   romsize      crc         type
265ps2-p1.p1   0x0100000,   0x77A0044C,   1 | BRF_ESS | BRF_PRG
265ps2-p2.sp2   0x0500000,   0xF9E4456A,   1 | BRF_ESS | BRF_PRG
265ps2-p3.p3   0x0020000,   0x6E6BEEBA,   1 | BRF_ESS | BRF_PRG

265ps2-s1.s1   0x0020000,   0x714ADE47,   2 | BRF_GRA

265-c1d.c1   0x0800000,   0x7EFA6EF7,   3 | BRF_GRA
265-c2d.c2   0x0800000,   0xAA82948B,   3 | BRF_GRA
265-c3d.c3      0x0800000,   0x959FAD0B,   3 | BRF_GRA
265-c4d.c4      0x0800000,   0xEFE6A468,   3 | BRF_GRA
265-c5d.c5      0x0800000,   0x74BBA7C6,   3 | BRF_GRA
265-c6d.c6      0x0800000,   0xE20D2216,   3 | BRF_GRA
265ps2-c7.c7    0x0800000,   0xF0897B93,   3 | BRF_GRA
265ps2-c8.c8    0x0800000,   0x8D27A4A6,   3 | BRF_GRA
265ps2-c9.c9    0x0800000,   0x9939C08A,   3 | BRF_GRA
265ps2-c10.c10  0x0800000,   0xC724C069,   3 | BRF_GRA

214-m1.m1       0x0020000,   0xDABC427C,   4 | BRF_ESS | BRF_PRG
262-m1d.m1      0x0040000,   0x4BCC537B,   4 | BRF_ESS | BRF_PRG
265-m1d.m1      0x0020000,   0x1C661A4B,   4 | BRF_ESS | BRF_PRG
269-m1d.m1      0x0080000,   0x7B7BF462,   4 | BRF_ESS | BRF_PRG

214-v1.v1   0x0400000,   0x63F7B045,   5 | BRF_SND
262-v1d.v1   0x0800000,   0xAC2913BF,   5 | BRF_SND
265-v1d.v1   0x0800000,   0x0FC9A58D,   5 | BRF_SND
269-v1d.v1   0x0800000,   0xFF64CD56,   5 | BRF_SND
214-v2.v2   0x0400000,   0x25929059,   5 | BRF_SND
262-v2d.v2   0x0800000,   0x15042F30,   5 | BRF_SND
265-v2d.v2   0x0800000,   0xB8C475A4,   5 | BRF_SND
269-v2d.v2   0x0800000,   0xA8DD6446,   5 | BRF_SND
214-v3.v3   0x0200000,   0x92A2257D,   5 | BRF_SND
Title: Re: Load game from Romdata
Post by: xerf84 on May 26, 2024, 11:18:39 AM
https://www.mediafire.com/file/2jnz0i8gfr3jkt7/kf2k2ps2re.zip/file
Title: Re: Load game from Romdata
Post by: taoenwen on May 27, 2024, 02:58:44 PM
ZipName:  kf2k2ps2re
DrvName:  kf2k2mp
ExtraRom:
FullName: "The King of Fighters 2002 (PS2 ver. 1.0) [EGCG & GSC2007]"

// romname   romsize      crc         type
265ps2-p1.p1   0x0100000,   0x77A0044C,   1 | BRF_ESS | BRF_PRG
265ps2-p2.sp2   0x0500000,   0xF9E4456A,   1 | BRF_ESS | BRF_PRG
265ps2-p3.p3   0x0020000,   0x6E6BEEBA,   1 | BRF_ESS | BRF_PRG

265ps2-s1.s1   0x0020000,   0x714ADE47,   2 | BRF_GRA

265-c1d.c1   0x0800000,   0x7EFA6EF7,   3 | BRF_GRA
265-c2d.c2   0x0800000,   0xAA82948B,   3 | BRF_GRA
265-c3d.c3      0x0800000,   0x959FAD0B,   3 | BRF_GRA
265-c4d.c4      0x0800000,   0xEFE6A468,   3 | BRF_GRA
265-c5d.c5      0x0800000,   0x74BBA7C6,   3 | BRF_GRA
265-c6d.c6      0x0800000,   0xE20D2216,   3 | BRF_GRA
265ps2-c7.c7    0x0800000,   0xF0897B93,   3 | BRF_GRA
265ps2-c8.c8    0x0800000,   0x8D27A4A6,   3 | BRF_GRA
265ps2-c9.c9    0x0800000,   0x9939C08A,   3 | BRF_GRA
265ps2-c10.c10  0x0800000,   0xC724C069,   3 | BRF_GRA

214-m1.m1       0x0020000,   0xDABC427C,   4 | BRF_ESS | BRF_PRG
262-m1d.m1      0x0040000,   0x4BCC537B,   4 | BRF_ESS | BRF_PRG
265-m1d.m1      0x0020000,   0x1C661A4B,   4 | BRF_ESS | BRF_PRG
269-m1d.m1      0x0080000,   0x7B7BF462,   4 | BRF_ESS | BRF_PRG

214-v1.v1   0x0400000,   0x63F7B045,   5 | BRF_SND
262-v1d.v1   0x0800000,   0xAC2913BF,   5 | BRF_SND
265-v1d.v1   0x0800000,   0x0FC9A58D,   5 | BRF_SND
269-v1d.v1   0x0800000,   0xFF64CD56,   5 | BRF_SND
214-v2.v2   0x0400000,   0x25929059,   5 | BRF_SND
262-v2d.v2   0x0800000,   0x15042F30,   5 | BRF_SND
265-v2d.v2   0x0800000,   0xB8C475A4,   5 | BRF_SND
269-v2d.v2   0x0800000,   0xA8DD6446,   5 | BRF_SND
214-v3.v3   0x0200000,   0x92A2257D,   5 | BRF_SND

kf2k2mp is not a suitable host, it has extra processing in the initialization, kof2k2fd is fully decrypted and recommended.

Also, many hacks in GSC2007 use p3 as an extra rom, it needs further mapping processing, you can refer to my format below and add p3 info here in ExtraRom.

Meanwhile, the situation you mentioned about the romdata failing to load the game and not being able to load it again has now been fixed, you can check: https://github.com/finalburnneo/FBNeo/commit/30615be699801afa508e584e31ef6dcf1af37b07 (https://github.com/finalburnneo/FBNeo/commit/30615be699801afa508e584e31ef6dcf1af37b07)

Code: [Select]
ZipName: kf2k2ps2re
DrvName: kof2k2fd
ExtraRom: 265ps2-p3.p3
FullName: "The King of Fighters 2002 (PS2 ver. 1.0) [EGCG & GSC2007]"

// romname romsize crc type
265ps2-p1.p1 0x0100000, 0x77A0044C, 1 | BRF_ESS | BRF_PRG
265ps2-p2.sp2 0x0500000, 0xF9E4456A, 1 | BRF_ESS | BRF_PRG
265ps2-p3.p3 0x0020000, 0x6E6BEEBA, 1 | BRF_ESS | BRF_PRG

265ps2-s1.s1 0x0020000, 0x714ADE47, 2 | BRF_GRA

265-c1d.c1 0x0800000, 0x7EFA6EF7, 3 | BRF_GRA
265-c2d.c2 0x0800000, 0xAA82948B, 3 | BRF_GRA
265-c3d.c3 0x0800000, 0x959FAD0B, 3 | BRF_GRA
265-c4d.c4 0x0800000, 0xEFE6A468, 3 | BRF_GRA
265-c5d.c5 0x0800000, 0x74BBA7C6, 3 | BRF_GRA
265-c6d.c6 0x0800000, 0xE20D2216, 3 | BRF_GRA
265ps2-c7.c7 0x0800000, 0xF0897B93, 3 | BRF_GRA
265ps2-c8.c8 0x0800000, 0x8D27A4A6, 3 | BRF_GRA
265ps2-c9.c9 0x0800000, 0x9939C08A, 3 | BRF_GRA
265ps2-c10.c10 0x0800000, 0xC724C069, 3 | BRF_GRA

214-m1.m1       0x0020000, 0xDABC427C, 0 | BRF_ESS | BRF_PRG
262-m1d.m1      0x0040000, 0x4BCC537B, 0 | BRF_ESS | BRF_PRG
265-m1d.m1      0x0020000, 0x1C661A4B, 4 | BRF_ESS | BRF_PRG
269-m1d.m1      0x0080000, 0x7B7BF462, 0 | BRF_ESS | BRF_PRG

214-v1.v1 0x0400000, 0x63F7B045, 0 | BRF_SND
262-v1d.v1 0x0800000, 0xAC2913BF, 0 | BRF_SND
265-v1d.v1 0x0800000, 0x0FC9A58D, 5 | BRF_SND
269-v1d.v1 0x0800000, 0xFF64CD56, 0 | BRF_SND
214-v2.v2 0x0400000, 0x25929059, 0 | BRF_SND
262-v2d.v2 0x0800000, 0x15042F30, 0 | BRF_SND
265-v2d.v2 0x0800000, 0xB8C475A4, 5 | BRF_SND
269-v2d.v2 0x0800000, 0xA8DD6446, 0 | BRF_SND
214-v3.v3 0x0200000, 0x92A2257D, 0 | BRF_SND
Title: Re: Load game from Romdata
Post by: xerf84 on May 29, 2024, 03:25:12 PM
Ok, I will try in the weekend, thankyou. I also add kof97 practice mode with orochi patchs and avanced bar like kof 98. Good implementation and support for fbn, great job.
Title: Re: Load game from Romdata
Post by: Ge Os on June 08, 2024, 02:30:25 AM
Code: [Select]
ZipName: kf2k2ps2re
DrvName: kof2k2fd
ExtraRom: 265ps2-p3.p3
FullName: "The King of Fighters 2002 (PS2 ver. 1.0) [EGCG & GSC2007]"

// romname romsize crc type
265ps2-p1.p1 0x0100000, 0x77A0044C, 1 | BRF_ESS | BRF_PRG
265ps2-p2.sp2 0x0500000, 0xF9E4456A, 1 | BRF_ESS | BRF_PRG
265ps2-p3.p3 0x0020000, 0x6E6BEEBA, 1 | BRF_ESS | BRF_PRG

265ps2-s1.s1 0x0020000, 0x714ADE47, 2 | BRF_GRA

265-c1d.c1 0x0800000, 0x7EFA6EF7, 3 | BRF_GRA
265-c2d.c2 0x0800000, 0xAA82948B, 3 | BRF_GRA
265-c3d.c3 0x0800000, 0x959FAD0B, 3 | BRF_GRA
265-c4d.c4 0x0800000, 0xEFE6A468, 3 | BRF_GRA
265-c5d.c5 0x0800000, 0x74BBA7C6, 3 | BRF_GRA
265-c6d.c6 0x0800000, 0xE20D2216, 3 | BRF_GRA
265ps2-c7.c7 0x0800000, 0xF0897B93, 3 | BRF_GRA
265ps2-c8.c8 0x0800000, 0x8D27A4A6, 3 | BRF_GRA
265ps2-c9.c9 0x0800000, 0x9939C08A, 3 | BRF_GRA
265ps2-c10.c10 0x0800000, 0xC724C069, 3 | BRF_GRA

214-m1.m1       0x0020000, 0xDABC427C, 0 | BRF_ESS | BRF_PRG
262-m1d.m1      0x0040000, 0x4BCC537B, 0 | BRF_ESS | BRF_PRG
265-m1d.m1      0x0020000, 0x1C661A4B, 4 | BRF_ESS | BRF_PRG
269-m1d.m1      0x0080000, 0x7B7BF462, 0 | BRF_ESS | BRF_PRG

214-v1.v1 0x0400000, 0x63F7B045, 0 | BRF_SND
262-v1d.v1 0x0800000, 0xAC2913BF, 0 | BRF_SND
265-v1d.v1 0x0800000, 0x0FC9A58D, 5 | BRF_SND
269-v1d.v1 0x0800000, 0xFF64CD56, 0 | BRF_SND
214-v2.v2 0x0400000, 0x25929059, 0 | BRF_SND
262-v2d.v2 0x0800000, 0x15042F30, 0 | BRF_SND
265-v2d.v2 0x0800000, 0xB8C475A4, 5 | BRF_SND
269-v2d.v2 0x0800000, 0xA8DD6446, 0 | BRF_SND
214-v3.v3 0x0200000, 0x92A2257D, 0 | BRF_SND

This loads the game, but the sound is all messed up.
Not sure if I'm missing something.
Title: Re: Load game from Romdata
Post by: taoenwen on June 08, 2024, 07:15:29 AM
This loads the game, but the sound is all messed up.
Not sure if I'm missing something.

Please confirm the integrity of ROMs with [type] other than 0.
Title: Re: Load game from Romdata
Post by: Ge Os on June 08, 2024, 11:22:45 AM
Just double checked.
The rom works on MAME, but in FBNeo the intro sounds weird, menus have no SFX, characters are mute, there's no BGM and after a while, even footsteps and hits become mute too.
Title: Re: Load game from Romdata
Post by: taoenwen on June 08, 2024, 10:07:46 PM
Just double checked.
The rom works on MAME, but in FBNeo the intro sounds weird, menus have no SFX, characters are mute, there's no BGM and after a while, even footsteps and hits become mute too.

I think I know what you're trying to say, some of the added characters in this hack game use the z80 cpu and sound samples from other versions of kof, and the current fbneo doesn't have an emulation of the extra z80 cpu, so the voices of these added characters are incomplete, and this has nothing to do with the romdata functionality, so please be aware of that.
Title: Re: Load game from Romdata
Post by: Ge Os on June 09, 2024, 12:51:03 AM
I think I know what you're trying to say, some of the added characters in this hack game use the z80 cpu and sound samples from other versions of kof, and the current fbneo doesn't have an emulation of the extra z80 cpu, so the voices of these added characters are incomplete, and this has nothing to do with the romdata functionality, so please be aware of that.

Ah! that explains it.
Thanks for the info.
Title: Re: Load game from Romdata
Post by: xerf84 on April 10, 2025, 07:27:55 PM
Hi, I'm back.

Does anyone know how to add Taito F3 System ROMs to a romdata?

Thanks.
Title: Re: Load game from Romdata
Post by: barbudreadmon on April 11, 2025, 03:38:12 AM
There is a number of specific rom flags used in taito romsets, and they don't seem implemented in the romdata parser. The rom loading code in taito drivers might also need some update.

Long story short i don't think you can use romdata with taito games (yet).
Title: Re: Load game from Romdata
Post by: xerf84 on April 11, 2025, 10:26:22 PM
Thanks for the feedback barbudreadmon. I'll be on the lookout for any new implementations. Best regards.
Title: Re: Load game from Romdata
Post by: taoenwen on April 18, 2025, 10:16:10 PM
Thanks for the feedback barbudreadmon. I'll be on the lookout for any new implementations. Best regards.

For example: TAITO_68KROM1_BYTESWAP32 / TAITO_68KROM1_BYTESWAP_JUMPING ...

These macros, which are actually numeric values, are converted from this text to numeric values when they are processed within the program.

Let's look at the definitions to see:
#define TAITO_68KROM1         1
#define TAITO_68KROM1_BYTESWAP      2
#define TAITO_68KROM1_BYTESWAP_JUMPING   3
#define TAITO_68KROM1_BYTESWAP32   4
...

So this is all we need to do now
{ "d67-19", 0x080000, 0x1d88fa5a, TAITO_68KROM1_BYTESWAP32 },
change to:
{ "d67-19", 0x080000, 0x1d88fa5a, 0x4},

It's that simple and there's no need for a big Copy and paste this content

romdata was designed with the idea of externalizing the game ROMs information, not creating anything extra.