Author Topic: hsf2ad Chooses the person picture to be wrong  (Read 8670 times)

Offline KOF2112

  • Expert
  • *****
  • Posts: 187
  • Karma: +14/-4
hsf2ad Chooses the person picture to be wrong
« on: December 13, 2006, 10:59:27 AM »
 :confused:
FBA, hsf2ad Chooses the person picture to be wrong,The game is normal
Adds the Cps2Init game background all to appear the mistake :confused:

Quote
static struct BurnRomInfo hsf2adRomDesc[] = {
   { "hs2a.03d",      0x80000, 0x0153d371, 1 | BRF_ESS | BRF_PRG },  // 8, 68000 code (encrypted)
   { "hs2a.04d",      0x80000, 0x0276b78a, 1 | BRF_ESS | BRF_PRG },
   { "hs2.05",        0x80000, 0xdde34a35, 1 | BRF_ESS | BRF_PRG },
   { "hs2.06",        0x80000, 0xf4e56dda, 1 | BRF_ESS | BRF_PRG },
   { "hs2a.07",       0x80000, 0xee4420fc, 1 | BRF_ESS | BRF_PRG },
   { "hs2.08",        0x80000, 0xc9441533, 1 | BRF_ESS | BRF_PRG },
   { "hs2.09",        0x80000, 0x3fc638a8, 1 | BRF_ESS | BRF_PRG },
   { "hs2.10",        0x80000, 0x20d0f9e4, 1 | BRF_ESS | BRF_PRG },

   // graphics:
   { "hs2.13m",       0x800000, 0xa6ecab17, 3 | BRF_GRA },        // 16
   { "hs2.15m",       0x800000, 0x10a0ae4d, 3 | BRF_GRA },
   { "hs2.17m",       0x800000, 0xadfa7726, 3 | BRF_GRA },
   { "hs2.19m",       0x800000, 0xbb3ae322, 3 | BRF_GRA },

   // sound - z80 roms
   { "hs2.01",        0x020000, 0xc1a13786, 4 | BRF_ESS | BRF_PRG }, // 20
   { "hs2.02",        0x020000, 0x2d8794aa, 4 | BRF_ESS | BRF_PRG },

   // sound - samples
   { "hs2.11m",       0x800000, 0x0e15c359, 5 | BRF_SND },        // 22
};

STD_ROM_PICK(hsf2ad) STD_ROM_FN(hsf2ad)

struct BurnDriver BurnDrvCpshsf2ad = {
   "hsf2ad", "hsf2a", NULL, "2003",
   "Hyper Street Fighter II - The Anniversary Edition (Phoenix Edition, Asia 040202)\0", "Bootleg, Imperfect Graphics", "Capcom", "CPS2",
   NULL, NULL, NULL, NULL,
   BDF_GAME_WORKING | BDF_CLONE,2,HARDWARE_CAPCOM_CPS2,
   NULL, hsf2adRomInfo, hsf2adRomName, DrvInputInfo, NULL,
   DrvInit, CpsExit,Cps2Frame, CpsRedraw,CpsAreaScan,
   &CpsRecalcPal, 384, 224, 4, 3
};

Offline Leaf

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +9/-4
Re: hsf2ad Chooses the person picture to be wrong
« Reply #1 on: December 13, 2006, 08:32:40 PM »
Use DrvInit of ssf2t and it works OK. :biggrin:
Code: [Select]
//=======================================================================
//Hyper Street Fighter II The Anniversary Edition (Phoenix edition, Asia)
//=======================================================================

static int Hsf2adInit()
{
Ssf2t = 1;

if (Cps2Init()) {
return 1;
}

nCpsGfxScroll[3] = 0;

return 0;
}

static struct BurnRomInfo hsf2adRomDesc[] = {
{ "hs2ad.03",      0x80000, 0x0153d371, 1 | BRF_ESS | BRF_PRG },  // 8, 68000 code (encrypted)
{ "hs2ad.04",      0x80000, 0x0276b78a, 1 | BRF_ESS | BRF_PRG },
{ "hs2.05",        0x80000, 0xdde34a35, 1 | BRF_ESS | BRF_PRG },
{ "hs2.06",        0x80000, 0xf4e56dda, 1 | BRF_ESS | BRF_PRG },
{ "hs2a.07",       0x80000, 0xee4420fc, 1 | BRF_ESS | BRF_PRG },
{ "hs2.08",        0x80000, 0xc9441533, 1 | BRF_ESS | BRF_PRG },
{ "hs2.09",        0x80000, 0x3fc638a8, 1 | BRF_ESS | BRF_PRG },
{ "hs2.10",        0x80000, 0x20d0f9e4, 1 | BRF_ESS | BRF_PRG },

// graphics:
{ "hs2.13m",       0x800000, 0xa6ecab17, 3 | BRF_GRA },   // 16
{ "hs2.15m",       0x800000, 0x10a0ae4d, 3 | BRF_GRA },
{ "hs2.17m",       0x800000, 0xadfa7726, 3 | BRF_GRA },
{ "hs2.19m",       0x800000, 0xbb3ae322, 3 | BRF_GRA },

// sound - z80 roms
{ "hs2.01",        0x020000, 0xc1a13786, 4 | BRF_ESS | BRF_PRG }, // 20
{ "hs2.02",        0x020000, 0x2d8794aa, 4 | BRF_ESS | BRF_PRG },

// sound - samples
{ "hs2.11m",       0x800000, 0x0e15c359, 5 | BRF_SND },   // 22
};

