Jump to content

Model Viewer will not display liveries under Saved Games (1.5.8/2.2.0)


Recommended Posts

When trying to view a livery in the Model Viewer for either 1.5.8 OpenBeta or 2.2.0 OpenAlpha, I cannot view liveries stored under Saved Games. The Saved Games path has been added to the autoexec, the latest default changes to the autoexec have been incorporated, and the liveries under Saved Games display in the Liveries dialog box. However, when selecting the liveries in Saved Games, selecting Load Livery does not do anything. The liveries work when added to the main DCS World folder (e.g. Bazar or CoreMods), but not for Saved Games as has worked in the past.

Link to comment
Share on other sites

Now the bug is confirmed in the release version.

 

FYI, here's my autoexec (with my screen name omitted for security)

 

--autoexecute sample for model viewer
mount_vfs_liveries_path("C:/Users/<username>/Saved Games/DCS/Liveries")	--added by HF



local lfs = require("lfs")
local function service_file(file)
return file == "." or
	   file == ".." or 
	   file == ".svn" or 
	   file == "_svn" 
end

function scan_for_textures(path)
local lower_case      = path:lower()
if lower_case:find("liveries") then
   mount_vfs_liveries_path(path)
   return
end
local is_texture_path  = lower_case:find("texture") ~= nil
local mounted_already  = false 
for file in lfs.dir(path) do
	if not service_file(file) then
	   local fn 	  = path.."/"..file
	   local attr 	  = lfs.attributes (fn)     
	   if attr.mode	 == "directory" then
		  scan_for_textures(fn)
	   elseif is_texture_path then
		  local ext = string.sub(file,-4)
		  if '.zip' == ext then
				mount_vfs_texture_path(fn)
		  elseif not mounted_already and (
			 '.dds' == ext or
		     '.bmp' == ext or
			 '.jpg' == ext or
			 '.png' == ext or
			 '.tga' == ext) then
				mount_vfs_texture_path(path)
				mounted_already = true
		  end
	   end
	end
end
end

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 attr = lfs.attributes(fn)
		if attr.mode == "file" then
			local ext = string.sub(file,-4) 
			if '.dds' == ext then
				AddEnvironmentMap(file)
			end
		end
	end
end
end

print("----------------------------------------------------------------")
print("scan for textures and liveries")
scan_for_textures("CoreMods")
print("----------------------------------------------------------------")
scan_for_textures("Mods")
scan_for_environment_cubes("Bazar/EffectViewer/envcubes")
scan_for_textures("C:/Users/<username>/Saved Games/DCS/Textures")	--added by HF

print("scan done")
print("----------------------------------------------------------------")

LoadModel("CoreMods/aircraft/AV8BNA/Shapes/AV8BNA.edm")
LoadLivery("AV8BNA","Black Veal Squadron")

Link to comment
Share on other sites

Issue is still present in 1.5.8.12823.

 

I get that this isn't a showstopper issue, but for skinners who like to periodically check their work for necessary updates, the workaround is not worth the trouble. At least an acknowledgement of the bug and its priority would be a great start.

Link to comment
Share on other sites

  • 2 months later...
Now the bug is confirmed in the release version.

 

FYI, here's my autoexec (with my screen name omitted for security)

 

--autoexecute sample for model viewer
mount_vfs_liveries_path("C:/Users/<username>/Saved Games/DCS/Liveries")	--added by HF



local lfs = require("lfs")
local function service_file(file)
return file == "." or
	   file == ".." or 
	   file == ".svn" or 
	   file == "_svn" 
end

function scan_for_textures(path)
local lower_case      = path:lower()
if lower_case:find("liveries") then
   mount_vfs_liveries_path(path)
   return
end
local is_texture_path  = lower_case:find("texture") ~= nil
local mounted_already  = false 
for file in lfs.dir(path) do
	if not service_file(file) then
	   local fn 	  = path.."/"..file
	   local attr 	  = lfs.attributes (fn)     
	   if attr.mode	 == "directory" then
		  scan_for_textures(fn)
	   elseif is_texture_path then
		  local ext = string.sub(file,-4)
		  if '.zip' == ext then
				mount_vfs_texture_path(fn)
		  elseif not mounted_already and (
			 '.dds' == ext or
		     '.bmp' == ext or
			 '.jpg' == ext or
			 '.png' == ext or
			 '.tga' == ext) then
				mount_vfs_texture_path(path)
				mounted_already = true
		  end
	   end
	end
end
end

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 attr = lfs.attributes(fn)
		if attr.mode == "file" then
			local ext = string.sub(file,-4) 
			if '.dds' == ext then
				AddEnvironmentMap(file)
			end
		end
	end
end
end

