Jump to content

Universal UFC| Works with all modules | Simple Install


Recommended Posts

Posted

That's a good idea, I've been copying and pasting from everything (good job with flares) when I start messign with a new one so good to have ready to go 🙂

So I'm having trouble with cold and dark starts. If I start up with Preston's AV8b script it won't populate the UFC at the right time, same with my F16. If I replace those scripts to show "TEXT" or the universal ones like LOGETGROUNDALTITIDE() they will work from start.

I've reinstalled simapppro, removed everything from export.lua that isn't simapppro, removed the hooks folder - not helping.

Are you guys able to do a cold and dark start with custom UFCs? Do they populate at the right time? Any ideas what I can look at?

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

Posted (edited)

I don't have the AV-8B or F-16 to check against/troubleshoot, but my helo profiles (UH-60, Mi-8, Mi-24) use main power (battery on, etc.) to start the data pull which as I recall worked fine from cold or hot start... When time allows I can doublecheck that, but it might at least give you some ideas for troubleshooting. 

 

Edit: Looking at the JF-17 profile may be more useful as its also pulling the listindicator functions like the AV-8B and F-16, but the underlying logic between the helicopter and JF-17 profiles is the same. When you say the UFC doesn't populate at the right time could you be more precise? Too early, Too late? I assume the UFC isn't showing data at the same time when its displayed on your main monitor / in game UFC? 

Edited by ANDR0ID
Posted (edited)

@WostgTry going into SimApp Pro and forcing the brightness of the UFC, perhaps on cold start the message for backlight is not being properly handled (NVM this is probabaly not the case as you say it works if you hard code the values UFC Payload).

Or perhaps the script is crashing if you check dcs.log. I suspect this is the issue here. It is most likely trying to access a list indication that is returning null or empty. Logs should show if this is happening

I also only had Harrier on trial so I can not re-test 😞


@ANDR0IDmerged in your base profile! Updating Forum post now to include link

Edited by prestonflying
  • Thanks 1
Posted (edited)

Yep, errors logged, e.g.:
[string "C:\Users\ \Saved Games\DCS\Scripts\wwt\ufcPatch\aircraft\ufcPatchJF17.lua"]:41: attempt to perform arithmetic on global 'Radio1Freq' (a nil value)
[string "C:\Users\ \Saved Games\DCS\Scripts\wwt\ufcPatch\aircraft\ufcPatchAV88.lua"]:20: attempt to index local 'av88HarrierUFC' (a nil value)
[string "C:\Users\ \Saved Games\DCS\Scripts\wwt\ufcPatch\aircraft\ufcPatchF16.lua"]:17: attempt to index local 'HUD' (a nil value)

Chatgpt says: 'In summary, the common point among these errors is that there are variables or objects being accessed or manipulated without being properly defined or assigned a value. To resolve these issues, you should review the respective scripts (ufcPatchJF17.lua, ufcPatchAV88.lua, and ufcPatchF16.lua) and ensure that all required variables are defined and initialized correctly before they are used in any arithmetic operations or indexing.'

Ran the Harrier, F16 and JF17 through it, and it appears to have solved the issue. I tried them with a hot and cold start - the UFCs now populate when they're supposed to, and no crashes in the log. I'll modify other mods as I get to them, but looks like the changes suggested might be Good Practice for our future tinkering?

 

ufcPatchAV88.lua ufcPatchJF17.lua ufcPatchJF17.lua

Edited by Wostg

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

Posted

@Wostg I tried the new JF-17 patch, but it did not work for me from either cold or hot start. 

I double checked my original JF-17 profile, and for me its working from both cold and hot start. Looking at the code changed by chatgpt it seems like there may be some oddities occurring for the JF-17 profile? 

My recommendation is to NOT merge the new JF-17 profile on github... although I'm willing to consider operator error on my end if others are having a different experience. Regardless, I appreciate the heads up on the cold/hot start issue, I'll be double-checking my older profiles as time allows. 

Posted (edited)

Fair enough, thank you for checking - I applied the same fix to the ka50 and also found something weird. At point of cold start the ufc is working, but just after autostart completion it switches off and the log returns this error: 'INFO COCKPITBASE (Main): couroutine killed'. No further detail given. Will do a full manual start and see if that changes anything. 

I worry my pc has some peculiarity but who knows what that might be - steam install? Gpu? Bloatware in the background? 

Edited by Wostg
  • Thanks 1

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

Posted (edited)

Hello guys!
I've been having problems with my streamdeck and the fault came back to the F16 UFC that is from here, Issue is strange, in all other modules like plane / helicopter, the streamdeck I use, I can use it to start up the jet, or the apache or anything else, but when using the streamdeck with the F16, the streamdeck don't talk to dcs anymore UNTIL the UFC and all the info from the Hud is shown on the UFC itself, then the streamdeck profile works, in the case of the apache, it already works from the start, also for the hornet and the harrier, all though there is nothing shown in the ufc until everything is started and the streamdeck still works...
When I start "hot" in the F16, my streamdeck profile for the F16 works, but not cold, not until the jet is started.

I know it's the F16 part of the winwing you guys have wonderfully made because when i remove the F16 lua from the ufcpatch folder file and remove the F16 lines from ufcPatch.lua the streamdeck works right at the start from cold.

