Author Topic: the source code for SNES/SFC Myth Cart menu v0.05  (Read 52567 times)

0 Members and 1 Guest are viewing this topic.

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #135 on: May 06, 2010, 05:31:49 PM »
Here's how I plan for it to work:



If you press Select at the main menu, the menu will check if there are any cheats in the cheat database for the highlighted game (by matching checksums). If there are any cheats available you will get a screen like the one shown above. There you can choose among the available cheats, which are listed only with their description. When you press B to add one of the cheats in the list, that entry should be highlighted in some other color (green?) and the remaining slots counter is decremented.

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #136 on: May 06, 2010, 10:33:06 PM »
The SNES Myth Card is a good flash card, but just your menu makes it superior to the retrousb card  ~sm-76.gif~.gif

 ~sm-89.gif~.gif Keep on coding!  ~sm-88.gif~.gif
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline Sektor

  • Sr. Member
  • ****
  • Posts: 394
    • gtamp.com/DS
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #137 on: May 06, 2010, 10:56:43 PM »
It will need SD support to really be superior but still great work.

Offline King Of Chaos

  • Full Member
  • ***
  • Posts: 117
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #138 on: May 06, 2010, 10:59:55 PM »
I like the design, looks good to me. :D What other games would you want codes? I've got lists I could post here. :) Here's some from a few of my favorite games that don't require many codes...

Amazing Spider-Man, The - Lethal Foes (Japan):

"7E0E0C40","Infinite health"
"7E1C2309","Infinite lives"
"7E1C2263","Infinite time"


X-Men - Mutant Apocalypse (USA):

"7E0C4C21","Untouchable"
"33DB-E407","Infinite health"
"C2D1-8F67","Infinite lives (training mode)"
"C2D7-5F64","Infinite lives (mission mode)"
"7E0B7E08","Infinite lives (Wolverine)"
"7E0B7F08","Infinite lives (Cyclops)"
"7E0B8208","Infinite lives (Beast)"
"7E0B8008","Infinite lives (Psylocke)"
"7E0B8108","Infinite lives (Gambit)"
"7E0B8901","Use 1 button specials from practice mode in mission mode"


Star Fox (USA):

"79DB-2286","Invincibility"
"0DFC-FA8C","Infinite health (Slippy)"
"0DFC-FA5C","Infinite health (Falco)"
"0DFC-FA7C","Infinite health (Peppy)"
"DBF3-BE8B","Infinite lives"
"D9FC-9EEB","Infinite bombs"
"46DB-2286","Infinite shield"
"F4F2-F38B+DFF2-F35B","Double blasters"


Death and Return of Superman, The (USA):

"2D6B-CF6D+ED6C-CFAD","Invincibility"
"C92D-C7DD+992D-C70D+622D-C76D+242D-C7AD+D32F-CDDD","Infinite energy"
"3324-3F6D","Infinite lives"
"3323-C76D+D323-C7AD","Infinite special attacks"


Captain America and the Avengers (USA):

"7E16A820","Invincibility (Player 1)"
"7E16A963","Invincibility (Player 2)"
"7E022663","Infinite health (Player 1)"
"7E022763","Infinite health (Player 2)"
"7E0225FF","Infinite lives (Player 1)"
"7E0227FF","Infinite lives (Player 2)"


Regarding the SD card support, isn't it possible just to port the SD code from the MD Myth deluxe menu to the SNES menu?
« Last Edit: May 06, 2010, 11:15:58 PM by King Of Chaos »

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #139 on: May 06, 2010, 11:58:14 PM »
Star Fox would be pointless to add since we can't play SuperFX games on the Myth anyway (that I know of). But I can add the others. If you can give me the SNES header checksum and checksum complement for the dumps you want recognized (probably the ones tagged [!]) that would be good.

Most of the SD-code from the MD menu can hopefully be reused. There's some low-level stuff in assembly that needs to be rewritten.


Offline King Of Chaos

  • Full Member
  • ***
  • Posts: 117
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #140 on: May 07, 2010, 06:06:35 AM »
Yeah, I forgot about Star Fox using the Super FX chip so cross that one off the list. Since you asked for both the checksum and complements, here they are for the ones I posted above (hopefully they're right and not reversed).

Amazing Spider-Man, The - Lethal Foes (J):

Header checksum: 0xB729
Checksum complement: 0x48D6

X-Men - Mutant Apocalypse (U):

Header checksum: 0x3807
Checksum complement: 0xC7F8

Death and Return of Superman, The (U):

Header checksum: 0x01A3
Checksum complement: 0xFE5C

Captain America and The Avengers (U):

Header checksum: 0xC971
Checksum complement: 0x368E

What some other games that I should post codes for? Any ideas, guys?

P.S. If these codes work for international versions of the games, I can post the checksums for them as well.
« Last Edit: May 07, 2010, 06:08:50 AM by King Of Chaos »

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #141 on: May 07, 2010, 03:24:53 PM »
Quote
What some other games that I should post codes for? Any ideas, guys?
The games I have in my list (besides the ones you've added) are

Castlevania : Dracula X
Chrono Trigger
Contra III
Legend of Zelda : A Link to The Past
Magical Quest Starring Mickey Mouse
Megaman X
Pocky & Rocky
Rock 'N Roll Racing
Secret of Mana
Super Castlevania IV
Super Ghouls 'N Ghosts
Super Mario World
Super Metroid
Super Punch-Out!!
Super Star Wars

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #142 on: May 07, 2010, 04:33:53 PM »
ARP codes is a great feature and your selection of implemented cheats is also good, but I wish there would be a pal/ntsc selection for games which check the country code of the system.
By now I have to fix games like Super Mario Allstars manually using tools like SNESTL12. I think it really would be nice to have a implemented pal/ntsc selection for games which ask for the country code...
 ~sm-74.gif~.gif
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #143 on: May 07, 2010, 04:37:26 PM »
Autopatching region checks in games is certainly possible, and is something I'm considering adding to the menu. It will make game loading times longer though. Probably by at least 100%.

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #144 on: May 07, 2010, 10:18:00 PM »
Autopatching region checks in games is certainly possible, and is something I'm considering adding to the menu. It will make game loading times longer though. Probably by at least 100%.

Wow, 100% longer loading times!
But as with ARP codes this should be optional. If you don´t want longer loading times, just don´t use autopatching.
By the way, your coding skills are nothing but great!
 ~sm-36.gif~
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: the source code for SNES/SFC Myth Cart menu v0.05
« Reply #145 on: May 07, 2010, 10:33:21 PM »
That was just a guesstimate, based on the fact that the ROM has to be copied from the Neo2 to PSRAM, and then scanned for a bunch of strings.
If someone were to do an offline scan of the entire GoodSNES set and determine that e.g. all of the games with software region protection have the protection code in the first megabyte of the ROM then that's something that could be used to speed up the patcher. :P