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

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Kenshiro's Stuff
« on: February 21, 2009, 08:26:08 PM »
Hi everyone  ;p

I start this thread to post various stuff i'm working or i've been working on, related to FBA or MAME (tools, Xbox drivers...) :)

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #1 on: February 21, 2009, 08:34:51 PM »
Quote
By Kenshiro (http://neosource.1emu.net)


Driver Generator for Final Burn Alpha (Version 1.0, 15/02/2009)
-----------

This tool can read drivers from a MAME driver file,
convert them to be use on FBA and finally write them in a new file.


To use it
-----------

type this command: drvgen [src_file_path] [option].   
   
For example, drvgen c:\cps1.c will generate a drv.c file in drvgen.exe directory.

You can also use the option -e: drvgen c:\cps1.c -e   
   
This option will store all BurnDriver struct at the end of the file.

NB: this tool doesn't work for Neogeo drivers!


To compile it
-------------

under GCC type the command : gcc drvgen.c -o drvgen.exe

Licence
-------

You're free to use and modify it in anyway you want, use it at your own risks.
You can't use it for monetary gain.

This tool can't of course get 100% of the infos automatically (which is impossible :redface:), but can process most of them ;p, the rest must be done by hand.

I'm currently working on a specific Neogeo drivers generator, and how i can get more game infos  :biggrin:
« Last Edit: February 21, 2009, 08:39:21 PM by kenshiro »

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: Kenshiro's Stuff
« Reply #2 on: February 21, 2009, 08:43:09 PM »
Thanks Kenshiro...This tool saves me a lot of times and very usefull !!!


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #3 on: March 16, 2009, 05:53:52 PM »
This is Cave drivers code from FBA 0.2.97.04, modified to run on both Xbox and PC builds :)

In previous FBA-XXX Pro beta builds, iq_132 wrote VMM for Power Instinct 2 and Power Instinct Legends, by using
his "universal VMM", like for his PGM Xbox drivers: http://neo-source.com/index.php?topic=980.0)

However, standard FBA-XXX VMM (wrote by Gogo Ackman) is faster for Cave games (especially Guwange), so i wrote a code which use that one, which result in a constant 60fps ^^, and also get Guwange code more simple as before.

I keep a part of iq's decryption code for Power Instinct 2 and Power Instinct Legends, credits to him :) 

Here's the VMM games:
 
    Guwange (Japan, Master Ver. 99/06/24)
    Power Instinct 2 (US, Ver. 94/04/08)
    Gouketsuji Ichizoku 2 (Japan, Ver. 94/04/08)
    Power Instinct Legends (US, Ver. 95/06/20)
    Gouketsuji Ichizoku Saikyou Densetsu (Japan, Ver. 95/06/20)
   
To compile it, comment / uncomment this line (on cave.h bottom):

Code: [Select]
//#define XBOX_CAVE       

It can be use with my c***** FBA-XXX Pro beta source you can find here :p :

http://www.4shared.com/file/82029884/d3ef8baa/fba_xxx_pro_src_beta_129b.html
« Last Edit: March 16, 2009, 06:19:27 PM by kenshiro »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Kenshiro's Stuff
« Reply #4 on: March 16, 2009, 06:42:16 PM »
Beautiful. :)


Offline KaNyErO

  • Member
  • ***
  • Posts: 142
  • Karma: +4/-0
Re: Kenshiro's Stuff
« Reply #5 on: March 16, 2009, 08:41:44 PM »
Nice kenshiro

Btw: Do you know if pgm games would be playable on xbox using the last improved iq's drivers?

Thanks

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Kenshiro's Stuff
« Reply #6 on: March 18, 2009, 12:25:21 AM »
Nice kenshiro

Btw: Do you know if pgm games would be playable on xbox using the last improved iq's drivers?

Thanks


http://www.fbadev.info/iq_132/vmm_pgm.png

It really depends greatly on how fast the vmm in fba-xxx is, and if the xbox's 733mhz cpu is better or equal to 10-15% cpu usage on a 1.8 c2d (3.6ghz) [3600 * 0.12 = 432mhz]


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #7 on: March 18, 2009, 10:52:16 AM »
Yup. I modified few weeks ago PGM drivers (from 0.2.97.01 i think) to get them run on Xbox, that was a very quick and preliminary work, and Oriental Legend was running between 45 - 60 fps.

As this b****** of iq definitly speed up the PGM code, i think it could be nice :)
« Last Edit: March 18, 2009, 10:56:43 AM by kenshiro »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #8 on: March 29, 2009, 12:28:13 PM »
This is FBA 0.2.97.04 NeoGeo code, modified to run on Xbox :) (standard one with 64 Mo of RAM).

As in latest FBA-XXX and FBA-XXX Pro 1.28, this code use Gogo Ackman's VMM (so run games in a constant 60 fps). Here's what changes:

- Of course the romset, as FBA-XXX Pro 1.28 is 2 years old and there's changes in Neogeo every 15 days lol, hacks were  added / remove, more games revisions are playable (several sets tagged as "set 2" and AES, also PCB revisions, new bootlegs), so that's quite different :)
 
