Author Topic: mame to fba driver convert prog  (Read 24387 times)

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: mame to fba driver convert prog
« Reply #15 on: February 16, 2014, 06:38:22 PM »
IIRC, Nes6502 had a try with DD Crew and coded a VM. The game was very slow so he decided to not integrate it into FBL (it was too CPU consumer).

You could probably just have a try and see :)




Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: mame to fba driver convert prog
« Reply #16 on: February 16, 2014, 08:17:36 PM »
IIRC, Nes6502 had a try with DD Crew and coded a VM. The game was very slow so he decided to not integrate it into FBL (it was too CPU consumer).

You could probably just have a try and see :)
Oh im not a developer with regards to Final Burn Legends im just interested in how VMM works in FBL if it was a simple case
of just reusing VMM code that was done for other games i was hoping to rope destronger into implementing it into the
system18 driver as some point but now that you've mentioned nes6502 actually got the game to boot and it
played too slow then it would be unfair to ask a developer to work on adding VMM code with no guarantee the games
would actually work and play properly afterwards

desert breaker is nice wee game i wanted to get it playable in MameoXtras but the amount of work required was huge
i thought the easier quicker way would be adding VMM for it in FBL but if the game's going to be too slow as is likely
then there would be no point

Thanks for your reply though kenshiro it's much appreciated
« Last Edit: February 16, 2014, 08:22:25 PM by gamez fan »

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: mame to fba driver convert prog
« Reply #17 on: February 16, 2014, 09:47:22 PM »
All it did was take a rom structure (rom size, crc) from a pasted driver and put it into the format that fba needs. I still use my tool I wrote for this. It also does input conversions too. Really the easiest part of making a driver, but imo the easiest to mess up and most tedious.

is this tool that you created somewhere in this forum?
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3732
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: mame to fba driver convert prog
« Reply #18 on: February 19, 2014, 11:47:55 AM »
Oh im not a developer with regards to Final Burn Legends im just interested in how VMM works in FBL if it was a simple case
of just reusing VMM code that was done for other games i was hoping to rope destronger into implementing it into the
system18 driver as some point but now that you've mentioned nes6502 actually got the game to boot and it
played too slow then it would be unfair to ask a developer to work on adding VMM code with no guarantee the games
would actually work and play properly afterwards
FBAL has two VMMs. The old one that was in FBAx and the one I wrote specifically for PGM (I've got a switch in the source so that you can test it on PC).

Quote
desert breaker is nice wee game i wanted to get it playable in MameoXtras but the amount of work required was huge
i thought the easier quicker way would be adding VMM for it in FBL but if the game's going to be too slow as is likely
then there would be no point
Iirc that game is extremely slow too.  I would highly suggest taking a look at the games running in FBA on pc, check the % of cpu it uses (ensuring that you are disabling any gfx enhancements, etc). So if the game takes 10% cpu on a quad-core at 4ghz, you're look at 4,000 (mhz) x 4 (cores) * 0.10 (10%) -> 1600 mhz (1.6ghz) is probably required to run the game properly. That puts it well outside the realm of feasible in xbox.  There are often ways around this (take a look at my work on pgm and the psikyosh games), but it takes a ton of work and no guaranteed results.


Offline iq_132

  • Administrator
  • *****
  • Posts: 3732
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: mame to fba driver convert prog
« Reply #19 on: February 19, 2014, 11:48:13 AM »
is this tool that you created somewhere in this forum?
I don't remember ever posting it, no. I will post it tonight when I get home, but it's nothing that's in a polished state whatsoever.
« Last Edit: February 19, 2014, 11:52:46 AM by iq_132 »


Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: mame to fba driver convert prog
« Reply #20 on: February 19, 2014, 04:16:44 PM »
Iirc that game is extremely slow too.  I would highly suggest taking a look at the games running in FBA on pc, check the % of cpu it uses (ensuring that you are disabling any gfx enhancements, etc). So if the game takes 10% cpu on a quad-core at 4ghz, you're look at 4,000 (mhz) x 4 (cores) * 0.10 (10%) -> 1600 mhz (1.6ghz) is probably required to run the game properly. That puts it well outside the realm of feasible in xbox.  There are often ways around this (take a look at my work on pgm and the psikyosh games), but it takes a ton of work and no guaranteed results.
Funny enough ive looked over your PGM and psikyo VMM some top class work there :cool: it seems there's no easy way here
a ton of VMM work would be required for destronger in  FBL while in MameoXtras i'd be looking at multiple driver and linked source file updates to get those few games playable with no guarantee that they would function well at all

i have an idea though i'd like to leave the sega drivers in MameoXtras in their currant state eg Mame84 im thinking about if i
can simply dump all the source code required for desert breakers be it protection video etc into the segas18.c driver and
add it into my compile it would certainly be the quickest way to do this something to try on a rainy day i guess
« Last Edit: February 19, 2014, 04:33:01 PM by gamez fan »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3732
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: mame to fba driver convert prog
« Reply #21 on: February 19, 2014, 10:41:44 PM »
Funny enough ive looked over your PGM and psikyo VMM some top class work there :cool: it seems there's no easy way here
a ton of VMM work would be required for destronger in  FBL while in MameoXtras i'd be looking at multiple driver and linked source file updates to get those few games playable with no guarantee that they would function well at all
I don't mean to discourage you!

Quote
i have an idea though i'd like to leave the sega drivers in MameoXtras in their currant state eg Mame84 im thinking about if i
can simply dump all the source code required for desert breakers be it protection video etc into the segas18.c driver and
add it into my compile it would certainly be the quickest way to do this something to try on a rainy day i guess

Give it a shot!


Offline Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: mame to fba driver convert prog
« Reply #22 on: February 19, 2014, 11:22:45 PM »
I don't mean to discourage you!
No you haven't discouraged me it's 2 things really destronger is the currant FBL developer it's something he would have to want to
work on plus i think now that those games wont play fast enough with Xbox FBL so it could end up being a ton of work with no
happy ending ;) plus to be honest the FBL sources are kinda a puzzle to me i find the Mame sources easier just now


