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

Czech class 163 cabin re-creation

+5
graymac
viccylinefan
mrknowitall
Misfit
Dexter
9 posters

Page 2 of 2 Previous  1, 2

Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Sun Jan 15, 2012 8:44 am

Not really, Ben, I am always trying to figure things out by myself as a first attempt. This was rather easy. Sorry for misunderstanding you with that first post.Very Happy

92220: Yes, your solution is plugin-independent, but I have assigned the controls using the plugin; the headlights, tail lights, and another headlights (the upper ones) have a separate control; and it is also separated in dependence of the end of the vehicle. It means when I turn the headlight on the front side on, the rear one stays off etc. This is regardless of the Reverser or Power Notch. But I can add a few conditions, such as direction control etc. Cool


Last edited by Derryck on Sun Jan 15, 2012 2:53 pm; edited 2 times in total
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by theflyingoreo Sun Jan 15, 2012 10:00 am

Is there documentation for the os_ats plugin on assigning custom controls as I'm interested in using it for one of my trains.

theflyingoreo

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

https://www.facebook.com/sydneybve

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by 92220 Sun Jan 15, 2012 2:25 pm

But Derryck, is Herself not going to throw a hissy fit if you develop new things using a non-Net plugin? affraid
92220
92220

Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Sun Jan 15, 2012 2:45 pm

92220 wrote:But Derryck, is Herself not going to throw a hissy fit if you develop new things using a non-Net plugin? affraid

She might throw whatever she wants, I will get on her back. Very Happy
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Sun Jan 15, 2012 2:47 pm

RachelBerryFan47 wrote:Is there documentation for the os_ats plugin on assigning custom controls as I'm interested in using it for one of my trains.

Yes, there is... it is a complete package with explanations. Emailed your way, but as I am sending from a "CZ" domain, it might arrive into your SPAM folder, so check it. Smile
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Sun Jan 15, 2012 2:55 pm

mrknowitall wrote:May i ask if i had any part of helping you make this? because to date there was only really me who made the code for the lights. Just wondering

But if you wanna know, I will most probably add revolving bogies and for them, the inspiration is found in your pdf. Happy
By the way, what plugin do you use? I suppose you don't use OS_Ats and therefore the coding will be a little different...
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by joeyfjj Mon Jan 16, 2012 6:24 pm

92220 wrote:I always used

Code:
[OBJECT]
States=Lamp.b3d
StateFunction=If[Cars<1|ReverserNotch>0,0,1]

to animate lights.

I believe you can make it more efficient by modifying it to:

Code:
[OBJECT]
States=Lamp.b3d
StateFunction=(Cars<1)+(ReverserNotch>0)-1

How does it work?

(Cars<1) is evaluated, if it is true, it becomes "1", if false, "0". Same for (ReverserNotch>0).

So we want both to be true, so we will get it simplified to 1+1-1 = 1, which gives you the state you want without the if function, which is more expensive.

joeyfjj

Posts : 266
Join date : 2011-07-30
Location : Singapore

http://joeyfoo.com

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by 92220 Tue Jan 17, 2012 8:46 am

Thanks Joeyfjj! That works fine.
92220
92220

Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Tue Jan 17, 2012 9:19 am

Yes, it is working - provides automated switching on/off.
I just wanted to have it user-controlled. Smile
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by 92220 Tue Jan 17, 2012 1:30 pm

Derryck wrote:I just wanted to have it user-controlled. Smile

There just might be the answer to that, in the Pub. Positive
92220
92220

Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Tue Jan 17, 2012 3:15 pm

Actually, I have done it. Basketball
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by 92220 Tue Jan 17, 2012 6:34 pm

I know that but I just thought "Cue for a song!". I'm like that Very Happy Happy
92220
92220

Posts : 283
Join date : 2011-10-09
Age : 73
Location : Buckinghamshire, England

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Dexter Fri Feb 24, 2012 5:45 pm

OK, folks,

the second beta is now out and available. Changes made to the external - added animated user-controlled lights and user controlled pantos (both of them). Try it out and let me know what you think. (The pantograph animations still need to be finalized).


www.ebrnobve.webgarden.cz
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Czech class 163 cabin re-creation - Page 2 Empty Re: Czech class 163 cabin re-creation

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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