Support me AND have a ton of fun! Consider purchasing AirSpray, my crop dusting add-on for X-Plane! https://store.x-plane.org/AirSpray_p_... or https://store.thresholdx.net/collecti...
Links to get you going:
https://github.com/leecbaker/datareftool
https://studio.zerobrane.com/download...
https://www.siminnovations.com/xplane...
Wherein we add some custom functionality to an aircraft by scripting in XLUA. Using the Default 172 we code up a custom startup scenario where we start outside the plane with the door open (walk up style), and make the door close if it's open while moving.
We will build up to more advanced things and I'll try to teach lua in practical, X-plane specific steps.
I'm no great shakes at programming. But if you are just getting started with the idea, this should get you going. Learn more about XLUA in this thread:
https://forums.x-plane.org/index.php?...
Time Stamps:
0 - 1:49 - Intro to the series
1:49 - 2:35 - What is a dataref?
2:35 -4:45 - Intro to datareftool
4:45 - 6:10 - Array datarefs, how they look/work
6:10 - 9:40 - Gathering datarefs
9:50 - 11:40 - commenting in lua, block commenting
11:40 - 12:35 - directory structure of XLUA, how it must be.
12:35 - 15:00 - putting our datarefs at the top of our lua script, naming variables
15:00 - 16:00 - pre-defined functions, explaination
16:00 - 29:00 - creating a function under flight_start, testing, tweaking.
29:00 : END - creating a new function under after_physics
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scripty - Episode One: Intro to Lua scripting for X-Plane, with XLUA flavor. Learn how to manipulate datarefs and code a little bit.
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scripty - Episode Two: We build on our Lua scripting knowledge, this time in FlyWithLua. Learn about boolean flags and how to prevent FlyWithLua script conflicts.
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scripty - Episode Three: We build on our lua scripting skills by using else, elseif, one-shot timers, Log Message, and other X-Plane debugging facilities.
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scripty - Episode Four: We learn how to flip conditions back and forth by using timers and boolean flags together, using some x-plane built-in failures to create a rough idle engine condition.
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scripty - Episode Five: We create some custom commands that are assignable to keyboards or joysticks, and create a custom "system" for our aircraft.
• SimVRlabs Lua Scripting BEGINNER tuto...
Get Scritpy - Episode Six: IMGUI graphical user interface tutorial, where we create buttons that fire off our custom commands, and we add a custom sound to our system.
In questa pagina del sito puoi guardare il video online SimVRlabs Lua Scripting BEGINNER tutorial - Get Scripty episode 1 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sim VRlabs 02 giugno 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,847 volte e gli è piaciuto 155 spettatori. Buona visione!