Author Topic: The Generator now does Nebula/Kawaks dat files :)  (Read 32869 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« on: April 14, 2004, 12:56:37 AM »
It's very preliminary, but I've added probably 95% of the necessary code to output nebula dat files.
The remaining 5% is fairly game-specific and complicated.
When I finish adding the rest, I will quite likely try to add mame driver generation, and possibly romcenter and/or clrmame pro dat generation.
 
Anyway, here's an example .dat file (note that between the ,, there should be crcs; I just left them blank)
 
Code: [Select]
System: NEO
RomName: kof2000
Game: The King of Fighters 2000
 
[Program]
xxx-p1.bin,0,100000,,0
xxx-p2.bin,100000,400000,,0
 
[Text]
xxx-s1.bin,0,020000,,0
 
[Z80]
xxx-m1.bin,0,040000,,0
 
[Samples]
xxx-v1.bin,0,400000,,0
xxx-v2.bin,400000,400000,,0
xxx-v3.bin,800000,400000,,0
xxx-v4.bin,C00000,400000,,0
 
[Graphics]
xxx-c1.bin,0,800000,,0
xxx-c2.bin,1,800000,,0
xxx-c3.bin,1000000,800000,,0
xxx-c4.bin,1000001,800000,,0
xxx-c5.bin,2000000,800000,,0
xxx-c6.bin,2000001,800000,,0
xxx-c7.bin,3000000,800000,,0
xxx-c8.bin,3000001,800000,,0
 
[System]
CartridgeID: 0
GfxCrypt: 0
GfxKey: 0
ButLayout: 9
Fix: 0


Offline Budweiser

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
  • Master Swanger
The Generator now does Nebula/Kawaks dat files :)
« Reply #1 on: April 18, 2004, 06:39:53 PM »
excellent work would love to see a mame driver one :)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #2 on: April 18, 2004, 07:56:22 PM »
Quote from: Budweiser
excellent work would love to see a mame driver one :)

Well, I've already got the mame stuff about half way done. It's fairly old work and doesn't output everything correctly yet, and also based on an old version of the generator - no lang support, lots of stuff missing.


bananaeater83

  • Guest
The Generator now does Nebula/Kawaks dat files :)
« Reply #3 on: April 19, 2004, 12:01:54 AM »
Quote from: iq_132
Well, I've already got the mame stuff about half way done. It's fairly old work and doesn't output everything correctly yet, and also based on an old version of the generator - no lang support, lots of stuff missing.

you will get it the way you want it though..we have faith in ya! :D

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #4 on: April 19, 2004, 12:26:48 AM »
lol, thanks banana :)
 
Here's an example of the code that it would spit out
Code: [Select]
ROM_START( kof2000 )
 
ROM_REGION( 0x200000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "xxx-p1.bin", 0x000000, 0x100000, CRC() )
ROM_LOAD16_WORD_SWAP( "xxx-p2.bin", 0x100000, 0x100000, CRC() )
 
