TasDozer Posted April 10 Share Posted April 10 (edited) Using Saved Games liveries in ModelViewer To avoid needing to save test iterations of liveries in Program Files and requiring admin permissions/confirmation every time you touch a file, you can modify the ModelViewer config. Find and back up C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Config\ModelViewer\autoexec.lua Insert the following lines: 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 print("----------------------------------------------------------------") print("scan for textures and liveries") print("----------------------------------------------------------------") scan_for_textures("C:/Users/YOUR USER NAME/Saved Games/DCS.openbeta/Liveries") scan_for_textures("C:/Users/YOUR USER NAME/Saved Games/DCS.openbeta/Mods") scan_for_textures("C:/Users/YOUR USER NAME/Saved Games/DCS.openbeta/Coremods") -- original script continues: print("----------------------------------------------------------------") print("scan for environment cubes")... ... ... ... mount_vfs_models_path ("CoreMods/aircraft/FA-18C/animations/models") mount_vfs_texture_path ("CoreMods/aircraft/FA-18C/animations/textures") -- insert after the other mount_vfs calls: mount_vfs_liveries_path ("C:\\Users\\YOUR USER NAME\\Saved Games\\DCS.openbeta\\Liveries") mount_vfs_models_path ("C:\\Users\\YOUR USER NAME\\Saved Games\\DCS.openbeta\\Mods") mount_vfs_textures_path ("C:\\Users\\YOUR USER NAME\\Saved Games\\DCS.openbeta\\Mods") mount_vfs_animations_path ("C:\\Users\\YOUR USER NAME\\Saved Games\\DCS.openbeta\\Mods") Make a copy of the modded autoexec.lua - it will be wiped when DCS updates. Thanks to @Roughmaster for putting this into the DCS Livery Art Group discord Using ModelViewer Launch ModelViewer from <DCS installation folder>/bin-mt/ModelViewer2.exe File > Load Model Open the .lods file for the aircraft, which will either be in: <DCS install>/Bazar/World/Shapes, or <DCS install>/CoreMods/aircraft/<AircraftName>/Shapes Open the liveries tool (Tools > Liveries Tool or Ctrl-L) Your Saved Games liveries should be visible - double-click to load a livery Tools > Reload Textures to apply any changes to the textures Original post: Hi folks, Can someone tell me how I can use ModelViewer to streamline my livery creation process? This is my current process: create new livery folder in Saved Games/DCS/Liveries with description.lua, various .dds files spat out from the template use Mission Editor to create a mission using the aircraft and the new livery launch the mission and see how the livery looks make tweaks in the template and export new .dds files restart DCS, load the mission, and view the livery again As I've cunningly installed DCS in the default Program Files location so I can't easily put .dds files into the core Liveries location. I'm sure there is a better way but I cannot find any written guides on using ModelViewer - can anyone help me (and future readers of this thread) out? Edited April 22 by TasDozer Link to comment Share on other sites More sharing options...
Raptorattacker Posted April 11 Share Posted April 11 I don't see why you can't put the liveries into the Core Liveries so you can view them without having to go into a Mission? That's what I do and then drop the finished article into the Saved Games when it's finished... Link to comment Share on other sites More sharing options...
TasDozer Posted April 11 Author Share Posted April 11 Yes, that's what I would do, in the mirror universe where I didn't install DCS in the Program Files directory and where I don't need to approve every file change with Windows UAC Link to comment Share on other sites More sharing options...
TasDozer Posted April 22 Author Share Posted April 22 I've updated the first post with how to use ModelViewer with the Saved Games folder 1 Link to comment Share on other sites More sharing options...
Rudel_chw Posted April 22 Share Posted April 22 1 hour ago, TasDozer said: I've updated the first post with how to use ModelViewer with the Saved Games folder thank you … really useful For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600X - 32 GB DDR4 2400 - nVidia GTX1070ti - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar - Oculus Rift CV1 Mobile: iPad Pro 12.9" of 256 GB Link to comment Share on other sites More sharing options...
Recommended Posts