Jump to content
Sign in to follow this  
Grizzly_

Lua script

Recommended Posts

Hello,

I am new to this forum so please apologize if I use the Topic.

Currently I am a user of XPlane11 but I would like to switch to P3D due to the better planes and so on...

So I've build a small button box for flight sim and wrote a Fly with Lua assignment script so I can use all my buttons, switches, rotary encoders properly.

I am wondering if it is possible to write a similar script for P3D?

Does someone have some experience with it?

 

I really appreciate any help.

Thanks in advance!

Grizzly

 

The script shall have some features like shown below:

        
dataref("heading", "the_dataref_of_heading", "writeable")        
function do_hdg_up()
i = 1
   if button(1781then
    i = 10
   end
heading = heading + i
end
create_command("script/doHeading"heading up","do_hdg_up()""""")
set_button_assignment(1783"script/doHeading")

Share this post


Link to post

What's wrong with good old FSUIPC and macros ?


Neil Ward

CPU Intel Core i7 7740X@4.30Ghz with FrostFlow 240L Liquid Cooling, M/B ROG STRIX X299-E-GAMING, NVIDIA GeForce GTX 1080 Ti, RAM G.Skill 32GB DDR4 Ripjaws Blue, 

Share this post


Link to post

Thanks again for all your help!

16 hours ago, rob0203 said:

And with Arduino there is Mobiflight: https://www.mobiflight.com/en/index.html

I already have a "joystick" board so I won't switch to an Arduino at the moment unless it is necessary

 

5 hours ago, Freo said:

What's wrong with good old FSUIPC and macros ?

Well, first of all thanks for this idea. I haven't taken a look at it but I surly will!

Share this post


Link to post

Now I have an another question because I have see that FSUIPC needs a license. So is there also a free method to do my plans?

Thanks for the help

Share this post


Link to post

There is a free basic version of FSUIPC, but it has limited capability. Not sure if it will do macros, as I have never used it, only the paid full version.


Neil Ward

CPU Intel Core i7 7740X@4.30Ghz with FrostFlow 240L Liquid Cooling, M/B ROG STRIX X299-E-GAMING, NVIDIA GeForce GTX 1080 Ti, RAM G.Skill 32GB DDR4 Ripjaws Blue, 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...