Skip to content

Hmmsim Route Parser: Remaining object bugs, MP3 announcement support, .Hmm.RailSound, .Hmm.CurveTransition, and .Hmm.PitchTransition #1357

Description

@gyojalal

Hello,

First of all, thank you for continuing to work on the Hmmsim route parser. The recent updates have already fixed several issues, and the route is getting much closer to the original Hmmsim experience.

After testing the latest development build, I found a few remaining issues.

Remaining bugs
Some objects are missing at Jamsilnaru Station.
Object placement becomes incorrect when entering the tunnel between Jamsilnaru Station and Jamsil Station.

I will attach screenshots for both of these issues so you can see exactly where they occur.

Door side problem with .Hmm.Station

For example:

.Hmm.Station StationName;;;;1

The last parameter appears to represent the door side.

However, whether the value is 1 or -1, OpenBVE currently opens both doors instead of only the correct side.

MP3 announcement compatibility

The Hmmsim default route uses MP3 files for station announcements.

Currently they do not play.

I tested by replacing one announcement with a WAV file, and it played correctly, so the announcement system itself appears to work.

Could MP3 playback compatibility be added for route announcements?

Feature request: .Hmm.RailSound

The default Line 2 route only appears to use:

.Hmm.RailSound 1

From my testing, this simply switches the running sound from Run0 to Run1, mainly when entering underground sections.

Since it is a very simple command, would it be possible to support it?

Feature request: .Hmm.CurveTransition and .Hmm.PitchTransition

According to the official Hmmsim documentation:

CurveTransition() sets a transition curve before the following Curve command.
PitchTransition() sets a vertical transition before the following Pitch command.

OpenBVE already supports transition curves and vertical curves through its BVE5 parser.

Would it be possible to implement these Hmmsim commands by reusing the existing transition curve and vertical curve logic already available in OpenBVE?

I believe this would make Hmmsim routes much closer to the original simulator.

Thank you again for all your work on this project. I really appreciate the time you are spending on improving Hmmsim route compatibility.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions