TasDozer Posted April 10, 2024 Posted April 10, 2024 (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, 2024 by TasDozer 1
Raptorattacker Posted April 11, 2024 Posted April 11, 2024 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...
TasDozer Posted April 11, 2024 Author Posted April 11, 2024 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
TasDozer Posted April 22, 2024 Author Posted April 22, 2024 I've updated the first post with how to use ModelViewer with the Saved Games folder 2
Rudel_chw Posted April 22, 2024 Posted April 22, 2024 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 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Sithos Posted June 27, 2024 Posted June 27, 2024 Thank you Mate - works Great ! greetings Marcus ___________________________________________________________________ Member of vFS "F-16 Viper Club" | a F-16 (Only) Squadron ... and "other Sim" Pilot since 2005
VZ_342 Posted August 5, 2024 Posted August 5, 2024 I just opened the Model Viewer "2.0" and there's a message saying ST is "deprecated" and to use MT. I do use MT, how do I let the viewer know this?
Cydrych Posted August 6, 2024 Posted August 6, 2024 3 hours ago, VZ_342 said: I just opened the Model Viewer "2.0" and there's a message saying ST is "deprecated" and to use MT. I do use MT, how do I let the viewer know this? Use the .exe in the bin-mt folder.
Snacko Posted December 9, 2024 Posted December 9, 2024 This is great! I'm just using it to browse through the skins in my Livery, and delete redundant and other skins to reduce the folder's size. Snack Officer Intel I9-10850K (OC @ 5.0ghz) │ 64GB (4x16GB) DDR4 3200 │Gigabyte RTX 4090 Gaming OC 24gb - ҉ - Blackshark Cockpit Trainer - ҉ - ♣ Thread | ♥ Download
Recommended Posts