Page 1 of 1

[hsf2] Akuma and color select

Posted: Sat Apr 25, 2009 12:35 pm
by NotAGoodName
Ok. I finally figured this out. I had some addresses backwards. I didn't include a mode cheat because it's just something that won't work. This game loves to crash to ROM reset if something goes wrong. Sadly, this is not Super Street Fighter 2 Turbo. No SUPERT characters in classic colors.

Akuma cheat checks to see if player is Akuma and if so forces mode to SUPERT.

Color cheat checks:
1) If mode is not SUPERT, limit to colors 0 and 1. None of the other modes including SUPER have more than two colors.
2) If player is Akuma, limit to colors 0 and 1. Akuma only has one alternate color.

*edit*
Added proper GT function.

Code: Select all

  <cheat desc="Select Character PL1"> <comment>If you enable during a round the gfx will not be correct</comment>
    <parameter>
      <item value="0x00">Ryu</item>
      <item value="0x01">Edmund Honda</item>
      <item value="0x02">Blanka</item>
      <item value="0x03">Guile</item>
      <item value="0x04">Ken Masters</item>
      <item value="0x05">Chun-Li</item>
      <item value="0x06">Zangief</item>
      <item value="0x07">Dhalsim</item>
      <item value="0x08">M. Bison</item>
      <item value="0x09">Sagat</item>
      <item value="0x0A">Balrog</item>
      <item value="0x0B">Vega</item>
      <item value="0x0C">Cammy</item>
      <item value="0x0D">Thunder Hawk</item>
      <item value="0x0E">Fei Long</item>
      <item value="0x0F">Dee Jay</item>
      <item value="0x10">#Akuma</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8667=param</action>
	<action condition="maincpu.pb@FF8667==10">maincpu.pb@FF8666=00</action>
    </script>
  </cheat>

  <cheat desc="Select Color PL1">
    <parameter min="00" max="07" step="1" />
    <script state="run">
      <action>maincpu.pb@FF8668=param</action>
	<action condition="maincpu.pb@FF8666 GT 00 and maincpu.pb@FF8668 GT 00">maincpu.pb@FF8668=01</action>
	<action condition="maincpu.pb@FF8667==10 and maincpu.pb@FF8668 GT 00">maincpu.pb@FF8668=01</action>
    </script>
  </cheat>

  <cheat desc="Select Character PL2"> <comment>If you enable during a round the gfx will not be correct</comment>
    <parameter>
      <item value="0x00">Ryu</item>
      <item value="0x01">Edmund Honda</item>
      <item value="0x02">Blanka</item>
      <item value="0x03">Guile</item>
      <item value="0x04">Ken Masters</item>
      <item value="0x05">Chun-Li</item>
      <item value="0x06">Zangief</item>
      <item value="0x07">Dhalsim</item>
      <item value="0x08">M. Bison</item>
      <item value="0x09">Sagat</item>
      <item value="0x0A">Balrog</item>
      <item value="0x0B">Vega</item>
      <item value="0x0C">Cammy</item>
      <item value="0x0D">Thunder Hawk</item>
      <item value="0x0E">Fei Long</item>
      <item value="0x0F">Dee Jay</item>
      <item value="0x10">#Akuma</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@FF8A67=param</action>
	<action condition="maincpu.pb@FF8A67==10">maincpu.pb@FF8A66=00</action>
    </script>
  </cheat>

  <cheat desc="Select Color PL2">
    <parameter min="00" max="07" step="1" />
    <script state="run">
      <action>maincpu.pb@FF8A68=param</action>
	<action condition="maincpu.pb@FF8A66 GT 00 and maincpu.pb@FF8A68 GT 00">maincpu.pb@FF8A68=01</action>
	<action condition="maincpu.pb@FF8A67==10 and maincpu.pb@FF8A68 GT 00">maincpu.pb@FF8A68=01</action>
    </script>
  </cheat>

Re: [hsf2]+ Akuma and color select

Posted: Sat Apr 25, 2009 1:18 pm
by NotAGoodName
I figured while I was here, I'd throw in color select for SSF2T and SSF2. Not tested on clones.

SSF2T

Code: Select all

  <cheat desc="Select Color PL1">
    <parameter min="00" max="09" step="1" /> <comment>08 and 09 are the classic characters' colors.</comment>
    <script state="run">
      <action>maincpu.pb@FF87FF=param</action>
    </script>
  </cheat>

<cheat desc="Select Color PL2">
    <parameter min="00" max="09" step="1" /> <comment>08 and 09 are the classic characters' colors.</comment>
    <script state="run">
      <action>maincpu.pb@FF8BFF=param</action>
    </script>
  </cheat>
SSF2

Code: Select all

<cheat desc="Select Color PL1">
    <parameter min="00" max="07" step="1" />
    <script state="run">
      <action>maincpu.pb@FF877F=param</action>
    </script>
  </cheat>

<cheat desc="Select Color PL2">
    <parameter min="00" max="07" step="1" />
    <script state="run">
      <action>maincpu.pb@FF8B7F=param</action>
    </script>
  </cheat>

Re: [hsf2] Akuma and color select

Posted: Fri Oct 16, 2009 3:05 pm
by fartboy
SSF2T works fine on USA clone.

Re: [hsf2] Akuma and color select

Posted: Fri Oct 16, 2009 3:50 pm
by Pugsy
Thanks NotAGoodName, added them now.