Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

controller calibration and user presets not saved (Linux)

A topic by captcha99 created Jan 04, 2022 Views: 211 Replies: 3
Viewing posts 1 to 3

Using the Linux version of FPVFreerider Classic, I am unable to get the saving of User Presets to work between program restarts. If I don't exit the program I can switch between user presets but when I close the software and start it back up again it's reset to original defaults; clicking to load User Preset A or B does not restore my previously saved settings. Directories are writeable by the user starting the program.


Also, is there a way to import the controller calibration? Every time I want to use the software I always have to re-calibrate my controller. Btw, I'm using a Turnigy Evolution radio over USB.

I tried with both the Nov 2019 as well as the Mar 2021 builds, but both do not save calibration nor user presets.


Other than that, Awesome sim! :-)

Developer

FPV Freerider uses Unity's PlayerPrefs to store both the user presets and the controller calibration.

On Linux, Freerider's PlayerPrefs are stored locally at ~/.config/unity3d/Freeride/Freerider  

I'm not a linux user myself, and have very limited knowledge in the linux operating system, but I suspect the issue might have something to do with write permissions. Perhaps you could try to double check if you have write permissions for that particular folder.

I believe Linux PlayerPrefs are in xml format, editable with a standard text editor, so you might check to see if you can find and read the Freerider config file.

Thanks, glad to hear that you like the sim although you are experiencing this inconvenience, it would be interesting to hear if you manage to solve this.

Found the issue; it doesn't like display arguments once set.

The unity3d folder is created/populated properly I think. I can see the Player.log and (indeed XML) prefs files (I can post the contents if you want). I did a chmod 777 -R on the unity3d dir and it made no difference. I tried running the program as root (xhost +) and it also didn't save or recall settings. I also disconnected an external keyboard with a built-in trackpad controller, but this also didn't change the behaviour.

I then tried running it from cli with different arguments and that's when I noticed a difference. Initially I made a program shortcut in KDE to always load with '-screen-fullscreen 0 -screen-width 800 -screen-height 600 -force-opengl'. I'm running it on a 12 year old laptop (core Duo, 4GB, Mobile Intel Graphics Media Accelerator 4500MHD, DirectX 10 capable) and at 1080p it is just too sluggish. So I kept the screen settings in there every time I load up the program. I think that's when things are getting corrupted or reset.

The fix for me was to run the program once with the preferred display arguments and I then save my user prefs and camera settings. After that I never start the program again with the above display resolution settings anymore; it just loads it back up from the prefs files; even the LOS/onboard camera settings, blur, etc.. I do still need to always add the -force-opengl argument. I've updated the KDE program shortcut link and it's now loading up every time with my controller already calibrated and the user profile settings loaded. Yaay! The external keyboard/trackpad also doesn't interfere with anything, so all good there too.

I do notice when running the program from cli it always exits with a segfault. This is at the very end after I hit the X (close) button from the main screen. It's probably some garbage collection or memory housekeeping/ gone astray but it doesn't affect the workings of the program.

I'm very happy with this sim as I consider myself still a beginner fpv enthusiast and I really like the lightweight program and bare bones training maps. They don't distract from learning to be in control over your aircraft. I also appreciate that it runs on modest graphics cards as I have stopped using dedicated game-optimised PC boxes around the time of Quake (anyone remember Voodoo2 cards?).

Cheers

Developer

Glad to hear that you managed to solve it. Thank you for reporting back with detailed information, I'm sure that will be of help if anyone else is having the same issue.

It's interesting to hear that you are getting a segfault when exiting the program. I use Unity's Application.Quit() command, which should stop the program properly. So I don't think it's something that you need to worry about, although it would of course be preferable if it didn't happen.

I'm glad that you are happy with the sim. Yes, one of my goals when starting the development was to try to make it as lightweight as possible, as I know a lot of people don't have dedicated gaming rigs. (Also, FPV Freerider classic and FPV Freerider Recharged is available for Android, which makes it necessary to keep the hardware requirements as low as possible).