Welcome!

Final Burn Neo => FBN Development => Topic started by: iq_132 on April 14, 2007, 08:00:03 PM

Title: CPS driver cleanup
Post by: iq_132 on April 14, 2007, 08:00:03 PM
Quote
1.08
Added new ddtodj set
Renamed old ddtodj to ddtodjr1
Renamed old ddtodjr1 to ddtodjr2


1.07

Renamed ecofghtu to ecofgtu1
Added new ecofghtu set
Clear main & gfx RAM on reset (fixes gfx glitches)


1.06

Fixed hsf2j (thanks doomking)


1.05

General:

Renamed driver files to be more in line with standard naming in FBA
 - dc_cps1.cpp and dc_cps2.cpp are now d_cps1.cpp and d_cps2.cpp, respectively
Changed how which system is being emulated is found (Leaf)
Re-ported cps2_crpt.c for use in FBA, as the key format has changed
 - Also fixed problem with missing "bit" definition (CaptainCPS-X)

d_cps1.cpp:

Added ffightu (US)
 - Renamed ffightu to ffightua (US 900112)
 - Renamed ffightua to ffightub (US 900613)

d_cps2.cpp:

Added 19xxb (Brazil 951218)

Added dimahoo (Euro 000121)
 - Renamed dimahoo to dimahoou (USA 000121)

Set mmancp2u (USA 951006) to "Working"
Set rmancp2j (Japan 950922) to "Working"

Added nwarr (Euro 950316)
 - Renamed nwarr to nwarru (USA 950406)

Added sfa3 (Euro 980904)
 - Renamed sfa3 to sfa3u (USA 980904)
 - Renamed sfa3r1 to sfa3ur1 (USA 980629)

Added xmcotaj (Japan 941222)
 - Renamed xmcotaj to xmcotaj1 (Japan 941219)
 - Renamed xmcotaj1 to xmcotaj2 (Japan 941217)



1.01

 Fixed 'BIT' definition



Version 1.00

    * All CPS-1 drivers (and CPS Changer) are now in dc_cps1.cpp
    * All CPS-2 drivers are now in dc_cps2.cpp
    * Drivers should match MAME very closely (perfectly?)
    * Drivers are in the same order as cps1.c and cps2.c in the MAME source, so editing back and forth should be easy
    * All drivers are now >>extremely<< clean
    * All CPS drivers share a common init
    * CPS games with special init code have a callback (like neogeo)
    * CPS games get some important info from a table (ripped from MAME).
    * Individual Kludge names are now Kludge, 1, 2, 3...
    * Lots of CPS-1 & CPS-2 code has been merged
    * Removed dc_input.cpp, moved all of that into dc_cps2.cpp



