Board index FlightGear Support Hardware

Modified Joystick configuration .xml doesn't load

Joysticks, pedals, monitors.

Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Tue Jun 26, 2018 4:10 pm

Hi Guys,
my joystick is a ThrustMaster T-Flight-Hotas-X and it is correctly loaded at the launch of FG 2018.2.1.
I've found on this same site a post who laod a modified configuration of the the same joystick of mine.
I've edit the .xml file of the new joystick configuration and I've put it into the /usr/share/games/flightgear/Input/Joysticks/ThrustMaster directory, but unfortunately FG keep loading the old file .xml.
I've rename the old file .xml like Old-T-Flight-Hotas-X.xml, and the new modified file like T-Flight-Hotas-X.xml also, but in the Joystick Configuration dialog I see that the file in use is the Old-T-Flight-Hotas-X.xml always.

Where am I wrong?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Tue Jun 26, 2018 8:03 pm

you have to put your copy in your user directory...

~/.fgfs/Input/Joysticks/ThrustMaster/name.of.your.stick.xml

all special settings, like adjusting the bindings on the joystick buttons, go in your user directory as noted above so they can actually be saved... you don't normally have write permissions to where you tried to put it...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Wed Jun 27, 2018 7:53 am

My friend,
I've put it into my ~/.fgfs/Input/Joysticks/T-Flight-Hotas-X-modified.xml also, but the result is the same.
Maybe I've missed the ThrustMaster directory? Is it so important?
Another suggestions?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Wed Jun 27, 2018 8:35 am

yes, the directory structure is important... starting with the part "Input", the path should be exactly the same between the one in /usr and the one in ~/.fgfs...

eg:
Code: Select all
/usr/share/games/flightgear/Input/Joysticks/ThrustMaster/T-Flight-Hotas-X.xml       <- system default, protected permissions
 /home/{yourusername}/.fgfs/Input/Joysticks/ThrustMaster/T-Flight-Hotas-X.xml       <- your editable version
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Wed Jun 27, 2018 9:10 am

Ok, thanks.
Just a little bit question about it:
- Also the stick-file-name.xml must be the same or it could be different?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Wed Jun 27, 2018 5:31 pm

i would keep it the same for consistency... especially since it is an override for the original one in /usr...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Thu Jun 28, 2018 6:11 pm

Well,
I've the same structure of directory and file as in /usr as in /~/.fgfs, but the behavior of the FG is always the same: it doesn't load my .xml joystick configuration file.
Why?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Thu Jun 28, 2018 7:12 pm

what does your log file say? maybe it reports an error parsing the file?

i don't have a hotas but if you make your xml file available, i'm sure there are others here willing to give it a look over...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby Gijs » Thu Jun 28, 2018 7:49 pm

Just thinking out loud here, but it might be that FlightGear loads the files in alphabetical order, and thus Old-T-Flight-Hotas-X.xml is loaded (and assigned to the joystick) before T-Flight-Hotas-X.xml... Worth trying if it makes a difference to get rid of the old file completely or renaming it to something that comes later in the alphabet.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9364
Joined: Tue Jul 03, 2007 2:55 pm
Location: Amsterdam/Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Fri Jun 29, 2018 7:57 am

Thanks to all for the suggestions,
but in Italian language the word "old" is translate as "vecchio" therefore the "V" letter is after than letter "T".
Which is the informations to search in the log file, to understand what is wrong?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Fri Jun 29, 2018 6:44 pm

1. set your logging to debug mode... add "--log-level=debug" without the quotes to your launcher's additional setting box... that is two dashes at the beginning...
2. start the sim and then quit... i mean go all the way into the sim from the launcher and then quit normally...
3. egrep -e "joystick" ~/.fgfs/fgfs.log

you should see output similar to this...
Code: Select all
input:3:/home/myuser/flightgear-dev/next/flightgear/src/Input/FGJoystickInput.cxx:133:Looking for bindings for joystick "Thrustmaster T.16000M"
input:3:/home/myuser/flightgear-dev/next/flightgear/src/Input/FGJoystickInput.cxx:145:... found joystick: /home/myuser/flightgear-dev/fgdata-ng/Input/Joysticks/ThrustMaster/T16000M.xml


explanation: i build my flightgear and install it in my user directory... the above shows that FG is finding and using the default T16000M.xml in my fgdata directory for my joystick... this is accurate because i have not changed my axis or button assignments... your's should be /home/youruser/.fgfs/Input/Joysticks/ThrustMaster/T-Flight-Hotas-X.xml...


you can remove or comment out "--log-level=debug" when you don't want/need it any more... to comment it out, just put a "#" and the beginning of it... "#--log-level=debug" without the quotes, of course...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Fri Jun 29, 2018 7:10 pm

Hi,
below the result command
Code: Select all
fulvio@travelmate-5735:~$ egrep -e "joystick" ~/.fgfs/fgfs.log
general:4:/build/simgear-UlU8Nc/simgear-2018.2.1/simgear/structure/subsystem_mgr.cxx:445:adding subsystem to group with name 'input-joystick', but name() returns ''
input:3:/build/flightgear-2i7i29/flightgear-2018.2.1/src/Input/FGJoystickInput.cxx:133:Looking for bindings for joystick "Thrustmaster T.Flight Hotas X"
input:3:/build/flightgear-2i7i29/flightgear-2018.2.1/src/Input/FGJoystickInput.cxx:145:... found joystick: /usr/share/games/flightgear/Input/Joysticks/ThrustMaster/T-Flight-Hotas-X.xml
fulvio@travelmate-5735:~$

What does it mean?
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby wkitty42 » Sat Jun 30, 2018 12:13 am

it means that it is still finding the original /ThrustMaster/T-Flight-Hotas-X.xml...

what does "ls -la ~/.fgfs/Input/Joysticks/ThrustMaster" return?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5624
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Modified Joystick configuration .xml doesn't load

Postby fulviot66 » Sat Jun 30, 2018 8:10 am

Hi,
below the output of the command
Code: Select all
fulvio@travelmate-5735:~$ ls -la ~/.fgfs/Input/Joysticks/ThrustMaster
totale 48
drwxr-xr-x 2 fulvio fulvio  4096 giu 27 11:05 .
drwxr-xr-x 3 fulvio fulvio  4096 giu 27 11:04 ..
-rw-rw-r-- 1 fulvio fulvio 18626 giu 26 11:42 T-Flight-Hotas-X-modified.xml
-rw-rw-r-- 1 fulvio fulvio 16386 giu 26 17:23 T-Flight-Hotas-X.xml
fulvio@travelmate-5735:~$
O.S. Windows 10 (1709) - Ubuntu 18.04 - CPU Intel Core2 Duo T6570@2,1GHz - Scheda Grafica Integrata Intel GMA 4500MHD 1,3GB shared Ram: 4GB - Disk: SSD Kingston SA400S37/480 - Joystick: ThrustMaster Flight Hotas-X
fulviot66
 
Posts: 11
Joined: Sun Jun 17, 2018 8:20 pm
Location: Italia
OS: Ubuntu

Re: Modified Joystick configuration .xml doesn't load

Postby massima » Sat Jun 30, 2018 8:16 am

I didn't read all old messages but i setted up my TM hotax-X directly in the sim (file->config joystick) after that i edited the xml file in my home ./fgfs/../.xml.
My hotas is version V.2. Really simple
User avatar
massima
 
Posts: 227
Joined: Sat Jan 03, 2015 6:48 pm
Location: Italy
Callsign: M-AXX
Version: 2019.1.1
OS: debian testing

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 7 guests