**ALPHA** OS_ATS in C#
+11
graymac
hkmtrhah
HijauKuda
jsiren
Dexter
buckysam
thehoviskid
Greater Anglia Metro
alex_farlie
Northern Line
leezer3
15 posters
Page 6 of 6
Page 6 of 6 • 1, 2, 3, 4, 5, 6
Re: **ALPHA** OS_ATS in C#
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
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
Re: **ALPHA** OS_ATS in C#
Still not doing anything my end... I can't seem to find what I'm doing wrong though...
Greater Anglia Metro- Posts : 135
Join date : 2012-03-24
Age : 31
Location : London
Re: **ALPHA** OS_ATS in C#
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
(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
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
(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
Re: **ALPHA** OS_ATS in C#
Got it - for some reason I had two cfg files - one I was editing was BVEC_ATS[space].cfg
Greater Anglia Metro- Posts : 135
Join date : 2012-03-24
Age : 31
Location : London
Re: **ALPHA** OS_ATS in C#
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
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
Re: **ALPHA** OS_ATS in C#
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:
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?
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?
Re: **ALPHA** OS_ATS in C#
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.
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.
Re: **ALPHA** OS_ATS in C#
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.
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
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 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
Page 6 of 6 • 1, 2, 3, 4, 5, 6
Page 6 of 6
Permissions in this forum:
You cannot reply to topics in this forum