#5 Setup PRO code editor for LUA (for free) (LUA for GrandMA)

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 9

  • @MemtroitBORG
    @MemtroitBORG 2 роки тому +2

    Simply loving the fact that you're able to teach people to copy and paste code with a straight face. Looking forward to the rest of the course

    • @aGuyNamedJonas
      @aGuyNamedJonas  2 роки тому

      We’ll that’s the simplest way. You can also be fancy about it by writing a custom script that uploads your code into the console via FTP automatically and then executes your plugin by sending in a command via telnet. I built that kind of a script before - but that’s not exactly easy to teach someone :)

  • @aidanmcinnes6355
    @aidanmcinnes6355 7 місяців тому

    for some reason Visual Studio is reading gma in line 2 as undefined, I'm not sure whats up as its running Lua as the language

    • @aGuyNamedJonas
      @aGuyNamedJonas  6 місяців тому +1

      Huh weird - maybe try a different language plugin for LUA?

  • @sandsmarc
    @sandsmarc 2 роки тому

    So unfortunately there is no way to use the visual code debugger to debug the plugin. Like watching variables, stepping through line by line, etc. I find the MA error messages to be cryptic and unintuitive. Would be nice to somehow interface directly with a code editor and MA, but I guess that’s too much to ask!

    • @aGuyNamedJonas
      @aGuyNamedJonas  2 роки тому

      Yeah I get that that feels like a limitation! Having worked with JavaScript for years though I can tell you that well placed log output + unit testing is mostly all you really need. Make sure you watch the video on the debug function - that way you can enable & disable the kind of output you need to understand what’s going on in your code!

    • @aGuyNamedJonas
      @aGuyNamedJonas  2 роки тому

      Also testing! I didn’t cover this, but you can always make sure you use unit and integration testing to make sure your code works as expected.
      And if you want to be really fancy about it you can even use dependency injection by passing the MA2 LUA functions into your code as variables. Like that you could even end-to-end test your plugins (that was just too advanced of a topic for this course)

  • @ernstebrecht5342
    @ernstebrecht5342 Рік тому

    #4 is missing

    • @aGuyNamedJonas
      @aGuyNamedJonas  6 місяців тому

      Here you go 👉🏻 ua-cam.com/video/l3eLlb9zst4/v-deo.htmlsi=VlTPBnun9GAwDU2o