MP Fallback models: Difference between revisions
Jump to navigation
Jump to search
m (Johan G moved page MP Fallback Models to MP Fallback models: Non camel case title) |
(+ See also: Howto:Animate models, forum topic and developer mailing list threads) |
||
Line 36: | Line 36: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | |||
* [[Howto:Animate models]] | |||
== External links == | |||
=== Forum topics === | |||
* [https://forum.flightgear.org/viewtopic.php?f=4&t=34572 Fallback models for MP] | |||
=== Mailing list treads === | |||
* [https://sourceforge.net/p/flightgear/mailman/message/36378050/ <nowiki>[</nowiki>Flightgear-devel<nowiki>]</nowiki> Fallback models for AI] | |||
* [https://sourceforge.net/p/flightgear/mailman/flightgear-devel/thread/CAP3ntyu6kRfEBKd%2B0jen4wDRs9yq%3DJe10XVNhV75%3DN3bCJYg2A%40mail.gmail.com/#msg36335571 <nowiki>[</nowiki>Flightgear-devel<nowiki>]</nowiki> LoD for MP Models] | |||
[[Category:Aircraft enhancement]] | [[Category:Aircraft enhancement]] |
Revision as of 15:01, 29 July 2018
MP Fallback models allow an aircraft developer to set what aircraft model be used to render their aircraft over MP if a user doesn't have their aircraft installed.
Using a fallback model with your aircraft
To make use of this feature, simply set /sim/model/fallback-model-index in the aircraft-set.xml file to one of the indexes in /AI/Aircraft/fallback_models.xml.
This is then transmitted over the MP system and used by other clients.
For example;
<sim>
<model>
<fallback-model-index>6</fallback-model-index>
...
will use the Cub model, as index 6 refers to it in fallback_models.xml:
<PropertyList>
<!-- Default aircraft. Will also be used if an AI model is not found -->
<model n="0" type="string">/Models/Geometry/glider.ac</model>
<!-- 1-50 Single engine GA aircraft -->
<model n="1" type="string">AI/Aircraft/c172/c-fgfs.xml</model>
<model n="2" type="string">AI/Aircraft/c177/c177-g-brdo.xml</model>
<model n="3" type="string">AI/Aircraft/c182/Models/c182-ai.xml</model>
<model n="4" type="string">AI/Aircraft/c182rg/Models/c182rg-ai.xml</model>
<model n="5" type="string">AI/Aircraft/Cessna208Caravan/Models/Cessna208-ai.xml</model>
<model n="6" type="string">AI/Aircraft/Cub/Models/Cub-ai.xml</model>
...
</PropertyList>