Author Topic: Romhack's WIP thread  (Read 23851 times)

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #150 on: December 03, 2018, 12:33:58 am »
"Treble Winner vs. dink: Romhack's midway spiffing championship"

The other day Barry made some nice changes to Midway - he fixed the screen offsets and changed video over to pTransDraw instead of direct buffer, to work with all palette depths, etc.

I thought: wouldn't it be really nice to complete the emulation by adding sound?
after a couple days and many hours of derping around, Wolf Unit games have sound! - yay -!

best regards,
- dink

Offline barbudreadmon

  • Expert
  • *****
  • Posts: 297
  • Karma: +9/-0
  • lr-fbalpha developer
Re: Romhack's WIP thread
« Reply #151 on: December 03, 2018, 05:58:31 am »
That's a great news ! It would be awesome for portability if the c++11 requirement got removed too :). Btw, you might be interested in this code if you need something to read CHD : https://github.com/libretro/fbalpha/tree/master/src/burner/libretro/libretro-common/formats/libchdr.

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #152 on: December 03, 2018, 07:21:26 am »
I think the deal was that if I got sound working in wunit that me and iq_132 would have a de c++ification codenight coming up...
I'm not too interested in chd support though.  feel free :)

best regards,
- dink

Offline barbudreadmon

  • Expert
  • *****
  • Posts: 297
  • Karma: +9/-0
  • lr-fbalpha developer
Re: Romhack's WIP thread
« Reply #153 on: December 03, 2018, 07:40:42 am »
I'm not too interested in chd support though.

The drivers don't require the chd hdd dumps from the MAME romsets ? What's the "kinst.img" file for killer instinct then ? I assumed it was the chd hdd dump.

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #154 on: December 03, 2018, 09:51:00 am »
It's the uncompressed hdd dump - to make it I used chdman.exe from MAME 0.155*.  I think the commandline was something like:
chdman extracthd -i kinst.chd -o kinst.img
The image file goes into "[directory where fba*.exe resides]\hdd"
Treble Winner changed this to "d:\downloads\kinst.img" the other day on github, I think by accident.  Feel free to change this location in burn/drv/midway/d_kinst.cpp
Then the kinst.zip romset goes into your usual romsets location.

* because I did this many many moons ago.

best regards,
- dink

Offline barbudreadmon

  • Expert
  • *****
  • Posts: 297
  • Karma: +9/-0
  • lr-fbalpha developer
Re: Romhack's WIP thread
« Reply #155 on: December 03, 2018, 10:39:58 am »
Thanks for the explanation !

Well, chd support is something i'll try to add to fba then, since looking at this chd stuff is in my TODO list for Kronos anyway.

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #156 on: December 03, 2018, 11:28:10 am »
Rampage World Tour soundtest in FBAlpha VIDEO

https://www.youtube.com/watch?v=a2VtpY7Fzdg

thanks to:
Romhack for everything
Barry for spiffing up the drivers

Code will be on github tonight (Detroit time), there is a bit of clean-up to do!

best regards,
- dink
« Last Edit: December 03, 2018, 11:30:37 am by dink »

Offline Romhack

  • Expert
  • *****
  • Posts: 94
  • Karma: +49/-0
Re: Romhack's WIP thread
« Reply #157 on: December 03, 2018, 01:28:04 pm »
Rampage World Tour soundtest in FBAlpha VIDEO

https://www.youtube.com/watch?v=a2VtpY7Fzdg

thanks to:
Romhack for everything
Barry for spiffing up the drivers

Code will be on github tonight (Detroit time), there is a bit of clean-up to do!

best regards,
- dink
Nice work! Thanks you guys for this.

It just needs a better resampler, in this video https://www.youtube.com/watch?v=LB91jB5KocY IIRC it used higan cubic resampler: https://gist.github.com/zxmarcos/5bd9c32bb290a71a18dfffeef79bfbb5
I don't know if FBA has any driver that sound chip can be configured to output at any samplerate like DCS2k.
Does FBA have a resampler like MAME (streams)?

Offline hursit

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Romhack's WIP thread
« Reply #158 on: December 03, 2018, 04:43:23 pm »
Huhuuuw, it is great news.
I hope we will see Cave "cv1k.cpp" core too someday :P
After you release the GitHub code, I think Retroarch will update the FBA core soon. So what romset we will use to play UMK3. Will it synch with Mame 0.204 romset ?

Thanks...

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #159 on: December 03, 2018, 06:20:18 pm »
Romhack, yes, I can add cubic easily. But right now due to time and cpu constraints, I'm going to use copy and update style resampling.  Adding cubic resampling and on-the-fly rate changes to FBA soundcore is kinda tricky if you've never done it before, but after doing it dozens of times its simple for me.  (although I couldn't say this a few years back..)

best regards,
- dink

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #160 on: December 03, 2018, 06:22:29 pm »
Hursit, IIRC it won't be available in retroarch until we remove the c++11 dependencies, and this might take a while (a few days to a week or so). 

Huhuuuw, it is great news.
I hope we will see Cave "cv1k.cpp" core too someday :P
After you release the GitHub code, I think Retroarch will update the FBA core soon. So what romset we will use to play UMK3. Will it synch with Mame 0.204 romset ?

Thanks...

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #161 on: December 05, 2018, 09:03:43 pm »
This project is taking a lot longer than I had planned, but after many, many, many trials/errors and rewrites everything is solid :)
Sorry to those whom I've said "code will be on git tonight" on several occasions - I had really underestimated the complexities involved with this one.  :p

best regards,
- dink
« Last Edit: December 05, 2018, 09:05:06 pm by dink »

Offline dink

  • Administrator
  • *****
  • Posts: 2677
  • Karma: +227/-0
  • feed the horse yumyum
Re: Romhack's WIP thread
« Reply #162 on: December 06, 2018, 10:00:35 am »
Hi guys, just an update:
latest code is on git - dcs sound is perfect in wolf unit games :)
Here's a new video of Rampage WT (some slight gfx issues were fixed as well)

https://www.youtube.com/watch?v=2Ca9JTBAfbc

Mortal Kombat 3 and Ultimate Mortal Kombat 3 work perfectly as well!  With perfect framerate on my ancient P4 machine  :biggrin:

UMK3 test-video:

https://www.youtube.com/watch?v=BOs4rtgya5w

Still have a few very small issues to iron out regarding the finishing stage of the driver, but the main problems (no sound, running too slow, etc etc) are gone!

best regards,
- dink

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Romhack's WIP thread
« Reply #163 on: December 06, 2018, 11:12:29 am »
WoW Nice work on those stuff guys :D

Offline Gab75

  • Advanced Member
  • *****
  • Posts: 546
  • Karma: +20/-0
  • All games deserve to be emulated, more or less! :P
Re: Romhack's WIP thread
« Reply #164 on: December 06, 2018, 02:38:48 pm »
Excellent work... thanks a lot! :)