@18:00 in video, regarding Lua Predicate's: Code must have the phrase "return true" in order for the condition to be returned true. So the predicate code in the trigger has to be something like this. < *if* TankGroup:IsAboveRunway *then* *_return true_* *end* > (I tested this and it works on current version of DCS beta. This is an old video now , so not sure in which version of DCS this was changed). BTW, great video thx
These are insanely awesome. I'm trying my hand at scripting and mission building for the first time and while there is usually tons of documentation, sometimes there are a few gaps that just ruin me completely. This tutorial is filling in a LOT of those gaps.
You, sir, are awesome. I've been programming for about 7 years and if there is one thing I dislike more than Eiffel, it is lack of documentation. But this Framework is very, very well done and documented! Thanks for all your efforts, currently getting into mission building and I think MOOSE is going to be VERY useful. :)
First off thank you for taking the time to do this; but if you don't mind a suggestion. Could you in your description list the software and you are using? I have MOOSE, LUA for Windows both from GitHub but I am currently searching for the GUI interface that you're using in this video for LUA (approx 3:20) . Mine only has the command line. Makes it easier to follow along and for people like me trying to get back into coding; less frustrating on the setup. Saw it in the comments; missed it first read. Eclipse LDT. BTW Liked and subscribed.
First: Thank you very much for such a tutorial. But please do not make confusion of what should be in mission lua file in 15:00 part. This local group (all lines below first one) are actually unnecessary for it to run and work. Why there is a GROUP:Find I have no idea, what purpose does it make... I have no clue why you did this "TankGroup = Tank:Spawn()" as it also makes little sense. I understand that you create variables both in ME and Script editor to be used later, right? But you created this TankGroup, and did not explain how to use new variable, to run actually Tank:Spawn() command (just typing TankGroup does nothing).
Thank you - I followed along successfully. I had my fingers crossed that the LUA Predciate would work but alas it did not. Can someone confirm that that is the case. I checked the script and it seems okay but there's always the possibility of an error. Seems pretty poor if it still isn't functioning.
Thank you very much for making these videos. These are excellent on many levels! I especially love that you've thought through people watching these on mobile as well (zoom window). Quick question, on initial load of the moose framework into the triggers, in my git repositories I don't have aMoose.lua I have a Moose_Create.lua. Is that the correct one to load or am I missing something? Thanks!
I get the concept and have watched this video and the previous overview. Still not really sinking in what the benefits are. This is not a simple subject for me and yes, I fully agree the DCS mission editor is not great and is a bit of a logic puzzle at times. Thing is...after about 60 of watching this I did not feel it was any easier than the original editor. I am fully prepared to accept that .lua scripting is ‘better’ but I just don’t see it yet. The idea of a ‘for dummies’ is a great idea, and I applaud your effort. I might watch the other videos too as I count as a dummy with regard to this I am not a dummy at instructing....I have done plenty of my own instruction and my one hope is that you will explain how these things work and not just show a recording of you doing it with insufficient explanation. Students, whether they are dummies or clever remember more when they understand it from first principles and are not just remembering a sequence they have no understanding of. Great work and I hope I can understand enough of it to use it!
Scripting allows you to do things you can't do with the editor. Within a running missing, try to spawn new vehicles at random in random zones every 30 to 60 seconds.
It really helps to have a basic understanding of programming even if not Lua. I think you are missing the point at the time of this comment. Programming can only be learned by actually programming, Google is your best friend whether you are a novice or a professional programmer, there is just too much to teach. I don't know what you taught or teach but you seem to be weighing your experience against the Authors and it comes off condescending even though you admit that you don't understand the subject. You could watch 100 videos from the best teacher in the world on Lua or any language or framework and if you haven't written any code for yourself be as ignorant as when you started, this is especially true with code. Coding is taught through showing someone how it's done without explaining every detail that's happening in the background which is why some(like me) find it hard to learn and then practicing what you were shown and making mistakes and breaking things. Teaching every nuance of the Framework would be tedious and take much longer than needed to get the Authors point across. If you delved deeper into this subject I'm sure you have a better understanding of why using a framework or even writing your own Mission with Lua is much more effective than using the Vanilla mission editor, I just wanted to give my two cents so as to clarify what programming is and isn't. Hopefully keep you from coming to a conclusion too soon on something that could really be fun and challenging to learn.
@@jacobhenry9366 Totally agree with your points - I have found myself coming back to try and understand this after a few years - I definitely see the benefits now, having got CTLD working for example - in the 3 years since I posted this thread the limitations of the DCS ME are clearer to me. Sadly, I still don’t think I have the necessary basic knowledge to be able to reliably write scripts myself - if I found this stuff fun I would be prepared to sink some hours into it, but sadly, I don’t really enjoy this sort of thing at all. I guess I will have to rely on the excellent work of others who do love it.
Thanks for the effort. One thing that bother me is that I have no prediction of methods in Eclipse, I follow your tutorial but my LUA script seems to ignore the framework, but I don't get compilation errors so...hu For instance if I write Tank = SPAWN:New.... I will have no prediction I think you called it " intellisense " in your tutorial
I will give you my honest opinion here, please don't be offended. I can do missions in ME. I can create scripts using MIST (usually), etc. So I understand lua as little as necessary to create some missions. The most complicated one was to build a script for a radio menu with quite a few branches for a training mission for my squad of oldies. So... my opinion is that DCS needs a GUI and not 10 scripting engines. All the time spent on creating tutorials for scripting and creating yet another scripting engine that does this and that is wasted time. All programmers in DCS should simply start programming today a unified community GUI be it even in a browser app or whatever. I think hoping more people will start to like doing scripts in DCS is a vane hope. DCS will not develop without content and contend that is basically programing (scripting... texting code, whatever) is going to be too little. All of you great programmers will never have your work properly used because having few tens of people (maybe) that can use it in a different degree is not enough to make DCS take off. What I see now is something like a 3d max era when building 3d graphic content was a programming job mostly. Yes it was doable and the few that did it were wizards but the content was crap (sorry) and the true art managed to come out when the code internals was hidden from creators. So my advice is hide your work behind a human interface. Lose any of the elitism and be OK with 12 years olds creating silly stuff for fun using unknowingly your talent. This is how it truly starts. Not with a 30 hours tutorial on wasting other 1000 hours doing scripts. If you think I'm talking nonsense just think how it will be to create a mission altogether in a editor like notepad++ or what FC uses here. EVERYTHING! From a blank page. Yes... lua scripting is powerful and the sky's the limit... if you don't take time into account... but GUI is 1000 times fold more powerful than it. You can do a tone of things with scripts in 10 years but I can do a kilo (just a kilo) of stuff in one minute with the simple GUI. That is a force multiplier!
VERY well said. While I applaud the OP for his work, it still seems like a job to learn how to code to be able to do a couple of relatively complex things within the sim. Putting together a GUI would be an amazing feat of what the community can do if we (they) all worked together to make something dummy proof.
@@svtcobra281 Great advise from @zaelu and you. I use triggers and the GUI in the mission editor and would love more functionallity and more user friendliness. Programming and scripting is for a limited (and talented) few and is not the future of DCS. Even working with triggers and logic is hard enough for most. Scripting is on another planet hard.
@18:00 in video, regarding Lua Predicate's: Code must have the phrase "return true" in order for the condition to be returned true. So the predicate code in the trigger has to be something like this.
<
*if* TankGroup:IsAboveRunway *then*
*_return true_*
*end*
>
(I tested this and it works on current version of DCS beta. This is an old video now , so not sure in which version of DCS this was changed).
BTW, great video thx
Indeed works that way (V2.8.1) Thank you!
These are insanely awesome. I'm trying my hand at scripting and mission building for the first time and while there is usually tons of documentation, sometimes there are a few gaps that just ruin me completely. This tutorial is filling in a LOT of those gaps.
You, sir, are awesome. I've been programming for about 7 years and if there is one thing I dislike more than Eiffel, it is lack of documentation. But this Framework is very, very well done and documented! Thanks for all your efforts, currently getting into mission building and I think MOOSE is going to be VERY useful. :)
Thank you! I registered myself on your 99th forum, but haven't received an email confirmation yet. Can somebody check this pls and follow up?
I'll let somebody know. :)
Should've been approved by now.
OK. Thank you. I wanna talk to TraceFacer
First off thank you for taking the time to do this; but if you don't mind a suggestion.
Could you in your description list the software and you are using? I have MOOSE, LUA for Windows both from GitHub but I am currently searching for the GUI interface that you're using in this video for LUA (approx 3:20) . Mine only has the command line. Makes it easier to follow along and for people like me trying to get back into coding; less frustrating on the setup.
Saw it in the comments; missed it first read. Eclipse LDT.
BTW Liked and subscribed.
First: Thank you very much for such a tutorial.
But please do not make confusion of what should be in mission lua file in 15:00 part. This local group (all lines below first one) are actually unnecessary for it to run and work. Why there is a GROUP:Find I have no idea, what purpose does it make... I have no clue why you did this "TankGroup = Tank:Spawn()" as it also makes little sense. I understand that you create variables both in ME and Script editor to be used later, right? But you created this TankGroup, and did not explain how to use new variable, to run actually Tank:Spawn() command (just typing TankGroup does nothing).
Can you make a skript that always respawns a Plane once it has died?
Thank you - I followed along successfully. I had my fingers crossed that the LUA Predciate would work but alas it did not. Can someone confirm that that is the case. I checked the script and it seems okay but there's always the possibility of an error. Seems pretty poor if it still isn't functioning.
Thank you very much for making these videos. These are excellent on many levels! I especially love that you've thought through people watching these on mobile as well (zoom window).
Quick question, on initial load of the moose framework into the triggers, in my git repositories I don't have aMoose.lua I have a Moose_Create.lua. Is that the correct one to load or am I missing something?
Thanks!
did you ever find the answer to this?
@@Lysurgic no I did not
anyone know if these tutorials are still working with the latest version i copied exactly what he wrote and still nothing
I get the concept and have watched this video and the previous overview. Still not really sinking in what the benefits are. This is not a simple subject for me and yes, I fully agree the DCS mission editor is not great and is a bit of a logic puzzle at times. Thing is...after about 60 of watching this I did not feel it was any easier than the original editor. I am fully prepared to accept that .lua scripting is ‘better’ but I just don’t see it yet. The idea of a ‘for dummies’ is a great idea, and I applaud your effort. I might watch the other videos too as I count as a dummy with regard to this I am not a dummy at instructing....I have done plenty of my own instruction and my one hope is that you will explain how these things work and not just show a recording of you doing it with insufficient explanation. Students, whether they are dummies or clever remember more when they understand it from first principles and are not just remembering a sequence they have no understanding of. Great work and I hope I can understand enough of it to use it!
Scripting allows you to do things you can't do with the editor.
Within a running missing, try to spawn new vehicles at random in random zones every 30 to 60 seconds.
FlightControl thanks very much for the clarification. Cheers!
It really helps to have a basic understanding of programming even if not Lua. I think you are missing the point at the time of this comment. Programming can only be learned by actually programming, Google is your best friend whether you are a novice or a professional programmer, there is just too much to teach. I don't know what you taught or teach but you seem to be weighing your experience against the Authors and it comes off condescending even though you admit that you don't understand the subject. You could watch 100 videos from the best teacher in the world on Lua or any language or framework and if you haven't written any code for yourself be as ignorant as when you started, this is especially true with code. Coding is taught through showing someone how it's done without explaining every detail that's happening in the background which is why some(like me) find it hard to learn and then practicing what you were shown and making mistakes and breaking things. Teaching every nuance of the Framework would be tedious and take much longer than needed to get the Authors point across. If you delved deeper into this subject I'm sure you have a better understanding of why using a framework or even writing your own Mission with Lua is much more effective than using the Vanilla mission editor, I just wanted to give my two cents so as to clarify what programming is and isn't. Hopefully keep you from coming to a conclusion too soon on something that could really be fun and challenging to learn.
JACOB HENRY indeed! Thank you!
@@jacobhenry9366 Totally agree with your points - I have found myself coming back to try and understand this after a few years - I definitely see the benefits now, having got CTLD working for example - in the 3 years since I posted this thread the limitations of the DCS ME are clearer to me. Sadly, I still don’t think I have the necessary basic knowledge to be able to reliably write scripts myself - if I found this stuff fun I would be prepared to sink some hours into it, but sadly, I don’t really enjoy this sort of thing at all. I guess I will have to rely on the excellent work of others who do love it.
Im going to watch them all!
I am using DCS 2.5.4 on the Beta branch, it's incompatible isn't it? Is that why I keep getting told the script is trying to reference a nil value?
Error no longer appears but it is still not work I have copied everything to the best on my knowledge.
Nice job!
Thanks for the effort. One thing that bother me is that I have no prediction of methods in Eclipse, I follow your tutorial but my LUA script seems to ignore the framework, but I don't get compilation errors so...hu
For instance if I write Tank = SPAWN:New.... I will have no prediction
I think you called it " intellisense " in your tutorial
Have a careful view through this video here:
th-cam.com/video/sZIilgAdlhM/w-d-xo.html
Oh finally saw my mistake... missed the source step, gonna now learn from all your videos, it seems very powerfull thanks for you hard work
No working. (a nil value)
What is the LUA editor you are using in the video please?.
That is the Eclipse LDT by Oracle - free to download (but requires Java Runtime installed as well)
Yup. Thanks
Is the lua predicate bug fixed now?
I think it is yes ...
I will give you my honest opinion here, please don't be offended.
I can do missions in ME. I can create scripts using MIST (usually), etc. So I understand lua as little as necessary to create some missions. The most complicated one was to build a script for a radio menu with quite a few branches for a training mission for my squad of oldies.
So... my opinion is that DCS needs a GUI and not 10 scripting engines. All the time spent on creating tutorials for scripting and creating yet another scripting engine that does this and that is wasted time. All programmers in DCS should simply start programming today a unified community GUI be it even in a browser app or whatever.
I think hoping more people will start to like doing scripts in DCS is a vane hope. DCS will not develop without content and contend that is basically programing (scripting... texting code, whatever) is going to be too little.
All of you great programmers will never have your work properly used because having few tens of people (maybe) that can use it in a different degree is not enough to make DCS take off.
What I see now is something like a 3d max era when building 3d graphic content was a programming job mostly. Yes it was doable and the few that did it were wizards but the content was crap (sorry) and the true art managed to come out when the code internals was hidden from creators.
So my advice is hide your work behind a human interface. Lose any of the elitism and be OK with 12 years olds creating silly stuff for fun using unknowingly your talent. This is how it truly starts. Not with a 30 hours tutorial on wasting other 1000 hours doing scripts.
If you think I'm talking nonsense just think how it will be to create a mission altogether in a editor like notepad++ or what FC uses here. EVERYTHING! From a blank page. Yes... lua scripting is powerful and the sky's the limit... if you don't take time into account... but GUI is 1000 times fold more powerful than it. You can do a tone of things with scripts in 10 years but I can do a kilo (just a kilo) of stuff in one minute with the simple GUI. That is a force multiplier!
VERY well said. While I applaud the OP for his work, it still seems like a job to learn how to code to be able to do a couple of relatively complex things within the sim. Putting together a GUI would be an amazing feat of what the community can do if we (they) all worked together to make something dummy proof.
@@svtcobra281 Great advise from @zaelu and you. I use triggers and the GUI in the mission editor and would love more functionallity and more user friendliness. Programming and scripting is for a limited (and talented) few and is not the future of DCS. Even working with triggers and logic is hard enough for most. Scripting is on another planet hard.
Thank you