Christian Bahr
Resource contributor
- Messages
- 971
- Country
Hello!
This is my first "serious" attempt to build a car:
Chevrolet Suburban 2015er
Everything works so far good. The doors can be opened via clickspots (mouse rectangle), the lights can be operated using the standard keyboard layout and the car is now stable. Before that, he tipped over when braking at moderate speed in the corner. Well, that has been a lot of fun and the instructions here in the FSDeveloper Forum are very first class. The very best thanks for all the dedicated developers!
So far so good ...
But now I can not continue at one point. As the title of the post suggests, it is about self-defined code to tag the 4 doors, bonnet and tailgate. Clickspots on the doors, bonnet and tailgate were attached:
The clickspots of the doors work perfectly, the exporter does not report any errors ...
Each door has 2 clickspots, they work on the exterior and interior model.
Unfortunately, I only get the 4 doors tagged and animated, but not the bonnet and the tailgate. The settings in the aircrafts.cfg look like this:
[exits]
number_of_exits = 6
exit_rate.0 = 1
exit_rate.1 = 1
exit_rate.2 = 1
exit_rate.3 = 1
exit_rate.4 = 1
exit_rate.5 = 1
The slightly modified original code of ModelDef.xml looks like this:
The bonnet and the tailgate are to be assigned door 5 and door 6. If you click on a clickspot, then they should open or close.
The question: Can you even define a 6-door code in the ModelDef.xml that can tag the bonnet and tailgate and animate in the sim? Is that technically possible?
This is my first "serious" attempt to build a car:
Chevrolet Suburban 2015er
Everything works so far good. The doors can be opened via clickspots (mouse rectangle), the lights can be operated using the standard keyboard layout and the car is now stable. Before that, he tipped over when braking at moderate speed in the corner. Well, that has been a lot of fun and the instructions here in the FSDeveloper Forum are very first class. The very best thanks for all the dedicated developers!
So far so good ...
But now I can not continue at one point. As the title of the post suggests, it is about self-defined code to tag the 4 doors, bonnet and tailgate. Clickspots on the doors, bonnet and tailgate were attached:
The clickspots of the doors work perfectly, the exporter does not report any errors ...
Each door has 2 clickspots, they work on the exterior and interior model.
Unfortunately, I only get the 4 doors tagged and animated, but not the bonnet and the tailgate. The settings in the aircrafts.cfg look like this:
[exits]
number_of_exits = 6
exit_rate.0 = 1
exit_rate.1 = 1
exit_rate.2 = 1
exit_rate.3 = 1
exit_rate.4 = 1
exit_rate.5 = 1
The slightly modified original code of ModelDef.xml looks like this:
Code:
<!-- Chevrolet Suburban -->
<Animation name="chevrolet_door_0" guid="FF5ED86C-B114-4924-B5C9-163A99042F12" typeparam2="chevrolet_door_0" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_door_1" guid="AA57E6F3-93D9-470e-A7DA-5878A033D923" typeparam2="chevrolet_door_1" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_door_2" guid="BB2A41F8-EA1E-4b17-B987-84A45A75B834" typeparam2="chevrolet_door_2" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_door_3" guid="EE79AF88-3ADF-475a-BB65-19A61B262645" typeparam2="chevrolet_door_3" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_door_4" guid="652A4188-EADE-4b19-B987-84A95A75B834" typeparam2="chevrolet_door_4" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_door_5" guid="2179AF55-3AED-4759-BB65-19A619262645" typeparam2="chevrolet_door_5" typeparam="AutoPlay" length="100" type="Sim" typeParam="AutoPlay" />
<Animation name="chevrolet_lever_exit_open1" guid="13C22F8B-F3D0-4912-7766-5F349266AC71" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open1" />
<Animation name="chevrolet_lever_exit_open2" guid="13C22F8C-F3D0-4912-6677-5F349266AC72" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open2" />
<Animation name="chevrolet_lever_exit_open3" guid="23C22F8B-F3D0-4912-4455-5F349266AC73" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open3" />
<Animation name="chevrolet_lever_exit_open4" guid="33C22F8C-F3D0-4912-5544-5F349266AC74" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open4" />
<Animation name="chevrolet_lever_exit_open5" guid="73C22F8B-F3D0-1212-2222-5F349266BABA" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open5" />
<Animation name="chevrolet_lever_exit_open6" guid="83C22F8C-F3D0-4112-1111-5F349266ABAB" type="Sim" typeParam="AutoPlay" length="50" typeParam2="chevrolet_lever_exit_open6" />
<PartInfo>
<Name>chevrolet_door_0</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:0</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_door_1</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:1</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_door_2</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:2</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_door_3</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:3</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_door_4</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:4</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_door_5</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>EXIT OPEN:5</Variable>
<Units>percent</Units>
</Sim>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open1</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>1 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_1</TooltipID>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open2</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>2 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_2</TooltipID>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open3</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>3 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_3</TooltipID>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open4</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>4 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_4</TooltipID>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open5</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>5 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_5</TooltipID>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>chevrolet_lever_exit_open6</Name>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>6 (>K:TOGGLE_AIRCRAFT_EXIT)</CallbackCode>
<TooltipID>TOOLTIPTEXT_EXIT_DOOR_OPEN_6</TooltipID>
</MouseRect>
</PartInfo>
<!-- Chevrolet Suburban -->
The bonnet and the tailgate are to be assigned door 5 and door 6. If you click on a clickspot, then they should open or close.
The question: Can you even define a 6-door code in the ModelDef.xml that can tag the bonnet and tailgate and animate in the sim? Is that technically possible?