Jump to content

Complete Transport and Logistics Deployment - CTLD


Recommended Posts

Also, it should be a fairly easy change in the code, to make the spawned SAM sites start up in RED state.

Would you please create an issue in the GitHub repository, so we don't forget ?

Zip - VEAF :pilotfly:

 

If you want to learn, talk and fly with french-speaking friends, the Virtual European Air Force is here for you ! Meet us on our Discord and our forum

If you're a mission creator, you may want to check the VEAF Mission Creation Tools (and its GitHub repository) a set of open-source scripts and tools that make creating a dynamic mission a breeze !

Link to comment
Share on other sites

9 hours ago, davidp57 said:

Also, it should be a fairly easy change in the code, to make the spawned SAM sites start up in RED state.

Would you please create an issue in the GitHub repository, so we don't forget ?

You bet, thanks. 😉

 

 

Edit:  Issue posted.

 

Also, I wanted to ask: is anyone else experiencing this issue as well?  I've used the CTLD script plenty in the past without issue, so I'm curious if it's happening to others or not.  If not, it's probably just something on my end.


Edited by CL30

i5-9600k @ 5.0 GHz| Gigabyte Z390 Aorus Master | 32 GB Trident G.Skill RAM @ 3200 MHz | Thermaltake Floe Riing 360 AIO | Samsung EVO 860 500 GB SSD | Crucial MX500 500 GB M.2 | SanDisk 1TB SSD | EVGA RTX 2080 Ti Ultra Gaming | EVGA G3 850W Gold PSU | Thermaltake View 71 TG Snow Edition | Thrustmaster Warthog HOTAS | MFC Crosswind pedals | Oculus Rift-S

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

We also have IADS running, it's hiding this because it manages the radars

Zip - VEAF :pilotfly:

 

If you want to learn, talk and fly with french-speaking friends, the Virtual European Air Force is here for you ! Meet us on our Discord and our forum

If you're a mission creator, you may want to check the VEAF Mission Creation Tools (and its GitHub repository) a set of open-source scripts and tools that make creating a dynamic mission a breeze !

Link to comment
Share on other sites

  • 1 month later...

Hello, I'd like to report the same HAWK site bug a second time. It appears that HAWK sites are still being spawned in the Auto configuration instead of Red configuration, and thus never engage air targets after being spawned. They must be forcefully put into the Red state by someone with CA privileges to engage targets. I tested this with the single player test mission on the Github and CTLD version 20210827.01. Please have a look at it again, thank you. 

 

I've already posted a ticket for this issue, it can be found here.

  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

Hey guys, I guess this question was already discussed but I could not find it. Is there any possibility to built an FOB with an invisible farp next to it to be able to rearm and refuel at any required point? If not, is there a walkaround with a script or anything? 
 

would be a massive game changer 😉 

 

thanks in advance for the answer 😉

Link to comment
Share on other sites

  • 5 weeks later...

Hey guys,how to enable Internal Load and Sling Load at the same time correctly?I have modified this jugde lines and only enable sling load,it seems working.It will spwan a sling load cargo,and a LoadNearby command show up in F10.I can load one internal and sling load one.So every time I can load two cargo.

Origin:

if ctld.hoverPickup == false then
if ctld.slingLoad == false then
missionCommands.addCommandForGroup(_groupId, "Load Nearby Crate", _crateCommands, ctld.loadNearbyCrate,  _unitName )
end
end

Modified:

if ctld.hoverPickup == false then
missionCommands.addCommandForGroup(_groupId, "Load Nearby Crate", _crateCommands, ctld.loadNearbyCrate,  _unitName )
end

 