print("----------------------------------------------------------------")
print("scan for textures and liveries")
scan_for_textures("CoreMods")
print("----------------------------------------------------------------")
scan_for_textures("Mods")
scan_for_environment_cubes("Bazar/EffectViewer/envcubes")
scan_for_textures("C:/Users/<username>/Saved Games/DCS/Textures")	--added by HF

print("scan done")
print("----------------------------------------------------------------")

LoadModel("CoreMods/aircraft/AV8BNA/Shapes/AV8BNA.edm")
LoadLivery("AV8BNA","Black Veal Squadron")

 

Move:

mount_vfs_liveries_path("C:/Users/<username>/Saved Games/DCS/Liveries")	--added by HF

 

to the bottom, just above the:

LoadModel("CoreMods/aircraft/AV8BNA/Shapes/AV8BNA.edm")

 

 

 

 

My AUTOEXEC:

--autoexecute sample for model viewer
--mount_vfs_liveries_path("Mods/aircrafts/Wunderluft/Liveries")
--mount_vfs_texture_path("Mods/aircrafts/Wunderluft/Textures/base_zip_package")

--LoadModel("Bazar/World/Shapes/A-10.edm")
--LoadLivery("A-10C","184th FS Arkansas ANG, Fort Smith (FS)")
--SetArgument(0,1)
--SetArgument(3,1)
--SetArgument(5,0.75)

local lfs = require("lfs")
local function service_file(file)
return file == "." or
	   file == ".." or 
	   file == ".svn" or 
	   file == "_svn" 
end

function scan_for_textures(path)
local lower_case      = path:lower()
if lower_case:find("liveries") then
   mount_vfs_liveries_path(path)
   return
end
local is_texture_path  = lower_case:find("texture") ~= nil
local mounted_already  = false 
for file in lfs.dir(path) do
	if not service_file(file) then
	   local fn 	  = path.."/"..file
	   local attr 	  = lfs.attributes (fn)     
	   if attr.mode	 == "directory" then
		  scan_for_textures(fn)
	   elseif is_texture_path then
		  local ext = string.sub(file,-4)
		  if '.zip' == ext then
				mount_vfs_texture_path(fn)
		  elseif not mounted_already and (
			 '.dds' == ext or
		     '.bmp' == ext or
			 '.jpg' == ext or
			 '.png' == ext or
			 '.tga' == ext) then
				mount_vfs_texture_path(path)
				mounted_already = true
		  end
	   end
	end
end
end

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 attr = lfs.attributes(fn)
		if attr.mode == "file" then
			local ext = string.sub(file,-4) 
			if '.dds' == ext then
				AddEnvironmentMap(file)
			end
		end
	end
end
end

print("----------------------------------------------------------------")
print("scan for textures and liveries")
scan_for_textures("CoreMods")
print("----------------------------------------------------------------")
scan_for_textures("Mods")
scan_for_environment_cubes("Bazar/EffectViewer/envcubes")
print("scan done")
print("----------------------------------------------------------------")

mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_F-18E")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_F-18F")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_F-18G")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_F-18EFG")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_Pilots")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Textures/Common_Stores")
mount_vfs_texture_path  ("D:/3D Studio Projects/DCS MOD WORK/SU-30MKI/Textures/")
mount_vfs_texture_path  ("D:/3D Studio Projects/DCS MOD WORK/SU-30MKI/Textures - New/")
mount_vfs_texture_path  ("D:/3D Studio Projects/DCS MOD WORK/SU-30MKI/Textures - PBR/")
mount_vfs_texture_path  ("D:/3D Studio Projects/DCS MOD WORK/SU-30MKI/Textures - REVAMP/")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/A-4E-C/Textures/")
mount_vfs_texture_path  ("H:/Eagle Dynamics/DCS.Aircraft/P-51C/Textures/")

mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Liveries")
mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Aircraft/Su-30MK Family/Liveries")
mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Aircraft/A-4E-C/Liveries")
mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Aircraft/P-51C/Liveries")

mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Liveries/")

LoadModel("H:/Eagle Dynamics/DCS.Aircraft/Super Hornets/Shapes/Aircraft/F_18E_Super_Hornet.EDM")
LoadLivery("F_18E_Super_Hornet","TPS ROUGHMET UNIQUE")
--("MODEL NAME","LIVERY FOLDER NAME")


Edited by SkateZilla

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill,

X470 Taichi Ultimate, R7970 Lightning @ 1.2 / 6 GHz Memory

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

Link to comment
Share on other sites

Thanks, Skate.

 

Additionally, the trailing slash in the mount_vfs_liveries_path line makes all the difference as well.

 

mount_vfs_liveries_path ("H:/Eagle Dynamics/DCS.Liveries/")

 

Who would have thought? Now I can start batch-updating my skins for 2.5! :thumbup:

Link to comment
Share on other sites

  • 2 months later...
 Share

  • Recently Browsing   0 members

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