Author Topic: Kenshiro's Stuff  (Read 63701 times)

Offline Blood Fetish

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
  • Junior Member
Re: Kenshiro's Stuff
« Reply #30 on: August 30, 2009, 01:00:04 AM »
FBA is looking good since I checked it out last (5 or 6 years ago). Glad to see some things still kicking with emulation.

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #31 on: September 18, 2009, 06:38:40 PM »
After a hard week :p i worked a bit on this tonight. This is port of Psikyo drivers (from FBA 0.2.97.06) for Xbox, with a VMM ^^

I noticed two problems in the original FBA code for Tengai:

Code: [Select]
static int tengaiLoadRoms()
{
// Load 68000 ROM
unsigned char* pTemp = (unsigned char*)malloc(0x100000);
if (pTemp == NULL) {
return 1;
}

BurnLoadRom(pTemp + 0x000000, 0, 1);
BurnLoadRom(pTemp + 0x080000, 1, 1);

for (int i = 0; i < 0x040000; i++) {
((unsigned short*)Psikyo68KROM)[2 * i + 0] = ((unsigned short*)pTemp)[0x000000 + i];
((unsigned short*)Psikyo68KROM)[2 * i + 1] = ((unsigned short*)pTemp)[0x040000 + i];
}
       
BurnLoadRom(PsikyoSpriteROM + 0x000000, 2, 1);
BurnLoadRom(PsikyoSpriteROM + 0x200000, 3, 1);
BurnLoadRom(PsikyoSpriteROM + 0x400000, 4, 1);
tengaiNibbleswap(PsikyoSpriteROM, 0x800000);

BurnLoadRom(PsikyoSpriteLUT, 5, 1);

BurnLoadRom(PsikyoTileROM, 6, 1);
tengaiNibbleswap(PsikyoTileROM, 0x400000);

BurnLoadRom(PsikyoZ80ROM, 7, 1);

BurnLoadRom(PsikyoSampleROM02 + 0x000000, 8, 1);
BurnLoadRom(PsikyoSampleROM02 + 0x200000, 9, 1);

return 0;
}

You can notice that Ptemp buffer is not free.

On this line the size seems to be wrong : tengaiNibbleswap(PsikyoSpriteROM, 0x800000);
I replaced it by tengaiNibbleswap(PsikyoSpriteROM, 0x600000);

Sources in attachment :)

« Last Edit: September 18, 2009, 06:42:34 PM by kenshiro »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #32 on: October 30, 2009, 06:34:46 AM »
A while without posting something here. I wanna post two things.

Start with an Neogeo update (port on the 0.2.97.06 drivers, haven't take a look at the latest release ATM :p) The code is mostly manage in the same way as the previous one, but there is a special support to decrypt the sound roms of the NeoPCM2 games.

In fact running Neogeo games on a Xbox in 480P and 720P is extremely RAM consumer, and the sound roms will be not decrypted properly (need 16Mo of RAM for the sound roms themselves + an extra buffer of 16Mo). The sound roms are now process before everything else; it simply allocate 32 Mo of RAM, decrypt the roms, write them into a file, free the RAM and put the data in RAM later during gameinit. This way there is no more sound issues :)

It concerned the following games:

The King of Fighters 2002
The King of Fighters 2002 Plus (bootleg set 1)
The King of Fighters 2002 Plus (bootleg set 2)
The King of Fighters 2002 Magic Plus (bootleg)
The King of Fighters 2002 Magic Plus II (bootleg)
Matrimelee / Shin Gouketsuji Ichizoku Toukon
Metal Slug 5
Metal Slug 5 (AES Cart)
Metal Slug 5 (JAMMA PCB)
Metal Slug 5 Plus (bootleg)
SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 1)
SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 2)
SNK vs. CAPCOM SVC CHAOS
Samurai Shodown V / Samurai Spirits Zero (set 1)
Samurai Shodown V / Samurai Spirits Zero (set 2)
The King of Fighters 2003 (World / US, MVS)
The King of Fighters 2003 (bootleg set 1)
The King of Fighters 2003 (bootleg set 2)
The King of Fighters 2004 Ultra Plus (The King of Fighters 2003 bootleg)
The King of Fighters 2004 Plus / Hero (The King of Fighters 2003 bootleg)
Samurai Shodown V Special / Samurai Spirits Zero Special (set 1, uncensored)
Samurai Shodown V Special / Samurai Spirits Zero Special (set 2, censored)
Samurai Shodown V Special / Samurai Spirits Zero Special (set 3, less censored)



« Last Edit: October 30, 2009, 06:41:11 AM by kenshiro »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #33 on: October 30, 2009, 06:39:34 AM »
This is the Psikyo SH drivers with VMM. Alpha blending has been removed, like some others drawing stuff, and SH2 has been underclocked. As iq_132 said me he will not be credited for that, i will respect his decision by giving him 95% of the credits lol, the work i did on my part is simply set up a VMM and process GFX loading in a different way, which is trivial comparing to iq's work, really  :smilie:
« Last Edit: October 30, 2009, 07:15:18 AM by kenshiro »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #34 on: November 19, 2009, 06:11:59 PM »
Fixed crash during loading for those 4 games:

Gunbarich
Mahjong G-Taste
Tetris the Absolute The Grand Master 2
Tetris the Absolute The Grand Master 2 Plus



Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #35 on: December 13, 2009, 03:06:03 PM »
This port of FBA 0.2.97.07 Neogeo drivers for Xbox. You can see it in action by using Final Burn Legend, I just realize i never post it here lol :idiot:
here is the latest (last?) adjustements i did.

