ED Team c0ff Posted April 24, 2014 ED Team Posted April 24, 2014 A hint: there's a special Lua-state for most of the options (but not all), which is initialized using $INSTALL_DIR/Config/main.cfg file. With some Lua reading you can figure out the 'magic' of autoexec.cfg file. There're a number of undocumented options, though, for a reason - they are for debug mostly and do change between releases. Mind you, some subsystems still use separate config-spaces and are not yet available via the autoexec.cfg file. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
cichlidfan Posted April 24, 2014 Posted April 24, 2014 A hint: there's a special Lua-state for most of the options (but not all), which is initialized using $INSTALL_DIR/Config/main.cfg file. With some Lua reading you can figure out the 'magic' of autoexec.cfg file. Thanks, a starting point will be useful. Now to find my lua book. :) ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:
mondaysoff Posted April 27, 2014 Posted April 27, 2014 So, I am thinking of using these graphics.lua settings that JAYPEE has posted Config\Graphics.LUA Code: -- available through options.graphics Plugins = { "DXRenderer.dll", -- "nvd3dumx.dll", "ZweiBlau.dll", "AVIMaker.dll", "Weather.dll", "NGModel.dll", "edterraingraphics3.dll", "Effects.dll", } Precaching = { around_camera = 200000; around_objects = 50000; around_types = {"world", "point"}; preload_types = {"map", "world", "mission"}; } PrecompiledEffects = { mode = "USE_PRECOMPILED_EFFECTS_FOR_UNCHANGED_FILES"; --mode = "USE_PRECOMPILED_EFFECTS_ONLY"; } VFSTexturePaths = { "./Bazar/TempTextures", "./Bazar/Textures/c-130", "./Bazar/Textures/Batumi_buildings", "./Bazar/Effects/EffectTextures", "./Bazar/Effects/EffectRiverTGA", "./Bazar/Effects/WaterEffects", "./Bazar/Textures/old_textures", "./Bazar/Textures/f-15", "./Bazar/Textures/e-2d", "./Bazar/Textures/f-15e", "./Bazar/Textures/An-26B", "./Bazar/Textures/An-30M", "./Bazar/Textures/Patriot", "./Bazar/Textures/kc-135", "./Bazar/Textures/e-3", "./Bazar/Textures/il-76md", "./Bazar/Textures/a-50", "./Bazar/Textures/il-78m", "./Bazar/Textures/uh-1", "./Bazar/Textures/Su-27", "./Bazar/World/textures/TexturesBMP_weapons", "./Bazar/World/textures/WorldTexturesBMP3", "./Bazar/World/textures/WorldTexturesTGA3", "./Bazar/World/textures/WorldTexturesTGA2", "./Bazar/World/textures/WorldTexturesTGA", "./Bazar/World/textures/WorldTexturesBMP2", "./Bazar/World/textures/WorldTexturesBMP", "./Bazar/World/textures/WorldTexturesBMP1", "./Bazar/World/textures/ShipTexturesBMP", "./Bazar/World/textures/Y_FInal_Texture", "./Bazar/World/textures/Y2_FInal_Texture", "./Bazar/World/textures/Y3_FInal_Texture", "./Bazar/World/textures/Y4_FInal_Texture", "./Bazar/World/textures/Y4_FIame", "./Bazar/World/textures/Y5_FInal_Texture", "./Bazar/World/textures/Y6_FInal_Texture", "./Bazar/World/textures/Vehicles_misc", "./Bazar/World/textures/A-10_Weapons", "./Bazar/World/textures/AH-64_Apache", "./Bazar/World/textures/gunners", "./Bazar/World/textures/KA-27textures", "./Bazar/World/textures/MI26_textures", "./Bazar/World/textures/UH_60_textures", "./Bazar/World/textures/T_Textures", "./Bazar/World/textures/Ka-50_general", "./Bazar/World/textures/A-10", "./Bazar/World/textures/L-39", "./Bazar/World/textures/yak-40_tex", "./Bazar/World/textures/NAVY_Textures", "./Bazar/World/textures/Railroad_trains_texture", "./Bazar/World/textures/Su-25_common_textures", "./Bazar/World/textures/Su-25_Georgian_Skins", "./Bazar/World/textures/Su-25_Russian_Skins", "./Bazar/World/textures/Su-25_Ukrainian_Skins", "./Bazar/World/textures/MI-8MT", "./Bazar/World/textures/Mig-31", "./Bazar/World/textures/F-18C", "./Bazar/World/textures/P-51D", "./FUI/Common/", "./FUI/Common/Net/", "./Bazar/ParticleEffects/textures/", "./Bazar/Effects/ParticleSystem2/", } ModelPaths = { "./Bazar/World/Shapes/", "./Bazar/Terrain/Structures/High/EDM/", } Camera = { Low = { near_clip = 0.0; middle_clip = 4; far_clip = 100000; structures = {10, 10000}; trees = {3000, 15000}; dynamic = {3000, 15000}; dynamic2 = {3000, 15000,0.5}; objects = {3000, 80000}; mirage = {3000, 15000}; surface = {3000, 15000}; lights = {3000, 15000}; districtobjects = {200, 200}; districts = {5000, 5000}; lodMult = 1.0; lodAdd = 100; -- 0; }; Medium = { near_clip = 0.0; middle_clip = 4; far_clip = 100000; structures = {10, 10000}; trees = {3000, 15000}; dynamic = {3000, 15000}; dynamic2 = {3000, 15000,0.5}; objects = {3000, 80000}; mirage = {3000, 15000}; surface = {3000, 15000}; lights = {3000, 15000}; districtobjects = {200, 200}; districts = {5000, 5000}; lodMult = 1.0; lodAdd = 100; -- 0; }; High = { near_clip = 0.0; middle_clip = 4; far_clip = 100000; structures = {10, 10000}; trees = {3000, 15000}; dynamic = {3000, 15000}; dynamic2 = {3000, 15000,0.5}; objects = {3000, 80000}; mirage = {3000, 15000}; surface = {3000, 15000}; lights = {3000, 15000}; districtobjects = {200, 200}; districts = {5000, 5000}; lodMult = 1.0; lodAdd = 100; -- 0; }; } --[[ -- these params are set via options shadows = 1; lights = 0; mirrors = 0; textures = 2; water = 4; scenes = "medium"; effects = 0; heatBlr = 0; MSAA = 2; HDR = 0; TranspSSAA = 1; environmentMap = 1; ambientMap = false; ]]-- DebugColoredTexture = 0; ScreenshotQuality = 100; ScreenshotExt = "jpg"; FogParam1 = 6; FogParam2 = 1.1; PilotNames = false; maxfps = 200; RenderEffect = 0; render3D = true; cockpitOnly = false; treesVisibility = 1500; sync = true; MFD_render_params = { two_pass_always = true; dist_multiplier_fov_base = 0.3; second_pass_start_fov = 0.1; second_pass_far_clip = 100; single_pass_near_clip = 10; } -- íàñòðîéêè Ëóíû Moon = { Ktex = 1.7355; -- êîýôôèöèåíò, ó÷èòûâàþùèé ðàçìåð ëóíû íà òåêñòóðå 512.0/295.0; Smax = 3; -- êîýôôèöèåíò ðàçìåðà ëóíû ïðè óãëå ìåñòà ðàâíîì íóëþ Smin = 2.5; -- êîýôôèöèåíò ðàçìåðà ëóíû ïðè óãëå ìåñòà >= Hmax Hmax = 45; -- ìàêñ. óãîë ìåñòà â ãðàäóñàõ â ïðåäåëàõ êîòîðîãî ëóíà èçìåíÿåò ñâîé ðàçìåð moonLightColor = {63.75, 71.4, 89.25}; -- öâåò ñâåòà îò ëóíû } Stars = { c0 = 0; c1 = 2; c2 = 9; c3 = 10; flickerEnabled = true; tau = 15; period = 20; } For me it's on average +20 FPS vs vanilla settings but I do admit I've got a shitty bit of hardware. YMMV. And according to this readme.txt in the 1.2.7 config file This is from the graphis_readme.txt that gave us the autoexec.cfg to begin with. --------------------------------------------------------- Hi! Old graphics.cfg is gone and replaced with graphics.lua. However, please, do not edit this file directly. Otherwise you'll lose your changes after each update. New method for overriding options is to create (or edit) a file C:\Users\<YOUR-LOGIN>\Saved Games\DCS\Config\autoexec.cfg or C:\Users\<YOUR-LOGIN>\Saved Games\edModelViewer\Config\autoexec.cfg (for model viewer) and place your changes there. Note: - autoexec.cfg settings will override the options set via GUI. - Graphic options in autoexec.cfg should be prefixed with options.graphics. - file encoding should be UTF-8 without BOM Example autoexec.cfg: options.graphics.maxfps = 30 options.graphics.render3D = false options.graphics.ScreenshotQuality = 75 -- add custom texture path -- note the slashes! table.insert(options.graphics.VFSTexturePaths, "c:/Users/<LOGIN>/Saved Games/DCS/MyTextures") Am I right in thinking, that I have to prefix every line with an = sign to it with options.graphics. ? then place it in specified folder and all will be fine. Then if this file was ever deleted all would return to original. Sorry if this might seem simple to most people, but I am still new to this and learning so much, I don't want to mess anything up. Thanks in advance.
Recommended Posts