+154
Title: Re: CPS driver cleanup
Post by: Death Metal on April 14, 2007, 09:04:03 PM
Excelent. Sometimes I also endeavor into things like that (code clean-ups), but I'm sure yours must be incomparably much more well-done.
Title: Re: CPS driver cleanup
Post by: iq_132 on April 14, 2007, 09:52:48 PM
I don't know about incomparably better, but I did go absolutely 'OCD (http://en.wikipedia.org/wiki/OCD)' on the drivers themselves.  Everything else feels a bit messy to me yet, but I'm not entirely sure I'd ever be happy with it, so I decided to just release what I have. :S
I have a few other projects that I'm going to try and post in the next few weeks (as I get time), this is just the first on my list.
Title: Re: CPS driver cleanup
Post by: CaptainCPS on April 15, 2007, 01:11:42 AM
Man, nice stuff!!,...now I feel like helping but first I have to finish the things im working on :p lol...(btw, I had to click on the link 'OCD' xDD)

SeeYaa!
 :biggrin:
Title: Re: CPS driver cleanup
Post by: BisonSAS on April 15, 2007, 07:30:37 AM
Very good work! :smilie:
Title: Re: CPS driver cleanup
Post by: Leaf on April 15, 2007, 08:43:33 AM
Great work, iq_132. Now the code is similar to MAME. :biggrin:
Title: Re: CPS driver cleanup
Post by: iq_132 on April 18, 2007, 10:46:16 PM
Just wanted to let people know of a small update I added to the first post.  If you were getting a compile error regarding 'bit', the instructions to fix it are there.
Title: Re: CPS driver cleanup
Post by: CaptainCPS on April 19, 2007, 12:51:30 AM
I need a little help because I was adding your update to FBA Extras, first it was telling me the error I told you on the MSN and the updated code fixed it, but now i noticed other problem, it compiles fine and all but when i try to play any cps2 game it display a error like 'There was a problem starting 'Eco Fighters (World 931203)' or other cps2 game.

First I thought this was because by some of my modified code in some of the files but, then I made a clean FBA build with the latest official source and it gave me the same error, ...I dont know if im missing something but here is what i did...

1st - Extracted the FBA source (fba_src_029671)
2nd - Modified the makefile removing all dc_<driver name>.o, dc_inputs.o and added dc_cps1.o, dc_cps2.o
3rd - Added #define BIT(x,n) (((x)>>(n))&1) to the end of bitswap.h

that's it, then I compiled it...maybe there's something that need to be modified in other place too, but for now I dont know  :redface:

I hope this can be fixed, or revised by someone else to check if they get the same error.

ThanX in advance IQ! SeeYaa!
 :biggrin:
Title: Re: CPS driver cleanup
Post by: Leaf on April 19, 2007, 01:59:37 AM
I need a little help because I was adding your update to FBA Extras, first it was telling me the error I told you on the MSN and the updated code fixed it, but now i noticed other problem, it compiles fine and all but when i try to play any cps2 game it display a error like 'There was a problem starting 'Eco Fighters (World 931203)' or other cps2 game.

You should modified the CPS2 flag in burn.h, this is different with it in official src. :biggrin:
Quote
#define HARDWARE_CAPCOM_CPS1      (HARDWARE_PREFIX_CAPCOM | 0x00010000)
#define HARDWARE_CAPCOM_CPS1_QSOUND (HARDWARE_PREFIX_CAPCOM | 0x00020000)
#define HARDWARE_CAPCOM_CPS1_GENERIC (HARDWARE_PREFIX_CAPCOM | 0x00030000)
#define HARDWARE_CAPCOM_CPSCHANGER   (HARDWARE_PREFIX_CAPCOM | 0x00040000)
#define HARDWARE_CAPCOM_CPS2      (HARDWARE_PREFIX_CPS2 | 0x00050000)

because it's used in CpsInit(),
Quote
   // figure out what system we're looking at
   {
      int flag = (BurnDrvGetHardwareCode() >> 16) & 7;

      if (flag <= 3) Cps = 1; // Cps 1
      if (flag == 4) Cps = 3; // Cps Changer (Cps 1)
      if (flag >= 5) Cps = 2; // Cps 2
   }
Title: Re: CPS driver cleanup
Post by: CaptainCPS on April 19, 2007, 02:26:59 AM
You should modified the CPS2 flag in burn.h, this is different with it in official src. :biggrin:
because it's used in CpsInit(),

ThanX Leaf!, that fixed the issue  :wink:...

btw, I would have modified it, but it was unknown to me that flag was changed and there was no problem in the compilation.

SeeYaa!
 :biggrin:
Title: Re: CPS driver cleanup
Post by: Leaf on April 19, 2007, 03:04:54 AM
hmmm...I think it will not.
But you can modify it like this,
Code: [Select]
// figure out what system we're looking at
{
int flag = (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK);

switch (flag) {
case HARDWARE_CAPCOM_CPS1:
case HARDWARE_CAPCOM_CPS1_GENERIC:
case HARDWARE_CAPCOM_CPS1_QSOUND:
Cps = 1;
break;

case HARDWARE_CAPCOM_CPSCHANGER:
Cps = 3;
break;

case HARDWARE_CAPCOM_CPS2:
Cps = 2;
break;
}
}
Title: Re: CPS driver cleanup
Post by: CaptainCPS on April 19, 2007, 03:34:47 AM
hmmm...I think it will not.
But you can modify it like this,
Code: [Select]
// figure out what system we're looking at
{
int flag = (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK);

switch (flag) {
case HARDWARE_CAPCOM_CPS1:
case HARDWARE_CAPCOM_CPS1_GENERIC:
case HARDWARE_CAPCOM_CPS1_QSOUND:
Cps = 1;
break;

case HARDWARE_CAPCOM_CPSCHANGER:
Cps = 3;
break;

case HARDWARE_CAPCOM_CPS2:
Cps = 2;
break;
}
}

lol, it was working allready, but ThanX I will try it out  :biggrin:

SeeYaa!
 :biggrin:
Title: Re: CPS driver cleanup
Post by: iq_132 on September 11, 2007, 10:32:10 PM
Updated!

Check the first post. ;)
Title: Re: CPS driver cleanup
Post by: CaptainCPS on September 11, 2007, 11:18:25 PM
ThanX IQ! is cool to have this actual update ^^

I hope I can work on FBA again in the future (not too far future I hope lol :p)...

SeeYaa!
 :biggrin:
Title: Re: CPS driver cleanup
Post by: lxd_bruce on October 10, 2007, 05:13:33 AM
I found a bug of running hsf2j .
when selecting Feilong to play, FBA will stop and return to windows. :redface:
Title: Re: CPS driver cleanup
Post by: iq_132 on October 10, 2007, 03:40:02 PM
That's a new one to me... Using the ASM 68k core or the C one?
Title: Re: CPS driver cleanup
Post by: iq_132 on October 16, 2007, 09:43:50 PM
Fixed. :) Thanks. I hadn't noticed that at all.
Title: Re: CPS driver cleanup
Post by: iq_132 on November 02, 2007, 01:07:34 PM
Updated. Check the first post in this thread.
Title: Re: CPS driver cleanup
Post by: kenshiro on February 13, 2008, 01:03:57 PM
Hello everybody

I would like to thanks iq_132 for this drivers update, i added this into my FBAxxx Pro build and it works pretty well :biggrin:

CPS2 decryption is very fast on Xbox! :biggrin:

Again, nice work :cool:
Title: Re: CPS driver cleanup
Post by: 0746 on February 13, 2008, 04:15:46 PM
WoW I didn't see this thread. Things look awesome. Thanks for the drivers =)

BTW, if it helps, the default CPS driver scan is missing CPS objects remap. Not that big of a problem for normal gaming but I had to waste a lot of time putting up with graphics glitches for latency compensation because I thought its not needed as the driver doesn't use it.
Title: Re: CPS driver cleanup
Post by: iq_132 on February 13, 2008, 07:07:51 PM
Hello everybody

I would like to thanks iq_132 for this drivers update, i added this into my FBAxxx Pro build and it works pretty well :biggrin:

CPS2 decryption is very fast on Xbox! :biggrin:

Again, nice work :cool:
That's surprising! I wasn't sure it had enough ram to handle it :)  Nice work on compiling it btw, It was always such a pain in the ass to get it to do anything for me. lol (though I was  always breaking things :p)

WoW I didn't see this thread. Things look awesome. Thanks for the drivers =)

BTW, if it helps, the default CPS driver scan is missing CPS objects remap. Not that big of a problem for normal gaming but I had to waste a lot of time putting up with graphics glitches for latency compensation because I thought its not needed as the driver doesn't use it.