Give it a shot!

i already have!! i put all the sega drivers from Mame91 into my source after some code tweaks i managed to get all the linked files
sound video decryption etc to compile fine it's the drivers where the problems started maybe i missed something sound related
as there seems to be an unsupported sound core for some games plus im not sure how to rollback the some of the control defines
for certain games back to what my Mame84 source requires so i thought to avoid a ton of work and these issues i'll try and dump
what i think desert breaker needs into the one driver and keep it seperate from the rest

im just mulling over a conflict just now as system18 video start is already defined in system18.c i cant also have it in segas18.c
or i get a compile error something to try again on a rainy day i guess
« Last Edit: February 19, 2014, 11:34:08 PM by gamez fan »

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: mame to fba driver convert prog
« Reply #23 on: February 20, 2014, 05:33:49 PM »
FBAL has two VMMs. The old one that was in FBAx and the one I wrote specifically for PGM (I've got a switch in the source so that you can test it on PC).
Iirc that game is extremely slow too.  I would highly suggest taking a look at the games running in FBA on pc, check the % of cpu it uses (ensuring that you are disabling any gfx enhancements, etc). So if the game takes 10% cpu on a quad-core at 4ghz, you're look at 4,000 (mhz) x 4 (cores) * 0.10 (10%) -> 1600 mhz (1.6ghz) is probably required to run the game properly. That puts it well outside the realm of feasible in xbox.  There are often ways around this (take a look at my work on pgm and the psikyosh games), but it takes a ton of work and no guaranteed results.

The Sega tilemap handling is pretty slow, due to their size (1024x512), two priorities, column scroll, row scroll and ability to select to show from a different "alt" page (meaning that we have to render two for each layer, and then check which one we need to show on a tile-by-tile basis after we've calculated the column and row scroll). Also add on the fact that we need to have an Opaque and a transparent version for the background tilemaps - it's a nightmare. :)

That said, though the tilemaps are cached in memory and the scroll, row scroll, column scroll and page select are applied each frame as necessary. The tilemaps are only calculated when the game writes something different.

The page select isn't used that often (although more in System 18 than in others), so the tilemap handling could be simplified for speed (at the sake of some bugs in games). Older FBA releases would have relevant source for comparison.

See http://barryharris.me.uk/article_view.php?id=94 for a bit more info.
« Last Edit: February 20, 2014, 05:39:55 PM by Treble Winner »
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 Arcadez

  • Expert
  • *****
  • Posts: 558
  • Karma: +15/-0
  • Arcade Addict
Re: mame to fba driver convert prog
« Reply #24 on: February 20, 2014, 07:10:34 PM »
those games sure look better with those tilemaps added some nice work there!!

Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: mame to fba driver convert prog
« Reply #25 on: February 20, 2014, 07:44:42 PM »
any chance of quick how to on the prog you uploaded iq_132?
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline iq_132

  • Administrator
  • *****
  • Posts: 3732
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: mame to fba driver convert prog
« Reply #26 on: February 20, 2014, 10:29:04 PM »
any chance of quick how to on the prog you uploaded iq_132?
copy a mame driver file, paste it into the same directory as the program, run the program, type the filename of the mame driver (eg. midas.c). it should spit out a file named output.cpp


Offline destronger

  • Newbies
  • *
  • Posts: 43
  • Karma: +7/-3
Re: mame to fba driver convert prog
« Reply #27 on: February 21, 2014, 01:48:55 AM »
thanks
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Offline vbt

  • FBNeo Contributor
  • *****
  • Posts: 205
  • Karma: +9005/-0
Re: mame to fba driver convert prog
« Reply #28 on: April 08, 2014, 03:39:42 PM »
It should do more. All BurnRomInfo structs are empty, this is not normal.
i used an old mame driver maybe around 0.36, too old version ?

Offline iq_132

  • Administrator
  • *****
  • Posts: 3732
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: mame to fba driver convert prog
« Reply #29 on: April 08, 2014, 06:01:55 PM »
i used an old mame driver maybe around 0.36, too old version ?
Definitely! The mame structs have changed a lot since then!