Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
978 connectés 

 

 

 Mot :   Pseudo :  
 
 Page :   1  2  3  4  5  6  7  8  9
Auteur Sujet :

Le Topic de FlightGear, le simulateur de vol open source

n°5585338
elbarto

Transactions (0)
Posté le 18-07-2008 à 01:55:07  profilanswer
 

Reprise du message précédent :
en fait tu renommes ton fichier actuel "js0.xml" en "js0.xml.old"
 
puis ensuite tu recuperes le fichier ""sidewinder-force-feed2.xml" présent dans \FlightGear\Input\Joysticks\Microsoft , tu le copies dans le dossier \bin\win32 et tu renommes ce fichier en "js0.xml"  
 
ensuite ton joystick devrait fonctionner directement avec peut-être déjà la rotation et le bouton  
 
mais ensuite je peux pas t'en dire plus sur la manière de configurer le fichier, normalement par défaut ça doit être Ok, sinon pour le chapeau chinois ça doit être la partie "Hat Switch" dans le fichier,
 
normalement il y a un utilitaire en ligne de commande dans flightgear pour aider au paramétrage du joystick ( le fichier fgjs.exe ) mais il est buggé  
 
enfin pour forcer une résolution d'écran essaie de cliquer sur le bouton "advanced" dans Fgrun, puis à la rubrique "rendering" tu peux forcer la résolution en mettant 1440x900 dans la case "geometry"

mood
Publicité
Posté le 18-07-2008 à 01:55:07  profilanswer
 

n°5586226
chripaub

Transactions (0)
Posté le 18-07-2008 à 12:09:07  profilanswer
 

Salut!
J'ai fait ce que tu as dit mais la rotation fonctionne pas et le chapeau chinois non plus par contre le reste (gaz, freins, trims et mouvement du manche) c'est Ok... C'est dommage car c'est ultra simple avec les autres jeux. :sweat:  
Toi tu as quoi comme joystick? Rotation? As tu pu modifier les commandes?
Pour la resolution c'est parfait!
Maintenant je vais lire le manuel de FlightGear traduit en français, peut être ça m'aide!
Voici le lien que tu connais peut-être : http://dmeziere.free.fr/index.php? [...] 9&Itemid=5
Merci


---------------
Mon Feed-back
n°5586247
elbarto

Transactions (0)
Posté le 18-07-2008 à 12:15:57  profilanswer
 

ben j'ai un vieux joystick "Thrustmaster Top gun" qui n'a pas la fonction rotation du manche :D
 
mais pour ton prob c'est surement configurable au niveau du fichier xml, je vais regarder la doc pour voir si ils détaillent la configuration du joystick

n°5586278
elbarto

Transactions (0)
Posté le 18-07-2008 à 12:26:35  profilanswer
 

apparemment voici la section pour la configuration du joystick:
 
http://www.flightgear.org/Docs/get [...] 8-360003.6

n°5586301
elbarto

Transactions (0)
Posté le 18-07-2008 à 12:36:01  profilanswer
 

dans ton fichier xml essaie de reperer cette section:
 

Citation :

<axis>
  <desc>Rudder</desc>
  <number>
   <unix>2</unix>
   <mac>2</mac>
   <windows>3</windows>
  </number>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <offset type="double">0.0</offset>
   <factor type="double">1.0</factor>
   <power type="double">2.0</power>
  </binding>
 </axis>


 
puis dans la partie "<windows>3</windows>" tu mets à la place ""<windows>2</windows>"

n°5586379
chripaub

Transactions (0)
Posté le 18-07-2008 à 13:09:32  profilanswer
 

J'ai remplacé <windows>3</windows> par <windows>2</windows> dans le fichier js0.xml mais tjrs pas de rotation... :sweat:


---------------
Mon Feed-back
n°5586399
elbarto

Transactions (0)
Posté le 18-07-2008 à 13:18:22  profilanswer
 

essaie alors les autres fichiers portant le nom de "sidewinder-fforce-feed", ils marcheront peut-être
 
une autre solution serait d'installer provisoirement la version 0.9 de flightgear et d'utiliser ensuite l'outil "fgjs.exe" qui permet de configurer le joystick, dans cette version 0.9 l'outil n'est pas bugué, ensuite tu recupereras le fichier j0.xml qui sera generé pour le mettre dans le dossier de la version 1.0 de flightgear

n°5586451
TBone
Pouet.
Transactions (0)
Posté le 18-07-2008 à 13:34:07  profilanswer
 

elbarto a écrit :

une autre solution serait d'installer provisoirement la version 0.9 de flightgear et d'utiliser ensuite l'outil "fgjs.exe" qui permet de configurer le joystick, dans cette version 0.9 l'outil n'est pas bugué, ensuite tu recupereras le fichier j0.xml qui sera generé pour le mettre dans le dossier de la version 1.0 de flightgear


une troisième solution me semble meilleure: remonter le problème aux développeurs qui se feront une joie de réparer ça (si ça ne l'est déjà fait dans une version de dev)
 
;)


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°5586891
chripaub

Transactions (0)
Posté le 18-07-2008 à 15:46:57  profilanswer
 

ça fonctionne pas ce que tu proposes mais j'ai pas installé la version 0.9 provisoirement.
Alors je vais essayer avec mon palonnier CH Pro Pedals pour voir vu qu'y a le fichier pro-pedals-usb.xml dans Imputs/Joysticks/CH, comment faire cohabiter avec mon Sidewinder Feed2. J'imagine copier le fichier pro-pedals-usb.xml et le renommer js1.xml puis le mettre dans bin/win32, non?
C'est vraiment la prise de tête pour faire fonctionner correctement. :pfff:


