YSFlight addon development, questions, tutorials, & more!
- Posts: 3602
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 668 times
- Been thanked: 1443 times
So with the MRJ aircraft recently highlighted in the Spying on Other Addons topic, I noticed a few things.
(1) DNMs can be made by listing a filepath for the appropriate SRFs.
Code: Select all
STA 0.0000 0.0000 0.0000 0 0 0 1
POS 0.0000 0.0000 0.0000 0 0 0 1
CNT 0.0000 0.0000 0.0000
Parent Child relationships can be controlled by this line in the code for each SRF:
This has the potential to create really low-file size models as most parts are identical on aircraft with different paint schemes.
The MRJ aircraft have a DNM filesize of 12kb for a 14000 vertex aircraft which exported normally from blender is 1.4 mb. All said the four models have a total file size of 4.6 mb which comes to 1.15mb per aircraft. For a larger pack this would result in dramatic savings. For an additional aircraft would drop to 1mb per 14k of vertices. While the 767 may be a bit complicated for something like this, I believe it would be worth attempting for such savings! It appears that it would relatively simply and require the removal of the SRF section of the DNM file which would be replaced with a filepath in the FIL line of the CLA and STA definition section for that SRF.
- First Class Membership
- Posts: 3873
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1647 times
- Been thanked: 1749 times
decaff_42 wrote:FIL parts/body_ANA.srf
I've been using a similar system for a while with things like logos and lights, only I leave them in the same folder as the .dnm/.dat/etc. I learned that trick from GAC. I've never used it for things like gear, but I have used it for props once or twice. It's really great if you want to modify the same part identically for multiple aircraft without having to do a lot of copy/paste work.
Users browsing this forum: No registered users and 4 guests