Board index FlightGear Development

[Fix] Colliding with the A330-MRTT AI tanker cause "crashes"

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

[Fix] Colliding with the A330-MRTT AI tanker cause "crashes"

Postby Johan G » Sat May 30, 2015 12:12 am

I have often been frustrated about that I sometimes crash into the A330-MRTT AI tanker when I am practicing air-to-air refueling.

Considering that it is difficult enough without it, and that you can not crash by colliding with multiplayer aircraft this should change.

I used to reset FlightGear afterwards, but recently I found the property "/sim/crashed" (bool) which can be set to "false" through the property browser. Though I would still have to fly ahead to the tanker and join again.

I have traced this down to that only the drogue and hose have the <enable-hot> animation set to "false"; the rest of the aircraft implicitly is set to "true" and touching those objects will "crash" FlightGear (as in set "/sim/crashed" to "true" thus freezing the simulation).


Adding the following should fix it (seem to work for me):

To fgdata/AI/Aircraft/A330-MRTT/Models/A330-MRTT.xml:
Code: Select all
  <animation>
    <object-name>Cylinder.006</object-name>

    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>ailes2</object-name>
    <object-name>derive</object-name>
    <object-name>moteurs</object-name>
    <object-name>repports</object-name>
    <object-name>supports</object-name>
    <object-name>echappes</object-name>

    <object-name>trous</object-name>
    <object-name>perche1</object-name>
    <object-name>perche2</object-name>
   
    <object-name>vitres</object-name>
    <enable-hot>false</enable-hot>
  </animation>


To fgdata/AI/Aircraft/A330-MRTT/Models/refueling/probe.xml ("refueling-drogue" is already there):
Code: Select all
  <animation>
    <object-name>pod-left</object-name>
    <object-name>pod-right</object-name>
    <object-name>refueling-drogue</object-name>
    <enable-hot>false</enable-hot>
  </animation>


To fgdata/AI/Aircraft/A330-MRTT/Models/refueling/refueling.xml ("refueling-drogue" is already there):
Code: Select all
  <animation>
    <object-name>pod-left</object-name>
    <object-name>pod-right</object-name>
    <object-name>refueling-drogue</object-name>
    <enable-hot>false</enable-hot>
  </animation>
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby AndersG » Sat May 30, 2015 8:18 am

I think you could set the whole thing to uncollidable by just adding
Code: Select all
  <animation>
    <enable-hot>false</enable-hot>
  </animation>

in the top-level file (fgdata/AI/Aircraft/A330-MRTT/Models/A330-MRTT.xml?).

Animations without <object-name> applies to the whole XML file they are in.
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2442
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby Johan G » Sun May 31, 2015 8:00 pm

Thanks! That was a neat way to do it. Testing it, it worked exactly as explained. Thanks again. :D

Now, which place would be most effective to ask for it to be fixed before next release: Here, the developer list or the issue tracker?
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby Johan G » Fri Jun 05, 2015 9:38 am

Bump
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby AndersG » Fri Jun 05, 2015 11:58 am

Johan G wrote in Sun May 31, 2015 8:00 pm:Thanks! That was a neat way to do it. Testing it, it worked exactly as explained. Thanks again. :D

Now, which place would be most effective to ask for it to be fixed before next release: Here, the developer list or the issue tracker?


The developer list or perhaps the issue tracker. A request here is less likely to find its recipient.
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2442
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby Johan G » Fri Jun 05, 2015 12:19 pm

Sent off a mail to the developer list, though without first registering to it. It is now awaiting moderation. Subject line is "Fix for crashing into the A330-MRTT AI tanker".
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby helijah » Sun Jun 07, 2015 8:06 pm

hum.... And of course no one takes the time to check who the author of this model? Yet I have left a Readme.txt in with my email address in the "A330-MRTT" folder.

A simple email to this address with your changes and I'll update almost immediatly

Regards Emmanuel

P.S. And yes sorry, but the A330 MRTT, is one of my creations (especially created for the Mirage 2000-5)
Some planes (and other) for FlightGear
http://helijah.free.fr
and
http://embaranger.free.fr
User avatar
helijah
 
Posts: 1029
Joined: Wed Dec 27, 2006 12:35 pm
Location: Chartres (France)
Callsign: helijah
IRC name: helijah
Version: GIT
OS: GNU/Linux

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby Johan G » Mon Jun 08, 2015 1:14 pm

helijah wrote in Sun Jun 07, 2015 8:06 pm:...no one takes the time to check who the author of this model? Yet I have left a Readme.txt in with my email address in the "A330-MRTT" folder.

A simple email to this address with your changes and I'll update almost immediatly

Ah. I should have known better. My apologies. :oops:

Edit: I notice Torsten Dreyer already applied a change, commit e74da4, but I take the blame for that, as I should have looked for the maintainer. :oops:
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby jano » Mon Jun 08, 2015 2:32 pm

I don't really see what was bad with the A330-MRTT, except that you need to adjust your speed to never collide the plane :), iirc all the refueling models are solid, except for the refueling parts, so yes if you collide, you're dead, as in real flight :D but this has never been a real problem.
for the mp planes it's a bit different, as they can surge / stop depending lag and jitter values, and once we tried to make them solid, and the refuelings were very dangerous :D
Now that the whole plane is non solid, i wont ask for a revert, but i just find it was a bit more interesting to have a collision risk when refueling 8)
jano
jano
 
Posts: 176
Joined: Thu Nov 29, 2007 11:32 pm
Location: france
Callsign: jano
Version: git
OS: debian SID

Re: [Fix] Colliding with the A330-MRTT AI tanker cause "cras

Postby Johan G » Mon Jun 08, 2015 2:48 pm

Looking at the model xml files you might be right. :|

Caveat: Have not tried ramming them in flight yet though.

Before looking into any of the tankers I expected them all to behave just any multiplayer aircraft.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5513
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit


Return to Development

Who is online

Users browsing this forum: No registered users and 24 guests