Skip to content

Route.Runinterval do not work with BVE Hacks on #1372

Description

@AmberIsFrozen

Description

When BVE hacks is on (Enable hacks for buggy older content) in the settings, using .Runinterval under the Route namespace would spit out the following error:

14:09:27  Unrecognised command runinterval encountered in the Train namespace at line 7, column 1 in file 

Despite it not being in the train namespace.

What likely happened is this line:

if (Plugin.CurrentOptions.EnableBveTsHacks && (Command.StartsWith(".run", StringComparison.InvariantCultureIgnoreCase) || Command.StartsWith(".flange", StringComparison.InvariantCultureIgnoreCase)) && Section != "train")

Which picked up .runinterval when checking for the .run command.

Reproduction

If the issue occurs in multiple routes/ trains, please provide one or two samples.
In order to reproduce the issue and debug it, it's helpful to have the following:

Route

https://openbve-project.net/files/DemoRoute1.zip

Train

Any

Logs

Logs may be accessed through the 'Report Problem' button on the bottom left of the screen.
Please provide a log, and a crash-log if the game actually crashes.

Related information

  • Operating system: Arch Linux
  • Method of control: Keyboard

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