STD_ROM_PICK(hsf2ad) STD_ROM_FN(hsf2ad)

struct BurnDriver BurnDrvCpshsf2ad = {
"hsf2ad", "hsf2a", NULL, "2003",
"Hyper Street Fighter II - The Anniversary Edition (Phoenix Edition, Asia 040202)\0", "Imperfect Graphics", "Capcom", "CPS2",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_BOOTLEG, 2, HARDWARE_CAPCOM_CPS2,
NULL, hsf2adRomInfo, hsf2adRomName, DrvInputInfo, NULL,
Hsf2adInit, DrvExit, Cps2Frame, CpsRedraw, CpsAreaScan,
&CpsRecalcPal, 384, 224, 4, 3
};

Offline BisonSAS

  • Expert
  • *****
  • Posts: 210
  • Karma: +27/-0
  • [NGBRT]
    • NeoGeo BR Team
Re: hsf2ad Chooses the person picture to be wrong
« Reply #2 on: December 13, 2006, 09:47:04 PM »


Full FBA driver in attachment. :biggrin:

Offline KOF2112

  • Expert
  • *****
  • Posts: 187
  • Karma: +14/-4
Re: hsf2ad Chooses the person picture to be wrong
« Reply #3 on: December 13, 2006, 10:20:56 PM »
 :biggrin:

Thanks You BisonSAS

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: hsf2ad Chooses the person picture to be wrong
« Reply #4 on: December 14, 2006, 01:54:31 AM »
Here's what I have.  This removes any need for patches. ^^



Updated: Dec. 17, 2006
--------------------------------
Simplified code


+40
« Last Edit: December 19, 2006, 11:18:15 AM by iq_132 »


Offline BisonSAS

  • Expert
  • *****
  • Posts: 210
  • Karma: +27/-0
  • [NGBRT]
    • NeoGeo BR Team
Re: hsf2ad Chooses the person picture to be wrong
« Reply #5 on: December 14, 2006, 06:50:44 AM »
Here's what I have.  This removes any need for patches. ^^
Thanks! :biggrin:

Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
Re: hsf2ad Chooses the person picture to be wrong
« Reply #6 on: December 14, 2006, 01:46:21 PM »
Gentlemen, if I may ask, what is this

Code: [Select]
STDINPUTINFOSPEC(Hsf2, CpsFsi);
because I'm having problems with this "CpsFsi" to compile if I incluide this line. Is it really necessary?

Offline KOF2112

  • Expert
  • *****
  • Posts: 187
  • Karma: +14/-4
Re: hsf2ad Chooses the person picture to be wrong
« Reply #7 on: December 14, 2006, 01:49:24 PM »
 :biggrin:
Thanks!  iq_132  The code might solve hsf2ad to choose the number of people picture to have the grid files

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: hsf2ad Chooses the person picture to be wrong
« Reply #8 on: December 14, 2006, 05:17:06 PM »
Gentlemen, if I may ask, what is this

Code: [Select]
STDINPUTINFOSPEC(Hsf2, CpsFsi);
because I'm having problems with this "CpsFsi" to compile if I incluide this line. Is it really necessary?

That's strange.  It works fine on my plain 0.2.95.23 build.  Look in dc_ssf2t.cpp and find a similar line and just replace it with that (it should definitely work then ^^)


Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
Re: hsf2ad Chooses the person picture to be wrong
« Reply #9 on: December 14, 2006, 07:55:51 PM »
Haha, I'm sorry, forget that. I checked later and it was a small problem I had created myself. :p But Thanks for replying, helped me in finding it. ;)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: hsf2ad Chooses the person picture to be wrong
« Reply #10 on: December 17, 2006, 09:29:14 AM »
I updated the source I posted above.  It's much better, cleaner code. :)


Offline Leaf

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +9/-4
Re: hsf2ad Chooses the person picture to be wrong
« Reply #11 on: December 18, 2006, 08:32:31 PM »
I updated the source I posted above.  It's much better, cleaner code. :)
Thanks for the source,
I tested spf2xjd and ddsomud, the screen offset is wrong, but the previous source is right. (and I also think previous source has better performance. :P)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: hsf2ad Chooses the person picture to be wrong
« Reply #12 on: December 18, 2006, 09:21:25 PM »
I noticed that.  In the Zangief stage of hsf2ad the fence is incorrect.  I'll post a fixed source later.


Offline Death Metal

  • Member
  • ***
  • Posts: 121
  • Karma: +3/-0
  • Crimson Blade
Re: hsf2ad Chooses the person picture to be wrong
« Reply #13 on: February 18, 2007, 08:48:00 PM »
iq, I'm sure this must be bothersome, but could you repost the code that you had posted before for adding hsf2ad, please? I'm getting an strange message now when I try to start this game and have no idea what it could be, because it used to work the first time I added it. I just wanna check now if I have mischanged anything that I had changed before to add the driver.

Thanks.