Np :) And here's a fixed(?) version.
Title: Re: CPS driver cleanup
Post by: 0746 on February 13, 2008, 09:14:50 PM
Nice. I see how you are remapping CpsRam660 as well. Does it's mapping ever change after cpsInit?
Title: Re: CPS driver cleanup
Post by: iq_132 on February 13, 2008, 09:26:13 PM
Nah, I just left some debug stuff left in there. :S  I've re-upped the file with it removed.
Title: Re: CPS driver cleanup
Post by: 0746 on February 13, 2008, 11:30:21 PM
oh =)  Sorry... I thought I found the solution to my random desync problem =)
Thanks again for the updated drivers
Title: Re: CPS driver cleanup
Post by: kenshiro on February 14, 2008, 06:26:17 AM
That's surprising! I wasn't sure it had enough ram to handle it :)  Nice work on compiling it btw, It was always such a pain in the ass to get it to do anything for me. lol (though I was  always breaking things :p)

I was surprised too. CPS2 loading is very short, less than 10 seconds for each game!!! :biggrin: :idiot:
Title: Re: CPS driver cleanup
Post by: Bonky0013 on February 15, 2008, 04:34:10 AM
Hello everybody

I would like to thanks iq_132 for this drivers update, i added this into my FBAxxx Pro build and it works pretty well :biggrin:

CPS2 decryption is very fast on Xbox! :biggrin:

Again, nice work :cool:


Hello all,
Whhoaaaahh ! Very good job iq_132  :biggrin:
Kenshiro is it possible to release it in a few day, my bobox want to test it   :biggrin:
 :confused: I have not the capacity for compile it  :confused:


Best regards from france.


Title: Re: CPS driver cleanup
Post by: iq_132 on February 28, 2008, 11:59:41 AM
Updated.  Check the first post in this thread.
Title: Re: CPS driver cleanup
Post by: KOF2112 on February 28, 2008, 09:49:15 PM
Thanks renewal

Discovers the mistake
ddtodj date mistake
struct BurnDriver BurnDrvCpsDdtodj = {
   "ddtodj", "ddtod", NULL, "1994",
   "Dungeons & Dragons: Tower of Doom (Japan 940125)\0", NULL, "Capcom", "CPS2",

MAME
GAME( 1993, ddtodj,   ddtod,    cps2, cps2_4p4b, cps2,     ROT0,   "Capcom", "Dungeons & Dragons: Tower of Doom (Japan 940412)", 0 )

ddtodjr1 mistake
Quote
static struct BurnRomInfo Ddtodjr1RomDesc[] = {
   { "dadj.03b",     0x080000, 0x87606b85, 1 | BRF_ESS | BRF_PRG },   // 68k program
   { "dadj.04b",     0x080000, 0x24d49575, 1 | BRF_ESS | BRF_PRG },
   { "dadj.05b",     0x080000, 0x56ce51f7, 1 | BRF_ESS | BRF_PRG },

MAME
Quote
ROM_START( ddtodjr1 )
   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
   ROM_LOAD16_WORD_SWAP( "dadj.03a", 0x000000, 0x80000, CRC(711638dc) SHA1(30c1d1a694aa8e51d072b26b47ba55aed6d77b7b) )
   ROM_LOAD16_WORD_SWAP( "dadj.04a", 0x080000, 0x80000, CRC(4869639c) SHA1(1544813e6712a78267c1d27b6b49148d42c11127) )
   ROM_LOAD16_WORD_SWAP( "dadj.05a", 0x100000, 0x80000, CRC(484c0efa) SHA1(d4ddef54149ef0141dcbe05df5f669fccf462559) )

ddtodjr1 Should be ddtodjr2, ddtodjr2 Should be ddtodjr1
Title: Re: CPS driver cleanup
Post by: iq_132 on February 28, 2008, 09:56:27 PM
Oopsie! Fixed.
Title: Re: CPS driver cleanup
Post by: LittleKaneda on February 28, 2008, 10:16:05 PM
Oopsie! Fixed.

Got this error

Quote
Generating depend file for src/burner/win32/about.cpp...
Generating depend file for src/burner/win32/resource.rc...
Compiling src/burner/win32/about.cpp...
Compiling resource file resource.rc...
Compiling src/burn/capcom/cps_mem.cpp...
src/burn/capcom/cps_mem.cpp: In function `int CpsAreaScan(int, int*)':
src/burn/capcom/cps_mem.cpp:361: error: syntax error at end of input
MAKE[1]: *** [cps_mem.o] Error 1
MAKE: *** [mingw] Error 2
Title: Re: CPS driver cleanup
Post by: iq_132 on February 28, 2008, 10:36:24 PM
Weird... it trimmed the last 3 lines off of the file when I saved it. :S

Anyway, fixed (for the 4th time...)
Title: Re: CPS driver cleanup
Post by: LittleKaneda on February 28, 2008, 10:46:30 PM
Weird... it trimmed the last 3 lines off of the file when I saved it. :S

Anyway, fixed (for the 4th time...)

Is this one my fault?

Quote
Linking executable... fba.exe
obj/GNU_WIN32/fba/burn/capcom/dc_1944.o(.data+0x690):dc_1944.cpp: undefined refe
rence to `Cps2Init()'
obj/GNU_WIN32/fba/burn/capcom/dc_1944.o(.data+0x710):dc_1944.cpp: undefined refe
rence to `Cps2Init()'
obj/GNU_WIN32/fba/burn/capcom/dc_19xx.o(.data+0x1210):dc_19xx.cpp: undefined ref
erence to `Cps2Init()'
obj/GNU_WIN32/fba/burn/capcom/dc_19xx.o(.data+0x1290):dc_19xx.cpp: undefined ref
erence to `Cps2Init()'
obj/GNU_WIN32/fba/burn/capcom/dc_19xx.o(.data+0x1310):dc_19xx.cpp: undefined ref
erence to `Cps2Init()'
obj/GNU_WIN32/fba/burn/capcom/dc_19xx.o(.data+0x1390):dc_19xx.cpp: more undefine
d references to `Cps2Init()' follow
MAKE[2]: *** [fba.exe] Error 1
MAKE[1]: *** [all] Error 2
MAKE: *** [mingw] Error 2
Title: Re: CPS driver cleanup
Post by: iq_132 on February 28, 2008, 10:57:34 PM
Is this one my fault?


Yeah.  My cleanup has the individual driver files for cps1 & cps2 combined into 2 files.


In makefile.mingw you'll want to replace this:

Code: [Select]
dc_1941.o dc_3wonders.o dc_captcomm.o dc_cawing.o dc_dino.o  dc_dw.o \
dc_ffight.o dc_forgottn.o dc_ghouls.o dc_knights.o dc_kod.o dc_megaman.o \
dc_mercs.o dc_msword.o dc_mtwins.o dc_nemo.o dc_pang3.o dc_pnickj.o \
dc_punisher.o dc_qad.o dc_qtono2.o dc_sf2.o dc_sf2t.o dc_sfzch.o \
dc_slammast.o dc_strider.o dc_unsquad.o dc_varth.o dc_willow.o dc_wof.o \
\
dc_1944.o dc_19xx.o dc_armwar.o dc_avsp.o dc_batcir.o dc_choko.o dc_csclub.o \
dc_cworld2j.o dc_cyb.o dc_ddsom.o dc_ddtod.o dc_dimahoo.o dc_dstlk.o \
dc_ecofghtr.o dc_gigawing.o dc_hsf2.o dc_jyangoku.o dc_megaman2.o dc_mmancp2u.o \
dc_mmatrix.o dc_mpang.o dc_msh.o dc_mshvsf.o dc_mvsc.o dc_nwarr.o dc_progear.o \
dc_pzloop2.o dc_qnd.o dc_ringdest.o dc_sfa.o dc_sfa2.o dc_sfa3.o dc_sgemf.o \
dc_spf.o dc_ssf2.o dc_ssf2t.o dc_vhunt2.o dc_vsav.o dc_vsav2.o dc_xmcota.o \
dc_xmvsf.o \

With this

Code: [Select]
d_cps1.o \
\
d_cps2.o \

and remove:

 dc_input.o


I'd really suggest deleting everything in the capcom directory and then putting these new ones in there. 
It's quite a bit cleaner without all of the unused dc_xxxx.cpp files.

Title: Re: CPS driver cleanup
Post by: LittleKaneda on February 28, 2008, 11:12:21 PM
Quote
      dc_cps1.o \
      \
      d_cps2.o \

I got this error below, so I changed dc_cps1.o \ to d_cps1.o \ And everything compiled correctly. Did I do that right?  :biggrin:
Quote
MAKE[1]: *** No rule to make target `dc_cps1.d', needed by `all'.  Stop.
MAKE: *** [mingw] Error 2


By the way, thanks for that.
Title: Re: CPS driver cleanup
Post by: iq_132 on February 28, 2008, 11:39:36 PM
I got this error below, so I changed dc_cps1.o \ to d_cps1.o \ And everything compiled correctly. Did I do that right?  :biggrin:

By the way, thanks for that.

Yup, that's right.  I'm completely out of it today lol.
Title: Re: CPS driver cleanup
Post by: kenshiro on February 29, 2008, 09:24:47 AM
I have noticed two problems:

- When i launch the set hsf2, hsf2j, ffightj and ffightu, i got a black screen :S We can hear the music, coins etc, but the screen is black :S

- The mbombrdj set have graphic glitches :redface:
Title: Re: CPS driver cleanup
Post by: iq_132 on February 29, 2008, 12:30:06 PM
I have noticed two problems:

- When i launch the set hsf2, hsf2j, ffightj and ffightu, i got a black screen :S We can hear the music, coins etc, but the screen is black :S

- The mbombrdj set have graphic glitches :redface:

I can't reproduce this. :S

Are you using the 68k ASM?  Have you tried deleting the config files for those games?  If you're compiling your own build, you may have to delete the obj/src/burn/capcom directory.
Title: Re: CPS driver cleanup
Post by: kenshiro on February 29, 2008, 01:47:55 PM
Quote
Are you using the 68k ASM?  Have you tried deleting the config files for those games?

Yes i'm using 68k ASM. I deleted all config files etc...

Quote
If you're compiling your own build, you may have to delete the obj/src/burn/capcom directory.

I did it. This is for a build of FBAxxx Pro.

I had probably broken something by lack of attention :biggrin:, i'll check that.

Thanks for your help! :wink:
Title: Re: CPS driver cleanup
Post by: LittleKaneda on February 29, 2008, 06:14:17 PM
If you're compiling your own build, you may have to delete the obj/src/burn/capcom directory.

I'm a little confused now. What's the difference between

src/burn/capcom (this is where I added the new files)

and

obj/GNU_WIN32/fba/burn/capcom
Title: Re: CPS driver cleanup
Post by: iq_132 on February 29, 2008, 06:25:30 PM
compilers generally compile each .c/cpp file individually (not just straight into the exe).  The produced files are "objects." -- .o / .d files  This is simply to speed up the compilation process (notice how the second time it didn't take 20 minutes lol).  Sometimes when a file is changed it doesn't update the corresponding object file and this causes problems. If you're not having any problems, no need to worry about the objects. ^^
Title: Re: CPS driver cleanup
Post by: LittleKaneda on February 29, 2008, 06:53:28 PM
I've noticed some games are now unknown since I added the new capcom files (agallet,uopoko,uopokoj,theroes, sailormn,guwange,gaia,feversos,esprade,donpachi,ddonpach, etc). These are all CAVE games, but that doesn't have anything to do with modifying the capcom directory, does it? If it doesn't, I'd rather not get off topic, but if you could pm me that'd be cool.
Title: Re: CPS driver cleanup
Post by: iq_132 on February 29, 2008, 11:45:47 PM
I've noticed some games are now unknown since I added the new capcom files (agallet,uopoko,uopokoj,theroes, sailormn,guwange,gaia,feversos,esprade,donpachi,ddonpach, etc). These are all CAVE games, but that doesn't have anything to do with modifying the capcom directory, does it? If it doesn't, I'd rather not get off topic, but if you could pm me that'd be cool.

When you added the CPS stuff in the, you didn't happen to trim the top two lines off, did you?

Code: [Select]
drvobj =    d_dodonpachi.o d_donpachi.o d_esprade.o d_feversos.o d_gaia.o d_guwange.o \
d_sailormn.o d_uopoko.o \
\
dc_1941.o dc_3wonders.o dc_captcomm.o dc_cawing.o dc_dino.o  dc_dw.o \
dc_ffight.o dc_forgottn.o dc_ghouls.o dc_knights.o dc_kod.o dc_megaman.o \
dc_mercs.o dc_msword.o dc_mtwins.o dc_nemo.o dc_pang3.o dc_pnickj.o \
dc_punisher.o dc_qad.o dc_qtono2.o dc_sf2.o dc_sf2t.o dc_sfzch.o \
dc_slammast.o dc_strider.o dc_unsquad.o dc_varth.o dc_willow.o dc_wof.o \
\
...
Title: Re: CPS driver cleanup
Post by: LittleKaneda on March 01, 2008, 12:56:05 AM
When you added the CPS stuff in the, you didn't happen to trim the top two lines off, did you?

Code: [Select]
drvobj =    d_dodonpachi.o d_donpachi.o d_esprade.o d_feversos.o d_gaia.o d_guwange.o \
d_sailormn.o d_uopoko.o \
\
dc_1941.o dc_3wonders.o dc_captcomm.o dc_cawing.o dc_dino.o  dc_dw.o \
dc_ffight.o dc_forgottn.o dc_ghouls.o dc_knights.o dc_kod.o dc_megaman.o \
dc_mercs.o dc_msword.o dc_mtwins.o dc_nemo.o dc_pang3.o dc_pnickj.o \
dc_punisher.o dc_qad.o dc_qtono2.o dc_sf2.o dc_sf2t.o dc_sfzch.o \
dc_slammast.o dc_strider.o dc_unsquad.o dc_varth.o dc_willow.o dc_wof.o \
\
...

Why yes, yes I did...

I'm out of it too

(also had to clear my obj/burn/cave folder. ha! i'm learning)
Title: Re: CPS driver cleanup
Post by: kenshiro on May 07, 2008, 07:47:29 PM
 Updated CPS2 romsets to match MAME 0.125,all seems ok :p :cool:



Title: Re: CPS driver cleanup
Post by: Bonky0013 on May 08, 2008, 12:59:44 PM
 Hello All ,

Great job kenshiro ;p
Title: Re: CPS driver cleanup
Post by: kenshiro on May 08, 2008, 01:59:19 PM
I forgot to declare megaman as parent of mmancp2u.

All seems really ok now lol :biggrin:
Title: Re: CPS driver cleanup
Post by: iq_132 on May 10, 2008, 11:46:43 PM
Nice!! This has saved me a lot of time!
Title: Re: CPS driver cleanup
Post by: 0746 on May 11, 2008, 07:54:04 AM
And I thought I accidentally deleted some files :biggrin:
It's in one file now. Really neat.
Title: Re: CPS driver cleanup
Post by: kenshiro on May 30, 2008, 01:41:57 PM
Added Mighty! Pang (Euro 001010)

Thanks you Bonky for this dump :biggrin:

Switch old set mpang to mpangu
Title: Re: CPS driver cleanup
Post by: Bonky0013 on May 30, 2008, 11:30:46 PM
Hello,

Very good job Kenshiro  :biggrin:

Thanks  :biggrin:
Title: Re: CPS driver cleanup
Post by: kenshiro on June 07, 2008, 07:00:11 PM
- Added Capcom Sports Club (970722 Japan, Rent version)

- Added support for split CPS-2 graphics roms from FBA 0.2.96.84

Thanks to Bonky and Treble Winner :biggrin:
Title: Re: CPS driver cleanup
Post by: lxd_bruce on July 14, 2008, 10:14:12 AM
ssf2tb,ssf2tbj,ssf2tbr1 can't work??? :confused:

look at the following picture
Title: Re: CPS driver cleanup
Post by: Barry Harris on July 14, 2008, 11:47:38 AM
They try to emulate the linkup feature but it currently doesn't work. Go into the games config screen and set it to "Single".
Title: Re: CPS driver cleanup
Post by: lxd_bruce on July 14, 2008, 12:24:33 PM
thx.

press F2. :biggrin:
Title: Re: CPS driver cleanup
Post by: lxd_bruce on July 15, 2008, 03:34:25 AM
Code: [Select]

// Forgotten Worlds (US)

static struct BurnRomInfo ForgottnRomDesc[] = {
{ "lwu11a",        0x020000, 0xddf78831, 1 | BRF_ESS | BRF_PRG }, // 68k program
{ "lwu15a",        0x020000, 0xf7ce2097, 1 | BRF_ESS | BRF_PRG },
{ "lwu10a",        0x020000, 0x8cb38c81, 1 | BRF_ESS | BRF_PRG },
{ "lwu14a",        0x020000, 0xd70ef9fd, 1 | BRF_ESS | BRF_PRG },
{ "lw-07",         0x080000, 0xfd252a26, 1 | BRF_ESS | BRF_PRG },

{ "lw-01.9d",      0x080000, 0x0318f298, 2 | BRF_GRA },
{ "lw-08.9f",      0x080000, 0x25a8e43c, 2 | BRF_GRA },
{ "lw-05.9e",      0x080000, 0xe4552fd7, 2 | BRF_GRA },
{ "lw-12.9g",      0x080000, 0x8e6a832b, 2 | BRF_GRA },
{ "lw-02.12d",     0x080000, 0x43e6c5c8, 2 | BRF_GRA },
{ "lw-09.12f",     0x080000, 0x899cb4ad, 2 | BRF_GRA },
{ "lw-06.12e",     0x080000, 0x5b9edffc, 2 | BRF_GRA },
{ "lw-13.12g",     0x080000, 0x8e058ef5, 2 | BRF_GRA },

{ "lwu00",         0x010000, 0x59df2a63, 3 | BRF_ESS | BRF_PRG }, // z80 program

{ "lw-03u",        0x020000, 0x807d051f, 4 | BRF_SND },
{ "lw-04u",        0x020000, 0xe6cd098e, 4 | BRF_SND },
};

STD_ROM_PICK(Forgottn) STD_ROM_FN(Forgottn)

void load_stars()
{
CpsLoadStars(CpsStar, 5);
}

int forgottnInit()
{
pCpsInitCallback = load_stars;

return CpsInit();
}

struct BurnDriver BurnDrvCpsForgottn = {
"forgottn", NULL, NULL, "1988",
"Forgotten Worlds (US)\0", NULL, "Capcom", "CPS1",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING,2,HARDWARE_CAPCOM_CPS1_GENERIC,
NULL,ForgottnRomInfo,ForgottnRomName,forgottnInputInfo, forgottnDIPInfo,
forgottnInit,CpsExit,Cps1Frame,CpsRedraw,CpsAreaScan,
&CpsRecalcPal,384,224,4,3
};

the latest set of "Forgottn" from MAME 0126 can't work.

How to solve this problem? :confused:
Title: Re: CPS driver cleanup
Post by: KOF2112 on July 15, 2008, 05:29:11 AM

CpsLoadStars(CpsStar, 5);

Changes

CpsLoadStars(CpsStar, 9);
Title: Re: CPS driver cleanup
Post by: lxd_bruce on July 15, 2008, 06:31:07 AM
CpsLoadStars(CpsStar, 5);

Changes

CpsLoadStars(CpsStar, 9);

it still doesn't work.

Maybe there is something else to modify?

Should cps.cpp be modified?

such as the following?

Code: [Select]
{"forgottn",CPS_B_01, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 7 },