Jump to content

[MISSING CRASH LOGS] F-16C's TGP causes the game to crash!


HappyVoo

Recommended Posts

The F-16C’s TGP pod does not work and causes the game to crash!

As long as TGP is active, once I switch to TGP, my game will crash! When TGP is not activated, there is no problem, and other operations are no problem! Only when TGP is activated and I switch to display TGP, my game will definitely crash!

In previous versions, I could use TGP normally!

I'm the latest version of steam, and I've verified the integrity of the game, and ram is 32g, but when my game crashed, I only put a plane on my custom Black Sea map!

Link to comment
Share on other sites

Hello HappyVoo,

 

have you cleaned fxo and metashader folders after updating?

You might also try reducing TEXTURE setting by one (e.g. HIGH to MEDIUM, or MEDIUM to LOW).

 

A log file would help.

 

Visit https://www.viggen.training
...Viggen... what more can you ask for?

my computer:
AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1

 

Link to comment
Share on other sites

Hello HappyVoo,

 

have you cleaned fxo and metashader folders after updating?

You might also try reducing TEXTURE setting by one (e.g. HIGH to MEDIUM, or MEDIUM to LOW).

 

A log file would help.

 

Thanks for your suggestion, I have found the reason, it is caused by DCS-ExportScript

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

Hi,

 

The F16 Export Script needed a little tidying up as it still had a load of code relating to the F18.  If you replace the current F16C_50.lua file in your Saved Games folder (file path something like this.... C:\Users\Admin\Saved Games\DCS.openbeta\Scripts\DCS-ExportScript\ExportsModules\F-16C_50.lua) with the attached file, you should find that using the TGP no longer causes the game to freeze.

 

 

Edit:

 

Not as simple as I thought!  Yes, TGP works but at the expense of the export-script, so Streamdeck rendered inop


Edited by Tess
Link to comment
Share on other sites

  • 2 months later...

I just started having this problem, have had a StreamDeck for a while. Ive read the comments here but not sure what to do?

 

I have to delete DCS-export? But where is it? also what is that F16C_50.lua file should I download and put it somewhere?

 

 

Edit: I found a DCS-export folder in ...\Saved Games\DCS\Scripts do I delete the whole folder?


Edited by Pekins
Link to comment
Share on other sites

I don't use Streamdeck but from what I can find,

 

Saved Games\DCS\Scripts should have a DCS-ExportScript folder
inside DCS-ExportScript there should be ExportsModules folder
inside ExportsModules there should be a F-16C_50.lua

 

replace this file with Tess's F-16C_50.lua

and that should be all you need to do to not crash
 


Edited by ice41
Link to comment
Share on other sites

Has anyone tried exporting the F-16 Chaff and Flare counters? I have some script code that works in DCS-Bios but not when I enter it into the lua

        --chaff and flare quantity export
    local chaff1 = ExportScript.Tools.split(list_indication(16), "%c")[3]
    local flare1 = ExportScript.Tools.split(list_indication(16), "%c")[6]
    if chaff1 == nil then
        chaff1 = ""
    end
    
    if flare1 == nil then
        flare1 = ""
    end
    
    ExportScript.Tools.SendData(6000, string.format("%-3s", chaff1))
    ExportScript.Tools.SendData(6001, string.format("%-3s", flare1))

Link to comment
Share on other sites

  • 6 months later...
On 5/17/2021 at 3:01 AM, bones1014 said:

Has anyone tried exporting the F-16 Chaff and Flare counters? I have some script code that works in DCS-Bios but not when I enter it into the lua

        --chaff and flare quantity export
    local chaff1 = ExportScript.Tools.split(list_indication(16), "%c")[3]
    local flare1 = ExportScript.Tools.split(list_indication(16), "%c")[6]
    if chaff1 == nil then
        chaff1 = ""
    end
    
    if flare1 == nil then
        flare1 = ""
    end
    
    ExportScript.Tools.SendData(6000, string.format("%-3s", chaff1))
    ExportScript.Tools.SendData(6001, string.format("%-3s", flare1))

I have a working countermeasure export here, starting at line 1009. 
https://github.com/asherao/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/F-16C_50.lua

