xaoslaad Posted February 13, 2016 Posted February 13, 2016 Do you mind sharing the mission? Also, I will double check that what I copied is complete/correct... using git on Linux and the game on Windows... copying/pasting code here and there; possible I screwed something up, which would be the best scenario.
EasyEB Posted February 13, 2016 Posted February 13, 2016 I made another test mission from scratch, and now it all seems to work fine. I have no idea what I did wrong on the first one. It might have something to do with my copy/pasting the JTAC unit, although I doubt it. Anyway, never mind I guess! :) Really big thanks for the help man, you are awesome.
EasyEB Posted February 14, 2016 Posted February 14, 2016 I am, I use it extensively in this mission: http://www.digitalcombatsimulator.com/en/files/1430099/ Thanks again for your help.
EasyEB Posted February 16, 2016 Posted February 16, 2016 So, I've been trying to find a way to stop the JTAC from marking new targets. I've trided "ctld.cancelLase(_jtacGroupName)" and "ctld.cleanupJTAC(_jtacGroupName)". It stops the JTAC momentarily, but it immediately starts marking again. Goup AI off does nothing, but of course Group Deactivate works, but that makes the JTACs laser glitch for a second and it creates a huge laser blob just before the unit dissapears. If I run cleanupJTAC just before, the Deactivation is smooth, but then the JTAC is lost forever. This is my most desperate hour. Help me Obi-xaoslaad Kenobi. You are my only hope.
xaoslaad Posted February 20, 2016 Posted February 20, 2016 EasyEB think I have something that will work. Want to play with it some more. Basically you have the JTACAutolase function forever looping around until the unit dies/deactivates at which time the function returns. What's needed is a way to make it return without the unit going away. My thought it to do something like this at the top of the JTACautolase function: if JTAC_Sleep == _jtacGroupName then ctld.cleanupJTAC(_jtacGroupName) return end Then you can just use the DO script function to make JTAC_Sleep = "JTACGROUPname", maybe sleep for some seconds and JTAC_Sleep = nil return it to nil so you can call him back up; I can like put that all that in a function so you just say ctld.jtac_sleep('JTACNAME') and the rest is handled behind the scenes... more or less already works but its too late and I'm too tired to finish today. nevertheless, probably before the weekend is over I'll have something for you to try.
xaoslaad Posted February 20, 2016 Posted February 20, 2016 Here EasyEB, try this out: https://github.com/jmontleon/DCS-CTLD/commit/ba850b7cf6cae686dbdcb953f55f5a178d478fcc is all it took to implement a way to stop JTACS. This branch has all both the priority system and means to stop the jtac: https://github.com/jmontleon/DCS-CTLD/tree/all-improvements https://raw.githubusercontent.com/jmontleon/DCS-CTLD/all-improvements/CTLD.lua The attached mission gives an example of how to turn JTACS on and off on the fly via the radio message. Basically just do this to stop them ctld.jtacStop['AFAC'] = true ctld.jtacStop['AFAC1'] = true where AFAC and AFAC1 are the groupnames of my JTAC's.Hoover test.miz
xaoslaad Posted February 20, 2016 Posted February 20, 2016 On second thought, do it like this: ctld.JTACAutoLaseStop('AFAC') ctld.JTACAutoLaseStop('AFAC1')
Ciribob Posted February 20, 2016 Author Posted February 20, 2016 Here EasyEB, try this out: https://github.com/jmontleon/DCS-CTLD/commit/ba850b7cf6cae686dbdcb953f55f5a178d478fcc is all it took to implement a way to stop JTACS. This branch has all both the priority system and means to stop the jtac: https://github.com/jmontleon/DCS-CTLD/tree/all-improvements https://raw.githubusercontent.com/jmontleon/DCS-CTLD/all-improvements/CTLD.lua The attached mission gives an example of how to turn JTACS on and off on the fly via the radio message. Basically just do this to stop them ctld.jtacStop['AFAC'] = true ctld.jtacStop['AFAC1'] = true where AFAC and AFAC1 are the groupnames of my JTAC's. Thanks for this! I'll test and merge tomorrow. The JTAC code is quite old and needs a bit of a tidy up anyway :) Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
EasyEB Posted February 20, 2016 Posted February 20, 2016 Great work man! Thanks! My hard drive just crashed, but I'll try it out in the middle of next week. Cheers!
Ciribob Posted February 21, 2016 Author Posted February 21, 2016 Thanks xaoslaad, merged and released :) http://forums.eagle.ru/showpost.php?p=2686794&postcount=398 Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
EasyEB Posted February 26, 2016 Posted February 26, 2016 Computer is back up and man what a great addition to be able to make the JTAC stop lasing! Awesome work! When you use AutoLaseStop, is it stopped forever, or is it possible to get it to start again at a later time with the start command again?
EasyEB Posted March 15, 2016 Posted March 15, 2016 So I have another question! Is it possible to get when the JTAC starts lasing as a flag condition? Example: 1. Autolase script is activated and JTAC start looking for targets, flag 1=0 2. JTAC finds a target and starts lasing, flag 1=1 3. Target is destroyed or JTAC loses sight and stops lasing, flag 1=0
Ciribob Posted March 15, 2016 Author Posted March 15, 2016 Computer is back up and man what a great addition to be able to make the JTAC stop lasing! Awesome work! When you use AutoLaseStop, is it stopped forever, or is it possible to get it to start again at a later time with the start command again? So I have another question! Is it possible to get when the JTAC starts lasing as a flag condition? Example: 1. Autolase script is activated and JTAC start looking for targets, flag 1=0 2. JTAC finds a target and starts lasing, flag 1=1 3. Target is destroyed or JTAC loses sight and stops lasing, flag 1=0 Yes both those things should be possible, nice ideas! I'll add to the list :) Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
Pikey Posted March 15, 2016 Posted March 15, 2016 You can get to the point in the script where the JTAC springs to lifem, thats how I added a sound clip. I woudl like to know in LUA how to set flags though, i need that for another script. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Morkva_55 Posted June 5, 2016 Posted June 5, 2016 Updated standalone script for DCS World 1.5.3 with priority setting option. MIST installation is not required. Download
dresoccer4 Posted August 25, 2016 Posted August 25, 2016 (edited) hi! i was directed here by a good samaritan trying to help me setup AI JTAC to use with F-5E module. i have a couple questions: 1) is the github link on the first page the most up to date version, or do i need to look elsewhere? 2) once i download the .lua script, where do i put it in the game and how do i "activate" it? EDIT: i think i managed it, however does it work on ships? i don't have the A-10C module so this is my first time attempting stuff like this, sorry for the dumb questions! Edited August 25, 2016 by dresoccer4 Acer Predator Triton 700 || i7-7700HQ || 512GB SSD || 32GB RAM || GTX1080 Max-Q || FFB II and Thrustmaster TWCS Throttle || All DCS Modules
kojdog Posted August 25, 2016 Posted August 25, 2016 I successfully followed the guidance in one of Chuck Owl's great PDF quickstart sheets. You may generally find his material useful for a lot more - make sure and check out the F-5 one: http://forums.eagle.ru/showthread.php?t=135765 However, the specific guide you want to check out is actually the one for the M-2000C (direct link): https://drive.google.com/file/d/0B-uSpZROuEd3WnVhcm5hTUJOTjg/view?usp=sharing On page 86 (don't worry, it's mostly pictures) you will find a 3 step guide that tells you everything you need to know, step by step.
Ciribob Posted August 25, 2016 Author Posted August 25, 2016 hi! i was directed here by a good samaritan trying to help me setup AI JTAC to use with F-5E module. i have a couple questions: 1) is the github link on the first page the most up to date version, or do i need to look elsewhere? 2) once i download the .lua script, where do i put it in the game and how do i "activate" it? EDIT: i think i managed it, however does it work on ships? i don't have the A-10C module so this is my first time attempting stuff like this, sorry for the dumb questions! No question is a dumb one. :) Use the CTLD script as this script is now part of it. Download here: https://github.com/ciribob/DCS-CTLD Thread: http://forums.eagle.ru/showthread.php?t=143107 Documentation on JTAC: https://github.com/ciribob/DCS-CTLD/tree/1.62#jtac-automatic-targeting-and-laser Example mission + Tutorial: http://forums.eagle.ru/showpost.php?p=2621667&postcount=6 You can swap out the A10C for what ever you like and away you go :) Hope that helps! Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
dresoccer4 Posted August 25, 2016 Posted August 25, 2016 No question is a dumb one. :) Use the CTLD script as this script is now part of it. Download here: https://github.com/ciribob/DCS-CTLD Thread: http://forums.eagle.ru/showthread.php?t=143107 Documentation on JTAC: https://github.com/ciribob/DCS-CTLD/tree/1.62#jtac-automatic-targeting-and-laser Example mission + Tutorial: http://forums.eagle.ru/showpost.php?p=2621667&postcount=6 You can swap out the A10C for what ever you like and away you go :) Hope that helps! many thanks, ill check it out Acer Predator Triton 700 || i7-7700HQ || 512GB SSD || 32GB RAM || GTX1080 Max-Q || FFB II and Thrustmaster TWCS Throttle || All DCS Modules
Frosties Posted January 1, 2017 Posted January 1, 2017 (edited) I am playing around with this CTLD Lasing script, but the drone only gives co-ordinates in MGRS. But the old script gives in LongLat as well. Been trying to get the CTLD script to show LL as well but without any luck. Can anybody help me? Thanks in advance EDIT: Just seconds after posting i found the solution my self, just had missed a few characters while copying and pasting between files... Now the LL are showing, but it is the position of the Drone and not the target its lasing... Edited January 1, 2017 by Frosties [sIGPIC][/sIGPIC] Vincere Est Totum
Recommended Posts