Jump to content

DeDave98

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by DeDave98

  1. I´m a bit at a loss tbh. I tried to implement it in my mission with the moose version from december 24 (the latest release) and it gives me completly wrong bearings to threats. So I came back here and thought, maybe I need the development version of lua. But when I look at the development branch in the moose gitHub, there is no moose.lua. What am I missing?
  2. Never mind, figured it out. For anyone finding this thread sometime in the future, this was the fix to me:
  3. Hello there, im trying to write a script to spawn a new plane in front of the one player that selects that F10 option in multiplayer. But I get this error which I can´t quite understand: Now this is the function I use to identify the player and generate the F10 options: The parameter "group" for it is passed via an eventHandler that calls this function and that part works great. Now, this is the function I get the error in: As you can see, groupNames is passed to the function from getName so it should be a string. My feeling is that groupNames is either not a string or isn´t passed to "Dogfight" correctly. But I´m at a loss here. Maybe someone here can point me in the right direction. I´ll also attach the complete script in this post in case you guys need some more info. There are some other functions in this script, please ignore those. And please ignore my messy coding. I know it´s not pretty but it´s what I have.
  4. Does anybody know if the AIM-120 goes active in STT? Afaik, the phoenix doesn´t go active at all when launched in STT. How about the Amraam?
  5. Well, I guess you´re right. On second thought, if I were on the other side of this, my motivation to debug a code for someone who probably doesn´t get what I´m trying to say and thought that chatGTP can create such a script without errors would be pretty low. I´m sorry. Although I had some success with simpler stuff. I will push this project back and concentrate on learning more about LUA and DCS scripting. I already made some progress with spawning random air groups and random locations so I guess I´m on the right track. I also have a new project which is a good opportunity to learn more about scripting. As I said, I will push this project back and revisit it later when I know more. Although I already KINDA implemented what I tried to script with triggers but it´s not quite there yet.
  6. Hey guys, so, I (with the help of chatGTP) created this script: As you can see, it has lots of action.outText functions for error handling and this is where I´m lost. The ONLY messages I get are the ones at the top where it shows that the script and the submenus loaded properly and the "Menü-Callback erreicht:" Messages which is down at the last for-loop. What this script SHOULD do is spawn a unit from a template placed in the ME (and yes, these templates are placed and correctly named) 5nm ahead of the player who calls the option from the F10 menu. But instead, nothing happens. My guess is that mist.utils.getPlayerName somehow doesn´t work as intended and that the script doesn´t run further. The DCS.log doesn´t have any error messages about this in it either. Now asking all of you LUA-wizards, where did I turn wrong? What am I missing? I feel like the script itself is robust and SHOULD work and it´s a really dumb obvious error somewhere that I can´t identify. Mind you while I know basic coding in C++ and Pyhton, also object orientated, I´m not THAT proficient in LUA. And just to state the obvious here, of course the script is loaded in the mission (hence I wouldn´t get the options to click in the first place) and MIST and Moose in their current versions are loaded BEFORE that.
  7. Still getting instant "LOST" message on the HUD when firing the 120D. Tested in 30.000ft in hot aspect at 90nm and 40nm. 40nm hit but 90 went right over the target. For me, it seems the missile doesn´t get steering information before going active. Tested today in the newest version of DCS in the Hornet. STT lock was maintained the whole flight
  8. Anyone know if there is a US Skin for the E-7? AFAIK, Air Force selected it to replace the E-3 so would be nice if there already is something
×
×
  • Create New...