Edited by zhouyut001
  • GamingPC: Ryzen 5950X  + 64G RAM + Nvidia 4090 + 1T Dedicated SSD For DCS 
  • HOTAS: WingWin F15EX Throttle + VKB Gunfighter Mk.III Joystick + SN2 Rudder + TrackIR Pro
  • HomeServer: Dell R7515 (EPYC 7402 + 1 T RAM + 48T SSD Raid10 + Nvidia A40
  • Network: Google Fiber 2G

 

Link to comment
Share on other sites

8 hours ago, Chump said:

There seems to be an extra END statement in your LUA since you took out an IF. Just an FYI in case your script is acting funny on you.

In fact ,there is only one End in my own script.The script I posted in this article just copied from github and forgot deleted the second End.

  • Like 1
  • GamingPC: Ryzen 5950X  + 64G RAM + Nvidia 4090 + 1T Dedicated SSD For DCS 
  • HOTAS: WingWin F15EX Throttle + VKB Gunfighter Mk.III Joystick + SN2 Rudder + TrackIR Pro
  • HomeServer: Dell R7515 (EPYC 7402 + 1 T RAM + 48T SSD Raid10 + Nvidia A40
  • Network: Google Fiber 2G

 

Link to comment
Share on other sites

  • 3 weeks later...

AutoLase is only updating about every 15 seconds. Target is a column of tanks moving over open ground. The autolasing unit is not targeting the first element in the columns -- which is coincidentally the closest -- and once lasing starts, it points to the ground where the target was, but only updates again after 15 seconds. CTLD never stuck to the moving target vehicle like native JTAC does, but now with moving targets are just driving away while the JTACing unit just lases the open ground for 15 seconds.

Mission provided 

FA-18 LST 01.miz

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Link to comment
Share on other sites

5 hours ago, Captain Orso said:

..CTLD never stuck to the moving target vehicle like native JTAC does, but now with moving targets are just driving away while the JTACing unit just lases the open ground for 15 seconds...

If you want you can edit CTLD.lua (with notepad++):

1) to update laser every second : at line 5328 replace timer.getTime() + 15) by timer.getTime() + 1)

2) to turn lasing point from target position to a dynamically leading point from target position : replace lines 5460-5461 by what I wrote on this post :

 

 


Edited by toutenglisse
Link to comment
Share on other sites

Yes, thank you Toutenglisse. This works!

What this isn't the default...

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Link to comment
Share on other sites

Well, I spoke too soon. I did some more testing. Although the change does have the updates occuring much quicker, and the lasing trying to lead the target, if the target is faster than about 10 mph, even the 1 second delay is enough for the laser to be off target nearly all of the time and very often for the bomb/maverick to miss the target, at time, substantially.

 

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Link to comment
Share on other sites

On 12/16/2021 at 12:56 PM, Captain Orso said:

Well, I spoke too soon. I did some more testing. Although the change does have the updates occuring much quicker, and the lasing trying to lead the target, if the target is faster than about 10 mph, even the 1 second delay is enough for the laser to be off target nearly all of the time and very often for the bomb/maverick to miss the target, at time, substantially.

 

I also got the same results when I was playing around with it. Glad you mentioned it.

Does the internal JTAC also have this problem? I don't ever remember it being used on moving targets.

Link to comment
Share on other sites

No, the FAC JTAC follows targets smoothly. There is however no documentation on how to use it properly, and it is not so straight forward.

I was playing around with it, having it lase a group of targets. I had just killed the first, when on the radio I immediately hear "switch" -- within a fraction of a second of the first target being hit (very easy to overhear) -- , and in the TGP I see that a new target is being lased (I'm in Hornet and LSTing so the TGP is following where it sees the laser). Then I fired a second laser Maverick at the new target and suddenly I hear on the radio "abort abort abort". and I have no idea why.

Then you have to go through the handing of the run-in again "I'm running in", "laser on" etc. It works, but it's more work to get it to work, and after a dozen years, you'd think it ought to work perfectly by now and be documented into the last detail, but.....

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Link to comment
Share on other sites

Hey All,

I am building a mission and have ran into this issue twice.

C130 will deploy troops when it goes through a dropzone. At some point, the "logic" doesn't load troops into the C130 anymore. I literally delete everything from the mission, place a C130, load MIST and CTLD, put the DO SCRIPT 1: ctld.preLoadTransport("transport20", 5,true)    DO SCRIPT 2: ctld.preLoadTransport("transport20", 5,false)  and it doesn't work

However, if I do everything exactly the same as above on a new mission, it works.

 

Any ideas?

Troop Dropoff Does Not Work Anymore.miz


Edited by Lowlyslows
Link to comment
Share on other sites

On 12/19/2021 at 9:33 AM, Captain Orso said:

No, the FAC JTAC follows targets smoothly. There is however no documentation on how to use it properly, and it is not so straight forward.

I was playing around with it, having it lase a group of targets. I had just killed the first, when on the radio I immediately hear "switch" -- within a fraction of a second of the first target being hit (very easy to overhear) -- , and in the TGP I see that a new target is being lased (I'm in Hornet and LSTing so the TGP is following where it sees the laser). Then I fired a second laser Maverick at the new target and suddenly I hear on the radio "abort abort abort". and I have no idea why.

Then you have to go through the handing of the run-in again "I'm running in", "laser on" etc. It works, but it's more work to get it to work, and after a dozen years, you'd think it ought to work perfectly by now and be documented into the last detail, but.....

Any documentation that you have and could share on how to make it work?

 

Also, I can not get the JTAC or the CSAR script portions to work at all right now and I don't know why. Sorry, but I'm just learning and finding the problem and fixing it I'm struggling with...

 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000014F4.lua"]:112681: in function 'New'
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00001525.lua"]:2: in main chunk
2021-12-24 19:53:19.994 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00000057.lua"]:2: attempt to index global 'csar' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00000057.lua"]:2: in main chunk

 

 

Link to comment
Share on other sites

It does work. Try this:

In CTLD at line 5328 replace: 
    timer.getTime() + 15) 
    by 
    timer.getTime() + 1)

then - 

In the function ctld.laseUnit replace this :

    local _enemyVector = _enemyUnit:getPoint()
    local _enemyVectorUpdated = { x = _enemyVector.x, y = _enemyVector.y + 2.0, z = _enemyVector.z }

by :

    local _enemyVector = _enemyUnit:getPoint()
        local speed1 = _enemyUnit:getVelocity()
         local speed2 = math.sqrt(speed1.x^2 + speed1.y^2 + speed1.z^2) + 0.1
        local dir1 = mist.getHeading(_enemyUnit)
        local dir2 = mist.utils.round(dir1, 1)
        repeat
        LeadPoint = mist.getRandPointInCircle(_enemyVector, 1.4*speed2)
         LeadPointV3 = mist.utils.makeVec3GL(LeadPoint)
           ref = _enemyVector
        vec = {x = LeadPointV3.x - ref.x, y = LeadPointV3.y - ref.y, z = LeadPointV3.z - ref.z}
        dir3 = mist.utils.getDir(vec, ref)
        dir4 = mist.utils.round(dir3, 1)
        until dir4 == dir2
    local _enemyVectorUpdated = { x = LeadPointV3.x, y = LeadPointV3.y + 2.0, z = LeadPointV3.z }

then:

Then Load File: MIST and then:
    Time More 10 secs

Then Load File: CTLD and then:
    Time More 10 secs.

Then load: ctld.JTACAutoLase( 'JTAC1', 1688, true, "vehicle", 2) or whatever values you want.

    And watch the spaces. They matter.

Link to comment
Share on other sites

King39, thanks... 

 

That caused a whole stack of traceback errors that I'm having trouble parcing... 

stack traceback:
    [C]: ?
    [string "ctld.JTACAutoLase( 'JTAC1', 1688, true, "vehicle", 2)"]:1: in main chunk
2021-12-26 00:52:25.086 INFO    LUA: Lua CPU usage: metric: average mission execution: 49.2530 %
2021-12-26 00:52:25.086 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:52:26.070 INFO    Dispatcher: Stop
2021-12-26 00:52:26.077 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: Discarding [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195217-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi] (because its duration of 1.42s is shorter than the minimum of 10.00s configured in the options.)
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay

    0
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----DCS.isMultiplayer()---    false

 

 

 

It now doesn't like my carrier script which was working prior to. 

\/~mis000008F3.lua"]:9: attempt to index global 'SET_GROUP' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000008F3.lua"]:9: in main chunk
2021-12-26 00:54:54.968 WARNING FLIGHT: assigning aircraft Aerial-15-12 on runway 1, runway start: 0
2021-12-26 00:54:54.968 WARNING FLIGHT: wCarrierCrew::set_LA() assigned aircraft Aerial-15-12 on runway 1
2021-12-26 00:54:56.446 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: attempt to index global 'RECOVERYTANKER' (a nil value)
stack traceback:

 

 

