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

Save Configurations #25

Closed
GOATIOO opened this issue Sep 16, 2020 · 10 comments
Closed

Save Configurations #25

GOATIOO opened this issue Sep 16, 2020 · 10 comments

Comments

@GOATIOO
Copy link

GOATIOO commented Sep 16, 2020

I set up my controller binds but is there a way to save them?
I restarted my game and the configuration was gone.

@MattJeanes
Copy link
Owner

The addon is designed to save and load joystick binds set in the joyconfig menu, although it appears to do this on game shut down rather than offering a save button. The ShutDown hook sometimes doesn't get called if the game hard exits (crashes) or in a couple of other scenarios so I imagine this is why it didn't save. You can manually save after changing the settings by running this in the console:

lua_run_cl jcon.Save()

Assuming no errors come from that you should be all good.

@GOATIOO
Copy link
Author

GOATIOO commented Sep 17, 2020

Thanks

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020

ever since I did this the addon cannot detect the controller

@MattJeanes
Copy link
Owner

Try deleting data/joyconfig.txt that should clear the save file

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020 via email

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020 via email

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020 via email

@MattJeanes
Copy link
Owner

No it is in garrysmod/data do not delete the joyconfig.lua file

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020 via email

@GOATIOO
Copy link
Author

GOATIOO commented Sep 20, 2020 via email

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