Jump to content

Recommended Posts

Posted

As per lockOn, is it possible to tweak the default HUD Colour?

 

Attempts at tweaking the Ka-50/Config/View/view.LUA File had no effect............Anybody got any ideas?

 

Ta

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted

It's aircraft specific now in DCS so changing the color like LockOn won't affect anything. I haven't personally played with the color but here's the location where the HUD color setting is.

 

\Ka-50\Scripts\Aircrafts\Ka-50\Cockpit\HUD\HUD_init.lua line 72

 

Modify at your own risk :D

  • Like 1

sigpic4165_1.gif

attachment.php?attachmentid=36435&d=1266786388

Posted
It's aircraft specific now in DCS so changing the color like LockOn won't affect anything. I haven't personally played with the color but here's the location where the HUD color setting is.

 

\Ka-50\Scripts\Aircrafts\Ka-50\Cockpit\HUD\HUD_init.lua line 72

 

Modify at your own risk :D

 

Ta for the reply :)

 

Line 72 is the following:

 

indication_color = get_color(materials["GREEN"])

 

How do you manipulate the RGB values from there?

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted

I'm after different shades of green - hence the necessity for RGB value editing.

 

Might be way off-base here, but surely the reference to 'GREEN' must have it's value in another location......How else would the colour 'GREEN' be interpreted/processed to be what appears on-screen?

 

:)

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted

Nevermind..............Found It :)

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted

Ka-50/Scripts/Aircrafts/Ka-50/Cockpit/materials.LUA

 

:)

 

 

Which leads to the next question:

 

Values as contained for the 'GREEN' value is as follows:

 

materials["GREEN"] = {0, 255, 0, 255}

 

As above obviously RGB values........that said, 4 as opposed to default three. Could someone in the know kindly explain how to successfully manipulate the said values to tweak the HUD Colour. Attempts at changing said values have so far met me with little success.

  • Like 1

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted

From your example for the GREEN it looks like in other programming languages.

 

First three values are RGB and fourth Alpha chanel, usualy transparency. Probably 255 should be used as default value. To see somethink ;)

 

If its defined in array, you can simply add your own value, just copy it to new line and rename GREEN to XYZ and enter new values.

 

Happy tweaking.

LockOn SVK Squad bomber.

 

"Flight sim is not about to know everything about aircraft, but to know which button must be pressed in crucial time." - dead virtual pilot

Posted

Attempted first to change the First three values of the default line with the 4th value at 255 - No Joy.

 

Then copied and added another line with a renamed colour of 'XYZ', added the desired RGB Colour code, with the 4th value at 255 - No Joy.

 

Attempts at changing values as above leads to Gross Corruption of Cockpit Texture.

 

Further - when one has regard to the default values - apparent that the last value is not always at 255........:helpsmilie:

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Posted (edited)

Well what I did is edit the Hud_init.lua with the color name of the material.lua I've put DIGITAL_GREEN and it worked. Also it might be the color you were looking for ;)

green.jpg.790924f77df6298b80e5bc01891d04b1.jpg

digitalgreen.jpg.b9d2e6d153e34e5715b200937ffc787a.jpg

Edited by Cougar

sigpic4165_1.gif

attachment.php?attachmentid=36435&d=1266786388

Posted
Well what I did is edit the Hud_init.lua with the color name of the material.lua I've put DIGITAL_GREEN and it worked. Also it might be the color you were looking for ;)

 

Aye

 

Currently set to 'DARK_GREEN' myself, although that does seem to lean more towards the colour I am after :)

 

Ta for all the assistance Gents - Appreciated!

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

  • ED Team
Posted
Attempted first to change the First three values of the default line with the 4th value at 255 - No Joy.

 

Then copied and added another line with a renamed colour of 'XYZ', added the desired RGB Colour code, with the 4th value at 255 - No Joy.

 

Attempts at changing values as above leads to Gross Corruption of Cockpit Texture.

 

Further - when one has regard to the default values - apparent that the last value is not always at 255........:helpsmilie:

 

First of all : never use windows notepad to edit lua files inside DCS. that can corrupt file (due bad UTF8 format recognition by notepad, DCS use UTF8 without BOM ) so use Notepad++ ( free open source lightweight and very capable editor)

all errors of lua are logged to Temp/error.log , so you can easily find bug in changed files

sigpic2354_5.gif
Posted

Well it could be a CMYK color model. It would be logical since it has 4 values Cyan, Magenta, Yellow and Key (Black). So try that.

  • ED Team
Posted
Well it could be a CMYK color model. It would be logical since it has 4 values Cyan, Magenta, Yellow and Key (Black). So try that.

 

it's totally not CMYK .

 

ordinary RGBa red green blue alpha , for color you must change only RGB components.

sigpic2354_5.gif
Posted

1. use word pad to edit (not note pad else will not work)

2. Open..... C:\Program Files\1C\Eagle Dynamics\Ka-50\Scripts\Aircrafts\Ka-50\Cockpit\materials.lua

3. Add a new material at the top of the materials section--- ie....

 

materials["JPGREEN"] = {156, 249, 204, 255}

 

the numbers are.... Red,Green,Blue,Alpha (Note u can change the alpha if you want)

 

 

4. Open.... C:\Program Files\1C\Eagle Dynamics\Ka-50\Scripts\Aircrafts\Ka-50\Cockpit\HUD\HUD_init.lua

 

5. edit the following line to your new colour name...

 

indication_color = get_color(materials["JPGREEN"])

 

 

Thats it - will not have new colour in the game - most important bit is not to use notepad and DO use WordPad

 

Cheers

 

JP

---------

System: i7-8700k @ 4.9GHz; Nvidia RTX 2080ti; 32GB (2 x 16) DDR4 @ 3333Mz Ram; ASUS ROG Strix z370-E; SSD Drive; Oculus Rift-S; Thrustmaster HOTAS Warthog

  • 8 years later...
Posted

Just found this old post and it works superbly for my dodgy eyes. I have used Notepad++ then made up a file structure for OvGME.

 

Thanks you guys if you are still in the sim after 9 years.

 

 

 

 

  • Recently Browsing   0 members

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