tgibson
Resource contributor
- Messages
- 11,338
- Country
Hi,
I am working on getting some modeldef.xml entries working properly, and am wondering if there is a way to refresh (i.e. force) the reading of the SDK modeldef file when I've made changes to it and apply it to the currently loaded aircraft? I don't like editing the one in MCX since it's not the "real" one and my changes will not be reflected in the modeldef.xml file in the SDK folder.
Also, it appears that when you load a plane after editing the modeldef file, the aircraft loses those edited definitions and the part gets assigned a custom_vis_XXXX visibility instead of the new one from the SDK modeldef file. This is annoying since each time I edit the modeldef file and load a plane I have to change those assignments back from the custom_vis to the correct modeldef assignments. It would be nice that if there is a definition existing in the modeldef file MCX would use that one instead of creating one of its own.
And even if I edit the MCX modeldef file (and then go out of Edit Mode and close the Editor), the changes are not reflected in the plane that I Export. The only way I've found to change definitions are:
1. Import the plane into MCX.
2. Change the definition you want to edit to something not used on this plane. I use fly_wheel since it's easy to find. In my case I changed the c_wheel definition to fly_wheel (there is only one c_wheel in this plane)
3. Export the plane.
4. Edit the SDK modeldef.xml file and save it. In this case it appears that the c_wheel definition in the FSX SP2 SDK is incorrect, and had to be edited to operate properly.
5. Import the plane again.
6. Search for fly, and change that definition back to c_wheel. The edited definition is now loaded.
7. Export the plane again, and the new definition now allows the wheel to turn to the right (it didn't before).
Thanks,
I am working on getting some modeldef.xml entries working properly, and am wondering if there is a way to refresh (i.e. force) the reading of the SDK modeldef file when I've made changes to it and apply it to the currently loaded aircraft? I don't like editing the one in MCX since it's not the "real" one and my changes will not be reflected in the modeldef.xml file in the SDK folder.
Also, it appears that when you load a plane after editing the modeldef file, the aircraft loses those edited definitions and the part gets assigned a custom_vis_XXXX visibility instead of the new one from the SDK modeldef file. This is annoying since each time I edit the modeldef file and load a plane I have to change those assignments back from the custom_vis to the correct modeldef assignments. It would be nice that if there is a definition existing in the modeldef file MCX would use that one instead of creating one of its own.
And even if I edit the MCX modeldef file (and then go out of Edit Mode and close the Editor), the changes are not reflected in the plane that I Export. The only way I've found to change definitions are:
1. Import the plane into MCX.
2. Change the definition you want to edit to something not used on this plane. I use fly_wheel since it's easy to find. In my case I changed the c_wheel definition to fly_wheel (there is only one c_wheel in this plane)
3. Export the plane.
4. Edit the SDK modeldef.xml file and save it. In this case it appears that the c_wheel definition in the FSX SP2 SDK is incorrect, and had to be edited to operate properly.
5. Import the plane again.
6. Search for fly, and change that definition back to c_wheel. The edited definition is now loaded.
7. Export the plane again, and the new definition now allows the wheel to turn to the right (it didn't before).
Thanks,
Last edited: