ProSim737-800 2018 Pro Flight Model version 1.24

Lapi
Posts: 2497
Joined: 26 Nov 2011, 02:00

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Lapi » 24 Jul 2018, 21:48

mvanbrus wrote:
24 Jul 2018, 21:24
Looking at the Prosim-door.lua it is saying:

Find "cargo" in the airplane's title and open the big door with TAB 5. This works with cargo planes.
ELSE
open the Fwd cargo door of airplanes that do not have "cargo" in the name title. This does NOT work.
I removed the top part of FWD_Cargo_Door name search and now TAB 5 is opening the FWD cargo door of NON cargo airplanes. I can't figure out why your "else" is not working though.
Hi Martin,

Of course it works... You misunderstand the intention.
The TAB+5 in every case SHOULD open either the forward cargo-door OR the main cargo-door (if it's a cargo version).
After the "else" statement the difference is that a different SOUND is being played and that is the ONLY difference.

The cargo version is differentiated by using a different model (.mdl) file and has nothing to do with the lua file.
(In case the cargo plane is desired, there's the model=cargo in the aircraft.cfg file which by that calls the normal=ProSim737-800-2018-Cargo.mdl file from the model.cfg in the model.cargo folder).
Thus the "else" statement is working fine, you just didn't notice that the only difference is the sound-file... and the order the sounds play. With the passenger plane the sound plays after the animation takes place, whereas the cargo version starts playing the sound at the same time the animation is triggered. These are all in the main "else" statement.

Edit:
But you were right and there was a small glitch in the cargo section, so I fixed that.
I don't want to return to the distributed original version, where there were no separate open and close sounds, so I also placed the new .wav files in the zip.

doors.zip
(279.38 KiB) Downloaded 174 times

regards
Lapi

mvanbrus
Posts: 46
Joined: 06 Feb 2012, 18:14

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by mvanbrus » 25 Jul 2018, 01:08

Hi Lapi,

All working.
Thanks

Martin

Pete Dowson
Posts: 554
Joined: 15 Oct 2014, 00:32

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Pete Dowson » 25 Jul 2018, 10:12

mvanbrus wrote:
24 Jul 2018, 21:24
I removed the top part of FWD_Cargo_Door name search and now TAB 5 is opening the FWD cargo door of NON cargo airplanes. I can't figure out why your "else" is not working though.
I'm not using the supplied Lua (my doors are programmed via my own driver), but, inspecting the icode, there is a bug:

The "end" is missing to complement the second "if" within the Cargo door part - i.e. the if on line 131 needs an end after line 138.

This has been forced through the syntax checker by an extra end at the end of that section, before the event.key call. In fact it seems to be that there's an extra end there beyond the one that's (wrongly) needed, but i'd need to count more carefully to make sure.

Pete

Lapi
Posts: 2497
Joined: 26 Nov 2011, 02:00

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Lapi » 25 Jul 2018, 12:06

Pete Dowson wrote:
25 Jul 2018, 10:12
This has been forced through the syntax checker by an extra end at the end of that section, before the event.key call. In fact it seems to be that there's an extra end there beyond the one that's (wrongly) needed, but i'd need to count more carefully to make sure.
Hi Pete,

Thanks. That's been corrected in the version I've uploaded above.

regards
Lapi

holi
Posts: 226
Joined: 21 Feb 2015, 07:59

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by holi » 26 Jul 2018, 16:23

Gentlemen I need some help.
I can not get the doors working with the new Flightmodell v 1.24

I put the luascript „doors Prosim737“ into the module folder
I checked the Fsuipc.ini and under Lua the entry for the doors is present.
I assigned in the sim via FSUIPC all requested commands as keystrokes „TAB+1“ etc. for all doors.

But starting the sim and trying to open/closing the doors via keystroke or assigned button is not successful, no movment of the doors.
Strange is that the warning ligt at the overhead panel is indicating open doors but from outside view they are all closed.

Did I something wrong, or missed something?

Any help is appreciated!

Gilltech
Posts: 31
Joined: 07 Aug 2015, 17:38
Location: Bellingham, WA USA

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Gilltech » 26 Jul 2018, 16:37

Holi,

you might try adding this section and line to the FSUIPC.ini file


[Auto]
1=Lua Prosim-doors


This seemed to make a difference for me.


Mark

holi
Posts: 226
Joined: 21 Feb 2015, 07:59

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by holi » 26 Jul 2018, 17:20

Thank you Mark,
This did the trick, all fine now!

Pete Dowson
Posts: 554
Joined: 15 Oct 2014, 00:32

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Pete Dowson » 26 Jul 2018, 19:34

holi wrote:
26 Jul 2018, 17:20
This did the trick, all fine now!
Yes, the Lua script does need to be loaded and running, otherwise it will not see the assigned keystrokes.

Pete

Driver170
Posts: 1220
Joined: 29 Feb 2016, 02:22
Location: Edinburgh

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Driver170 » 27 Jul 2018, 17:09

Confused here.

I’m pressing tab+5 and the FWD cargo door isn’t opening?

Using the latest flight model and passenger mdl not cargo
Vernon

737 Ryanair Project

Image

Ursli80
Posts: 613
Joined: 05 Apr 2015, 15:33

Re: ProSim737-800 2018 Pro Flight Model version 1.24

Post by Ursli80 » 27 Jul 2018, 18:48

Driver170 wrote:
27 Jul 2018, 17:09
Confused here.

I’m pressing tab+5 and the FWD cargo door isn’t opening?

Using the latest flight model and passenger mdl not cargo
Hello,

did you see this post from Lapi?
Lapi wrote:
24 Jul 2018, 21:48
mvanbrus wrote:
24 Jul 2018, 21:24
Looking at the Prosim-door.lua it is saying:

Find "cargo" in the airplane's title and open the big door with TAB 5. This works with cargo planes.
ELSE
open the Fwd cargo door of airplanes that do not have "cargo" in the name title. This does NOT work.
I removed the top part of FWD_Cargo_Door name search and now TAB 5 is opening the FWD cargo door of NON cargo airplanes. I can't figure out why your "else" is not working though.
Hi Martin,

Of course it works... You misunderstand the intention.
The TAB+5 in every case SHOULD open either the forward cargo-door OR the main cargo-door (if it's a cargo version).
After the "else" statement the difference is that a different SOUND is being played and that is the ONLY difference.

The cargo version is differentiated by using a different model (.mdl) file and has nothing to do with the lua file.
(In case the cargo plane is desired, there's the model=cargo in the aircraft.cfg file which by that calls the normal=ProSim737-800-2018-Cargo.mdl file from the model.cfg in the model.cargo folder).
Thus the "else" statement is working fine, you just didn't notice that the only difference is the sound-file... and the order the sounds play. With the passenger plane the sound plays after the animation takes place, whereas the cargo version starts playing the sound at the same time the animation is triggered. These are all in the main "else" statement.

Edit:
But you were right and there was a small glitch in the cargo section, so I fixed that.
I don't want to return to the distributed original version, where there were no separate open and close sounds, so I also placed the new .wav files in the zip.


doors.zip


regards
Lapi


Regards
Urs
P3D V4.3
Win 10
MCP/EFIS Pedestal (CP Flight)
MIP, AFT OVHT (SISMO)
TQ V3 Gold Plus ( CFY)
FWD OVHT, Pedalen and Yoke (Opencockpits)
Tiller (Schiller Metalle)
Image

Post Reply

Return to “ProSim737 Flight Model 2018 (V 3.0)”