-
Posts
632 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Zyll
-
New to scripting... need some help plz!
Zyll replied to MTM's topic in Scripting Tips, Tricks & Issues
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 -
Can you turn the microphone input down to 0 in this case? Zyll @ TAW
-
It's in the sound settings iirc. There is a checkbox to turn voice chat on and off there. Zyll @ TAW
-
[MOOSE] Visual Studio Code - MOOSE implementation
Zyll replied to hyzwar's topic in Scripting Tips, Tricks & Issues
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 -
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
-
Is this what you are looking for? https://www.digitalcombatsimulator.com/en/files/3321192/ Zyll @ TAW
-
Set variable from within a running mission
Zyll replied to Captain Orso's topic in Scripting Tips, Tricks & Issues
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. -
[MOOSE] Visual Studio Code - MOOSE implementation
Zyll replied to hyzwar's topic in Scripting Tips, Tricks & Issues
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, -
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!
-
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(); } ]]
-
I've never seen this UI presented like this before. Is this new, or is it a mod? Zyll @ TAW
-
Stream Deck as a DX Button Box for VR
Zyll replied to speed-of-heat's topic in PC Hardware and Related Software
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. -
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
-
Honestly, I find the Wags' Apache video series ideal Zyll @ TAW
-
Obtaining name of a group dynamically spawned by MIST
Zyll replied to Mr Nobody's topic in Scripting Tips, Tricks & Issues
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 -
Possible fix for DCS-ExportScript/Stream Deck stutter
Zyll replied to a topic in PC Hardware and Related Software
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. -
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
-
Detect dedicated server with variable
Zyll replied to chromium's topic in Multiplayer Server Administration
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, -
Introducing DCS Simple Text To Speech (DCS-STTS)
Zyll replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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. -
Introducing DCS Simple Text To Speech (DCS-STTS)
Zyll replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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.