Author Topic: MT15.DRV reverse engineering project  (Read 1712 times)

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
First release with all internal isub-functions ported zu C
« Reply #15 on: June 13, 2021, 09:16:50 AM »
there are isub-Functions (internal helper functions) that all get multiple called from the pluing-interface functions - i've ported all the isub functions to C now!
these are the mostly used functions - this is a big step for the C port, now i need others to re-check the behavior

attached are the version 1.0 and 1.1 binaries partially based on C-code (will release the source later when its clean)

i've compared mine and the original and they seems to be identical
bugs could be: it would sound strange (like a very slow free style jazz session for example), do just nothing, hangs, hickups, or too fast or slow or just crazy - that is all i've  heard while porting :)

can someone re-check the sound/music behavior compared to the originals? Im looking at you, Duplode :)

i don't know which wild stunts 1.0/1.1 + my driver version 1.0/1.1 combination should/can be tested
« Last Edit: June 13, 2021, 09:51:23 AM by llm »

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Next C Port release
« Reply #16 on: June 20, 2021, 02:38:05 PM »
these Stunts 1.0/1.1 MT15.DRV version are nearly fully ported to C - ~2000 lines of assembler reduced to ~600 lines well(over) documented C :)

but there is still is a risk that i introduce micro bugs while porting
for me the both version are sounding identical to the original + comparing midi output etc.
but wider testing would be great

there are only 4 (of 29 functions) left to port, so its nearly done

source is released when im done with the full port - then i really need help to understand the complete midi-sound values pushed through the driver
« Last Edit: June 20, 2021, 02:39:49 PM by llm »

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #17 on: June 23, 2021, 11:27:11 PM »
only two functions left :)

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #18 on: June 26, 2021, 02:37:34 PM »
one function left

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #19 on: June 27, 2021, 10:06:10 AM »
fully ported to C !!!

would be great if someone can test a little bit



Daniel3D

  • Skid`s Nightmare
  • **
  • Posts: 789
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #20 on: June 27, 2021, 10:44:24 AM »
I would love to. I've you can tell me how.
I don't know (understand) what I need to setup to use the driver.
(I have WX [Windows 10] and defend dosbox manager)
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #21 on: June 27, 2021, 02:04:06 PM »
>I would love to. I've you can tell me how.

no problem :)

>I don't know (understand) what I need to setup to use the driver.
>(I have WX [Windows 10] and defend dosbox manager)

you need original dosbox with munt patch or dosbox staging (develop version with already integrated MT32)
and the MT32 roms

grab the develop-version of staging which already integrated MT32 support:
i've uploaded the current development version (im also using) to: https://easyupload.io/nbo5r5

create following pathes

C:\temp\mt15_tests\romfiles <- fill that with the mame rom files: seach for "mame mt32 rom" you should find a mt32.zip and a cm32l.zip (extract copy all .rom/.bin into this folder without sub-folder)
C:\temp\mt15_tests\stunts11 <- your stunts 1.1 copy AND unpacked game.exe from the restunts projects (also attached)
C:\temp\mt15_tests\dosbox <- put in here the dosbox staging alpha files AND the attached dosbox.conf

then run the dosbox exe - stunts should start automaticly
relevant lines in the dosbox.conf are marked with "# !!Daniel3D!!" but should work out of the box if you can use the pathes as stated above

then you can check if
reMT15/10/MT15.DRV sounds/behaves the same as the stunts 1.0 MT15.DRV (org/10)
reMT15/11/MT15.DRV sounds/behaves the same as the stunts 1.1 MT15.DRV (org/11)
used with stunts 1.1

attach-info:
game.exe from the restunts project - copy into the stunts11 folder
dosbox.conf - copy into the dosbox folder
reMT15.7z - contains my 1.0 and 1.1 version of the Stunts MT15.drv
org.7z - contains the original 1.0 and 1.1 version of the Stunts MT15.drv





« Last Edit: June 27, 2021, 02:32:49 PM by llm »

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #22 on: June 29, 2021, 06:27:04 AM »
Big question: do the sound glitches that Duplode talked about sill occure, in the first step the driver should behave exactly like the original

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #23 on: June 30, 2021, 08:28:51 AM »
@Daniel3D - did you get it running?

Daniel3D

  • Skid`s Nightmare
  • **
  • Posts: 789
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #24 on: June 30, 2021, 02:01:52 PM »
@Daniel3D - did you get it running?
Haven't had the chance to work on it yet (late shifts). Maybe tomorrow.
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A

Daniel3D

  • Skid`s Nightmare
  • **
  • Posts: 789
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #25 on: July 01, 2021, 04:21:20 PM »
Got it running without any problems.
Strange to play with this sound. I never heard it live before.

I played a while without and with the new driver.
The only thing I noticed, that is new for me.
That is that there seems to be a fade out between music (from intro to main menu en from there to racing)
With the new driver that fade seems longer...
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #26 on: July 01, 2021, 05:26:27 PM »
Quote
That is that there seems to be a fade out between music (from intro to main menu en from there to racing)
With the new driver that fade seems longer...

the original MT15.DRV 1.0 uses a different timing method then original MT15.DRV 1.1 - does the delay also happen there?

so its very relevant to first test the difference between original 1.0 and 1.1 MT15.DRV
to give you a feeling was the original differences are

and then compare

orginal 1.0 to reMT15 1.0

and then

original 1.1 to reMT15 1.1


comparing original/MT15.DRV 1.0 with reMT15.DRV 1.1 makes no sense because i think even the orginal version 1.0 and 1.1 are different in behavior

Daniel3D

  • Skid`s Nightmare
  • **
  • Posts: 789
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #27 on: July 01, 2021, 05:36:16 PM »
I only tested 1.1 stunts with the old and new 1.1 driver.
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A

llm

  • Bernie's Brother
  • **
  • Posts: 267
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #28 on: July 02, 2021, 08:17:29 AM »
using stunts 1.1: comparing original 1.0 and original 1.1 drv -> "fading out" is slower with 1.1 - isn't that the case in your installation? or did you maybe mixed up the versions?
« Last Edit: July 02, 2021, 08:22:53 AM by llm »

Daniel3D

  • Skid`s Nightmare
  • **
  • Posts: 789
    • View Profile
Re: MT15.DRV reverse engineering project
« Reply #29 on: July 02, 2021, 09:37:38 AM »
I only tested 1.1 stunts with the old and new 1.1 driver.
The new 1.1 driver seems to fade slower than the original 1.1 driver.

I'll double check. I will also check if my original driver is the same as your original one.
« Last Edit: July 02, 2021, 09:43:55 AM by Daniel3D »
Ever tried, ever failed. Try again, fail better.

Currently running 19 separate instances of Stunts or 4D Sports Driving.
---------
Stunts resources.
https://mega.nz/folder/JM8HQI5a#mH5ZBNwXC0eEBmockWo50A