Jump to content

Ciribob

ED Beta Testers
  • Posts

    2069
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ciribob

  1. Try following this guide - hopefully that'll help! https://forums.eagle.ru/showpost.php?p=2963204&postcount=1122
  2. Something thats been asked a few times is an easy way to enable or disable slots on a multiplayer mission, so I've put this together. Its basically a modified version of the script I use for the CSAR slot blocking. The script only needs to be installed by the server host. The script can be used to: Block / unblock a slot by setting a flag Reserve an aircraft slot for clan members only Disable the GCI / AWACS / Ground commander slot for everyone except specific players Installation To Install got to GitHub https://github.com/ciribob/DCS-SimpleSlotBlock and click "clone or download" and download the repository or click this: https://github.com/ciribob/DCS-SimpleSlotBlock/archive/master.zip Copy the SimpleSlotBlockGameGUI.lua to your C:Users\Saved GamesDCSScriptshooks and into any other DCS folders e.g. DCS.openalphaScriptshooks Configuration SSB (SimpleSlotBlock) only has a few global configuration options. These are listed in the file and shown below: NOTE: Changes to GameGUI files only take effect after a full DCS Restart ssb.showEnabledMessage = true -- if set to true, the player will be told that the slot is enabled when switching to it ssb.controlNonAircraftSlots = false -- if true, only unique DCS Player ids will be allowed for the Commander / GCI / Observer Slots -- If you set this to 0, all slots are ENABLED -- by default as every flag starts at 0. -- If you set this to anything other than 0 all slots -- will be DISABLED BY DEFAULT!!! -- Each slot will then have to be manually enabled via -- trigger.action.setUserFlag("GROUP_NAME",100) -- where GROUP_NAME is the group name (not pilot name) and 100 is the value you're setting the flag too which must -- match the enabledFlagValue ssb.enabledFlagValue = 0 -- what value to look for to enable a slot. -- any aircraft slot controlled by the GROUP Name (not pilotname!) -- that contains a prefix below will only allow players with that prefix -- to join the slot -- -- NOTE: the player prefix must match exactly including case -- The examples below can be turned on by removing the -- in front -- ssb.prefixes = { -- "-=104th=-", -- "-=VSAAF=-", -- "ciribob", -- you could also add in an actual player name instead "some_clan_tag", "-=AnotherClan=-", } -- any NON aircraft slot eg JTAC / GCI / GAME COMMANDER -- will only allow certain PLAYER IDS -- PLAYER IDS are unique DCS ids that can't be changed or spoofed -- This script will output to the them to the dcs.log file when a player changes slots so you can copy them out easily :) -- This will only take effect if: ssb.controlNonAircraftSlots = true ssb.commanderPlayerUCID = { "292d911c1b6f631476795cb80fd93b1f", "some_uniqe_player_ucid", } Usage In Missions To enable the SSB script in a mission first create a TRIGGER with a TIME MORE of 1 and an ACTION of DO SCRIPT with the Script below: trigger.action.setUserFlag("SSB",100) This first trigger turns on SSB for the currently running mission. If this flag isn't set in the mission then Slot Blocking will not work Next create as many triggers as you like to enable or disable a slot. For example, to disable a slot at mission start: Create a TRIGGER with a TIME MORE of 1 and an ACTION of DO SCRIPT with the Script below: trigger.action.setUserFlag("HELI1",100) This will disable the playable helicopter with the GROUP NAME of HELI1 To enable, simply set the flag back to 0 trigger.action.setUserFlag("HELI1",0) Note: If you change the ssb.enabledFlagValue, remember to update all your triggers and flag values! Reserve Aircraft Slot To reserver a slot for a specific clan tag (or individual player) add a new entry to the ssb.prefixes list in the GameGUI: ssb.prefixes = { "-=433=-", "ciribob", } You can add as many entries as you like, not every mission has to use them all but this sets the list of tags / prefixes we'll be looking for. Next in a mission add the prefix you want to use for a unit to the GROUP NAME i.e to reserve a UH1 for the 104th Squadron: ssb.prefixes = { "104th", } then set the UH-1 GROUP NAME to: "Huey 1 104th" The reservation system will still take into account if the slot is enabled or not so a slot could be reserved but disabled if you like. Reserve Non Aircraft Slot Non aircraft slots, GCI / Game Commander etc can be globally reserved. Turning this on will effect all missions on the server. First edit SimpleSlotBlockGameGUI.lua and set: ssb.controlNonAircraftSlots = true Make sure that DCS isnt running when you edit or restart DCS for the settings to take effect. Next you need to add players unique DCS player ids (UCID) to the list of ucids in ssb.commanderPlayerUCID To obtain a players UCID, have the player try to join a slot running SSB and then check the dcs.log in C:Users\Saved GamesDCSLogs There should be a line that looks something like: 00115.172 INFO LuaNET: SSB - Player Selected slot - player: Ciribob side:2 slot: 2 ucid: 283d911c1b6f631476795cb80fd93b7a Just copy the UCID e.g. 283d911c1b6f631476795cb80fd93b7a and add to the commanderPlayerUCID list in the GameGUI. Again make sure to restart DCS after changes to the GameGUI : ssb.commanderPlayerUCID = { "292d911c1b6f631476795cb80fd93b1f", "283d911c1b6f631476795cb80fd93b7a", "223d911c1b6f631476795cb80fd93b8a", } The UCID is unique to the DCS player account so name changes won't affect it so its a pretty sure way to lock down a slot to specific members. Tutorial Video I've put together a quick example mission from scratch that shows how you can disable a slot at mission start and then use a players action to unlock it again. I hope this helps explain it better! Note - since the video gameGUI files must go in scripts / hooks folder now I've also attached a pre-configured test mission from the tutorial video that shows activating a second helicopter slot by flying into a zone. You can test by installing the SimpleSlotBlockGameGUI.lua and then starting a multiplayer server. Remember to unpause and wait a second if you're testing so that the script initialises :) Please let me know how you get on or if you have any issues! Enjoy :) slot_block_test_helis.miz
  3. Not sure I quite follow (sorry) but if you use the SRS installer and press Uninstall, that'll remove all traces of SRS from the disk and from the registry. You should then be able to install as normal, just double check the paths are correct on the installer. If that doesnt work you can always manually install as you only need the line in the export and the two lua files in the scripts folder (documented in the first post of this thread). The other files, SRS client and opus.dll can be where ever you like Hope that helps! :thumbup:
  4. Quick demo of the radio overlay in game (very early WIP!)
  5. Saved in FavouriteServers.csv where ever your SimpleRadio is installed. Just copy the file out, update and then copy it back in :)
  6. I was thinking if they're low to the ground, they can just hop out :D But i'll look at changing the message when you're low. Hovering to disembark troops is slightly tricky to code and due to a DCS limitation of not being able to spawn part of a group I wont for now. I'd have to spawn the entire group, kill everyone except one and then repeat which'll probably slow DCS to a crawl from the respawn and despawn. Sorry! :) That is odd, it used to work when spawning a group in a zone. I'll have a look. You can customise the message (or remove it) here: https://github.com/ciribob/DCS-CTLD/blob/master/CTLD.lua#L4956 and https://github.com/ciribob/DCS-CTLD/blob/master/CTLD.lua#L5288 Unfortunately customising more will be quite tricky and require a lot of LUA
  7. Ah sorry, forgot that the favourites would be deleted. I'll modify the installer so that that file is kept in future! Really glad to hear its improved! I'll keep making a few tweaks to it but if its definitely better it means I can start on new features again. Thanks for the feedback! :) The Radio Voice Effect option is what gives the audio the radio feel, rather than perfect quality. Its basically just a High and Low pass filter but my suspicion was mixing audio thats gone through this process, rather than afterwards, could be an issue. To help test i've just made it optional for now so you can see how it sounds, with and without the filtering
  8. The bug is fixed now :) Sent from my ONEPLUS A3003 using Tapatalk
  9. New Release Version - 1.2.9.5 .NET Version - PLEASE INSTALL THIS or it may not work: https://www.microsoft.com/en-gb/download/details.aspx?id=53345 Windows 7/8/10 N Users - PLEASE INSTALL THIS OR IT WILL NOT WORK - Adds the media codecs you need which are removed in the N Version - https://www.microsoft.com/en-gb/download/details.aspx?id=48231 - You'll know when you get the audio initialisation error :) Thanks for all the help testing and feedback! :thumbup: This release has the best version of audio quality so far for simultaneous transmissions. If you do hear any garbled audio, try turning off the radio voice effect (bottom of settings) and post recordings here or PM me :) For best results, separate the two most used radios to the left and right ear configurable under settings :) Changelog Changes to Audio Mixing! Viggen Partially Implemented - Thanks to aemvee ! Spitfire Implemented - Thanks to Tarres! Fixed L-39 Intercom Volume in cockpit Re-ordered Viggen Radios Made the Radio Voice effect temporarily configurable (check the bottom of settings) Fixed Line of Sight for GCI / AWACS Note: Backup favourites file before updating or they will lost when SRS is updated As always, thanks for the support and let me know if there are any issues! This version of the client is compatible with the last server release so no need to rush to update the servers. It is also backwards compatible with the last client release as well but I recommend updating clients ASAP :thumbup: DOWNLOAD THE LATEST RELEASE: https://github.com/ciribob/DCS-SimpleRadioStandalone/releases/latest
  10. Sorry to hear you're having trouble! I've double checked, the only way this error can occur is if your system is missing the resampler that SRS uses internally to change audio to the right format. I'd double check by just reinstalling this: https://www.microsoft.com/en-us/download/details.aspx?id=53356 (this is the windows 10 one) and restarting your PC. Should fix it :) I've not added this to the release i'm about to post but I will look into it :)
  11. Thanks for the info. I'll have a look and see if there is a bug with the line of sight code. Obviously there is no Line of Sight for a Spectator / GCI as you're not associated with anything and the code should just ignore the test. I'll have a look at swapping it around. Its a quick change :) Are you trying to use the incockpit PTT (the actual physical one) or the SRS Hotkey? Are you sure you've got the radio selector switch on a working radio (green dot on SRS overlay ? ) Just gets exported to where ever the server is run and replaced every 30 seconds or so with a file of the same name. Feel free to submit a patch for CSV as well but for further processing, JSON is a handy format as its pretty much natively read by everything under the sun and will give you a complex object back you can work with straight away. Downside of CSV is you'll have to build your object back up again (only minor issue though ) :)
  12. Im not going to be able to take a look till Wednesday at the earliest (sorry!) but could you give some more details of the test? What were the server side settings? Was the AWAC player in DCS and in an actual GCI / Commander slot OR just in spectators? Had the AWAC player ever jumped into an aircraft while running SRS? What version of SRS for Server & clients Really appreciate as much info as possible :) , sorry for the issue. Glad that fixed it :thumbup:
  13. Sorry not much time for proper reply Did you install this https://www.microsoft.com/en-gb/download/details.aspx?id=48231 ? You're missing codecs i think Or this is the complete list: https://support.microsoft.com/en-us/help/3145500/media-feature-pack-list-for-windows-n-editions Sent from my ONEPLUS A3003 using Tapatalk
  14. Thank you very much for the detailed test! :) I think there will always be noise when mixing due to the radio effect being applied before mixing and the purposefully low quality audio at 16k. However, i will try in a week or so to try input audio at 24k and only apply the radio voice effect ( high and low pass filter) after the incoming transmissions have been mixed, not before. Now i know this has made a difference for you guys too I'm 99% what's causing it. Would​ you say a noticeable improvement over the old release version? Worth releasing 1.2.9.4 in this current state? Thanks again for helping and to Coug4r who also helped out. :) If others want to still help and give feedback or recordings feel free [emoji106] Sent from my ONEPLUS A3003 using Tapatalk
  15. New TESTING Version - 1.2.9.4 .NET Version - PLEASE INSTALL THIS or it may not work: https://www.microsoft.com/en-gb/download/details.aspx?id=53345 Windows 7/8/10 N Users - PLEASE INSTALL THIS OR IT WILL NOT WORK - Adds the media codecs you need which are removed in the N Version - https://www.microsoft.com/en-gb/download/details.aspx?id=48231 Thanks for the quick testing and feedback guys! I've tried something a little drastic with this one so if you can compare to the other testing release 1.2.9.3 and see which is better. You can have mixed testing clients & testing server but ideally keep them all the same version for a better test. Thanks again!! :) Changelog Minor changes for Audio Mixing - If you can compare to other testing version 1.2.9.3 & see which is better Viggen Partially Implemented - Thanks to aemvee ! Spitfire Implemented - Thanks to Tarres! DOWNLOAD THIS TESTING RELEASE: https://github.com/ciribob/DCS-SimpleRadioStandalone/releases/tag/1.2.9.4 Download the Full Release (not testing):https://github.com/ciribob/DCS-SimpleRadioStandalone/releases/latest
  16. It depends on the aircraft as some have the PTT as an actual button in the aircraft and others not. Check this sheet: https://docs.google.com/spreadsheets/d/1tzd996zJ1t0heZ-t1PpL7vNUIZbXl7pI6De0GThN1Qw/edit?usp=sharing If you go all the way to the right it lists if the in cockpit PTT is working or not. If not you just bind a hotkey. The bound hotkey will also work for aircraft with a PTT or not :) Possibly... I've never been able to reproduce it though across 3 machines on different connections so please test and let me know. If not, i've got one more small tweak to try!
  17. Thanks! :) Not much time to work on the radio but things are much better now! Thanks! That would be appreciated. I've only made some minor changes on a hunch, not programmed in 4 months so baby steps... If this testing version makes no noticeable difference then I'll start on the rewrite of the networking and audio pipeline There is but it's something you'll have to program yourself using the DCS GameGUI Lua. The radio exports a JSON file containing all currently connected clients and their name so the way I'd go about doing it is when someone tries to join a plane slot, you disallow them the slot until their name appears in the file. Might be worth PMing DEADBEEF as he did that as part of the Kaukaus Offensive campaign. New TESTING Version - 1.2.9.3 .NET Version - PLEASE INSTALL THIS or it may not work: https://www.microsoft.com/en-gb/download/details.aspx?id=53345 Windows 7/8/10 N Users - PLEASE INSTALL THIS OR IT WILL NOT WORK - Adds the media codecs you need which are removed in the N Version - https://www.microsoft.com/en-gb/download/details.aspx?id=48231 This is a minor testing release, and the server is backwards compatible with 1.2.9.2. Please let me know if you manage to reproduce the audio mixing issue with all clients and server running this version and send me a recording if you do! :) Changelog Viggen Partially Implemented - Thanks to aemvee ! Spitfire Implemented - Thanks to Tarres! Minor changes for Audio Mixing Again, thanks to you all for your patience and support. Hopefully now things are back on track and I can start to do some proper work on it too. :thumbup: DOWNLOAD THIS TESTING RELEASE: https://github.com/ciribob/DCS-SimpleRadioStandalone/releases/tag/1.2.9.3 Download the Full Release (not testing):https://github.com/ciribob/DCS-SimpleRadioStandalone/releases/latest
  18. Glad it's working :) Going to try to release a test build tonight for the intermittent audio mixing issue, spitfire and viggen. Thanks to all the contributors that have added the new aircraft and those that have helped out others with the radio and the support :) Sent from my ONEPLUS A3003 using Tapatalk
  19. Yes i do, having helped run one :) Checkout​ the blue flag server (often 40+ concurrently on SimpleRadio out of 50 ish slots) or Kaukaus offensive where you are kicked unless you are on SimpleRadio. Multiplayer in DCS world is still quite a small player base compared to others so it's not an impossible task for the larger more popular servers to nudge people towards a comms program of any kind. The thought behind SimpleRadio is there is literally no downside to running it alongside your dedicated DCS server , as it's a powerful​ windows pc by virtue of running DCS and you've opened some ports already. The other advantage is you don't have the TeamSpeak slot limit issue (20-25 unless you pay?) . You can also use it alongside Teamspeak for general chitchat and training without issue. But of course, if it was made by ED it would be better integrated, however I personally don't see why 3rd party radio mods can't be viable in the interim when it's been proved they are (not just mine). Sent from my ONEPLUS A3003 using Tapatalk
  20. That would be great. :) As i said it's completely free and open source so anyone with some c# skills can contribute. That's how it will become good enough for all, not just through the effort of one person but with the help of a community. [emoji106] Sent from my ONEPLUS A3003 using Tapatalk
  21. The last update was November 2016 and there have been no updates since. Have you been seeing it since then? There is nothing in the code to make the radio behave differently for appearing on top in fc3 Vs full fidelity, are you sure it only affects fc3? Have a look in settings in the radio as there are two options you can mess with that might help, auto refocus of dcs and another which hides the taskbar icon or not. One or both should solve it :) Can't give exact name as still getting windows pc sorted, sorry! Sent from my ONEPLUS A3003 using Tapatalk
  22. Please give SimpleRadio standalone a try. It uses the inbuilt radios and even the even cockpit ptt and intercom if they are clickable It shouldn't be finicky, it's the easiest install and easy to troubleshoot. :) It's open source and maybe one day will become the standard radio tool for public servers... Quite a few servers are running it now. Aries and univers have differing features but don't scale so well for public events due to teamspeak sync issues. They are both in their own right incredible pieces of work! I will slowly bring as much of the UI as possible into DCS so it seems less of an add-on. I am quite biased though.... :D Feel free to PM if you have any issues Sent from my ONEPLUS A3003 using Tapatalk
  23. LeCuvier, your Export.lua has an error and you need to pick one of the two radios or they wont work :) Notice that the second line has an extra l in front of local and you'll need to remove Aries or SimpleRadio, just add -- infront Hope this helps! :) dofile(lfs.writedir()..'../AriesWings/AriesRadio.luac') --notice llocal instead of local llocal dcsSr=require('lfs');dofile(dcsSr.writedir()..[[scripts\DCS-SimpleRadioStandalone.lua]]) local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') Fix for Tacview & SRS --dofile(lfs.writedir()..'../AriesWings/AriesRadio.luac') local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[scripts\DCS-SimpleRadioStandalone.lua]]) or Aries & Tacview dofile(lfs.writedir()..'../AriesWings/AriesRadio.luac') -- local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[scripts\DCS-SimpleRadioStandalone.lua]]) local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua')
  24. Thats awesome! Thanks for sharing, thats interesting to see :) Having something play for a connected client is an interesting idea, I'll add to the list. It'll need to be implemented clientside but i'll think of something
  25. Not sure I quite understand but are you asking, Can you disable the PTT Mic switch in the cockpit (UH1 Mi8 etc) from triggering the PTT on SRS? If so, sure! Edit the file - DCS-SimpleRadioStandalone.lua in Saved Games/DCS/Scripts Change: _data.ptt = true to _data.ptt = false On this line https://github.com/ciribob/DCS-SimpleRadioStandalone/blob/master/Scripts/DCS-SimpleRadioStandalone.lua#L629 for the UH1 as an example :) The normal hotkey set via SRS will still work, it just wont pick up the ingame incockpit physical switch
×
×
  • Create New...