BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HK OpenBVE Seltrac Plugin Issues

4 posters

Go down

HK OpenBVE Seltrac Plugin Issues  Empty HK OpenBVE Seltrac Plugin Issues

Post by theflyingoreo Wed Jan 04, 2023 1:47 pm

Hi all

Noticed a problem suddenly where a train with a certain plugin now refuses to work.

The route in question is a HK one from here

https://hkrailsimcentre.weebly.com/282073794123663393403217119968263991997934892.html

The included train uses a unique plugin where you have to press the insert and delete keys to change the driving mode however in the latest stable build 1.8.4.3 these functions no longer work.

The developer is aware and has suggested downloading .NET 5 to attempt to fix

Not sure whether this can be looked at or is this a train plugin issue.

theflyingoreo

Posts : 116
Join date : 2011-07-09
Location : Sydney Australia

https://www.facebook.com/sydneybve

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by leezer3 Fri Jan 06, 2023 4:52 pm

From a quick look in the train files, it looks like this should have been fixed in 1.8.4.3, although it would only ever have worked on the 32-bit version of OpenBVE.
(Broken in 1.8.4.1 & 1.8.4.2)

The basic issue is that it's actually using DetailManager to load multiple train plugins simulataneously. This hooked into something internal that whilst public wasn't really intended for external use.

This is a somewhat improved version of DetailManager.dll I tweaked when debugging the issue:
https://github.com/leezer3/OpenBVE/files/9491552/DetailManager.1.0.0.1.zip

Changes:
* Better handling if child plugins crash.
* Returns the most restrictive brake notch, as opposed to that of the last processed plugin per elapse call.
* Fixed to work on 64-bit. (AnyCPU compile)
* Corrects path resolution on case-sensitive filesystems (e.g. Linux)

Going to test a little in a minute.

leezer3

Posts : 1960
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by leezer3 Fri Jan 06, 2023 5:15 pm

OK, that's interesting.
It's running a Win32 version of DetailManager I haven't seen before, not the .Net version I was assuming....

https://github.com/mikangogo/DetailManager

May not be till next week that I get to have a proper look, but this may be messy.
Running multiple .Net plugins is bad enough, multiple Win32 plugins is a recipie for absolute chaos.

leezer3

Posts : 1960
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by leezer3 Fri Jan 06, 2023 5:31 pm

Attempted to test, and I can't get it to work full-stop Sad

Readme reccomends 1.8.1.0, which I've setup. Also tried 1.7.3.0 and latest master.
The plugin loads, either 64-bit proxied or in 32-bit. I've verified it's getting the keypresses it expects.
It next says to put the train in F, B8 and then change the driving mode using INS / DEL

This does nothing, but the plugin is clearly doing *something* as various panel bits are running correctly (next station distance, timer etc.)

Any chance of a specific routefile / train combo and full instructions as to how it should go?

Edit:
Sorry, this actually works OK for me in 64-bit mode, but not in 32-bit mode. 1.7.3.0 is only 32-bit, which is probably why it's broken.
My suspicion is that this is a similar issue to OS_ATS issues, in that some older Win32 plugins (normally been the OS_ATS variants) have been getting more and unreliable with modern computers. This route is really pushing the boundaries of the 32-bit memory limits, which will inevitably make issues like this surface more easily (as trains / plugins are loaded after the route and hence will be at a higher memory address)

Please try 64-bit mode and see if that works for you.

leezer3

Posts : 1960
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by LXQt Sun Jan 08, 2023 6:54 pm

The Seltrac plugin is unfortunately rather dated (Around the BVE4 era), it's a gamble on whether it will load on modern systems and there are probably nothing that can help this situation. (Likely suffering the same issue with OS_ATS)

I don't see this plugin being replaced anytime soon, it's rather tailor made and I don't think there are plugins out there that can achieve full feature parity.

So you probably just have to re-launch OpenBVE over and over and hope one day it will work Razz

Interesting that there is a Win32 DetailManager though, was wondering how did they load multiple Win32 plugin.
LXQt
LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by leezer3 Sun Jan 08, 2023 8:54 pm

That's interesting.
Maybe that's why it didn't work first time around, and then randomly decided to work on 64-bit (I was assuming I'd missed something in that startup sequence or something on my original attempt) :/

leezer3

Posts : 1960
Join date : 2011-08-23

http://www.bvecornwall.co.uk

LXQt likes this post

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by theflyingoreo Wed Jan 11, 2023 11:09 pm

Ended up finding a solution. It's .Net related.

A little cumbersome but I uninstalled all forms of .Net then went in and reinstalled the latest .net framework and now all is well.


theflyingoreo

Posts : 116
Join date : 2011-07-09
Location : Sydney Australia

https://www.facebook.com/sydneybve

Gothpaladinus and LXQt like this post

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by zbx1425 Sat Jan 21, 2023 9:47 am

IIRC the Win32 DetailManager (by Rock_On) dates further back.
That is, ppl working with BVE5 are using multiple plugins way earlier, while DetailManager.NET developed by S520 is intended to mimic it.
https://github.com/mikangogo/DetailManager

LXQt wrote:Interesting that there is a Win32 DetailManager though, was wondering how did they load multiple Win32 plugin.
zbx1425
zbx1425

Posts : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Gothpaladinus and LXQt like this post

Back to top Go down

HK OpenBVE Seltrac Plugin Issues  Empty Re: HK OpenBVE Seltrac Plugin Issues

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum