Jump to content

Universal UFC| Works with all modules | Simple Install


Recommended Posts

Posted

 

Could argument spoofing be included in say, av8b.lua - the argument for gear down in the Harrier could be converted into the gear down command and light in the pto2? Would mean more manual editing per module I guess.

 

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:

Could argument spoofing be included in say, av8b.lua - the argument for gear down in the Harrier could be converted into the gear down command and light in the pto2? Would mean more manual editing per module I guess.

 

What would be great would be a kind of DCS bios aimed at Winwing hardware

The instructions for WW are fixed on F-18 commands, it would need something that can convert like whatever signal a "gears up" is from DCS to the "Gear up F-18" command for WW

(Of course it would be even better if WW just changed their firmware to understand DCS Bios commands)

  • Like 1

Intel I5 13600k / AsRock Z790 Steel Legend / MSI  4080s 16G Gaming X Slim / Kingston Fury DDR5 5600 64Gb / Adata 960 Max / HP Reverb G2 v2

Virpil MT50 Mongoost T50 Throttle, T50cm Base & Grip, VFX Grip, ACE Interceptor Rudder Pedals w. damper / WinWing Orion2  18, 18 UFC & HUD, PTO2, 2x MFD1  / Logitech Flight Panel / VKB SEM V  / 2x DIY Button Box

Catalog .jpg

Posted

HI there, 

I am a new user of Universal UFC with Helicopters. My question is how could I replace the UH-1 in window or option 4 and insert the collective torque value?

Thanks for any help.

AC 

Posted
12 hours ago, colsona said:

HI there, 

I am a new user of Universal UFC with Helicopters. My question is how could I replace the UH-1 in window or option 4 and insert the collective torque value?

Thanks for any help.

AC 

 

Been trying to wrap my head around the code the past night, diving into whatever DCS profiles I can find

What seems to be the source for torque pressure in the UH-1H is (124)

Now I tried to copy an element and switch things in the code to get it to work

but alas, I still see "UH1H" in window 4, guess my programming skills never did exceed Virtual cockpit

Intel I5 13600k / AsRock Z790 Steel Legend / MSI  4080s 16G Gaming X Slim / Kingston Fury DDR5 5600 64Gb / Adata 960 Max / HP Reverb G2 v2

Virpil MT50 Mongoost T50 Throttle, T50cm Base & Grip, VFX Grip, ACE Interceptor Rudder Pedals w. damper / WinWing Orion2  18, 18 UFC & HUD, PTO2, 2x MFD1  / Logitech Flight Panel / VKB SEM V  / 2x DIY Button Box

Catalog .jpg

Posted

Thanks I'll see what I can do with that information.

Where in the code did you make your changes? maybe I can start there.

 

Thanks for the help.

Posted (edited)
15 hours ago, colsona said:

Thanks I'll see what I can do with that information.

Where in the code did you make your changes? maybe I can start there.

 

Thanks for the help.

 

Well

I would think in the WWT/Aircraft folder/ufcPatchHuey.lua it would be defined by

