Jump to content

ModelViewer: How To Auto-Load Model on Startup


Blaze

Recommended Posts

As a repainter, I always have ModelViewer open, most always on a certain model. Having to load a model every time you start the program and set all of the arguments the way you want, especially when it's the same one every time, can be a pain. You can use the autoexec.lua for ModelViewer to do all of this automatically for you with any model in the game.

 

In the "Config\ModelViewer" folder, you find autoexec.lua. You can open it with Notepad ++ and in the file you will find several example lines.

 

--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)

LoadModel tells the program which model to load on startup. LoadLivery tells what folder in the "Bazar\Liveries" directory to open, and which livery in that folder to use. SetArgument is self explanatory: first number is argument, second is key frame for that argument (-1.00 to 1.00). There are also mount_vfs_texture_path and mount_vfs_liveries_path lines which tell the program to force-load texture or livery directories on startup.

 

Use these as a template to make your own auto-load (just delete the -- at the beginning of each line). Saves a lot of time, especially if you are a repainter. I've also uploaded my edited autoexec.lua as an example for those interested. In my file, I have the P-51 with Bare Metal load by default, with gear down, flaps down, canopy open, oil and coolant doors open, rocket pylons hidden and propeller static.

 

So when I load up the program, I get this:

 

Click for full-res.

VnGYfl.jpg

 

Blaze

autoexec.lua


Edited by Blaze
  • Like 1

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

For those interested: There's more, but I'm already in the hundreds. 'whoof'

 

Tail Wheel
0 - Lower & Raise
1 - Compression
2 - Direction
76 - Wheel Spin

Gear Strut & Door
3 - Right Lower & Raise
5 - Left Lower & Raise
4 - Right Compression
6 - Left Compression

Flaps
9 - Left Extend & Raise
10 - Right Extend & Raise

Ailerons
11 - Right Up & Down
12 - Left Up & Down

Stabilizers
15 - Up & Down

Rudder
17 - Left & Right

Canopy
38 - Eject / Slide
65 - Damage

Pilot
19 - Head Left & Right
50 - In or Out
99 - Head Up &  Down

3d Model
81 - Tail Section

https://magnitude-3.com/

https://www.facebook.com/magnitude3llc

https://www.youtube.com/@magnitude_3

i9 13900K, 128GB RAM, RTX 4090, Win10Pro, 2 x 2TB SSD

i9 10980XE, 128GB RAM, RTX 3090Ti, Win10 Pro, 2 x 256GB SSD, 4 x 512GB SSD RAID 0, 6 x 4TB HDD RAID 6, 9361-8i RAID Controller

i7 4960X, 64GB RAM, GTX Titan X Black, Win10 Pro, 512GB PCIe SSD, 2 x 256GB SSD

Link to comment
Share on other sites

Yeah, you could go on, but I just auto-loaded the animations relevant for making new textures.

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

Wow.. I had no idea.. I was wondering what the animations did because all mine did was lower the tailwheel.. So does this mean that now I can load my skins from the liveries folder directly ..?

 

Unzip and put this batch file in your main folder, then run ModelViewer from it.
I am assuming you mean your main DCS folder yes?
Edited by Bearcat

[sIGPIC][/sIGPIC]

AMD Fx-8350 | ASUS M5A99X EVO | EVGA 1050G PS | Corsair Force 3 240GSSD

Samsung 840 EVO 500G SSD | 32G Corsair Vengance DDR3 | Seagate 1TB 7200RPMHD

WD 2TB 7200 RPMHD XFX DD FX-HD 7870 2GB DDR5 | SB Xi-Fi APU | W7 U | TIR3

MSFFB2 | Saitek X-52|SaitekPro Pedals | Logitech Z-640 5.1 | ASUS VE248 24" LCD

Link to comment
Share on other sites

Correct, and yes. In ModelViewer go to "View-Dialogs-Show Liveries Dialog", you can then choose P-51 and any liveries you have in that folder.

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

All this time I couldn't get this thing to do right because... I never knew there was a model viewer in the main folder... :doh:

 

I kept using the offline one ... :megalol:

 

Now it all makes sense.

[sIGPIC][/sIGPIC]

AMD Fx-8350 | ASUS M5A99X EVO | EVGA 1050G PS | Corsair Force 3 240GSSD

Samsung 840 EVO 500G SSD | 32G Corsair Vengance DDR3 | Seagate 1TB 7200RPMHD

WD 2TB 7200 RPMHD XFX DD FX-HD 7870 2GB DDR5 | SB Xi-Fi APU | W7 U | TIR3

MSFFB2 | Saitek X-52|SaitekPro Pedals | Logitech Z-640 5.1 | ASUS VE248 24" LCD

Link to comment
Share on other sites

  • 2 years later...
For those interested: There's more, but I'm already in the hundreds. 'whoof'

 

Tail Wheel
0 - Lower & Raise
1 - Compression
2 - Direction
76 - Wheel Spin

Gear Strut & Door
3 - Right Lower & Raise
5 - Left Lower & Raise
4 - Right Compression
6 - Left Compression

Flaps
9 - Left Extend & Raise
10 - Right Extend & Raise

Ailerons
11 - Right Up & Down
12 - Left Up & Down

Stabilizers
15 - Up & Down

Rudder
17 - Left & Right

Canopy
38 - Eject / Slide
65 - Damage

Pilot
19 - Head Left & Right
50 - In or Out
99 - Head Up &  Down

3d Model
81 - Tail Section

 

What is this exactly? :helpsmilie:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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