Message édité par chripaub le 18-07-2008 à 15:54:41

---------------
Mon Feed-back
n°5587552
elbarto

Transactions (0)
Posté le 18-07-2008 à 20:38:34  profilanswer
 

tu peux toujours essayer le coup du fichier "js1.xml" pour voir ce que ça donne,
 
de mon coté je vais essayer de recuperer le fgjs.exe de la version 0.9

mood
Publicité
Posté le 18-07-2008 à 20:38:34  profilanswer
 

n°5587677
elbarto

Transactions (0)
Posté le 18-07-2008 à 21:37:28  profilanswer
 

bon voilà j'ai recuperé le fichier fgjs.exe de la version 0.9 qui fonctionne parfaitement:
 
http://demo21.ovh.com/871edc9bb844 [...] P/fgjs.zip
 
tu dézippes le fichier et tu le mets dans le dossier /bin/win32 en écrasant le fichier déjà existant,
 
tu cliques ensuite sur le fichier et tu réponds aux questions, par exemple lorsque la question concernera le "rudder" il suffira alors de tordre le manche et de taper "Y" pour confirmer,
 
pour annuler une affectation à une fonction il suffit soit de cliquer sur un bouton ou bien de pousser le manche ( le programme te dira quoi faire pour annuler une affectation )
 
ensuite le fichier js0.xml sera automatiquement crée

n°5592630
chripaub

Transactions (0)
Posté le 21-07-2008 à 14:56:23  profilanswer
 

Salut!
J'ai fait ce que tu as dit. Sous fgjs, je confirme en tapant "y" quand je tords le manche il a reconnu parfaitement... Mais malheureuseent le rudder ne répondait pas sous FlightGear.
J'ai l'impression que le fichier js0.xml ne sert à rien car je l'ai même supprimé. Les comandes fonctionnaient pareillement sans rudder. Voilà l'impasse! :sweat:  
Merci


---------------
Mon Feed-back
n°5593413
elbarto

Transactions (0)
Posté le 21-07-2008 à 19:51:03  profilanswer
 

essaie de garder quand même ton fichier js0.xml crée par l'utilitaire, ça permettra ensuite de pouvoir le modifier avec un éditeur de texte

 

supprime les autres fichiers jsx.xml

 

le but c'est de mettre un autre nombre pour l'axe du rudder en reperant cette partie:

 
Citation :

<axis n="6">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <dead-band type="double">0.02</dead-band>
   <offset type="double">0.0</offset>
   <factor type="double">1.0</factor>
  </binding>
 </axis>

 

par exemple au lieu le nombre 6 tu en mets un autre jusqu'à ce que cela fonctionne


Message édité par elbarto le 21-07-2008 à 19:57:31
n°5593828
chripaub

Transactions (0)
Posté le 21-07-2008 à 23:39:15  profilanswer
 

J'ai trouvé pourquoi ça marchait pas, dans la barre supérieure de FlightGear->Help->Joystick Information :

Citation :

Joystick#0:"Pilote de manette de jeu PC Mic"
Driver:D/FlightGear/data/imput/joysticks/default/joystick.xml
Used for:"default"

Voilà FlightGear utilisait le fichier joystick.xml par défaut, il faut modifier le chemin pour que le fichier sidewinder-force-feed2.xml soit pris en compte alors comment faire?


---------------
Mon Feed-back
n°5593960
elbarto

Transactions (0)
Posté le 22-07-2008 à 03:26:26  profilanswer
 

je crois avoir trouvé, tu vas dans le repertoire:
 
\FlightGear\data
 
puis tu ouvres le fichier joysticks.xml
 
tu ajoutes la ligne juste avant </PropertyList> :
 
<js-named include="js0.xml"/>
 
puis tu colles le fichier js0.xml dans ce repertoire \FlightGear\data

n°5594313
chripaub

Transactions (0)
Posté le 22-07-2008 à 11:10:34  profilanswer
 

ça marche pas. :sweat:


---------------
Mon Feed-back
n°5594379
elbarto

Transactions (0)
Posté le 22-07-2008 à 11:38:18  profilanswer
 

quand tu vas dans le menu a"help, joystick information" est-ce qu'il t'indique le nouveau fichier ?
 
car chez moi cette manip fonctionne, l'affectation des touches doit alors être respecté
 
vérifie bien que tu as respecté toutes les manips et que tu fais ça dans le bon dossier ( le dossier flightgear/data )

n°5595620
chripaub

Transactions (0)
Posté le 22-07-2008 à 19:05:30  profilanswer
 

Voilà ça a marché. En fait, j'ai ajouté les lignes dans joystick.xml du dossier Imput/Joysticks/Default :

Citation :

<axis n="3">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <power type="double">2</power>
  </binding>
 </axis>

Mais ce que tu as essayé de m'aider, rien n'a marché. Je pensais que les lignes sont incorrects dans sidewinder-force-feed2.xml et joysticks.xml du dossier "data".
Tu peux voir toi-même ci-dessous :
 
Joysticks.xml dans le dossier "data" :

Citation :

<?xml version="1.0"?>
<!--
    To override or add "named" joystick drivers list them in
    <js-named> entries with paths relative to the directory where
    the joysticks.xml file resides (first example). Such "named"
    drivers are only picked up if one of their <name>s matches
    the joystick hardware (see output of the js_demo application).
    These drivers have precedence over already existing drivers
    with the same <name>. (You can also add a <name>default</name>
    entry to the driver to make it the default choice.)
 
    The second example shows how to load a driver directly to
    position 0. This will then be used for the first joystick on
    your system and FlightGear will not overwrite it.
-->
 
