Introduction to Scripting in DCS

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024
  • ИгрыИгры

Комментарии • 54

  • @itsmishki7005
    @itsmishki7005 Год назад +6

    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
      @Sidekick65  Год назад +1

      High praise indeed! Thanks. I appreciate it.

    • @slowmo5024
      @slowmo5024 3 месяца назад

      @@Sidekick65 does this work for random plane spaws also ? How to arange that ?

    • @Sidekick65
      @Sidekick65  3 месяца назад

      @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.

    • @slowmo5024
      @slowmo5024 3 месяца назад

      @@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 ?

  • @lavishmctavish4905
    @lavishmctavish4905 3 месяца назад +1

    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!

    • @Sidekick65
      @Sidekick65  3 месяца назад

      Thanks for letting me know. I am glad it was helpful.

  • @mrmcmeowmeow
    @mrmcmeowmeow 2 года назад +5

    Very well explained from beginning to end. Your pacing and level of detail are great. I look forward to more in the ME series!

    • @Sidekick65
      @Sidekick65  2 года назад +1

      Thanks for the feedback. I'm glad you are enjoying the series.

  • @dotbmp
    @dotbmp 2 года назад +3

    Very much looking forward to the next clip, finally found a video that covers things in the way that makes sense to me!

  • @OtherWorldExplorers
    @OtherWorldExplorers Год назад +1

    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.

    • @Sidekick65
      @Sidekick65  Год назад

      Thanks. I appreciate. Good luck! Drop by the Discord if you have any questions.

  • @wardenteegs6148
    @wardenteegs6148 2 года назад +1

    Looking forward to more videos. Using scripts makes missions much better. Your videos are great.

    • @Sidekick65
      @Sidekick65  2 года назад

      Thanks. Agreed. More people need to be convinced to give it a try c

  • @thomasfamily42
    @thomasfamily42 Год назад +1

    Awesome stuff. I’ve been teaching myself mission editing to hopefully create an A4 campaign. This stuff will help a bunch

  • @shagrat47
    @shagrat47 2 года назад +3

    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. 👍🏻

    • @Sidekick65
      @Sidekick65  2 года назад +1

      Excellent info. I will note that in the next installment. Thanks for letting me know.

  • @WolfRayRay
    @WolfRayRay 2 года назад +1

    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!

    • @Sidekick65
      @Sidekick65  2 года назад

      Glad you found it useful!

  • @hmleao
    @hmleao 2 года назад +1

    Pretty cool stuff. I play with scripting sometimes. I'll be watching this series. Thanks.

    • @Sidekick65
      @Sidekick65  2 года назад +1

      Glad you found it helpful! Glad to have any advice or suggestions you might have.

  • @bhenders52
    @bhenders52 2 года назад +1

    At least you didn't have to program in COBOL and RPG, lol. Great Video and much appreciated.

    • @Sidekick65
      @Sidekick65  2 года назад +1

      Thanks. Glad you enjoyed it!

  • @inf3243
    @inf3243 2 года назад

    Thankyou! Sometimes we need a little kick like this to let us know what's possible!

    • @Sidekick65
      @Sidekick65  2 года назад

      Glad it has inspired you. Drop by the Discord if you need further "encouragement" or fortification!

  • @flightstuff6757
    @flightstuff6757 2 года назад

    Thank you very much for this. Great info, I've subscribed and look forward to more videos.

    • @Sidekick65
      @Sidekick65  2 года назад

      Glad you found it helpful. More is on the way.

  • @bladerunner9995
    @bladerunner9995 2 года назад

    Thanks for doing this...please continue and show more 😁

    • @Sidekick65
      @Sidekick65  2 года назад

      Thanks. Next one coming soon.

  • @FJFuentesCO
    @FJFuentesCO Год назад

    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.

    • @Sidekick65
      @Sidekick65  Год назад

      Excellent. Hope it helps. Drop by the Discord channel if you have any questions.

  • @1over137
    @1over137 17 дней назад +1

    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.

  • @cerealex3499
    @cerealex3499 2 года назад +1

    Awesome for noobs like me!! More videos please!! Thanks a lot!!

    • @Sidekick65
      @Sidekick65  2 года назад

      Thanks for the encouragement. More on the way.

  • @angelrr3201
    @angelrr3201 Год назад

    great video, keep doing this ones!

  • @3dmax911
    @3dmax911 8 месяцев назад

    thanks a lot !!
    that was so info filled

    • @Sidekick65
      @Sidekick65  8 месяцев назад

      Glad it was helpful

  • @rjhowlan
    @rjhowlan Год назад +1

    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.

    • @Sidekick65
      @Sidekick65  Год назад +2

      Itis true. You can actually rename the .miz to .zip and read it right from your file explorer.

  • @RoboticGibsonSG
    @RoboticGibsonSG Год назад

    Quality video.

  • @DerekSpeareDSD
    @DerekSpeareDSD 2 года назад

    lol...my BS Minor is in FORTRAN...wow...that was eons ago!

  • @RossOneEyed
    @RossOneEyed 2 года назад

    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).

  • @valuedhumanoid6574
    @valuedhumanoid6574 Год назад

    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?

    • @Sidekick65
      @Sidekick65  Год назад

      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.

    • @valuedhumanoid6574
      @valuedhumanoid6574 Год назад

      @@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.

    • @Sidekick65
      @Sidekick65  Год назад

      What a great idea! I'll look forward to it!

  • @welsh2266
    @welsh2266 2 года назад

    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

    • @Sidekick65
      @Sidekick65  2 года назад

      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.

  • @craig8724
    @craig8724 Год назад

    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

    • @Sidekick65
      @Sidekick65  Год назад +1

      If you head on over to my Discord and ask the question on TheCodeBase channel someone might be able help you there.

    • @craig8724
      @craig8724 Год назад

      @@Sidekick65 Ok. Thank you for your reply.