Jump to content

JTAC Auto Target and Lase


Ciribob

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

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 by dresoccer4

Acer Predator Triton 700 || i7-7700HQ || 512GB SSD || 32GB RAM || GTX1080 Max-Q || FFB II and Thrustmaster TWCS Throttle || All DCS Modules

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 months later...

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 by Frosties

[sIGPIC][/sIGPIC]

 

Vincere Est Totum

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...