159th_Viper Posted November 29, 2008 Posted November 29, 2008 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......'
Cougar Posted November 29, 2008 Posted November 29, 2008 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 1
159th_Viper Posted November 29, 2008 Author Posted November 29, 2008 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......'
159th_Viper Posted November 29, 2008 Author Posted November 29, 2008 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......'
159th_Viper Posted November 29, 2008 Author Posted November 29, 2008 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......'
Cougar Posted November 30, 2008 Posted November 30, 2008 Rgr :D so for everyone wanting to know.... where was that file? ;)
159th_Viper Posted November 30, 2008 Author Posted November 30, 2008 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. 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......'
Raimir Posted November 30, 2008 Posted November 30, 2008 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
159th_Viper Posted November 30, 2008 Author Posted November 30, 2008 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......'
Cougar Posted November 30, 2008 Posted November 30, 2008 (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 ;) Edited November 30, 2008 by Cougar
159th_Viper Posted November 30, 2008 Author Posted November 30, 2008 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......'
Cougar Posted November 30, 2008 Posted November 30, 2008 (edited) Your welcome. Edited November 30, 2008 by Cougar
crazysundog Posted November 30, 2008 Posted November 30, 2008 Thanks Cougar, Worked for me, looks much better with the HDR mod!!
ED Team Alex Okean Posted November 30, 2008 ED Team Posted November 30, 2008 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
Arg0n Posted November 30, 2008 Posted November 30, 2008 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 Alex Okean Posted November 30, 2008 ED Team Posted November 30, 2008 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.
jason_peters Posted December 7, 2008 Posted December 7, 2008 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
mondaysoff Posted July 2, 2017 Posted July 2, 2017 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.
Recommended Posts