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

**ALPHA** OS_ATS in C#

Page 6 of 6 Previous  1, 2, 3, 4, 5, 6

Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by leezer3 Fri Apr 08, 2016 1:52 pm

Greater Anglia Metro wrote:Can't seem to get it working.

Ideally I want to push the button once and then it plays the .wav - no visual whatsoever

That's what comes of writing code off the top of my head and not testing it in sim....
Code:
[Diesel]

[Interlocks]
customindicators=100,101,102
customindicatorsounds=100,101,102

[KeyAssignments]
customindicatorkey1 = D
customindicatorkey2 = E
customindicatorkey3 = F

Complete working/ tested configuration file Smile

Previous post has also been updated, removing the two typos that would have been stopping it working.....

Cheers

Chris Lees

http://www.bvecornwall.co.uk

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by Greater Anglia Metro Fri Apr 08, 2016 3:48 pm

Still not doing anything my end... I can't seem to find what I'm doing wrong though... Embarassed
Greater Anglia Metro
Greater Anglia Metro

Posts : 135
Join date : 2012-03-24
Age : 28
Location : London

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by leezer3 Fri Apr 08, 2016 5:10 pm

Small showcase:
http://www.bvecornwall.co.uk/downloads/external/SoundsTest.zip

Keys 2, 3 and 4 trigger whistle, clank and blowoff sounds- They were what I had handy Smile
(Top numbers, not numpad)

Otherwise completely stripped of everything else other than the panel image.

If necessary, just drop me a mail with a copy of your train and I'm sure I can sort it out.

Cheers

Chris Lees

http://www.bvecornwall.co.uk

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by Greater Anglia Metro Fri Apr 08, 2016 5:14 pm

Got it - for some reason I had two cfg files - one I was editing was BVEC_ATS[space].cfg  Mad Embarassed
Greater Anglia Metro
Greater Anglia Metro

Posts : 135
Join date : 2012-03-24
Age : 28
Location : London

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by leezer3 Fri Apr 08, 2016 5:31 pm

No trouble.

Let me know if there's anything else relatively simple you need, and I'm sure something can probably knocked up without too much trouble.


Cheers

Chris Lees

http://www.bvecornwall.co.uk

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by Gothpaladinus Thu May 21, 2020 7:43 pm

Hello there!

I know this is a very old topic, but I haven't found any newer one, so I post it here.

I've been experimenting with replacing the old OS_Ats1 plugin with this one for the Metrowagonmash 81-717.2K/81-714.2K (Panda) metro train by Bzmot332 with my own patch, and almost everything seems OK but two things.

Firstly, it generates an error log file with a message complaining that "The paramater customindicators contains invalid data. This should be a comma separated list of integers."

The BVEC_Ats.cfg looks this way at me:
Code:
;GenVersion=2
;DELETE THE ABOVE LINE IF YOU MODIFY THIS FILE

[Interlocks]
customindicators=91,92,93,94,95,96,102,103,104,105,106,107,108,109,110
[Vigilance]
overspeedcontrol=1
warningspeed=10
safespeed=10
overspeed=81
overspeedalarm=0

The BVEC_ATS version I'm using is 0.0.235.991 and openBVE version 1.7.1.5. What should I do to fix this error?

Second, I've noticed that a train I equip this plugin with loads way slower than the same using OS_Ats1. What could possibly cause the loading time increase so much? How could it get reduced? Could it be only because I use the new, OpenGL 3.0 renderer instead of OpenGL 1.2 or it should be independent from that?
Gothpaladinus
Gothpaladinus

Posts : 25
Join date : 2012-05-10
Age : 27
Location : Újpest, Budapest, Hungary

https://gothpaladinus.wixsite.com/gothpaladinusbve

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by leezer3 Thu May 21, 2020 8:50 pm

The plugin definitely isn't going to be affecting the load speed in the slightest, there's something else going on.
The only thing that actually has any significant affect on load speed for trains *should* be the exterior.

I'll build and test a fresh copy from the source ( https://github.com/leezer3/bvec_ats ) tomorrow, as that's a lot easier, and I haven't really done too much to this recently.

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by LXQt Sun May 24, 2020 8:33 am

Same here. "The paramater customindicators contains invalid data. This should be a comma separated list of integers."
Then, I found out that customindicatorkey3 is not working, however there is a comma.
Code:
[Interlocks]
doorpowerlock=-1
doorapplybrake=-1
customindicators=99,100,101,102,103,104,105,106,107,108,109,110,111
[KeyAssignments]
customindicatorkey1 = J
customindicatorkey2 = K
customindicatorkey3 = L
customindicatorkey4 = G
customindicatorkey5 = H
customindicatorkey6 = I
customindicatorkey7 = D
customindicatorkey8 = E
customindicatorkey9 = F
I tried changing the security key to something else(B1, etc.), still doesn't work
I switched the pluginstate to another indicators in the animated files, works.
It's just the customindicatorkey3 won't work, no idea why.
Also worth noting that when you power the train (P1,2,3,4 etc.) with the config above, it would activate pluginstate 100, I used that pluginstate for toggable headlight.
Now whenever I power the train up, the headlight will goes off, and when braking, the headlight turns on again. This does not happen in OS_ATS

LXQt

Posts : 106
Join date : 2019-02-18
Age : 16
Location : Hong Kong

https://kennyhui.pp.ua

Back to top Go down

**ALPHA** OS_ATS in C# - Page 6 Empty Re: **ALPHA** OS_ATS in C#

Post by Sponsored content


Sponsored content


Back to top Go down

Page 6 of 6 Previous  1, 2, 3, 4, 5, 6

Back to top


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