math.floor(MainPanel:get_argument_value(124)

 

Then one would need to copy/past and edit a 'section' with however the syntaxes would work

My guess at first was:

    --Torquex????x
    local Torquex????x= {
        math.floor(MainPanel:get_argument_value(124)

    }

    local Torquex????x = ""
    for index, value in ipairs(Torquex????x) do
        local Torquex????xToAppend = value

    end

 

where "x????x" has either a 'string' or 'digit name', depending on the line

You'd also need to change 

        option4 = "UH1H"

Changing "UHU1" into Torquex????x (...digit or ...string)as source

 

But since I didn't even get an error, but zero change from the normal lua, it was evident I mucked it up, and missing the skill to debug the error

Edited by Nightdare

Intel I5 13600k / AsRock Z790 Steel Legend / MSI  4080s 16G Gaming X Slim / Kingston Fury DDR5 5600 64Gb / Adata 960 Max / HP Reverb G2 v2

Virpil MT50 Mongoost T50 Throttle, T50cm Base & Grip, VFX Grip, ACE Interceptor Rudder Pedals w. damper / WinWing Orion2  18, 18 UFC & HUD, PTO2, 2x MFD1  / Logitech Flight Panel / VKB SEM V  / 2x DIY Button Box

Catalog .jpg

Posted
On 2/18/2025 at 6:56 PM, colsona said:

HI there, 

I am a new user of Universal UFC with Helicopters. My question is how could I replace the UH-1 in window or option 4 and insert the collective torque value?

Thanks for any help.

AC 

Sounds like a fun things to add, I will get an update out today with it

Posted
On 2/18/2025 at 5:11 PM, Nightdare said:

 

What would be great would be a kind of DCS bios aimed at Winwing hardware

The instructions for WW are fixed on F-18 commands, it would need something that can convert like whatever signal a "gears up" is from DCS to the "Gear up F-18" command for WW

(Of course it would be even better if WW just changed their firmware to understand DCS Bios commands)

I did explore a test branch on Github adding a light payload as you described, here is the commit showing code to get lights working. I never added to the project but can re-visit if it would be helpful to others. The example shows setting the PTO landing gear light on and can be conditionally controlled via Huey argument values. It is exactly what you described, a mapping of module commands into SimApp Pro F18 Commands 

  • Like 2
Posted

@colsona Here is the latest version of the UFC Mod that includes the Torque for the UH-1H in slot 4! (Note: We are limited to 4 characters, and the gauge for torque is in PSI from 0-100, so I put the readout in the following format: `55%` for 55 PSI, `22%` for 22 PSI, etc).

This version also includes light control for the UH-1H

  • Starter Gen Switch On => APU Light Super Taurus Throttle
  • Skids On Ground => Landing Gear Light On PTO
  • Master Arm Switch On => AG Light PCR On


@Wostg@ANDR0ID For my fellow developers on this project, I added a light framework (just like the UFC payload methods to generate data, there is one for lights now). The UH-1H is setup with an example of controlling lights, ya'll will get the hang quickly. Feel free to add to other modules and make a pull request on Github

  • Like 2
Posted

I want to say thank you for your effort on this Idea.

I can't wait to try it out.

Will It also work for other helos like the Apache and UH-60 or Chinook?

Thanks Again.

 

Posted (edited)

Neat! Will have a play.

e: doh blind good stuff with the torq 🙂

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
4 hours ago, colsona said:

I want to say thank you for your effort on this Idea.

I can't wait to try it out.

Will It also work for other helos like the Apache and UH-60 or Chinook?

Thanks Again.

 

It should, just needs to be programed like the various UFC profiles. 

  • 2 weeks later...
Posted (edited)

Just popped in to say 'thank you' again for such a brilliant mod / script system.  My god, I've only an IQ of 4, you boys are 6 and up for sure!  😉

 

Seriously, very clever - thanks again!  Can you confirm for me in the Apache that i am unable to enter any letters?  For example making my own SP point.  As in..............  SP as an IDENT.

?

 

Regards

Edited by Heli Shed

 

Come pay us a visit on YouTube - search for HELI SHED

Main Banner.PNG

Posted

Hmm I thought it would let me check later

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

@Heli ShedufcPatchAH64.lua Try copying this file over the one in \Saved Games\DCS\Scripts\wwt\ufcPatch\aircraft. The letters work fine for me.

@prestonflyingHey dude can you see if the attached is the one in the repo? Also I've had some trouble with the new wwt version with the lighting, its just not working for me. Instead of being helpful I;ve just gone back to the previous download - will look into it properly at some point but does it work for you?

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

Pull request sent for additional light support and modules. Thanks @prestonflying this really completes the ability to use the WinWing peripherals with any module, much enhancing usability and quality of life. 

Added control for the ALR-67 power (radar) light, and updated your Huey profile to support it as well. 

Added support for the following: 

Mi-8T: 
APU light - activated when APU pressure is greater than 0, off at 0 pressure 
Landing Gear Light - activated when parking brake is on 

Mi-24P: 
APU light - activated when APU pressure is greater than 0, off at 0 pressure 
Landing Gear Light - activated when all gear is neither fully up nor fully down
Pylon lights - active when weapons are on Pylons (1-4) , center is for Armed Jettison 
ALR-67 - active when RWR is energized 
AA / AG - active when R-60s are powered on & corresponding to AA or AG mode 

UH-60L (w/ Armed Blackhawk Mod) [MH-60R comparable]: 
APU light - APU on
Landing Gear Light - Parking Brake On 
Pylon lights - Weapon pylons armed, Center for miniguns armed 
ALR-67 - active when RWR is energized 

OH-58: 
Landing Gear Light - skids on the ground 
ALR-67 - CMWS on 

AH-64
APU light - APU on
Landing Gear Light - Parking Brake On 
ALR-67 - CMWS on 

JF-17: 
Landing Gear Light - as per gear handle in cockpit 
AA / AG - as per AA / AG1 /AG2 in cockpit 
UFC Brightness - as per UFC brightness control knob in cockpit 

A-4C: 
Landing Gear Light - as per gear handle in cockpit 
Pylon lights - as per station 1-5 switches in cockpit 
ALR-67 - on when radar is not Off or STBY 
UFC Brightness - as per Gun Sight Brightness control knob in cockpit 

I hope to build some additional profiles for light control, but we'll see when that happens. Hopefully the community can enjoy these updates & perhaps continue to build upon the work. 

  • Like 2
  • 2 weeks later...
Posted (edited)

and you're using the Apache file above? What does it display if you edit your gun range to auto / other range?

Simappro is updating like once a week at this point - you're copying the files back into place after each time?

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

Hi! I recently formatted my pc and reinstalled DCS, SimApp and Universal UFC. Everything is working fine except that in multiplayer the UFC and some lights (AA, AG, ALR67...) get out of sync when die and choose a new role. I've seen the post by Prestonflying and the fix works, but can get Universal UFC and the fix working at the same time. I tried several times to mix both Lua's but only works one or another.

Any ideas?

Thanks a lot!

Posted
18 hours ago, josesaari said:

Hi! I recently formatted my pc and reinstalled DCS, SimApp and Universal UFC. Everything is working fine except that in multiplayer the UFC and some lights (AA, AG, ALR67...) get out of sync when die and choose a new role. I've seen the post by Prestonflying and the fix works, but can get Universal UFC and the fix working at the same time. I tried several times to mix both Lua's but only works one or another.

Any ideas?

Thanks a lot!

The cause is most likely inside the UFC code for this plugin, can you attach your /Saved Games/DCS/Logs/dcs.log file, it will include the reason for the failure and better help fix it

  • 2 weeks later...
  • Recently Browsing   1 member

×
×
  • Create New...