Animating side doors

Animating side doors

Postby eyore » Thu May 31, 2018 9:44 pm

Image

Working on a YBQ sturgeon and was wondering if the side doors could be animated to open when the consist is at a work site?

The animation is simple, but I guess the passenger stock animated door system won't work as the consist won't be at a platform. So, a keyboard call to run the animation seems the likely way to go, but my knowledge of lua is famously awful, so wondered if anyone could comment on the possibility of this idea working?
Last edited by eyore on Fri Jun 01, 2018 7:57 am, edited 3 times in total.
Phil

Image
User avatar
eyore
Passed Fireman
 
Posts: 105
Images: 3
Joined: Tue Apr 01, 2014 6:34 pm
Location: Lake District
Has thanked: 24 times
Been thanked: 62 times

Re: Animating side doors

Postby AndiS » Thu May 31, 2018 10:11 pm

I can only comment on your image not working. :twisted:
All I see is "You are not authorised to view this image!"
I never came across this. But then again, I just upload as attachment.

The answer to the original question will be: Yes you can. But how exactly it is set up to work is not something I could say from the top of my head. I guess you need a controller that reacts to the key press and then some OnControllerChange to start the animation if the controller state changed because of your key press and then you inch the animation forward in Update. You can copy this last bit from semaphores, but better from some example of rolling stock that will be nearer to what you do here.
AndiS
Top Link Driver!
 
Posts: 599
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 249 times
Been thanked: 280 times

Re: Animating side doors

Postby VictoryWorks » Fri Jun 01, 2018 9:26 am

The problem is that the wagon itself doesn't have controls you can interact with of any kind, so the firing control would need to be added to the loco that pulls it and then could be passed to the wagon - either via consist messages, which is risky as those can break if a wagon in between doesn't pass messages on, or by the reliable global consist control which is what we use on the TPO coaches.

If you can think of a standard control that could be used then it's possible for all player locos to do it - 3 short toots on a whistle/horn for example. Otherwise every engine that you want to have the capability will need to be modified with the added control and key combo to fire it which is not very practical in this case.

The other thought is to have an option in the wagon numbering so at least when a group of them are placed as scenery at a work site you can set them to appear as open.
User avatar
VictoryWorks
Driver
 
Posts: 311
Joined: Mon Apr 07, 2014 1:22 pm
Has thanked: 30 times
Been thanked: 210 times

Re: Animating side doors

Postby eyore » Fri Jun 01, 2018 9:28 am

Thanks Pete, I guess that explains why it hasn't been done before.
Phil

Image
User avatar
eyore
Passed Fireman
 
Posts: 105
Images: 3
Joined: Tue Apr 01, 2014 6:34 pm
Location: Lake District
Has thanked: 24 times
Been thanked: 62 times

Re: Animating side doors

Postby AndiS » Fri Jun 01, 2018 9:58 am

Now you know why I referred to others. I had been under the impression that you can have controllers in wagons or coaches. But maybe that was just the build-in door controls? No idea.

Yeah, messages are a pain because scenario creators will not love to run lists of what is compatible with what.

Nice idea with the number to control static stock.
Recently it dawned to me how much variability we give away be not having all the scenery with some scenario-dependent feature - exactly like open doors. Of course, it would require a bit of scripting. But imagine all the near buildings having windows and doors open or closed to taste of scenario creator, or midground buildings having different windows lit at different times. Or workshops being lit in the evening but not at night.

Maybe just dream mode, but the wagon at hand is a good example of the steps towards realism that are just within reach, or just beyond.
AndiS
Top Link Driver!
 
Posts: 599
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 249 times
Been thanked: 280 times

Re: Animating side doors

Postby Auscgu » Sat Jun 02, 2018 8:53 am

The shunting wagon from Sim Nation has an opening tool box door linked to the Hand brake
I asked if is could be made independent but the answer came back this is the only way to activate for a wagon
The control blue print is for the brake
The animation for the brake has the door animation as well
Certainly works and the only opening door that I know off
You can apply the brake through the HUD on the loco before uncoupling
Easy as and an existing control point for a wagon
Check out the image
Wagon Brake.jpg

Hope this helps
Ausc
Auscgu
Fit for Firing Duties
 
Posts: 42
Images: 16
Joined: Sat Oct 21, 2017 11:04 am
Has thanked: 9 times
Been thanked: 11 times

Re: Animating side doors

Postby eyore » Sat Jun 02, 2018 12:08 pm

Image

Thanks for that information - worked a treat!
Phil

Image
User avatar
eyore
Passed Fireman
 
Posts: 105
Images: 3
Joined: Tue Apr 01, 2014 6:34 pm
Location: Lake District
Has thanked: 24 times
Been thanked: 62 times

Re: Animating side doors

Postby VictoryWorks » Mon Jun 04, 2018 8:17 am

Well done, looks very nice indeed.
User avatar
VictoryWorks
Driver
 
Posts: 311
Joined: Mon Apr 07, 2014 1:22 pm
Has thanked: 30 times
Been thanked: 210 times

Re: Animating side doors

Postby sumitsingh » Tue Jun 05, 2018 10:35 am

Great modeling.
User avatar
sumitsingh
Full Time Fireman
 
Posts: 66
Images: 0
Joined: Sat Oct 21, 2017 11:48 am
Has thanked: 49 times
Been thanked: 21 times


Return to Rolling Stock General

Who is online

Users browsing this forum: No registered users and 0 guests

cron