NEO_SFIX_128K( "xxx-s1.bin, CRC() )
 
NEO_BIOS_SOUND_128K( "xxx-m1d.bin, CRC() )
 
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "xxx-v1.bin", 0x000000, 0x400000, CRC() )
ROM_LOAD( "xxx-v2.bin", 0x400000, 0x400000, CRC() )
ROM_LOAD( "xxx-v3.bin", 0x800000, 0x400000, CRC() )
ROM_LOAD( "xxx-v4.bin", 0xc00000, 0x400000, CRC() )
 
NO_DELTAT_REGION
 
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "xxx-c1.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c2.bin", 0x0000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c3.bin", 0x1000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c4.bin", 0x1000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c5.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c6.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c7.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c8.bin", 0x0000000, 0x800000, CRC() )
 
ROM_END
 
DRIVER_INIT( kof2000 )
{
init_neogeo();
}
 
This part goes at the bottom of "neogeo.c"
GAMEB( 2000, kof2000, neogeo, neogeo, neogeo, neogeo, kof2000, ROT0, "SNK Playmore Corporation", "The King of Fighters 2000" )


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #5 on: April 20, 2004, 06:15:09 AM »
Well, I got bored with the nebula stuff (which is close to 99%) and added some MAME stuff to the most current version of the generator.
 
It does not have:
Generic naming
Encryption stuff
Any init values
Semi-special fixes (SWAP C, SWAP V, SWAP P)
Alternative controller support (mjneogeo)
 
Code: [Select]
ROM_START( kof2000 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "xxx-p1.bin", 0x000000, 0x100000, CRC() )
ROM_LOAD16_WORD_SWAP( "xxx-p2.bin", 0x100000, 0x400000, CRC() )
 
NEO_SFIX_128k( "xxx-s1.bin", CRC() )
 
NEO_BIOS_SOUND_256k( "xxx-m1.bin", CRC() )
 
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "xxx-v1.bin", 0x000000, 0x400000, CRC() )
ROM_LOAD( "xxx-v2.bin", 0x400000, 0x400000, CRC() )
ROM_LOAD( "xxx-v3.bin", 0x800000, 0x400000, CRC() )
ROM_LOAD( "xxx-v4.bin", 0xc00000, 0x400000, CRC() )
 
NO_DELTAT_REGION
 
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "xxx-c1.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c2.bin", 0x0000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c3.bin", 0x1000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c4.bin", 0x1000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c5.bin", 0x2000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c6.bin", 0x2000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c7.bin", 0x3000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c8.bin", 0x3000001, 0x800000, CRC() )
ROM_END
 
 
This goes at the bottom of NEOGEO.C (src/)
 
GAMEB( 2000, kof2000, NULL, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK Playmore Corporation", "The King of Fighters 2000" )
 
 
This goes at the bottom of DRIVER.C (src/drivers/)
 
DRIVER( kof2000 ) /* CartID (c) 2000 SNK Playmore Corporation */


Offline GizM

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
  • The Reverend
Just wondering??????
« Reply #6 on: April 26, 2004, 01:07:18 AM »
How far you are on the Mame section of the generator?

Any new news on it.  Also when it is finished will you be releasing the src or just the exe for the generator?


Thanks again and  keep up the good work.

~GizM~

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #7 on: April 26, 2004, 02:47:01 PM »
The generator is just a web page (html + javascript), so you just have to look at it in notepad to get the source.

As for how far I've gotten, it does a fairly complete driver, there isn't support for anything in the init section yet, and there's no support for other controllers (mahjong, etc). I've also got it so that it outputs old format (think mame32k [.67]) drivers.


Here's basically what it outputs:

(Note that I just used the information for kof2000 as just an example)
Code: [Select]
ROM_START( kof2000 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "xxx-p1.bin", 0x000000, 0x100000, CRC() )
ROM_LOAD16_WORD_SWAP( "xxx-p2.bin", 0x100000, 0x400000, CRC() )
 
NEO_SFIX_128K( "xxx-s1.bin", CRC() )
 
NEO_BIOS_SOUND_256K( "xxx-m1.bin", CRC() )
 
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "xxx-v1.bin", 0x000000, 0x400000, CRC() )
ROM_LOAD( "xxx-v2.bin", 0x400000, 0x400000, CRC() )
ROM_LOAD( "xxx-v3.bin", 0x800000, 0x400000, CRC() )
ROM_LOAD( "xxx-v4.bin", 0xc00000, 0x400000, CRC() )
 
NO_DELTAT_REGION
 
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "xxx-c1.bin", 0x0000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c2.bin", 0x0000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c3.bin", 0x1000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c4.bin", 0x1000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c5.bin", 0x2000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c6.bin", 0x2000001, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c7.bin", 0x3000000, 0x800000, CRC() )
ROM_LOAD16_BYTE( "xxx-c8.bin", 0x3000001, 0x800000, CRC() )
ROM_END
 
 
This goes at the bottom of NEOGEO.C (src/)
 