Quote
Speed up a bit more loading time
Reduce the amount of RAM on some P-X decrypting routines
Get svcpcbnd working (need a special graphic routine for the 2 * 32Mo C-X)
Remove the support for the PCB version of KOF2003. It will never work unless to rewrite completly the VMM support
Added samsho4k: Pae Wang Jeon Seol / Legend of a Warrior (Korean censored Samurai Shodown IV)
Added samsho2k: Saulabi Spirits / Jin Saulabi Tu Hon (Korean release of Samurai Shodown II)
Added a function to select the bios you want. Unibios 2.3 is the default one.
Fixed wrong name in mslug4nd set: 263-pg1.bin ---> should be 263-p1.bin
Fixed game title of mslug3hd: Metal Slug 3 (not encrypted, decrpyted C) ---> Metal Slug 3 (not encrypted, decrypted C)
Various source cleanup

To use it:

Grab Final Burn Legend sources here: http://www.megaupload.com/?d=NQNQQFRC
Go to source/core/Neogeo/src/burn, delete the neogeo folder and replace it with the folder in attachments.
Then recompile :)


All games are playable full speed in any resolution :)


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #36 on: January 20, 2010, 07:16:30 AM »
Finally the PCB revision of KOF2003 (aka the monster) works  on Xbox: http://maws.mameworld.info/maws/romset/kf2k3pcb

96 Mo of C-X, 16 Mo of V-X, 9 Mo of P-X, a 512 KB M1 ----> ~ 122 Mo. Most of the decryption routines have been modified to use less RAM, and also special handling to extract S-data. The problem was the size of the sprite data, too big for a VMM, which get the Xbox crashes.

So iq_132 gave me a nice info: after the sprite data has been decrypted, the chunk from 64Mo to 96 Mo contains only the S-data, so there is 31 Mo of useless data. I just keep the 64 first Mo for the VMM. So it works ^^

I suggest to use the decrypted set instead of the encrypted one. I assume it should work even in 1080i mode, but i can't test it :(

If you need some Neogeo advices, ask iq_132! lol. Thanks dude.

To use the code, you need to grab Final Burn Lengend 1.3 sources, then go to source/core/Neogeo/src/burn, delete the neogeo folder and replace it with the folder in attachments. Then recompile.







Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #37 on: January 20, 2010, 07:22:06 AM »
Also updated CPS2 sets to match MAME 0.136.

Darkstalkers: The Night Warriors (Hispanic 940818)
Dungeons & Dragons: Shadow over Mystara (Hispanic 960223)
Hyper Street Fighter 2: The Anniversary Edition (USA 040202)
Mega Man 2: The Power Fighters (Hispanic 960712)
Super Puzzle Fighter II Turbo (Hispanic 960531)
Super Street Fighter II: The New Challengers (Hispanic 930911)

To use the code, you need to grab Final Burn Lengend 1.3 sources, then go to source/core/Neogeo/src/burn/capcom, overwrite cps2.cpp with the file in attachment. Then recompile.

Thanks to my friend JackC, as always he gave me the latest dumps ;)


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #38 on: February 01, 2010, 07:08:46 AM »
A small mistake in the latest Neogeo code. Here's a fix.

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #39 on: February 16, 2010, 04:01:40 PM »
Here a VMM for most of Seta 2 drivers: http://maws.mameworld.info/maws/driverinfo/seta2.c

Quote
   Guardians / Denjin Makai II
   Mobile Suit Gundam EX Revue
   Deer Hunting USA V4.3
   Deer Hunting USA V4.2
   Deer Hunting USA V4.0
   Deer Hunting USA V2
   Turkey Hunting USA V1.0
   Wakakusamonogatari Mahjong Yonshimai (Japan)
   Wing Shooting Championship V2.00
   Wing Shooting Championship V1.01
   Trophy Hunting - Bear & Moose V1.0
   
       

The games works full speed even in 1080i on Final Burn Legend 1.3 ^^ And most of them are really crappy lol  :p

Thanks to Franck Morris for testing and to RX for made a list of non working games ;)


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Kenshiro's Stuff
« Reply #40 on: February 16, 2010, 04:56:23 PM »
Nice work buddy! :D


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #41 on: March 15, 2010, 11:59:16 AM »
Here is a WIP, a Marine boy driver, my first port of a MAME driver to FBA :) , with the help of iq_132.

It still have scroll issues, some glitches, no sound, but start to look at something lol  :eek: :rolleyes:

 :biggrin:
« Last Edit: March 15, 2010, 12:04:40 PM by kenshiro »

Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
Re: Kenshiro's Stuff
« Reply #42 on: March 15, 2010, 03:28:30 PM »
Woot! Nice progress and congrats on porting a driver! I have been trying to port a few drivers but get stuck on some parts that I don't have a clue how they would be in FBA, but with time I believe I will finally will be able to port something :p

Oh and IQ is my master as well! ^^ I wanna be like him when I grow up LOL! xD

SeeYaa!
 :biggrin:

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Kenshiro's Stuff
« Reply #43 on: March 15, 2010, 04:08:06 PM »
Nice work kenshiro. Can't beat the feeling when you first see some graphics on the screen from your first driver. :)
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #44 on: March 15, 2010, 04:11:54 PM »
Can't beat the feeling when you first see some graphics on the screen from your first driver. :)

Yeah lol. I was happy to see the background, but when i saw the first sprite in action it was really a good feeling :)