Wrench Posted August 10, 2015 Share Posted August 10, 2015 Hey guys. I have an interesting problem. I'm using ergn's DCCSTAD http://forums.eagle.ru/showthread.php?t=139250 as well as this A-10C DCU http://cafe.naver.com/dcstr Because I fly both the F-15C and the A-10C. The problem is, if I put both the CDU and DCSTAD stuff in one Export.lua, It breaks DCSTAD. Is there a way I can have 2 different lua's, each called when I load one aircraft? Carrier Script. Link to comment Share on other sites More sharing options...
FSFIan Posted August 10, 2015 Share Posted August 10, 2015 If both Export.lua files are written in a way that plays nice with others (i.e. check for previous callback functions, save them in a variable, and call them from your own callback functions instead of simply redefining the callback function), this should work. The Export.lua file from DCSTAD looks like it does this, so I assume that the A-10C CDU thing does not play nice (I couldn't locate its Export.lua file to check since I don't speak whatever language that site is written in and Google Translate was no help either). Try putting the Export.lua code for the A-10C CDU first and the DCSTAD code after that. That way, the A-10C CDU does not overwrite any existing callbacks and the DCSTAD code will notice and remember the A-10C CDU callbacks and make sure they get called. In other words, you can have a single Export.lua file that does not play nice as long as it gets to go first. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua Link to comment Share on other sites More sharing options...
Wrench Posted August 11, 2015 Author Share Posted August 11, 2015 Okay I didn't try the CDS first, I had it the other way around. I attached the CDU Export.lua for your evaluation. Should probably have done that in the first, but it's hard to find.Export.lua Carrier Script. Link to comment Share on other sites More sharing options...
FSFIan Posted August 11, 2015 Share Posted August 11, 2015 As I suspected, the A-10C CDU's Export.lua file does not respect previously installed callback functions. If you can, report this as a bug to the author. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua Link to comment Share on other sites More sharing options...
Wrench Posted August 12, 2015 Author Share Posted August 12, 2015 Hazaa! Putting the CDU first made everything hunky dory. Thanks for the tip Ian. Carrier Script. Link to comment Share on other sites More sharing options...
Recommended Posts