Jump to content

Autoexec Disables Switching Modelviewer Environments


_mu110_

Recommended Posts

Using the autoexec code below seems to disable the environments slider, deleting it returns the original functionality, so I know it has something to do with this. Anyone know what code do I need to add in order to get this feature working again?

 

mount_vfs_liveries_path ("C:/Users/felix/Saved Games/DCS.openbeta/Liveries/")
mount_vfs_textures_path ("D:/DCS World OpenBeta/CoreMods/aircraft/FA-18C/Textures/FA-18C")

Link to comment
Share on other sites

Maybe:

function scan_for_environment_cubes(path)
local lower_case = path:lower()	
for file in lfs.dir(path) do
	if not service_file(file) then
		local fn = path.."/"..file
		local attrMode = lfs.attributes(fn, "mode")
		if attrMode == "file" then
			local ext = string.sub(file,-4) 
			if '.dds' == ext then
				AddEnvironmentMap(file)
			end
		end
	end
end
end

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

  • Recently Browsing   0 members

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