You can either download the entire lua, or take the part from the spoiler below. If you do the below, remember to add `ExportScript.CountermeasureReadouts(mainPanelDevice)` to the
`function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)` function block.
 

Spoiler
function ExportScript.CountermeasureReadouts(mainPanelDevice)
	
	local expendableReadout = ExportScript.Tools.split(list_indication(16), "%c")--this contains the formated table of the CMDS numbers
	
	local CMDS_O1_Amount
	local CMDS_O2_Amount
	local CMDS_CH_Amount
	local CMDS_FL_Amount
	
	if expendableReadout[2] == "CMDS_O1_Amount" then
		CMDS_O1_Amount = expendableReadout[3]
	elseif expendableReadout[5] == "CMDS_O1_Amount" then
		CMDS_O1_Amount = expendableReadout[6]
	elseif expendableReadout[8] == "CMDS_O1_Amount" then
		CMDS_O1_Amount = expendableReadout[9]
	elseif expendableReadout[11] == "CMDS_O1_Amount" then
		CMDS_O1_Amount = expendableReadout[12]
	else
		CMDS_O1_Amount = "--"
	end
	
	if expendableReadout[2] == "CMDS_O2_Amount" then
		CMDS_O2_Amount = expendableReadout[3]
	elseif expendableReadout[5] == "CMDS_O2_Amount" then
		CMDS_O2_Amount = expendableReadout[6]
	elseif expendableReadout[8] == "CMDS_O2_Amount" then
		CMDS_O2_Amount = expendableReadout[9]
	elseif expendableReadout[11] == "CMDS_O2_Amount" then
		CMDS_O2_Amount = expendableReadout[12]
	else
		CMDS_O2_Amount = "--"
	end
	
	if expendableReadout[2] == "CMDS_CH_Amount" then
		CMDS_CH_Amount = expendableReadout[3]
	elseif expendableReadout[5] == "CMDS_CH_Amount" then
		CMDS_CH_Amount = expendableReadout[6]
	elseif expendableReadout[8] == "CMDS_CH_Amount" then
		CMDS_CH_Amount = expendableReadout[9]
	elseif expendableReadout[11] == "CMDS_CH_Amount" then
		CMDS_CH_Amount = expendableReadout[12]
	else
		CMDS_CH_Amount = "--"
	end
	
	if expendableReadout[2] == "CMDS_FL_Amount" then
		CMDS_FL_Amount = expendableReadout[3]
	elseif expendableReadout[5] == "CMDS_FL_Amount" then
		CMDS_FL_Amount = expendableReadout[6]
	elseif expendableReadout[8] == "CMDS_FL_Amount" then
		CMDS_FL_Amount = expendableReadout[9]
	elseif expendableReadout[11] == "CMDS_FL_Amount" then
		CMDS_FL_Amount = expendableReadout[12]
	else
		CMDS_FL_Amount = "--"
	end
	
	CMDS_O1_Amount = trim(CMDS_O1_Amount)
	CMDS_O2_Amount = trim(CMDS_O2_Amount)
	CMDS_CH_Amount = trim(CMDS_CH_Amount)
	CMDS_FL_Amount = trim(CMDS_FL_Amount)
	
	ExportScript.Tools.SendData(3000, "OTHER1\n" .. CMDS_O1_Amount)
	ExportScript.Tools.SendData(3001, "OTHER2\n" .. CMDS_O2_Amount)
	ExportScript.Tools.SendData(3002, "CHAFF\n" .. CMDS_CH_Amount)
	ExportScript.Tools.SendData(3003, "FLARE\n" .. CMDS_FL_Amount)
	
	ExportScript.Tools.SendData(3004, "CH " .. CMDS_CH_Amount
										.. "\nFL " .. CMDS_FL_Amount)
	
	ExportScript.Tools.SendData(3005, "O1 " .. CMDS_O1_Amount
										.. "\nO2 " .. CMDS_O2_Amount
										.. "\nCH " .. CMDS_CH_Amount
										.. "\nFL " .. CMDS_FL_Amount)
end

 


Edited by Bailey
Link to comment
Share on other sites

  • 1 year later...
  • Wags locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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