Skinz3 / League-of-Legends-Bot

League of legends bot is a pixel bot for League Of Legends 10.19, written in C# .NET using image processing , and dependency injection (Pattern Scripting)
152 stars 45 forks source link

Edit keybinds - SettingsToPersist.json missing #102

Open danisuba10 opened 2 years ago

danisuba10 commented 2 years ago

I want to change the keybind of the settinngs menu from ESC to nothing. (evtSysMenu) This is because sometimes the bot opens the settings, and then becomes stuck, resulting in it becoming AFK. I saw that in order for some settings not be persisted, SettingsToPersist.json must be edited, however that doesn't exist.:

"description": "The settings in this file are persisted server-side. This file is generated automatically. Editing it is not recommended. Modify SettingsToPersist.json to specify which settings are persisted."

How can I change it's keybind to empty, or at least to another keybind so it doesn't revert itself back?

anaquierealgo commented 2 years ago

solution bro?

danisuba10 commented 2 years ago

I managed to change the keybind by editing the PersistedSettings.json (don't remember exactly if that's the name, but there are two of them in different folders, so make sure to modify both of them.)

Just make sure to launch the bot with the .exe file, and not the updater .exe file, because that changes the persisted settings file from the internet.

Also I haven't found a way to bind it to nothing, so I just bound it to the "." key, which solved all accidental menu openings.

danisuba10 commented 2 years ago

But it would be really good if anyone could update this bot with a working SettingsToPersist file.

anaquierealgo commented 2 years ago

But it would be really good if anyone could update this bot with a working SettingsToPersist file.

Could you pass me the files that you modified from your folder? I can't find the file to modify

danisuba10 commented 2 years ago

https://github.com/Skinz3/League-of-Legends-Bot/blob/6da3eacff0294bffd830f762c383be70e382af51/Binaries/PersistedSettings.json

danisuba10 commented 2 years ago

Just search for this file in the bot's folder, and modify both of them.

anaquierealgo commented 2 years ago

Just search for this file in the bot's folder, and modify both of them.

I can't find the other file, are you sure? pass me your folder bro. if you do not mind.