<PropertyList>
<!--
    <js-named include="Input/Joysticks/Local/X45-modified.xml"/>
 
    <js n="0" include="Input/Joysticks/Local/joystick_0.xml"/>
-->
</PropertyList>

Et l'autre sidewinder-force-feed2.xml :

Citation :

<?xml version="1.0"?>
<!--
$Id: sidewinder-force-feed2.xml,v 1.4 2007-07-12 22:35:14 mfranz Exp $
 
Note:  This is asimple edit of Melchor Franz Cyborg-Gold-3d-USB.xml file. This Saitek
joystick has the same number of buttons as the MS Sidewinder Force Feedback 2.
_______________________________________ Layout _______________________________________
 
 
axis 0:              aileron
axis 1:              elevator
axis 2:              rudder
axis 3:              throttle
 
 
                     no modifier     K7=B6              K8=B7              K7+K8
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
button 0 (trigger):  brakes          parking brake   speed brake     thrust revers.
button 2 (left):     flaps up        gear up         previous view   *
button 1 (middle):   reset view dir  tail wheel lock cockpit view    reset all trim
button 3 (right):    flaps down      gear down       next view       *
button 4 (K5):       brakes right    *               zoom in         *
button 5 (K6):       brakes left     *               zoom out        *
button 6 (K7):       //////////////////////// modifier 0 /////////////////////////
button 7 (K8):       //////////////////////// modifier 1 /////////////////////////
hat left:            look left       leaner mixture  aileron trim    rudder trim
hat right:           look right      richer mixture  aileron trim    rudder trim
hat back:            look up       dec prop pitch  elevator trim   *
hat forward:         look down         inc prop pitch  elevator trim   *
 
 
K7 and K8 are used like "Shift", "Control", or "Alternate" on computer keyboards.
For example: press K7 and keep holding it down while pressing the fire
button/trigger -> toggle parking brake
 
When flying the Harrier, "K7/hat left" and "right" control the thrust vector.
 
 
 
___________________________________ Customization ____________________________________
 
 
 
If you want to change some (or all) of the bindings, the recommended way is
to copy this file to your home directory, make your changes there, and include
it from your personal preferences.xml file. You can use any number lower than
1000 for n in <js-named n="0">. The lowest takes precedence in case of identical
names. You can include such a preferences.xml file with the ~~config option,
e.g. ~~config=$HOME/.fgfs/preferences.xml, and you can put that ~~config line
into your personal $HOME/.fgfsrc file.
 
<?xml version="1.0"?>
<PropertyList>
    <input>
        <js-named n="100">
            <joysticks include="your-modified-copy.xml"/>
        </js-named>
    </input>
</PropertyList>
 
 
The property "/input/joysticks/js[0]/data/modifier" indicates the "shift" level.
K7 sets bit 0, K8 sets bit 1. The property is zero if none of the shift buttons
is pressed, 1 if K7 is pressed, 2 if K8 is pressed, and 3 if both K7 and K8 are
pressed.
 
Note that you have to enclose nasal scripts in <script><![CDATA[...]]></script>
if they contain characters that interfere with the xml markup. This is the case
if you are, for example, using < (lower than). Alternatively, you can 'escape'
the character with "&lt;".
 
Also note that all nasal code shares a common namespace, so it's possible to set
a variable in one nasal binding, and to read it in another.
 
 
 
____________________________________ References ______________________________________
 
 
 
Joysticks:      $FG_ROOT/Docs/README.Joystick.html
Properties:     see property browser (fgfs menu: "File"->"Browse internal properties" )
 
Nasal:          http://www.plausible.org/nasal/
Nasal examples: $FG_ROOT/Nasal/
 
 
______________________________________________________________________________________
 
                                                 ~~ Melchior FRANZ <mfranz # aon : at>
    This MS Sidewinder Force Feedback 2 xml is a straight forward edit by Dave Perry
    of the Saitek Cyborg-Gold-3d-USB.xml file written by Melchior Franz.
-->
 
<PropertyList>
    <name>Microsoft SideWinder Force Feedback 2</name>
    <data>
        <mode type="int">0</mode>
        <modifier type="int">0</modifier>
    </data>
 
    <nasal>
        <script><![CDATA[
            var self = cmdarg().getParent();
            var data = self.getNode("data" );
            var mode = data.getNode("mode" );
            modifier = data.getNode("modifier" );
            f1 = f2 = 0;
            left_brake = right_brake = 0;
 
            get_mode = func { modifier.getValue() + mode.getValue() * 4 }
 
            harrier = func {
                if (getprop("/sim/aero" ) == "harrier" ) {
                    thv = getprop("/controls/engines/engine[0]/mixture" );
                    gui.popupTip("Thrust vector " ~ int(thv * 120 - 20));
                }
            }
        ]]></script>
    </nasal>
 
    <axis n="0">
        <desc>Aileron</desc>
        <binding>
            <command>property-scale</command>
            <property>/controls/flight/aileron</property>
            <power type="double">2.0</power>
        </binding>
    </axis>
 
    <axis n="1">
        <desc>Elevator</desc>
        <binding>
            <command>property-scale</command>
            <property>/controls/flight/elevator</property>
            <factor type="double">-1.0</factor>
            <power type="double">2.0</power>
        </binding>
    </axis>
 
    <axis>
        <desc>Rudder</desc>
        <number>
            <unix>2</unix>
            <mac>2</mac>
            <windows>3</windows>
        </number>
        <binding>
            <command>property-scale</command>
            <property>/controls/flight/rudder</property>
            <offset type="double">0.0</offset>
            <factor type="double">1.0</factor>
            <power type="double">2.0</power>
        </binding>
    </axis>
 
    <axis>
        <desc>Throttle</desc>
        <number>
            <unix>3</unix>
            <mac>2</mac>
            <windows>2</windows>
        </number>
        <binding>
            <command>nasal</command>
            <script>controls.throttleAxis()</script>
        </binding>
    </axis>
 
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hat Switch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
 
    <axis>
        <desc>View Direction; Mixture; Aileron Trim; Rudder Trim;</desc>
        <number>
            <unix>4</unix>
            <mac>4</mac>
            <windows>6</windows>
        </number>
        <low>
            <repeatable>true</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                     v = getprop("/sim/current-view/view-number" );
                     view.panViewDir(v == 0 or v == 4 ? 1 : -1);
                    } elsif (m == 1) {
                     controls.adjMixture(-1);
                     harrier();
                    } elsif (m == 2) {
                     controls.aileronTrim(-0.75);
                    } elsif (m == 3) {
                     controls.rudderTrim(-0.75);
                    }
                </script>
            </binding>
        </low>
        <high>
            <repeatable>true</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                     v = getprop("/sim/current-view/view-number" );
                     view.panViewDir(v == 0 or v == 4 ? -1 : 1);
                    } elsif (m == 1) {
                     controls.adjMixture(1);
                     harrier();
                    } elsif (m == 2) {
                     controls.aileronTrim(0.75);
                    } elsif (m == 3) {
                     controls.rudderTrim(0.75);
                    }
                </script>
            </binding>
        </high>
    </axis>
 
    <axis>
        <desc>View Elevation; Prop Pitch; Elevator Trim;</desc>
        <number>
            <unix>5</unix>
            <mac>5</mac>
            <windows>7</windows>
        </number>
        <low>
            <repeatable>true</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                     view.panViewPitch(-1);
                    } elsif (m == 1) {
                     controls.adjPropeller(-1);
                    } elsif (m == 2) {
                     controls.elevatorTrim(-0.75);
                    } elsif (m == 3) {
                     #
                    }
                </script>
            </binding>
        </low>
        <high>
            <repeatable>true</repeatable>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                     view.panViewPitch(1);
                    } elsif (m == 1) {
                     controls.adjPropeller(1);
                    } elsif (m == 2) {
                     controls.elevatorTrim(0.75);
                    } elsif (m == 3) {
                     #
                    }
                </script>
            </binding>
        </high>
    </axis>
 
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buttons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
 
    <button n="0"><!-- trigger -->
        <desc>Brakes; Parking Brake; Speed Brake; Thrust Reverse;</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = get_mode();
                if (m == 0) {
                    controls.applyBrakes(1);
                } elsif (m == 1) {
                    controls.applyBrakes(1);
                } elsif (m == 2) {
                    #
                } elsif (m == 3) {
                    #
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                        controls.applyBrakes(0);
                    } elsif (m == 1) {
                        i = controls.applyParkingBrake(1);
                        gui.popupTip("Parking Brake " ~ ["OFF", "ON"][i]);
                        controls.applyBrakes(0);
                    } elsif (m == 2) {
                        i = !getprop("/controls/flight/speedbrake" );
                        setprop("/controls/flight/speedbrake", i);
                        gui.popupTip("Speed Brake " ~ ["OFF", "ON"][i]);
                    } elsif (m == 3) {
                        i = !getprop("/controls/engines/engine[0]/reverser" );
                        props.setAll("/controls/engines/engine", "reverser", i);
                        gui.popupTip("Thrust Reverser " ~ ["OFF", "ON"][i]);
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
    <button n="2"><!-- Labeled 3,  Left Below Hat -->
        <desc>Flaps Up; Gear Up; Previous View</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = get_mode();
                if (m == 0) {
                    controls.flapsDown(-1);
                } elsif (m == 1) {
                    controls.gearDown(-1);
                } elsif (m == 2) {
                    view.stepView(-1);
                } elsif (m == 3) {
                    #
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                        controls.flapsDown(0);
                    } elsif (m == 1) {
                        controls.gearDown(0);
                    } elsif (m == 2) {
                        #
                    } elsif (m == 3) {
                        #
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
    <button n="1"><!-- Labeled 2,  Middle Below Hat-->
        <desc>Reset View; Toggle Tail-wheel lock; Reset Trim;</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = get_mode();
                if (m == 0) {
                    view.resetView();
                } elsif (m == 1) {
                    i = !getprop("/controls/gear/tailwheel-lock" );
                    setprop("/controls/gear/tailwheel-lock", i);
                    gui.popupTip("Tail Wheel " ~ ["UNLOCKED", "LOCKED"][i]);
                } elsif (m == 2) {
                    setprop("/sim/current-view/view-number", 0);
                    view.resetView();
                } elsif (m == 3) {
                    setprop("/controls/flight/elevator-trim", 0);
                    setprop("/controls/flight/aileron-trim", 0);
                    setprop("/controls/flight/rudder-trim", 0);
                }
            </script>
        </binding>
    </button>
 
    <button n="3"><!-- Labeled 4, Right Below Hat -->
        <desc>Flaps Down; Gear Down; Next View;</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = get_mode();
                if (m == 0) {
                    controls.flapsDown(1);
                } elsif (m == 1) {
                    controls.gearDown(1);
                } elsif (m == 2) {
                    view.stepView(1);
                } elsif (m == 3) {
                    #
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    m = get_mode();
                    if (m == 0) {
                        controls.flapsDown(0);
                    } elsif (m == 1) {
                        controls.gearDown(0);
                    } elsif (m == 2) {
                        #
                    } elsif (m == 3) {
                        #
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
    <button n="5"><!-- Labeled 6,  Left key on Bottom Row on base -->
        <desc>Brakes left</desc>
        <repeatable type="bool">true</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                f1 = 1;
                m = get_mode();
                if (m == 0) {
                    if (!left_brake) {
                        controls.applyBrakes(left_brake = 1, -1);
                    }
                } elsif (m == 1) {
                    #
                } elsif (m == 2) {
                    f2 ? view.resetFOV() : view.increase();
                } elsif (m == 3) {
                    #
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    f1 = 0;
                    m = get_mode();
                    if (m == 0) {
                        controls.applyBrakes(left_brake = 0, -1);
                    } elsif (m == 1) {
                        #
                    } elsif (m == 2) {
                        #
                    } elsif (m == 3) {
                        #
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
    <button n="4"><!-- Labeled 5, Right key on Bottom Row on base -->
        <desc>Brakes right</desc>
        <repeatable type="bool">true</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                f2 = 1;
                m = get_mode();
                if (m == 0) {
                    if (!right_brake) {
                        controls.applyBrakes(right_brake = 1, 1);
                    }
                } elsif (m == 1) {
                    #
                } elsif (m == 2) {
                    f1 ? view.resetFOV() : view.decrease();
                } elsif (m == 3) {
                    #
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    f2 = 0;
                    m = get_mode();
                    if (m == 0) {
                        controls.applyBrakes(right_brake = 0, 1);
                    } elsif (m == 1) {
                        #
                    } elsif (m == 2) {
                        #
                    } elsif (m == 3) {
                        #
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Modifier Keys ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
 
    <button n="6"><!-- K7 = Labeled 7, Left on Top Row on Base -->
        <desc>Modifier Bit 0</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = modifier.getValue();
                if (m == 0 or m == 2) {
                    modifier.setIntValue(m + 1);
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    m = modifier.getValue();
                    if (m == 1 or m == 3) {
                        modifier.setIntValue(m - 1);
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
    <button n="7"><!-- K8 = Labeled 8,  Right on Top Row on Base -->
        <desc>Modifier Bit 1</desc>
        <repeatable type="bool">false</repeatable>
        <binding>
            <command>nasal</command>
            <script>
                m = modifier.getValue();
                if (m == 0 or m == 1) {
                    modifier.setIntValue(m + 2);
                }
            </script>
        </binding>
        <mod-up>
            <binding>
                <command>nasal</command>
                <script>
                    m = modifier.getValue();
                    if (m == 2 or m == 3) {
                        modifier.setIntValue(m - 2);
                    }
                </script>
            </binding>
        </mod-up>
    </button>
 
</PropertyList>

Voilà


---------------
Mon Feed-back
n°5595853
elbarto

Transactions (0)
Posté le 22-07-2008 à 21:06:08  profilanswer
 

donc en gros ça marche enfin maintenant ? :D
 

n°5596169
chripaub

Transactions (0)
Posté le 22-07-2008 à 23:45:22  profilanswer
 

Maintenant ça marche en éditant dans joysticks.xml :

Citation :

<?xml version="1.0"?>
<!--
    To override or add "named" joystick drivers list them in
    <js-named> entries with paths relative to the directory where
    the joysticks.xml file resides (first example). Such "named"
    drivers are only picked up if one of their <name>s matches
    the joystick hardware (see output of the js_demo application).
    These drivers have precedence over already existing drivers
    with the same <name>. (You can also add a <name>default</name>
    entry to the driver to make it the default choice.)
 
    The second example shows how to load a driver directly to
    position 0. This will then be used for the first joystick on
    your system and FlightGear will not overwrite it.
-->
 
<PropertyList>
<js n="0" include="Input/joysticks/Microsoft/sidewinder-force-feed2.xml"/>
<!--
    <js-named include="Input/Joysticks/Local/X45-modified.xml"/>
 
    <js n="0" include="Input/Joysticks/Local/joystick_0.xml"/>
-->
</PropertyList>

Merci pour tout enfin après quelques jours de recherche. :whistle:  


---------------
Mon Feed-back
n°5686869
zorglub149​2

Transactions (0)
Posté le 02-09-2008 à 19:22:05  profilanswer
 

Salut à tous,
 
J'ai installé FG sur ma config la plus puissante :
Intel Quad Core Q6600@3.3 Ghz, 2 Giga RAM, Nvidia 8800 GTX, Win XP¨
 
Et bien ça rame ... En tout cas, y a un sérieux boulot d'optimisation mémoire à faire encore. En effet, avec ma config, j'atteint facilement 60 fps ... mais pas en continu. Dès qu'on se déplace un peu, un accès disque devient nécessaire, le frame rate tombe alors à 6 fps pendant quelques secondes avant de revenir à 60 fps. C'est un peu gênant.
 
Quelqu'un a-t-il eu ce problème sur une grosse config ?
 
J'ai aussi installé la scène PARIS V2 (700 Mo) ... pfff super dur à installer. Faut convertir toutes les maps .png en .rgb avec imagemagick.
Mais si on fait convert x.png x.rgb pour convertir une image ça marche pas !
Après moulte recherche sur internet, j'ai vu que FG utilisait le format RGB Silicon Graphics.
Donc convert x.png sgi:x.rgb pour tous les fichiers .png ... et là ça marche !
J'ai pu survoler PARIS avec le B787 ANA ... mais toujours le même problème de frame-rate saccadé.
 
Et coté mémoire, on utilise les 2 Gigas à 100 % très vite avec le scénario PARIS V2.
 
Quelqu'un aurait des astuces d'optimisation pour FG ?
 
Sinon, j'ai acheté pour 60 € (Merci l'Euro à 1$50) X-PLANE (livré en 3 jours avec DHL !). Et la rien à voir ... c'est fluide tout le temps, même en 1600x1200 avec tous les détails à fond. Seul bémol : on utilise facile 2.2 Giga de ram à certains moments, mais ça passe encore.

n°5691551
elbarto

Transactions (0)
Posté le 04-09-2008 à 14:57:53  profilanswer
 

et sans la scène de Paris est-ce que ça rame autant ?

 

c'est peut-être la scène qui est bugguée

 

l'avion B787 ANA est connu aussi pour faire ramer le PC, moi j'évite cet avion et je prefere plutôt voler sur un petit cessna, là il y aura aucun soucis :D

 

mais en tout cas c'est étrange que ça rame autant alors que tu as un Quad Core 6600, 2 Go de Ram et une carte vidéo récente

 

est-ce que ça rame aussi avec d'autres jeux 3D comme Flight Simulator ?

 

tu as peut-être un souci OpenGL avec tes pilotes Nvidia


Message édité par elbarto le 04-09-2008 à 14:58:21
n°6006047
j_c_p
Linux user
Transactions (2)
Posté le 23-12-2008 à 19:52:51  profilanswer
 

[:drapal].
Une nouvelle version est sortie, v 1.90.
 

December 21, 2008: Version 1.9.0 released
 FlightGear 1.9.0 represents a fundamental code rearrangement, incorporating over two years of development. After finishing the 1.0.0 release in December 2007, the FlightGear development team has directed their full attention to finishing the code overhaul that had already started in October 2006. The current 1.9.0 version of FlightGear is built upon the critically acclaimed OpenSceneGraph library, thereby widely expanding FlightGear's graphical capabilities. To make use of FlightGear's rich feature set, OpenSceneGraph 2.7.3 is minimally required (OpenSceneGraph 2.7.8 is recommended to avoid rendering bugs). The switch to OpenSceneGraph marks an important milestone for FlightGear, as it allows us to make full use of the advanced rendering options already available in OpenSceneGraph, such as stereographic view modes on screen statistics, easy definition of cameras for multiscreen systems, onscreen statistics, native OpenSceneGraph 3D model loaders and much more.  
 While the most dramatic changes to FlightGear have been taking place under the hood, the latest version does offer many new exciting features not found in any previous version. Some highlighted new features include:  
 Major new developments and features:  
 Major overhaul of the graphics code. FlightGear 1.9.0 makes use of the OpenSceneGraph library  
 Easy setup of multidisplay systems using multiple OpenSceneGraph "Cameras" driven by one single instance of FlightGear.  
 Multithreaded 3D model loader leads to much smoother performance  
 New particle system based precipitation code  
 configurable XML particle animations for smoke, spray, fire, etc  
 New dynamically configurable 3D Clouds.  
 pick animations, which allow for better clickable instrument panels  
 multiplayer specific on-screen menu  
 AI code can generate wingmen  
 At selected airports, it is now possible to start at a predefined parking position, as an alternative to starting at the runway.  
 Support for Lighter than air vehicles  
 Shader based tree rendering. This new feature allows For much denser tree density without any frame rate loss.  
 Support for jpg and png textures  
 A new multikey command mode, where multiple key strokes can be combined to form a command.  
 Detailed buildings at various airports and major cities around the world  
 Scenery can be kept up-to-date by downloading it from and SVN repository using TerraSync  
 Over 200 Aircraft are now available for separate download.  
 Code Improvements:  
 Improved Flight Dynamics  
 Several Improvements to animations  
 Improved behavior of Taxiing AI Aircraft.  
 Miscellaneous GUI improvements  
 Major improvements to FlightGear's route/waypoint manager code.  
 Improved runway management  
 Improved encapsulation of Navaids  
 Improved nasal scripting security  
 Improved behavior of VOR radios when close to their maximum range.  
 Configurable Heads up displays  
 Improved support of GPS instruments  
 Easier definition of AI traffic patterns  
 Improved accuracy of coastlines


 
-> http://www.jeuxlinux.fr/b789-Fligh [...] _1.90.html
-> http://www.jeuxlinux.fr/IMG/png/FGFSnew.png
 

n°6452284
elbarto

Transactions (0)
Posté le 12-07-2009 à 21:24:28  profilanswer
 

moi je suis resté à la version 1.0.0 car la version 1.9.1 est mal supportée par ma vieille carte ATI 9800 AGP au niveau du pilote openGL, le jeu utilise une extension OpenGL qui n'est pas supportée matériellement par ma carte, du coup ça rame sévère au niveau des FPS :/

 

mais la version 1.0.0 est largement suffisante pour découvrir ce simulateur et le mode multijoueur en réseau reste compatible :)


Message édité par elbarto le 12-07-2009 à 21:25:51
n°6934189
elbarto

Transactions (0)
Posté le 11-02-2010 à 22:39:36  profilanswer
 

la version 2.0 de flightgear est toujours en chantier, 1 an après la version 1.9.1, mais on a quelques captures d'écrans, le graphisme semble en progrès :
 
http://www.xs4all.nl/~dtalsma/fgfs2.0/
 

Citation :

So where's the new Release?
 
In the last edition, I expressed the hope that the new FlightGear release would be available by the time the newsletter was published. Well, that didn't quite happen due to a combination of factors. So, I'm writing this edition in the same hope! I know that there are lots of people running v1.9.1 looking forward to the new release, and I can promise that it will be worth the wait. To whet your appetite, Durk has produced some very nice screenshots here.
 
Even though I personally run the CVS version of FlightGear, I'm particularly looking forward to the new release so I can point some of my friends at it. Just after the new year I had a couple of friends staying over. None of them are gamers, and certainly not flight-sim enthusiasts, just normal well-adjusted people. One of them used to fly when they were at university, and expressed an interest in seeing what FlightGear was about. So, I loaded up a Cessna at the local airport (Edinburgh - EGPH), and let them have a fly around. They were amazed at the level of detail and had a great time flying around recognizing landmarks. So, once v2.0 is released, I'll be sending them an email pointing them at the download.


 
http://wiki.flightgear.org/index.p [...] nuary_2010
 
FlightGear a été élu meilleur jeu libre de l'année 2009 par le site softonic  [:implosion du tibia]   :
 
http://en.softonic.com/awards2009

n°6967713
elbarto

Transactions (0)
Posté le 26-02-2010 à 19:42:23  profilanswer
 

un des rares tests concernant Flightgear :
 
http://www.flightsim.com/main/review/fgear.htm
 
on y voit une capture d'écran en haut à droite du logiciel open source Atlas qui permet de suivre l'avion et sa trajectoire sur une carte :
 
http://www.flightsim.com/review/fgear/14.jpg
 
le top étant de faire tourner Atlas en réseau sur un autre PC afin d'avoir un écran dédié à FlightGear et un autre pour Atlas et de réserver tout le CPU à FlightGear

n°6967738
TBone
Pouet.
Transactions (0)
Posté le 26-02-2010 à 19:58:15  profilanswer
 

(cf. topic FS) tu sais à qui demander maintenant :D


Message édité par TBone le 26-02-2010 à 19:58:30

---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°6967744
elbarto

Transactions (0)
Posté le 26-02-2010 à 20:01:21  profilanswer
 

oui merci :D

n°6976971
elbarto

Transactions (0)
Posté le 02-03-2010 à 16:09:30  profilanswer
 

une vidéo sympa qui montre un exemple d'utilisation de FlightGear ( le gars semble avoir réalisé une station de simulation ),
 
 ici c'est une vieille version 0.9.x qui est utilisée, elle montre les possibilités de "splitage"  des vues de la simulation sur plusieurs écrans grâce aux capacités réseaux et la ligne de commande paramétrable de flightgear, on voit aussi le logiciel Atlas en action sur l'écran de droite :D :
 
 
http://www.dpa.unina.it/adag/archives/video/ground_control_station_sim_mode.jpg
 
la vidéo téléchargeable :
 
http://www.dpa.unina.it/adag/archi [...] m_mode.mpg ( faire un clic droit enregistrer sous avec la souris )


Message édité par elbarto le 02-03-2010 à 16:16:20
n°6977045
TBone
Pouet.
Transactions (0)
Posté le 02-03-2010 à 16:27:22  profilanswer
 

tu fais une fixette sur Atlas pour le moment toi [:joce]


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°6980974
j_c_p
Linux user
Transactions (2)
Posté le 03-03-2010 à 18:46:35  profilanswer
 

La version 2.0.0 (on peut noter le nombre de zéros!) est sortie le 25 février ;).
-> http://www.flightgear.org/announce.html#v2.0.0


Message édité par j_c_p le 03-03-2010 à 18:47:32
n°6981315
elbarto

Transactions (0)
Posté le 03-03-2010 à 20:25:02  profilanswer
 

enfin  [:shay]

 

pas mal d'améliorations dans cette version :

 

http://www.flightgear.org/version.html

 

reste à voir si ça pourra tourner sur mon vieux PC ( la 1.9.1 rame pas mal sur ma config, je tourne toujours avec la vieille version 1.0.0 beaucoup plus fluide )


Message édité par elbarto le 03-03-2010 à 20:25:29
n°6981416
TBone
Pouet.
Transactions (0)
Posté le 03-03-2010 à 21:03:34  profilanswer
 

tiens, j_c_p, quoi d'neuf ? :)

 

ça évolue plutôt pas mal.. http://wiki.flightgear.org/images/5/53/Clouds.jpg
il y a encore du boulot mais ça devient bien...


Message édité par TBone le 03-03-2010 à 21:05:01

---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°6981454
TBone
Pouet.
Transactions (0)
Posté le 03-03-2010 à 21:17:39  profilanswer
 

Atlas: last news : 2003/06/22... c'est vachement stable ou quasi abandonné... tu as fait un tour dans la communauté FG pour savoir si c'était toujours d'actualité ?


Message édité par TBone le 03-03-2010 à 21:18:04

---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°6981557
j_c_p
Linux user
Transactions (2)
Posté le 03-03-2010 à 22:03:46  profilanswer
 

TBone  :hello: ,
je viens juste de voir l'info via portage à vrai dire !
 
Pour Atlas, il me semblait aussi que ce n'était plus très actif (de bons souvenirs à générer les cartes cela dit).
Je vais peut-être compiler le dernier FlightGear, histoire de voir l'évolution depuis le temps.
 
Hors topic : belle évolution des appareils dans X-Plane (j'ai testé le baron récemment, via la 9.50ß), ça donne presque envie de passer à la version 9. Bon, ça serait bien qu'Austin passe en 64bits pour la prochaine aussi ... histoire de s'affranchir des paquets de lib 32bits.
 
edit : aussi, rien à voir, mais je suis plus dans le flipper mécanique là (vrai et/ou simulé) ;) .


Message édité par j_c_p le 03-03-2010 à 22:07:08
n°6981573
elbarto

Transactions (0)
Posté le 03-03-2010 à 22:06:58  profilanswer
 

la version stable d'Atlas est en effet ancienne mais il existe une version béta que l'on peut récupérer via CVS ( qu'il faut ensuite compiler soi-même car on ne dispose que des sources ), cette version béta est beaucoup plus complète que la version 0.30

 
Citation :


cvs -d:pserver:anonymous@atlas.cvs.sourceforge.net:/cvsroot/atlas login

 

cvs -z3 -d:pserver:anonymous@atlas.cvs.sourceforge.net:/cvsroot/atlas co Atlas

 

http://atlas.sourceforge.net/index.php?page=cvs

 

le développeur d'Atlas est joignable par mail assez facilement, j'ai pu lui poser des questions sur des problèmes de compilation d'Atlas :

 

http://atlas.sourceforge.net/index.php?page=mailing


Message édité par elbarto le 03-03-2010 à 22:09:26
n°6983240
elbarto

Transactions (0)
Posté le 04-03-2010 à 13:19:17  profilanswer
 

bon j'ai installé la version 2.0.0 sous WinXP et c'est le même prob qu'avec la version 1.9.1 :

 

--> ça rame avec ma vieille config ( Athlon XP 2400+, carte Ati Radeon 8500 AGP, 2 Go de ram ), le genre de config qui était courante dans les années 2002/2003

 

--> j'ai un bug au lancement de flightgear 2.0.0, l'écran de chargement semble se bloquer sur le message "loading scenery objects",

 

http://img291.imageshack.us/img291/9149/flightgear200.jpg

 

au niveau de la console j'ai ces messages :

 

http://img517.imageshack.us/img517/9862/flightgearcmd.png

 

le binaire fait tourner le CPU donc il n'y a pas de freeze, parfois au bout d'une heure il a fini le chargement mais je me retrouve en plein océan comme si il n'avait pas réussi à charger le terrain,

 

sur le forum de flightgear certains utilisateurs ont eu le même problème mais n'ont pas trouvé de solution,

 

je vais faire le test sous Linux pour voir si j'ai le même comportement


Message édité par elbarto le 04-03-2010 à 13:20:18
n°6983270
TBone
Pouet.
Transactions (0)
Posté le 04-03-2010 à 13:23:48  profilanswer
 

p-ê une bulle dans les chemins vers les ressources ?


---------------
As the plane took off, the pilot turned to the co-pilot and said, “Have you ever flown solo?” Co-pilot: No. Typically I fly much higher than this.
n°6983420
elbarto

Transactions (0)
Posté le 04-03-2010 à 13:54:12  profilanswer
 

en refaisant un nouvel essai ça finit par se charger avec le terrain mais faut alors patienter au moins une demie-heure pour qu'il finisse le chargement,

 

au final j'arrive à voler mais c'est très très lent ( 4 à 10 FPS maxi  [:tinostar] ) et les nuages ont une drôle d'apparence :

 

http://img690.imageshack.us/img690/5839/nuages.jpg

 

je pense que ça vient du fait que FlightGear utilise depuis la version 1.9.x un framework de rendu 3D qui s'appelle "OpenSceneGraph" et qui doit être incompatible avec ma carte graphique Ati Radeon 8500, des fonctions OpenGL non prises en charge matériellement par ma carte graphique, du coup ces fonctions openGL sont peut-être émulées "logiciellement" d'où les lenteurs, notamment au chargement lorsqu'il faut créer en mémoire les textures, le terrain  [:transparency]

 

http://www.openscenegraph.org/projects/osg

 

avec la version 1.0.0 de FlightGear il n'y a pas ce problème car "OpenSceneGraph" n'est pas utilisé pour le graphisme


Message édité par elbarto le 04-03-2010 à 13:55:37
n°6983626
j_c_p
Linux user
Transactions (2)
Posté le 04-03-2010 à 14:30:23  profilanswer
 

Je teste ce week-end chez moi et je fais quelques photos ;).

n°6987967
j_c_p
Linux user
Transactions (2)
Posté le 05-03-2010 à 20:06:56  profilanswer
 

Petit essai rapide !
Déjà, il faut se rappeler les touches de raccourci etc ... mais, mes anciens mémo et l'aide permettent de s'y retrouver assez rapidement.
Après, je dirais que ça reste inférieur à X-Plane 8.0 du point de vue appareils, mais la scène globale rappelle un peu celle que l'on pouvait mettre sur X-Plane à cette époque (moins fine cependant).
 
http://img1.uplood.fr/free/thumbnails/cuum_fgfs-screen-001.png http://img1.uplood.fr/free/thumbnails/q5uo_fgfs-screen-001_1.png http://img1.uplood.fr/free/thumbnails/j82o_fgfs-screen-002.png http://img1.uplood.fr/free/thumbnails/3wyq_fgfs-screen-003.png
http://img1.uplood.fr/free/thumbnails/wk9t_fgfs-screen-004.png http://img1.uplood.fr/free/thumbnails/sq1n_fgfs-screen-006.png http://img1.uplood.fr/free/thumbnails/9vbv_fgfs-screen-007.png
 

fgfs --geometry=1024x768 --enable-fullscreen --bpp=24 --units-meters --enable-clouds3d --enable-textures  --enable-specular-highlight --enable-enhanced-lighting --enable-auto-coordination --aircraft=777-200ER --time-match-local --texture-filtering=8


Message édité par j_c_p le 05-03-2010 à 20:11:28
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  6  7  8  9

Aller à :
Ajouter une réponse
 

Sujets relatifs
[Topic Unique] Densha de GO! (Jeu de train Jap -> PC et Consoles)TOPIC : Counter strike
Topic à supprimer[Topic Unik] PES 2008 Wii
petit souci avec cs source[Topic Unik]Everybody's Golf World Tour
[topic unique][PC] Avencast[VDS] Pistolet Beretta manette Xbox - LAUNCHPAD simulateur Golf NEUF
Topic à fermer[Topic Unique]FlightGear : simulateur de vol open source
Plus de sujets relatifs à : Le Topic de FlightGear, le simulateur de vol open source


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR