OS_Ats1.dll is Windows only - is there a replacement for Linux?

View previous topic View next topic Go down

OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by jsiren on Sun Jul 07, 2013 2:54 am

Hi all,

I ran into a problem with Dexter's excellent Czech class 163. It uses the OS_Ats1.dll, which is surely a great plugin, but Windows only. This is unfortunate, because my main computer, which runs OpenBVE, is Linux only, and I don't happen to have a single copy of any version of Windows in the house. Has anybody got any idea for a replacement plugin that could be configured instead?

cheers,
Juhana Siren
Joensuu, Finland

jsiren

Posts : 106
Join date : 2012-09-17

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by Dexter on Sun Jul 14, 2013 10:03 pm

Well,

I have done a bit of searching and I came across Anthony Bowden's plugin. However, that would require a bit of reworking from my side - I am not sure if the controls can be reassigned, or if there is a given layout of keys that have to be used for the given purpose. I have contacted Anthony with some questions, so we shall see about that.

One more thing that came across my mind would be to take the source code of os_ats and recompile it... I am not very good in coding, though, so I might be unaware of issues/obstacles that await anyone who tries that. Smile
avatar
Dexter

Posts : 1824
Join date : 2011-07-09
Age : 31
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by jsiren on Mon Jul 15, 2013 9:41 am

Thanks for the detective work. Those were the options I was thinking as well. The way see it, if those two are the best options, it may be easier to adapt the UkTrainSys plugin than to attempt to recompile Oskari's plugin.

I was thinking about trying Anthony's plugin myself, but I was unsure about how to map things around, since you have implemented a lot of things that aren't usually assigned a button in the UkTrainSys cab - such as separate headlight buttons and independent front and rear pantograph control. Here are the button assignments: http://www.railsimroutes.net/libraries/uktrainsys/release_notes.html#virtual-key-assignments It seems that keys 7 (wipers off) and 8 (freeze animations) are unused as of now - I don't know if that means they can't be assigned anything no matter what, or if they just don't have any sensible function in a UK cab.

I took a brief look at the os_ats plugin, but the most sensible thing to do in order to make it platform-independent would be to port it to Mono, requiring a complete rewrite from C++ to C# - a major task indeed. I believe the plugin is probably excellent, but unfortunately it is at this time out of my reach. It is up to the author to decide if the effort of a complete rewrite is necessary.

I am going to see what I can accomplish with UkTrainSys in the following few weeks. I will gladly share whatever information I am able to gather.

jsiren

Posts : 106
Join date : 2012-09-17

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by jsiren on Fri Aug 23, 2013 4:24 am

Sorry about taking so long, some other things have been keeping me away from OpenBVE.

Nevertheless, here's the news. I tried simply dropping in UkTrainSys.dll, copying over the UK Class 323 configuration file, and I've gotten to the point where it works about as well as OS_Ats1 Smile

There are some problems: key assignments are problematic, as I don't know the underlying functions; it seems that InterlockManager must be disabled and AWS enabled for the locomotive to power up, and then you need to press Space and Insert (as per the default OpenBVE key assignments) to get power and release the brakes. Also, UkTrainSys seems to only know about one pantograph, and the security system is naturally UK-style with AWS and TPWS.

My startup sequence is currently something like this:
 - flick the direction both ways, leave it at neutral
 - release brakes to B1
 - at departure, set direction forward, fully release brakes, press Space and Insert (or equivalent joystick buttons), apply power.

I still haven't figured out which key is the main switch (is it Insert = A1? It makes a thud) or rear pantograph.

jsiren

Posts : 106
Join date : 2012-09-17

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by buckysam on Fri Aug 23, 2013 6:50 am

It would be whichever key is set to safety system function A1. Check your key assignments and see what's mapped to A1.

buckysam

Posts : 150
Join date : 2012-05-28
Age : 21
Location : Kentucky USA

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by jsiren on Fri Aug 23, 2013 9:50 am

Insert it is, then. Thanks. The space bar is the S function, would that be the vigilance device?

jsiren

Posts : 106
Join date : 2012-09-17

Back to top Go down

Re: OS_Ats1.dll is Windows only - is there a replacement for Linux?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


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