I thought maybe it was timing, so I went back and made sure I'm doing MIST, MOOSE, CTLD, Dispatcher, Carrier and then Skynet. 

Interesting... So I went back to a earlier version without adjusting anything but the changes you gave me... No issues. BUT it still isn't launching CTLD I think - no F10 menus. 

 

 

Took that second mission, put timings in... Still no F10 menu so I'm assuming it just isn't running... LOG says this after traceback:

 

\/~mis000008F3.lua"]:9: attempt to index global 'SET_GROUP' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000008F3.lua"]:9: in main chunk
2021-12-26 00:54:54.968 WARNING FLIGHT: assigning aircraft Aerial-15-12 on runway 1, runway start: 0
2021-12-26 00:54:54.968 WARNING FLIGHT: wCarrierCrew::set_LA() assigned aircraft Aerial-15-12 on runway 1
2021-12-26 00:54:56.446 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: attempt to index global 'RECOVERYTANKER' (a nil value)
stack traceback:

 

stack traceback:
    [C]: ?
    [string "ctld.JTACAutoLase( 'JTAC1', 1688, true, "vehicle", 2)"]:1: in main chunk
2021-12-26 00:52:25.086 INFO    LUA: Lua CPU usage: metric: average mission execution: 49.2530 %
2021-12-26 00:52:25.086 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:52:26.070 INFO    Dispatcher: Stop
2021-12-26 00:52:26.077 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: Discarding [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195217-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi] (because its duration of 1.42s is shorter than the minimum of 10.00s configured in the options.)
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay
 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: in main chunk
2021-12-26 00:55:17.708 INFO    LUA: Lua CPU usage: metric: average mission execution: 64.0099 %
2021-12-26 00:55:17.709 INFO    LUA: Lua CPU usage: metric: average mission execution: 3.2073 %
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationResume---
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:55:19.248 INFO    Dispatcher: Stop
2021-12-26 00:55:19.256 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:55:19.263 INFO    TACVIEW.DLL: Successfully saved [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195414-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi]
2021-12-26 00:55:19.263 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:55:19.266 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay
 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000076A1.lua"]:112681: in function 'New'
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000067AB.lua"]:2: in main chunk
2021-12-26 01:02:06.649 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000044F5.lu..."]:2: '=' expected near '/'
2021-12-26 01:02:06.650 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000050D8.lua"]:2: attempt to index global 'csar' (a nil value)
stack traceback:

 

 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000061D5.lua"]:3203: in function 'addRadioMenu'
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000042F8.lua"]:86: in main chunk
2021-12-26 01:02:06.671 ERROR   SCRIPTING: MIST|doScheduledFunctions|1053: Error in scheduled function: $1[string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000061D5.lua"]:3161: attempt to index field 'emitter' (a nil value)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44630( 29655)/E:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Looking for 1 parking spot(s) for aircraft of size 19.2 m (x=19.2,y=5.5,z=12.7) at termial type 244.)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 51 occupied.)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 50 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 49 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 48 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44734( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 47 free.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44739( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 47 free. Nfree=1/1.)
2021-12-26 01:02:10.238 ERROR   SCRIPTING: Mission script error: [string "ctld.JTACAutoLase('JTAC EAST', 1681, false,"all")"]:1: attempt to index global 'ctld' (a nil value)
stack traceback:

 

dcs.log

 

 


Edited by Paladin1cd
Update
Link to comment
Share on other sites

Ok... So I may have had an issue with the logfile updating. I deleted it, closed DCS and ran it again in a new mission set up just with a farp, jtac and a enemy vehicle. CTLD isn't creating a radio menu at all for some reason. The trigger fires, and no traceback in a search of the log file. 

dcs.log dcs.log


Edited by Paladin1cd
Link to comment
Share on other sites

  • 2 weeks later...
On 12/25/2021 at 7:53 PM, Paladin1cd said:

King39, thanks... 

 

That caused a whole stack of traceback errors that I'm having trouble parcing... 

stack traceback:
    [C]: ?
    [string "ctld.JTACAutoLase( 'JTAC1', 1688, true, "vehicle", 2)"]:1: in main chunk
2021-12-26 00:52:25.086 INFO    LUA: Lua CPU usage: metric: average mission execution: 49.2530 %
2021-12-26 00:52:25.086 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:52:26.070 INFO    Dispatcher: Stop
2021-12-26 00:52:26.077 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: Discarding [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195217-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi] (because its duration of 1.42s is shorter than the minimum of 10.00s configured in the options.)
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay

    0
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----DCS.isMultiplayer()---    false

 

 

 

It now doesn't like my carrier script which was working prior to. 

\/~mis000008F3.lua"]:9: attempt to index global 'SET_GROUP' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000008F3.lua"]:9: in main chunk
2021-12-26 00:54:54.968 WARNING FLIGHT: assigning aircraft Aerial-15-12 on runway 1, runway start: 0
2021-12-26 00:54:54.968 WARNING FLIGHT: wCarrierCrew::set_LA() assigned aircraft Aerial-15-12 on runway 1
2021-12-26 00:54:56.446 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: attempt to index global 'RECOVERYTANKER' (a nil value)
stack traceback:

 

 

I thought maybe it was timing, so I went back and made sure I'm doing MIST, MOOSE, CTLD, Dispatcher, Carrier and then Skynet. 

Interesting... So I went back to a earlier version without adjusting anything but the changes you gave me... No issues. BUT it still isn't launching CTLD I think - no F10 menus. 

 

 

Took that second mission, put timings in... Still no F10 menu so I'm assuming it just isn't running... LOG says this after traceback:

 

\/~mis000008F3.lua"]:9: attempt to index global 'SET_GROUP' (a nil value)
stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000008F3.lua"]:9: in main chunk
2021-12-26 00:54:54.968 WARNING FLIGHT: assigning aircraft Aerial-15-12 on runway 1, runway start: 0
2021-12-26 00:54:54.968 WARNING FLIGHT: wCarrierCrew::set_LA() assigned aircraft Aerial-15-12 on runway 1
2021-12-26 00:54:56.446 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: attempt to index global 'RECOVERYTANKER' (a nil value)
stack traceback:

 

stack traceback:
    [C]: ?
    [string "ctld.JTACAutoLase( 'JTAC1', 1688, true, "vehicle", 2)"]:1: in main chunk
2021-12-26 00:52:25.086 INFO    LUA: Lua CPU usage: metric: average mission execution: 49.2530 %
2021-12-26 00:52:25.086 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:52:26.070 INFO    Dispatcher: Stop
2021-12-26 00:52:26.077 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: Discarding [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195217-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi] (because its duration of 1.42s is shorter than the minimum of 10.00s configured in the options.)
2021-12-26 00:52:26.102 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:52:26.103 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay
 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis00002CC2.lua"]:2: in main chunk
2021-12-26 00:55:17.708 INFO    LUA: Lua CPU usage: metric: average mission execution: 64.0099 %
2021-12-26 00:55:17.709 INFO    LUA: Lua CPU usage: metric: average mission execution: 3.2073 %
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationResume---
2021-12-26 00:55:17.709 DEBUG   LuaGUI: ----onSimulationPause---
2021-12-26 00:55:19.248 INFO    Dispatcher: Stop
2021-12-26 00:55:19.256 INFO    TACVIEW.DLL: Closing current flight data recording...
2021-12-26 00:55:19.263 INFO    TACVIEW.DLL: Successfully saved [C:\Users\ramey\OneDrive\Documents\Tacview\Tacview-20211225-195414-DCS-OPERATION_Sohar_Sozan_1.13CIV.zip.acmi]
2021-12-26 00:55:19.263 INFO    TACVIEW.DLL: End of flight data recorder.
2021-12-26 00:55:19.266 DEBUG   LuaGUI: ----onSimulationStop---    false    Thats okay
 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000076A1.lua"]:112681: in function 'New'
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000067AB.lua"]:2: in main chunk
2021-12-26 01:02:06.649 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000044F5.lu..."]:2: '=' expected near '/'
2021-12-26 01:02:06.650 ERROR   SCRIPTING: Mission script error: [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000050D8.lua"]:2: attempt to index global 'csar' (a nil value)
stack traceback:

 

 

stack traceback:
    [C]: ?
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000061D5.lua"]:3203: in function 'addRadioMenu'
    [string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000042F8.lua"]:86: in main chunk
2021-12-26 01:02:06.671 ERROR   SCRIPTING: MIST|doScheduledFunctions|1053: Error in scheduled function: $1[string "C:\Users\ramey\AppData\Local\Temp\DCS.openbeta\/~mis000061D5.lua"]:3161: attempt to index field 'emitter' (a nil value)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44630( 29655)/E:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Looking for 1 parking spot(s) for aircraft of size 19.2 m (x=19.2,y=5.5,z=12.7) at termial type 244.)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 51 occupied.)
2021-12-26 01:02:07.728 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 50 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 49 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44732( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 48 occupied.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44734( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 47 free.)
2021-12-26 01:02:07.729 INFO    SCRIPTING:  44739( 29655)/I:                       AIRBASE02675.FindFreeParkingSpotForAircraft(Bandar Abbas Intl: Parking spot id 47 free. Nfree=1/1.)
2021-12-26 01:02:10.238 ERROR   SCRIPTING: Mission script error: [string "ctld.JTACAutoLase('JTAC EAST', 1681, false,"all")"]:1: attempt to index global 'ctld' (a nil value)
stack traceback:

 

dcs.log 1.14 MB · 1 download

 

 

 

DUde, I don't know Lua but my best guess it that you've got too many scripts running at the same time and are bumping into each other.

Try running each script one at a time. If they work than try two at the same time, etc, etc. 

Basic troubleshooting 101...

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hello guys,

is there a chance to be able to set up which aircraft can carry a specific amount of crates? 
 

for example, I want the Huey to be able to transport one crate, Mi-8 should be able to carry two crates and the c130 should be able to carry 8 crates.

 

any idea how I can get this working?

 

thanks in advance 

Link to comment
Share on other sites

I don't think it works like that. Crates have actual weight. Search for "SPAWNABLE CRATES"--without quotes--in the script to see what is defined.

As far as I recall, helicopters can carry one crate each, plus one infantry unit, depending on environmental conditions and the combined weight of crate and troops.

I really can't say anything about the C-130 or the Hercules (flyable mod).

When you hit the wrong button on take-off

hwl7xqL.gif

System Specs.

Spoiler
System board: MSI X670E ACE Memory: 64GB DDR5-6000 G.Skill Ripjaw System disk: Crucial P5 M.2 2TB
CPU: AMD Ryzen 7 7800X3D PSU: Corsair HX1200 PSU Monitor: ASUS MG279Q, 27"
CPU cooling: Noctua NH-D15S Graphics card: MSI RTX 3090Ti SuprimX VR: Oculus Rift CV1
 
Link to comment
Share on other sites

On 2/15/2022 at 2:33 AM, Captain Orso said:

I don't think it works like that. Crates have actual weight. Search for "SPAWNABLE CRATES"--without quotes--in the script to see what is defined.

As far as I recall, helicopters can carry one crate each, plus one infantry unit, depending on environmental conditions and the combined weight of crate and troops.

I really can't say anything about the C-130 or the Hercules (flyable mod).

Hey thank you for the answer. Well, i got it work with the MOOSE CTLD now - there you can script which aircraft can carry which amount of crates, troops and total Load. The Problem with the Moose CTLD is now, for example, if i click on "Spawn FOB Crate" and 4 Crates are required - that all for crates are spawned. Normally, no Problem. But on Multiplayer server, no one checks if there is already a crate that is needed for him is spawned. So i am a little bit scared of a Over Crate situation. 

Well, think i have to live with that 😉 

But thanks for the Answer.

________________________________

Another Question here. Is there anywhere out there a good Video or documentation how to built a custom FARP for the FOB Crates? i know that it is possible in any way, saw that now on a lot of Servers - but i have no idea and google doesn´t help me how to built my own spawnable Farp with Farp Pad, Logistics and so on. 


Any advise here?


Thanks in advance 😉

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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