GAMEB( 2000, kof2000, NULL, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK Playmore Corporation", "The King of Fighters 2000" )
 
 
This goes at the bottom of DRIVER.C (src/drivers/)
 
DRIVER( kof2000 ) /* CartID (c) 2000 SNK Playmore Corporation */


Here's a Screenie:



Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
The Generator now does Nebula/Kawaks dat files :)
« Reply #8 on: April 26, 2004, 10:45:54 PM »
Wooowww thats great! it can also make drivers for cps1 ans 2 games for MAME and FBA? that could be good too.
Congratulations, I love this generator, It saves to me a lot of time!
See ya!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #9 on: April 27, 2004, 01:29:30 AM »
Quote from: FerchogtX
Wooowww thats great! it can also make drivers for cps1 ans 2 games for MAME and FBA? that could be good too.
Congratulations, I love this generator, It saves to me a lot of time!
See ya!!!! :D


Not yet ;)  I'll certainly take a look at it though.


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #10 on: April 27, 2004, 02:01:25 PM »
Well here's what's new:
added changing controls
added working/not working
added encryption stuff
fixed the text telling you where to put the code
added sram protection

Code: [Select]
ROM_START( kof2000 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "kof-p1.bin", 0x000000, 0x100000, CRC(23234234) )
ROM_LOAD16_WORD_SWAP( "kof-p2.bin", 0x100000, 0x400000, CRC(23424234) )

NEO_SFIX_128K( "kof-s1.bin", CRC(23423423) )

NEO_BIOS_SOUND_256K( "kof-m1.bin", CRC(23465243) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "kof-v1.bin", 0x000000, 0x400000, CRC(23423423) )
ROM_LOAD( "kof-v2.bin", 0x400000, 0x400000, CRC(23424326) )
ROM_LOAD( "kof-v3.bin", 0x800000, 0x400000, CRC(23234234) )
ROM_LOAD( "kof-v4.bin", 0xc00000, 0x400000, CRC(23666666) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "kof-c1.bin", 0x0000000, 0x800000, CRC(52352532) )
ROM_LOAD16_BYTE( "kof-c2.bin", 0x0000001, 0x800000, CRC(23632523) )
ROM_LOAD16_BYTE( "kof-c3.bin", 0x1000000, 0x800000, CRC(23423523) )
ROM_LOAD16_BYTE( "kof-c4.bin", 0x1000001, 0x800000, CRC(32342342) )
ROM_LOAD16_BYTE( "kof-c5.bin", 0x2000000, 0x800000, CRC(23532666) )
ROM_LOAD16_BYTE( "kof-c6.bin", 0x2000001, 0x800000, CRC(23466623) )
ROM_LOAD16_BYTE( "kof-c7.bin", 0x3000000, 0x800000, CRC(32423556) )
ROM_LOAD16_BYTE( "kof-c8.bin", 0x3000001, 0x800000, CRC(23423422) )
ROM_END


This goes in the middle of NEOGEO.C (src/drivers/) in the init section.

DRIVER_INIT( kof2000 )
{
neogeo_fix_bank_type = 2;
kof99_neogeo_gfx_decrypt(0x6);
init_neogeo();
}


This goes at the bottom of NEOGEO.C (src/drivers/)

GAMEBX( 2000, kof2000, neogeo, neogeo, neogeo, mjneogeo,  kof2000,   ROT0, "SNK Playmore Corporation", "The King of Fighters 2000", GAME_NOT_WORKING )


This goes at the bottom of DRIVER.C (src/)

DRIVER( kof2000 ) /* (c) 2000 SNK Playmore Corporation */


Offline GizM

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
  • The Reverend
The Generator now does Nebula/Kawaks dat files :)
« Reply #11 on: April 27, 2004, 04:40:07 PM »
Quote from: iq_132
Well here's what's new:
added changing controls
added working/not working
added encryption stuff
fixed the text telling you where to put the code
added sram protection