I have tried move the lines all around in the export.lua but to no avail.

 

Edited by Lekaa
Posted

@Lekaa Interesting, sounds released to what Wostg brought up last week. Can you attach the logs of a cold start F16 mission with the UFC Patch files included, seeing the dcs.log file will help determine why. I do not have the F16 so I can not test, but it can help us understand what is happening.

Posted (edited)

dcs.log

Forgive my list of mods in the log 🙂
null
Btw, if someone uses reshade and UImask to get the winwing screens brighter, i have a great profile for the F18 / apache  / A10 / F16.

It will alter the ingame brightness for night flying on the DDI and the AMPCD (only for the hornet) using a OVGEME ready lua edited file, I'll be happy to share.

 

my screen's are mostly better in the export screen then the in-game screen 🙂

 

image.png

Edited by Lekaa
Posted

Heya, I couldn't say if this is the reason, but I remembered I left a 15 second delay in the startup which was my first clumsy address to fix my cold start problem. Maybe that affected the steamdeck?? Here's an updated file with the delay removed and the other cold start fixes I tried in the above files.

(goes in C:\Users\xxxxx\Saved Games\DCS.openbeta\Scripts\wwt\ufcPatch\aircraft)

 

 

 

ufcPatchF16.lua

  • Thanks 1

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

Posted

Awesome, sorry for the hassle! 

  • Like 1

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

  • 2 weeks later...
Posted

@Lekaawoukd love those UIMask profile! 

Kaby Lake @ 4.6Ghz - Gigabyte Z170-D3H - 16Gb DDR4 - Gigabyte GTX 1080 G1 OC - Samsung EVO 250Gb SSD - Seagate 1 Tb HDD - HTC Vive - Rift CV1

Posted
1 minute ago, AstroEma said:

@Lekaawoukd love those UIMask profile! 

Sure thing.

Make sure you have a print screen taken in cockpit and then make (2 pictures) edited in Photoshop or gimp or whatever 

Like this

 

Why I say 2 is to make adjustments in game and those will be separate to the MIP

One picture where white and black and the other black and white.

And I will upload them later today here if it's ok

Posted

Thanks much @Lekaa so there's only 1 UI Mask for all the planes, correct?

Kaby Lake @ 4.6Ghz - Gigabyte Z170-D3H - 16Gb DDR4 - Gigabyte GTX 1080 G1 OC - Samsung EVO 250Gb SSD - Seagate 1 Tb HDD - HTC Vive - Rift CV1

Posted
3 hours ago, AstroEma said:

Thanks much @Lekaa so there's only 1 UI Mask for all the planes, correct?

Correct. Sorry for the late message, i forgot all about this and i will do it tomorrow

Posted

😊 that’s ok! 
 

by the way I wanted to say thank you so much for the hard work on enabling the use of the UFC for other planes! Just amazing!! 
 

  • Like 1

Kaby Lake @ 4.6Ghz - Gigabyte Z170-D3H - 16Gb DDR4 - Gigabyte GTX 1080 G1 OC - Samsung EVO 250Gb SSD - Seagate 1 Tb HDD - HTC Vive - Rift CV1

Posted (edited)

@AstroEma

Those are my profiles.

There are few profiles there for other aircraft,

also there is a folder called shaders, put the files inside your Shaders folder. then use my profiles depending on your aircraft type

For the Night flying in the hornet, you need to modify a lua file because the ingame screens are waaaay to bright and to fix that you need to use ovgeme or change it after every update. So i have sent you that fix too, it's the brightness folder, just put the Mods folder inside your core game or use OVGME. PS; it will not pass in Multiplayer with pure script required.

Profiles.zip night brightness.zip

Edited by Lekaa
Posted

Thank you so much!

 

Kaby Lake @ 4.6Ghz - Gigabyte Z170-D3H - 16Gb DDR4 - Gigabyte GTX 1080 G1 OC - Samsung EVO 250Gb SSD - Seagate 1 Tb HDD - HTC Vive - Rift CV1

Posted
7 hours ago, AstroEma said:

Thank you so much!

 

I forgot to mention the screenshots you took, the one in the video is supposed to be UIMask.png and the second one is named UIMask2.png

Posted (edited)

With thanks to those in the DCS Exports thread sorting out steamdeck profiles, and Android for his bits, here's a first go at the F15e. Scratchpad displays nav target distance, or reflects data entry as you type. This module is weird as all the gauges are hidden away from mainpanel_init somewhere.

ufcPatch.lua ufcPatchF15e.lua

Edited by Wostg
  • Like 1

I can think of nothing heavier than an airplane
I can think of no greater conglomerate of steel and metal
I can think of nothing less likely to fly

Posted
3 hours ago, Wostg said:

With thanks to those in the DCS Exports thread sorting out steamdeck profiles, and Android for his bits, here's a first go at the F15e. Scratchpad displays nav target distance, or reflects data entry as you type. This module is weird as all the gauges are hidden away from mainpanel_init somewhere.

ufcPatch.lua 5.77 kB · 1 download ufcPatchF15e.lua 4.36 kB · 1 download

 

i tried it in free flight and can't get it to display anything

  • Recently Browsing   0 members

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