Introduction to Scripting in DCS
HTML-код
- Опубликовано: 26 сен 2022
- In this installment of "It's Not You... It's ME" we take a look at basic LUA scripting for DCS. Grab your favourite "Defense Agains the Dark Arts" talisman and follow me...
Special thanks to Draken whose Target Impact Tracking Script code appears in the video. The full script can be obtained here: www.digitalcombatsimulator.co...
If you have any comments, suggestions or questions please drop by my Discord at: / discord Игры
Im scripting on LUA and on other languages for years now and I tell you this sir, you are one of the greatest to ever introduce those topics in DCS :) thank you!
High praise indeed! Thanks. I appreciate it.
Very well explained from beginning to end. Your pacing and level of detail are great. I look forward to more in the ME series!
Thanks for the feedback. I'm glad you are enjoying the series.
Very much looking forward to the next clip, finally found a video that covers things in the way that makes sense to me!
Thank you for a great video, this is exactly what I have been looking for for a long time! Looking forward to follow this series!
Glad you found it useful!
Looking forward to more videos. Using scripts makes missions much better. Your videos are great.
Thanks. Agreed. More people need to be convinced to give it a try c
Subscribe because I like the way you teach the LUA scripting. I'm just starting out in it. And so far I'm more or less understanding everything. Which is light years above where I was 30 minutes ago.
Thanks. I appreciate. Good luck! Drop by the Discord if you have any questions.
Awesome stuff. I’ve been teaching myself mission editing to hopefully create an A4 campaign. This stuff will help a bunch
Pretty cool stuff. I play with scripting sometimes. I'll be watching this series. Thanks.
Glad you found it helpful! Glad to have any advice or suggestions you might have.
Thank you very much for this. Great info, I've subscribed and look forward to more videos.
Glad you found it helpful. More is on the way.
Thanks for doing this...please continue and show more 😁
Thanks. Next one coming soon.
Good introduction. Btw you can now name the flags in the Mission Editor, since quite a while. Just overwrite the default number with a meaningful name. This is especially useful if you need the flags in scripts and have an actual idea what they trigger. 👍🏻
Excellent info. I will note that in the next installment. Thanks for letting me know.
At least you didn't have to program in COBOL and RPG, lol. Great Video and much appreciated.
Thanks. Glad you enjoyed it!
great video, keep doing this ones!
Roger. Wilco!
thanks a lot !!
that was so info filled
Glad it was helpful
Awesome for noobs like me!! More videos please!! Thanks a lot!!
Thanks for the encouragement. More on the way.
This is really useful information! I've been going around in circles trying to find a resources like this to help me learn for myself.
Excellent. Hope it helps. Drop by the Discord channel if you have any questions.
Thankyou! Sometimes we need a little kick like this to let us know what's possible!
Glad it has inspired you. Drop by the Discord if you need further "encouragement" or fortification!
Quality video.
Thank you, sir
lol...my BS Minor is in FORTRAN...wow...that was eons ago!
Hi Iain. I haven't tried it yet, but if you have 7-zip installed you can read .miz files through it. If you make a lua code change you should be able to just open the .miz through 7-zip and upload the file to within the l10n folder.
Itis true. You can actually rename the .miz to .zip and read it right from your file explorer.
I need to figure out how to randomize the targets AND use Carsten's FAC script at the same time. That would be a lot of fun. Of course, the learning curve for .lua is almost as bad as trying to learn to fly the Harrier.....(And my programming skills are VERY dusty).
Nice video mate. Could I please request you do a weather video tutorial on the falklands map for me with this information:
In May Mount Pleasant generally has cold temperatures with maximum daytime temperatures around 6°C (43°F), minimum nighttime temperatures around 1°C (34°F) and moderate monthly rainfall.
I would also like the sea state to be at such a setting where the sea state is maybe 5knots below the max take off for the harrier. Many thanks
Hmmmm... those are some fairly specific requests. Not sure that's video a lot of people will want to see. BUT, I am happy to help if I can. Drop by the Discord and I'll see if I can help you out. If I can't there are probably others there who can.
I just want a single sheet of paper (a Notepad document) that tells me to make your unit do this, type this. For example:
1. To keep unit from telling you they passed a waypoint TYPE: no report upon passing waypoint
2. To make your unit fire at maximum range then RTB when out of long range weapons TYPE: fire at max range then rtb
3. To make your AWACS use datalink TYPE ERPROM
These are not the actual scripts but you get the idea.
This document would probably be a few pages and allow us to tailor each unit in the mission to really act like we want them to act. The triggers and trigger zones are prepopulated with commands in the dropdown menus. Does a document like this exist?
I am certainly not aware of such a document.
On some ways you are fallonf afoul of the principle limitation of the Mission Editor which is, IMHO, thay it was not originally intended to be used by players. I think it was originally developed to be used by developers to build missions.
As such it is not and never has been "user friendly" to the degree you would like it to be. You can probably accomplish all of your sample tasks but not with simple single commands, and not in consistent ways.
This is what makes the ME a bit of "an acquires taste" it simply isn't a tool that a casual user can pick up and do very much with. It can be a powerful tool but the learning curve is very steep.
@@Sidekick65 Exactly. Don't misunderstand me, I am not complaining. I have only had DCS now for about 6 months and I get along just fine. It would be nice to have a reference sheet to know what to do and when. What I have learned it to download the missions from other, much smarter people who do know all those scripts and go into the mission and see how they did things. I pulled down one mission that had over 100 trigger zones and probably triggered 200 events. All the AI were programmed to the 9's. I began my own sheet. As I come across a script I have never seen, I figure out what it's doing and add it to my list. When I get it finished I will share with the community and people can add to it. Nice video BTW.
What a great idea! I'll look forward to it!
Can someone fill in the blank on this script file please. Use group name “mg29” for example please. What do I put in [i] what is unit object
local flightFuel={ }
for i, unitObject in pairs (groupnameby(‘flight’) :getunits ( ) do flightFuel [i] = unit.getfuel (unitObject) end
If you head on over to my Discord and ask the question on TheCodeBase channel someone might be able help you there.
@@Sidekick65 Ok. Thank you for your reply.