Code: [Select]
ROM_START( kof2000 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "kof-p1.bin", 0x000000, 0x100000, CRC(23234234) )
ROM_LOAD16_WORD_SWAP( "kof-p2.bin", 0x100000, 0x400000, CRC(23424234) )

NEO_SFIX_128K( "kof-s1.bin", CRC(23423423) )

NEO_BIOS_SOUND_256K( "kof-m1.bin", CRC(23465243) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "kof-v1.bin", 0x000000, 0x400000, CRC(23423423) )
ROM_LOAD( "kof-v2.bin", 0x400000, 0x400000, CRC(23424326) )
ROM_LOAD( "kof-v3.bin", 0x800000, 0x400000, CRC(23234234) )
ROM_LOAD( "kof-v4.bin", 0xc00000, 0x400000, CRC(23666666) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "kof-c1.bin", 0x0000000, 0x800000, CRC(52352532) )
ROM_LOAD16_BYTE( "kof-c2.bin", 0x0000001, 0x800000, CRC(23632523) )
ROM_LOAD16_BYTE( "kof-c3.bin", 0x1000000, 0x800000, CRC(23423523) )
ROM_LOAD16_BYTE( "kof-c4.bin", 0x1000001, 0x800000, CRC(32342342) )
ROM_LOAD16_BYTE( "kof-c5.bin", 0x2000000, 0x800000, CRC(23532666) )
ROM_LOAD16_BYTE( "kof-c6.bin", 0x2000001, 0x800000, CRC(23466623) )
ROM_LOAD16_BYTE( "kof-c7.bin", 0x3000000, 0x800000, CRC(32423556) )
ROM_LOAD16_BYTE( "kof-c8.bin", 0x3000001, 0x800000, CRC(23423422) )
ROM_END


This goes in the middle of NEOGEO.C (src/drivers/) in the init section.

DRIVER_INIT( kof2000 )
{
neogeo_fix_bank_type = 2;
kof99_neogeo_gfx_decrypt(0x6);
init_neogeo();
}


This goes at the bottom of NEOGEO.C (src/drivers/)

GAMEBX( 2000, kof2000, neogeo, neogeo, neogeo, mjneogeo,  kof2000,   ROT0, "SNK Playmore Corporation", "The King of Fighters 2000", GAME_NOT_WORKING )


This goes at the bottom of DRIVER.C (src/)

DRIVER( kof2000 ) /* (c) 2000 SNK Playmore Corporation */



So this means that you have the generator working for mame?
Also does this generator work with adding drivers for mame besides Neogeo games?

And will this also give the needed information to add the code for the video and sound cpu etc et?

If not how hard will it be to add that into your program?

Then in theory if all of the things i just asked are in and working, will it beable to make drivers for un-emulated games.. as in the newer Golden tee golf games and others of the like?

Thanks for your reply's in advance ~GizM~

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #12 on: April 27, 2004, 05:04:36 PM »
Quote from: GizM
So this means that you have the generator working for mame?
Also does this generator work with adding drivers for mame besides Neogeo games?

And will this also give the needed information to add the code for the video and sound cpu etc et?

If not how hard will it be to add that into your program?

Then in theory if all of the things i just asked are in and working, will it beable to make drivers for un-emulated games.. as in the newer Golden tee golf games and others of the like?

Thanks for your reply's in advance ~GizM~


No, it won't generate anything except neo-geo drivers.  It's much too complicated to generate something like drivers for un-emulated systems.  If it wasn't, everyone would do it.


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The Generator now does Nebula/Kawaks dat files :)
« Reply #13 on: April 27, 2004, 06:20:08 PM »
For the mame stuff:
Added Swap V (Fairly easy stuff ;))
Added Prototype
Added text fix

To do:
Add Swap C
Add Swap P
Minor interface fixes


Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
The Generator now does Nebula/Kawaks dat files :)
« Reply #14 on: April 28, 2004, 04:09:46 PM »
How exactly swap V works on mame??? that flag is for FBA but, what is the traduction in mame code?
See ya!!!!!!

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...