Author Topic: Load game from Romdata  (Read 3078 times)

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Load game from Romdata
« on: May 23, 2024, 05:20:29 PM »
Hello guys.

What is the idea of ​​this option?, could someone explain how it works?

Offline dink

  • Administrator
  • *****
  • Posts: 5060
  • Karma: +451/-1
  • pie? I nearly bought one!
Re: Load game from Romdata
« Reply #1 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

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #2 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.

Offline taoenwen

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Load game from Romdata
« Reply #3 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.
« Last Edit: May 24, 2024, 09:07:07 AM by taoenwen »

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #4 on: May 24, 2024, 12:58:30 PM »
Perfect, I try with a patch of kof99 dreamcast version and svc playstation version.

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #5 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.
« Last Edit: May 24, 2024, 08:59:10 PM by xerf84 »

Offline taoenwen

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Load game from Romdata
« Reply #6 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.

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #7 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.
« Last Edit: May 24, 2024, 10:44:51 PM by xerf84 »

Offline taoenwen

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Load game from Romdata
« Reply #8 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!

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #9 on: May 26, 2024, 11:16:45 AM »

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #10 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

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0

Offline taoenwen

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Load game from Romdata
« Reply #12 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

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
« Last Edit: May 27, 2024, 02:59:49 PM by taoenwen »

Offline xerf84

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +1/-0
Re: Load game from Romdata
« Reply #13 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.

Offline Ge Os

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
  • I like turtles
Re: Load game from Romdata
« Reply #14 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.
Amateur combo maker, meme creator, casual gamer & full time human being.