MattJeanes / Joystick-Module

A joystick module for GMod, originally by NightEagle.
13 stars 14 forks source link

Save Configurations #25

Closed GOATIOO closed 3 years ago

GOATIOO commented 3 years ago

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

MattJeanes commented 3 years ago

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 commented 3 years ago

Thanks

GOATIOO commented 3 years ago

ever since I did this the addon cannot detect the controller

MattJeanes commented 3 years ago

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

GOATIOO commented 3 years ago

Where is that located?

On Sun, Sep 20, 2020, 2:52 PM Matt Jeanes notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattJeanes/Joystick-Module/issues/25#issuecomment-695828527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAPWZC67OLYU6NOKHVS63LSGZMQVANCNFSM4ROHSRCA .

GOATIOO commented 3 years ago

Is it joyconfig lua file?

On Sun, Sep 20, 2020, 2:58 PM GOATIO i.callier01@gmail.com wrote:

Where is that located?

On Sun, Sep 20, 2020, 2:52 PM Matt Jeanes notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattJeanes/Joystick-Module/issues/25#issuecomment-695828527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAPWZC67OLYU6NOKHVS63LSGZMQVANCNFSM4ROHSRCA .

GOATIOO commented 3 years ago

It is still not detecting my controller

On Sun, Sep 20, 2020, 2:59 PM GOATIO i.callier01@gmail.com wrote:

Is it joyconfig lua file?

On Sun, Sep 20, 2020, 2:58 PM GOATIO i.callier01@gmail.com wrote:

Where is that located?

On Sun, Sep 20, 2020, 2:52 PM Matt Jeanes notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattJeanes/Joystick-Module/issues/25#issuecomment-695828527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAPWZC67OLYU6NOKHVS63LSGZMQVANCNFSM4ROHSRCA .

MattJeanes commented 3 years ago

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

GOATIOO commented 3 years ago

I deleted the joyconfig text file but it is still not detecting my controller.

On Sun, Sep 20, 2020, 3:41 PM Matt Jeanes notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattJeanes/Joystick-Module/issues/25#issuecomment-695833722, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAPWZDBIMVZFGPVSZYIDLDSGZSHBANCNFSM4ROHSRCA .

GOATIOO commented 3 years ago

It worked fine at first but now it just won't connect.

On Sun, Sep 20, 2020, 3:42 PM GOATIO i.callier01@gmail.com wrote:

I deleted the joyconfig text file but it is still not detecting my controller.

On Sun, Sep 20, 2020, 3:41 PM Matt Jeanes notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MattJeanes/Joystick-Module/issues/25#issuecomment-695833722, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAPWZDBIMVZFGPVSZYIDLDSGZSHBANCNFSM4ROHSRCA .