Jump to content

Zyll

Members
  • Posts

    632
  • Joined

  • Last visited

Everything posted by Zyll

  1. a1 will evaluate to nil if it doesn't exist, so you can simply wrap the lines that follow in an if clause: if a1 != nil then ... end Zyll @ TAW
  2. Can you turn the microphone input down to 0 in this case? Zyll @ TAW
  3. It's in the sound settings iirc. There is a checkbox to turn voice chat on and off there. Zyll @ TAW
  4. Thanks @Wingthor for taking the time to respond. I unfortunately am still not quite sure I'm getting it. So I do have intellisense working for Moose, as evidenced (I believe) in the screenshot below: For simplicity sake, I have all my scripts in one folder, including Moose.lua, DCS.lua, mist etc. I assume the fact I'm not using the uncommented version of Moose would not impact the ability to show DCS.lua luadoc. I'm using Sumneko's popular lua-language-server extension, which appears to work with vscode-lua-doc, and also gives credit to EmmyLua in the list of software it uses. Are you saying that EmmyLua includes other functionality that extends Sumneko's language server, and I should be loading both extensions together? When I try to bring up intellisense for a DCS coalition object, this is what I see: The popup functions don't correlate to what actually is applicable to coalition (troops doesn't exist yet it came up in intellisense), and the intellisense doco gives the above error. To me, its like the luadoc in DCS.lua does not follow the same conventions used in Moose.lua, and given that its just a prototype file with no code, DCS.lua is just not working as expected for me. LDT on the other hand worked, it seemed to know how to read the DCS.lua prototype, and I'd be thrilled to be able to make vscode behave similarly. EDIT: > Then you need to add the scrips folder witin DCS world main folder to your worksspace in VSC (if you want). And/or other DCS lua libs. this is something I did not do, let me look into this as well. EDIT2: sadly the inclusion of C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Scripts into the workspace didn't help
  5. As I recall, that folder didn't even exist until you installed that cockpit texture mod (or possibly a different one). The default cockpit textures would have been in a zip file under program files/Eagle Dynamics folder. C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\AH-64D\Cockpit\Textures\AH-64D-CPT-TEXTURES.zip Did you try deleting the Cockpit_AH_64D folder and clearing fxo and metashaders2 folders? Zyll @ TAW
  6. Is this what you are looking for? https://www.digitalcombatsimulator.com/en/files/3321192/ Zyll @ TAW
  7. unless i'm misunderstanding the question, wouldn't this work for you? The first line could be a DO SCRIPT as shown, or alternatively a DO SCRIPT FILE to pull the ctld.lua into the miz, but the second line "ctld.TRACE = true" should work either way, to set the value without you changing the lua.
  8. Oh I always reference the hoggit documentation for scripting in both Mist and DCS scripting, it's generally more up to date. https://wiki.hoggitworld.com/view/DCS_func_outText Zyll @ TAW
  9. If you use trigger.action.outText, set the Clearview boolean to true and it should overwrite your previous message per your needs. Zyll @ TAW
  10. can anyone confirm if they are getting intellisense for the DCS ME objects from dcs.lua? In LDT it worked great, in vscode it doesn't work for me. For example, can you get intellisense for Group, Unit, Coalition, etc? Thanks,
  11. MIST 4.5.107: https://github.com/mrSkortch/MissionScriptingTools/releases
  12. also interested if someone has got this working. it was seamless in Eclipse LDT but doesn't appear to work the same way in vscode
  13. Great to hear that optimization efforts are a priority with the team. If you could please take a look at this thread, I think it might possibly provide some additional places for possible optimizations. Thank you for the excellent Syria map!
  14. Hi Chooch, did you end up finding anything on this? I'm looking for it as well. The closest thing I found was in command_defs.lua, the following commented code: --[[ reset_counter() head_wrapper_commands = { OccupySeatPLT = counter(); OccupySeatCPG = counter(); } ]]
  15. i don't suppose you guys have figured out how to determine which seat is currently being occupied by the local player? I'm working on tweaking the Apache ExportModule, and it seems quite inefficient to be retrieving arguments and sending data for the CPG when I am sitting in the Pilot seat, and vice versa. A simple argument value to determine this would be ideal, I just couldn't find anything like that in the aircraft lua files. The closest thing I found was in command_defs.lua, the following commented code: --[[ reset_counter() head_wrapper_commands = { OccupySeatPLT = counter(); OccupySeatCPG = counter(); } ]]
  16. I've never seen this UI presented like this before. Is this new, or is it a mod? Zyll @ TAW
  17. I +1'ed an existing issue in the Streamdeck Plugin github (https://github.com/ashupp/Streamdeck-vJoy/issues/8), but has anyone had success using a multi-action that includes the vJoy Button action? Without it, I can't do 9/10 of what I want to do with my DCS bindings.
  18. Casmo is the only other one I can think of who had lots of material. I used to love Redkite but he had no Apache content unfortunately. Zyll @ TAW
  19. Honestly, I find the Wags' Apache video series ideal Zyll @ TAW
  20. The doco should be updated for this. I assume you were looking at the hoggitworld wiki. Anyone know how we go about suggesting a change? Zyll @ TAW
  21. Thank you @wombat778, this does appear to have resolved my issues as well. I use RivaTuner to show me my frametimes, and prior to your fix, it showed extremely erratic frames. A previous tip had mentioned to update DCS-ExportScripts/Config.lua to change the export interval to something higher: ExportScript.Config.ExportInterval = 0.05 -- export evry 0.05 secounds Which helped a little bit, but was not a permanent solve. Your fix here is truly a REAL fix. I'm going to submit a bug on the github to get input on this.
  22. Thanks Dragzor and others for adding your observations. I do think that there are certain conditions, maybe unique to Syria, or just more likely to occur in Syria, that exacerbate this issue. If I'm in a remote desert part of the map, or in Caucasus for example, I may not see such dramatic frame loss when switching to TV. My example in Incirlik is repeatable by many folks, so I'm hopeful that devs can use it to identify why using the TV causes occasional extreme frame drops and rectify. Just because it doesn't happen everywhere in Syria or anywhere on Caucasus, doesn't mean it's not a bug. Zyll @ TAW
  23. could you explain how you got access to the uri (or anything else in serverSettings.lua) through the scripting engine? I'd like to be able to determine which dedicated server my mission is running on, so I can through script manipulate the SRS port being used in a lua file. Thanks,
  24. I was able to answer my own question by going here and following the instructions for creating a Service Account. https://cloud.google.com/text-to-speech/docs/before-you-begin I actually prefer the way rkusa/DATIS did it, by using an API key. That way I could restrict the usage to a specific IP address (in this case the IP of the dedicated server). Having the credential json means that anyone could use it completely unrestricted. Maybe something to consider in the future.
  25. hi all, Is there an example of what the Google TTS credentials json file looks like? Thanks in advance, Zyll the CMD window popup is the TTS function being called (making an external application call). So that's totally to be expected.
×
×
  • Create New...