You are not logged in.

  • "Mitchul" started this thread

Date of registration: Jan 29th 2012

Location: Melbourne, Australia

  • Send private message

1

Thursday, May 10th 2012, 3:19pm

School Bus / Bus Flashers?

Is it possible to create a script which allows a bus in OMSI to have it's top front (if fitted) and top-back indicators to alternate when doors are opened? However only when a button has been pressed / the feature has been turned on?

I think it would make a more realistic view for OMSI, especially in the Bowdenham route where there is a dedicated school route (S52 I think?).

In Australia (and more specifically, NSW), all buses are fitted with school flashers which are used when there are school children getting on/off the bus.

The only visual I could find was in this YouTube video: http://www.youtube.com/watch?feature=pla…to26VYfrk#t=16s
(the bus in question, which is rather obvious, is the State Transit Authority Mercedes Benz O405NHCNG, Custom Coaches "Citaro")

Thanks,
Mitchul [;

Date of registration: Dec 7th 2011

Location: Ithaca

Occupation: Student

  • Send private message

2

Thursday, May 10th 2012, 4:19pm

Weird video...

I don't think O405's are Citaros. O530s are Citaros.

I think the best person to ask is Mr. Marcel. Have you tried that?
HELP WANTED!!!
LEND A HAND IN CREATING THE NEW YORK CITY MAP AND BUSES FOR OMSI!!! ANY ASSISTANCE IS HIGHLY APPRECIATED!!! SEE THE THREAD BELOW:

3

Thursday, May 10th 2012, 10:42pm

Is it possible to create a script which allows a bus in OMSI to have it's top front (if fitted) and top-back indicators to alternate when doors are opened? However only when a button has been pressed / the feature has been turned on?

I think it would make a more realistic view for OMSI, especially in the Bowdenham route where there is a dedicated school route (S52 I think?).

In Australia (and more specifically, NSW), all buses are fitted with school flashers which are used when there are school children getting on/off the bus.

The only visual I could find was in this YouTube video: http://www.youtube.com/watch?feature=pla…to26VYfrk#t=16s
(the bus in question, which is rather obvious, is the State Transit Authority Mercedes Benz O405NHCNG, Custom Coaches "Citaro")

Thanks,
Mitchul [;

It's possible, and not too problematic.
If you press a button somewhere on the dashboard > check if there is any opened door > if yes, start blinking the indicators. If doors closed / button pressed (?) blinkers should stop lighting. Right?
You need a trigger for the button, a blinker macro maybe and and variable whixh will control the blinker effect for the lights in the model.cfg

Have fun! ;)
nemeza
---------
current project:FOK-GYEM display boards and control unit, Ikarus 412 script help, "short-term" script mods

  • "Mitchul" started this thread

Date of registration: Jan 29th 2012

Location: Melbourne, Australia

  • Send private message

4

Friday, May 11th 2012, 8:50am

Weird video...

I don't think O405's are Citaros. O530s are Citaros.

I think the best person to ask is Mr. Marcel. Have you tried that?
They aren't Citaro's, no. Due to Australian design regulations, Citaro's are too wide for Australian roads, so Custom Coaches worked in conjunction with Mercedes Benz to produce these buses for Sydney's (then) State Transit Authority, hence the body name "Custom Coaches 'Citaro'". Here in Australia, we have dedicated bus body makers which fit bodies to chassis that are imported from overseas.

Examples are: Bustech, Volgren, Custom Coaches and (from New Zealand) Designline.






Quoted from "Mitchul"



Is it possible to create a script which allows a bus in OMSI to have it's top front (if fitted) and top-back indicators to alternate when doors are opened? However only when a button has been pressed / the feature has been turned on?

I think it would make a more realistic view for OMSI, especially in the Bowdenham route where there is a dedicated school route (S52 I think?).

In Australia (and more specifically, NSW), all buses are fitted with school flashers which are used when there are school children getting on/off the bus.

The only visual I could find was in this YouTube video: http://www.youtube.com/watch?feature=pla…to26VYfrk#t=16s
(the bus in question, which is rather obvious, is the State Transit Authority Mercedes Benz O405NHCNG, Custom Coaches "Citaro")

Thanks,
Mitchul [;

It's possible, and not too problematic.
If you press a button somewhere on the dashboard > check if there is any opened door > if yes, start blinking the indicators. If doors closed / button pressed (?) blinkers should stop lighting. Right?
You need a trigger for the button, a blinker macro maybe and and variable whixh will control the blinker effect for the lights in the model.cfg

Have fun!
How would I go about doing this? I'm not too smart in scripting and whatnot so I would need some help with it. I will get in contact with Marcel later this evening.

Thanks,
Mitchul [;

5

Friday, May 11th 2012, 8:20pm


...How would I go about doing this? I'm not too smart in scripting and whatnot so I would need some help with it. I will get in contact with Marcel later this evening.

Thanks,
Mitchul [;

So You want a step-by-step tutorial? Then it's offtopic here -> should be moved to Addon wishes topic! Please don't disturb them if you can't do scripting, I don't think they will do.. More likely someone else helps you with it, as it seems to be not too hard to script..
nemeza
---------
current project:FOK-GYEM display boards and control unit, Ikarus 412 script help, "short-term" script mods

Date of registration: Dec 7th 2011

Location: Ithaca

Occupation: Student

  • Send private message

6

Friday, May 11th 2012, 8:50pm

No, he's in the right section. I would ask Mr. Marcel, though.
HELP WANTED!!!
LEND A HAND IN CREATING THE NEW YORK CITY MAP AND BUSES FOR OMSI!!! ANY ASSISTANCE IS HIGHLY APPRECIATED!!! SEE THE THREAD BELOW:

Date of registration: Dec 4th 2011

Location: Philadelphia, PA

  • Send private message

7

Friday, May 18th 2012, 4:36pm

Quoted

...How would I go about doing this? I'm not too smart in scripting and whatnot so I would need some help with it. I will get in contact with Marcel later this evening.


First of all just calm down and take an look at the blinker code, from there just work the scripting from there using variables which utilizes timegap . It is not too hard to do, just need some patience!

8

Sunday, May 20th 2012, 8:58pm

I created a mod called school_flasher :) as it was a good training.

It works so, that you can activate the function using a switch.
Blinkers running as long as a door is open or the switch is turned on.

I tested it on Ikarus 260 opt (not released). In which bus you may want to use? Then I offer to test it on that 1 (one) bus.

I tried to add the code first to separate files, but as I use the original blinker methods I have to edit lights.osc, only the variables placed to separate varlist.
nemeza
---------
current project:FOK-GYEM display boards and control unit, Ikarus 412 script help, "short-term" script mods

9

Monday, May 21st 2012, 12:14am

nemeza
---------
current project:FOK-GYEM display boards and control unit, Ikarus 412 script help, "short-term" script mods