- In previous builds, all games were using VMM, which were slow cause for more than 50% of the games we can store all the sprite data in RAM. VMM is now required when sprite data are 32Mo or more (at least in non HD mode, i don't have an HD TV :p ), which speedup loading for a lot of games :).

- GFX decryption for games encryted with KOF99 - KOF2000 scheme is handling in a different way. the code is more simple and also 30% faster, it need 1 minute or a bit more to load a game with 64Mo of graphics ROM (still slow, but that's an Xbox lol). Check if a decrypted set of the game is available (loads 50% faster lol).Sdata extraction is also manage in a different way.

- I tried to keep the code as similar as in FBA 0.2.97.04, heavily modified stuff  is in NeoLoadSprites, NeoDecodeSprites, NeoGfxDecrypt and NeoExtractSData, also a bit in NeoInit. Some decryption routines are call at a different moment and were a bit modified (DoPerm, lans2004_cx_decode...). The code should be update easily in the future :)

- All romsets except those one are playable without issues (bit less than 230 + decrypted sets):
 
SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 1) : code in progress :)
SNK vs. CAPCOM SVC CHAOS Plus (bootleg set 1) : does not draw
SNK vs. CAPCOM SVC CHAOS Plus (bootleg set 1) : does not draw
The King of Fighters 2003 (Japan, JAMMA PCB) : crash while loading
The King of Fighters 10th Anniversary (The King of Fighters 2002 bootleg) : does not boot
The King of Fighters 2003 (bootleg set 1) : hardware test screen
The King of Fighters 2003 (set 1) and The King of Fighters 2003 (set 2) : garbage on graphics
Samurai Shodown V / Samurai Spirits Zero (bootleg) : bank error.

Hope i will figure out this  :rolleyes: :smilie:(for svcpcb i currently trying your trick iq). This code will be in the next FBA-XXX Pro beta, you can use that sources to compile it : http://www.4shared.com/file/82029884/d3ef8baa/fba_xxx_pro_src_beta_129b.html 
 
« Last Edit: April 27, 2009, 07:09:53 PM by kenshiro »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #9 on: March 30, 2009, 02:30:59 PM »
There's an GFX issue on mslug4nd.

Find this in mslug4Init() :

Code: [Select]
if (strcmp(BurnDrvGetTextA(DRV_NAME), "mslug4") == 0) {
nNeoTextROMSize = 0x080000;
}

Then replace it with:

Code: [Select]
if (strcmp(BurnDrvGetTextA(DRV_NAME), "ms4plus") != 0) {
nNeoTextROMSize = 0x080000;
}

Sorry :biggrin: lol

Offline Skeletor

  • Newbies
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Kenshiro's Stuff
« Reply #10 on: April 13, 2009, 07:56:38 AM »
 I like this place :rolleyes:

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #11 on: April 24, 2009, 03:11:26 PM »
Quote
Xbox NeoGeo drivers update (24/04/2009)

-Get SNK vs. CAPCOM SVC CHAOS (JAMMA PCB, set 1) working (Dedicated to iq_132 ^^)
-Fixed GFX issue on mslug4nd

Except some PGM games like kov, this is probably one of the biggest romset loaded on an Xbox.
He has 2 C-roms of 32Mo, 2 V-roms of 8Mo, 1 M1 of 512k and a P-rom of 32Mo! Only the first 8 Mo of the P-rom are really use, so the code load the Prom temporary, write the first 8 Mo into a file, then read it after processing GFX.

Thank you iq to suggest me that trick :biggrin: ;p

Sources are in attachment  :smilie:
« Last Edit: May 28, 2009, 07:02:47 AM by kenshiro »

Offline Skeletor

  • Newbies
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Kenshiro's Stuff
« Reply #12 on: April 25, 2009, 04:29:49 AM »
Yay, now it overpasses the biggest romset  ...

Sounds like great news. Hooray! Smile

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Kenshiro's Stuff
« Reply #13 on: April 26, 2009, 02:26:10 AM »
Except some PGM games like kov, this is probably one of the biggest romset loaded on an Xbox.
He has 2 C-roms of 32Mo, 2 V-roms of 8Mo, 1 M1 of 512k and a P-rom of 32Mo! Only the first 8 Mo of the P-rom are really use, so the code load the Prom temporary, write the first 8 Mo into a file, then read it after processing GFX.


Great :) I thought that might work. :)


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: Kenshiro's Stuff
« Reply #14 on: April 28, 2009, 11:22:53 AM »
No work today :cool:, so here's an update :smilie:

Quote
Xbox NeoGeo drivers update (28/04/2009)

Entiere code update with changes from FBA 02.97.05:
Quote
Added support for the Neo-Geo Deck BIOS [Barry]
Fixed an issue with the Neo-Geo driver flags, fixing Memory Cards and Button Macros [Barry]

Via dipswitches there's now an amazing number of differents bios you can select :eek: Nice work Treble winner, i really enjoy that stuff :biggrin:

Sources in attachment ;p
« Last Edit: April 28, 2009, 01:53:40 PM by kenshiro »