Menu

Dr. Brain: Action Reaction - Track 11 not playing.

2020-09-07
2020-09-07
  • Albert Hamik

    Albert Hamik - 2020-09-07

    The log file says that track 11 is being loaded, but I don't hear it play in the level at all.

    CONTEXT: I go into the game, the game loads track 5 for the main menu. I go and select the final level from level select, the game supposedly loads track 11 but nothing is heard. Music will keep playing in menus usually when I go into it. I go to the menu, I exit, and it always immediately exits so nothing else should happen. For some reason, near the end of the log it says something about a track 0? I have 10 tracks total (2-11).

     

    Last edit: Albert Hamik 2020-09-07
  • gho

    gho - 2020-09-07

    There seems to be a problem here:

    mciSendCommandA: IDDevice=0xBEEF msg=806(MCI_PLAY) flags=c(MCI_FROM+TO)
    mciSendCommand>>: MCI_PLAY cb=0 from=0x18fe70 to=0x1bb9a8
    > timeformat=MILLISECONDS
    > dwFrom: 1638000
    > EncodeTTMMSS(0018FE70) -> TMS#11:0:0
    > mapped from(TMS)=11/0/0
    > dwTo: 1817000
    > EncodeTTMMSS(001BB9A8) -> TMS#0:0:0
    > mapped to(TMS)=0/0/0
    > mapped tracks First=11.00.00 Last=11.00.00
    

    The game is issuing a MCI_PLAY command in MILLISECONDS format, where the START is the beginning of track#11 (dwFrom: 1638000) and the end is 1817000 (dwTo: 1817000) that is greater than the start, but it is not recognized as the end of track#11 (maybe an overflow?), as a matter of fact the dwTo: is mapped to track 0 and the music is not played.

    I don't know if this problem is in the proxy only or if it would happen also in DxWnd. I would appreciate if you could avoid me playing the whole game by uploading here a savegame file for last level when the game is supposed to play this last track.

     
  • Albert Hamik

    Albert Hamik - 2020-09-07

    I can do you one better by you just going into the game, pressing tilde (~) to open to command prompt and type "open level045". Do you actually have the game btw? If not, either search out legends world or whatever. I uploaded the OST at least w/ cdaudio proxy to help someone else out who was also interested in the game: https://mega.nz/file/EZs22QYK#jMJeugo1uwmNXOsVDLvBfu07xgaW3Mp1rP0PQtn_4VQ

     

    Last edit: Albert Hamik 2020-09-07
    • gho

      gho - 2020-09-07

      Thanks a lot. The problem exists also on the DxWnd logic, that will make me easier to test a possible fix. Now, let's see whst happens ...

       
  • gho

    gho - 2020-09-07

    Bug found, fixed & tested on DxWnd.
    Then I brought the same changes on the proxy, it's untested but hopefully it should work. Let me know, in any case ...

     
  • gho

    gho - 2020-09-07

    Sorry, here a better (simpler) fix.

     
  • Albert Hamik

    Albert Hamik - 2020-09-07

    works great thanks. hope to see this get pushed to main soon.

     
    • gho

      gho - 2020-09-07

      Done. Too bad I made a mess with versioning, the sources are in sync with DxWnd v2.05.55, but the proxy version was v2.05.56 already. So, the kit is cdaudioproxy.2.05.56.fx1.rar.
      You can get it (sources and proxy) in download area.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.