Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility: Framework for replacing Win32 plugins with a suitable alternative #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

leezer3
Copy link
Owner

@leezer3 leezer3 commented Jan 11, 2017

This pull introduces a database of compatible replacement plugins for use on non Win32 systems.

Currently, one plugin is supported: BVEC_ATS, which provides support for several basic variants of OS_ATS.

Usage:

  • A Win32 plugin may be assigned a compatible replacement via Data\PluginDatabase\CompatibleReplacements.xml The file length, filename and MD5 must match that stored in the database.

  • A faulty plugin may also be blacklisted on all operating systems, using the file Data\PluginDatabase\BlackList.xml

Other changes:

  • Fixes a bug whereby if no plugin was loaded, the controls would be stuck.

  • If a .Net plugin crashes in-game, the plugin will be cleanly unloaded and a crash log created.

@leezer3 leezer3 force-pushed the CompatibilityPlugins branch from 1a41ffb to ad5ecd7 Compare January 12, 2017 18:47
@leezer3 leezer3 force-pushed the CompatibilityPlugins branch 3 times, most recently from 0c99abd to dc3a472 Compare February 22, 2017 15:37
@leezer3 leezer3 force-pushed the CompatibilityPlugins branch from dc3a472 to 31acecb Compare February 24, 2017 11:18
@leezer3 leezer3 force-pushed the CompatibilityPlugins branch from f79eb35 to 0ff6d9b Compare February 25, 2017 14:17
@leezer3
Copy link
Owner Author

leezer3 commented Feb 25, 2017

Have tidied the PR up (again.....)
Current TODO:

  • The default database path for these should probably be under UserData somewhere, as if installed under Program Files, we won't have write access here by default.
  • Fix BVEC_ATS so that it doesn't barf when there is no write access to the train directory (See above)

A sample package, which implements BVEC_ATS for OS_ATS version 1.0, 1.1, 1.2 and 1.3, and UKTrainsys for the 153 & 158 (original TSC versions)
Replacement Plugins 1.0.zip

@leezer3 leezer3 force-pushed the master branch 4 times, most recently from bad6395 to 438f090 Compare November 20, 2020 11:41
@leezer3
Copy link
Owner Author

leezer3 commented May 1, 2021

https://bveworldwide.forumotion.com/t2093-bvec_ats-dll-failed-to-load#20619

Need to revisit this with 64-bit / Linux.
Database package in hindsight was probably OTT, can just update with new builds.
Easiest way to do things could well be to have a modified version of BVEC_ATS which will read an OS_ATS config file directly, as opposed to a regen of the config file.

Possibly hook in more ATS components to the main game / inbuilts too. Would it be worth doing a basic port of the AWS to OpenBveAts??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant