Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/Export config. #10

Closed
Snille opened this issue Apr 6, 2018 · 3 comments
Closed

Import/Export config. #10

Snille opened this issue Apr 6, 2018 · 3 comments

Comments

@Snille
Copy link

Snille commented Apr 6, 2018

It would be nice to be able to import and export the config some how.
To be able to move it between computers and/or re installation of the system.
Also, comparability between operating systems would be great, export from Windows, import in to Linux.
Obviously you will have to select the "serial port" when the import is done. But you would get all the mappings of the axis and buttons. :)

@Cleric-K
Copy link
Owner

Cleric-K commented Apr 6, 2018

Yes, that will be nice. It will take me some more time which I'll be able to spare probably only next week, because there are some things to be thought of.

  • should it export the complete configuration (all profiles) and then on import replace all current.
  • or it should merge the imported profiles. Probably renaming conflicting names.
  • there is the problem of versioning. Since the configuration is a direct serialization of the c# objects, when they change, importing old config should "upgrade",

These are some small details to be taken care of, but I'll need some more time.

In the meanwhile, if you really need it, you can approach the problem "manually". On Windows go to <User Folder>/AppData/Local/vJoySerialFeeder. There look in the subfolders. You'll find user.config. It is a xml file actually and you need the <setting name="config" serializeAs="String"><value> ..... </value></settings> element.

On Windows there is different user.config for every different folder where you have vJoySerialFeeder.exe. If you move it to another folder you'll start with blank config. There are different configs for different exe versions also.

On linux look at `~/.local/share/vJoySerialFeeder.../

On Windows it should work if you copy the whole user.config around, but if you copy it to linux machine it might not work. You'll need to copy-paste the <value> element only.

@Snille
Copy link
Author

Snille commented Apr 6, 2018

Thank you for taking the time for this. I would say this is a "Nice to have" feature. So you work on it when ever you feel like it. :)

On the export part. I would say export all profiles.

And for the import part. Import all and just add a number in the "profile-name" if the profile exists.
The "user" then have the option to rename and delete the profiles he/she does not want. It's better to have it all in there then loose stuff. :)

Regarding the "versioning", I don't really know. :) Maybe make it so that all new "config" options that are missing in the "import" just gets added automatically with default values on all profiles...

Cleric-K added a commit that referenced this issue Apr 11, 2018
Cleric-K added a commit that referenced this issue Apr 13, 2018
New features compared to v1.2:
* Process Interaction (COM and WebSocket)
* Lua Scripting
* Failsafe #4
* Linux support #5
* vXbox support #8
* Import/Export configuration #10
* Trigger buttons
* KISS protocol support
@Snille
Copy link
Author

Snille commented Apr 15, 2018

Tested on one machine and it works great, thank you. Great work!

@Snille Snille closed this as completed Apr 15, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants