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
  • ИгрыИгры

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

  • @itsmishki7005
    @itsmishki7005 9 месяцев назад +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  9 месяцев назад +1

      High praise indeed! Thanks. I appreciate it.

  • @mrmcmeowmeow
    @mrmcmeowmeow Год назад +4

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

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

  • @dotbmp
    @dotbmp Год назад +3

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

  • @WolfRayRay
    @WolfRayRay Год назад +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!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Thanks. Next one coming soon.

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

    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  Год назад

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

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

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

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

      Thanks. Glad you enjoyed it!

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

    great video, keep doing this ones!

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

    thanks a lot !!
    that was so info filled

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

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

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

      Thanks for the encouragement. More on the way.

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

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

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

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

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

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

    Quality video.

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

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

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

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

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

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

    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  Год назад

      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.

  • @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!

  • @craig8724
    @craig8724 9 месяцев назад

    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  9 месяцев назад +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 9 месяцев назад

      @@Sidekick65 Ok. Thank you for your reply.