CAPTAIN SIM FORUM
767 Captain II (P3D4) >> 767 Captain II - General  >> SDK
https://www.captainsim.org/forum/csf.pl?num=1587503503

Message started by Skipy on Apr 21st, 2020 at 9:11pm

Title: Re: 767 - SDK - Scripting Issues FSX / Mobiflight
Post by Dave Snyder WI on Mar 19th, 2021 at 10:06pm

flyingjayaraj wrote on Aug 17th, 2020 at 7:43pm:
Hello everone, i am stuck at a point where i am unable to program my MCP, due to limited knowledge in coding and deciphering the 757/767 SDK.

CS-767 & 757 - FSX - FSUIPC - Mobiflight

To increase or decrease the airspeed value - i followed the instructions from the SDK

I created a lua file - CS757SPEEDDEC.LUA

ipc.writeLvar(“L:klid",-1703010)

and another - CS757SPEEDINC.LUA

ipc.writeLvar(“L:klid", 1703010)

These lua files now show up in my FSUIPC list.

Now the next step is to add an entry to auto-run the lua, i have made that entry too.

[Auto]
1=Lua CS757SPEEDINC
2=Lua CS757SPEEDDEC

Now in the macro file, what is the entry that i have to have ?
i tried different entry but none seem to work.

Could anyone please share some script that has worked ? or the steps, assigning the ID to a variable has got me stuck for weeks now, been searching for the forms but unable to find any definite answer.  :'(


I have not yet tried this myself, but it looks like you are missing a trigger to cause these events to happen.  You would need to map a joystick button or keypress to trigger one of these LUA scripts to execute.  I have seen a decent YouTube video to explain this step (https://www.youtube.com/watch?v=mOO32FiMNS0). ; Hopefully that helps.

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.