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!
@@Sidekick65 i mean you example is static objects right ? Non moving building . So I mean how about an enemy plane spawning in a random location ?How to you tell that plane to take random course / alt / speed for example. Can that be done with your method ?
As a IT guy by day I am looking exactly for this. Programming something that can improve my hobby. Lua might be a next step for me because I love to make missions and scripting seems to give that edge, also in Arma 3 for example. I could use my skills now not just for work, but for my free time as well. That is worth a lot to me. And I believe it could enlarge my view on coding as a whole and understand the whole aspect of it even more. Great video!
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.
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. 👍🏻
Don't worry about the OOP paradigm. It's mostly syntactic sugar in the vast majority of languages claiming to be OOP. Even those that technical are OOP languages from their core are really used that way anymore. OOP was a set of Emperors new clothes touted to solve all of the problems in software engineering. However it was never intended as such and is not capable of such either. Instead it just added slightly more complexity than it solved at every stage of the way. OOP Solves X, but causes Y which is slightly worse.... so you are doing it wrong (they say), you need to use this pattern to deal with Y and it will be ok. But... if you didn't use OOP to solve X in the first place, problem Y would not have existed and thus you would not need the other pattern at all. OOP Priests get very upset when you catch them out in this logic. If you strip back an over done OOP deathstar, you will find it has a ratio of about 10:1 in lines of 'structural code' to lines of "actually functional" code. Complete waste of time outside of the small specific software sectors it excells in, such as GUIs and event driven systems.
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.
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.
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).
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
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.
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.
@@Sidekick65 does this work for random plane spaws also ? How to arange that ?
@slowmo5024 I'm not exactly sure what you are asking. Feel free to drop by my Discord and DM me. I will see if I can help.
@@Sidekick65 i mean you example is static objects right ? Non moving building . So I mean how about an enemy plane spawning in a random location ?How to you tell that plane to take random course / alt / speed for example. Can that be done with your method ?
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.
As a IT guy by day I am looking exactly for this. Programming something that can improve my hobby. Lua might be a next step for me because I love to make missions and scripting seems to give that edge, also in Arma 3 for example. I could use my skills now not just for work, but for my free time as well. That is worth a lot to me. And I believe it could enlarge my view on coding as a whole and understand the whole aspect of it even more. Great video!
Thanks for letting me know. I am glad it was helpful.
Very much looking forward to the next clip, finally found a video that covers things in the way that makes sense to me!
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.
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
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.
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!
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.
Awesome stuff. I’ve been teaching myself mission editing to hopefully create an A4 campaign. This stuff will help a bunch
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!
Awesome for noobs like me!! More videos please!! Thanks a lot!!
Thanks for the encouragement. More on the way.
great video, keep doing this ones!
Roger. Wilco!
Don't worry about the OOP paradigm. It's mostly syntactic sugar in the vast majority of languages claiming to be OOP. Even those that technical are OOP languages from their core are really used that way anymore. OOP was a set of Emperors new clothes touted to solve all of the problems in software engineering. However it was never intended as such and is not capable of such either. Instead it just added slightly more complexity than it solved at every stage of the way. OOP Solves X, but causes Y which is slightly worse.... so you are doing it wrong (they say), you need to use this pattern to deal with Y and it will be ok. But... if you didn't use OOP to solve X in the first place, problem Y would not have existed and thus you would not need the other pattern at all. OOP Priests get very upset when you catch them out in this logic. If you strip back an over done OOP deathstar, you will find it has a ratio of about 10:1 in lines of 'structural code' to lines of "actually functional" code. Complete waste of time outside of the small specific software sectors it excells in, such as GUIs and event driven systems.
Interesting thanks!
Thanks for doing this...please continue and show more 😁
Thanks. Next one coming soon.
thanks a lot !!
that was so info filled
Glad it was helpful
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.
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.
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!
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).
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.
lol...my BS Minor is in FORTRAN...wow...that was eons ago!
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.
Quality video.
Thank you, sir