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

"back to default" button #939

Open
jon-bit opened this issue Oct 18, 2023 · 7 comments
Open

"back to default" button #939

jon-bit opened this issue Oct 18, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@jon-bit
Copy link

jon-bit commented Oct 18, 2023

System Information

  • SteamTinkerLaunch version:
  • Distribution: Linux Mint (It HAS been slightly edited to my liking)

Feature Description

Set everything back to default. Have a button that sets all of the settings back to default. I am requesting this because I was scrolling past the settings and now it's messed up I think a system default button would be helpful. I know their is a default button now but that allows you to edit the default. I want something that sets the SYSTEM default back. I have not found anyway to do this so maybe this would help.

@jon-bit jon-bit added the enhancement New feature or request label Oct 18, 2023
@sonic2kk
Copy link
Owner

I'm not sure which config you made a mistake with, but you can easily do this by manually removing the game config file, or global/URL config files, from the SteamTinkerLaunch config folder. There is also a command to open this folder, but outside of Flatpak this is at ~/.config/steamtinkerlaunch. The global.conf / urls.conf are in that folder, and game configs are in gamecfgs. The main file is stored in the ID folder, the configs in gamecfgs/title are symlinks for convenience, so be sure to remove the correct one :-) Hope this resolves your issue for now.

More specific to this request though I'm not sure where such a button would go on the menu, and I would want it to be something a user has to be very deliberate about. There may be a command to do this already, but if not, I think we could add a command for this instead of a button.

I imagine something like this: steamtinkerlaunch resetdefault <AppID / title / global / urls / all>. For safety we could even create a backup of these files before removing them, just in case a user gets it wrong (wrong AppID, for example).

@jon-bit
Copy link
Author

jon-bit commented Oct 18, 2023

So I did what you asked and not it is giving me an error. "[game] exited after only '0' seconds." any idea?

@sonic2kk
Copy link
Owner

sonic2kk commented Oct 18, 2023

You're going to have to provide a log, but as a guess, no Proton version was found maybe. Check settings on the game menu.

If you didn't remove a per-game config, open the global menu and press save, in case something wasn't set properly. I have no idea which config file you removed so it would be useful if you told me which part you followed :-)

But no, I can't identify issues without a log.

@jon-bit
Copy link
Author

jon-bit commented Oct 20, 2023

Sorry on a trip at the moment for personal problems(I had to go in 6 hrs when I found out). I will get back to you after I am home (my gaming rig is their). It was a last minute thing so I don't know for how long I will be gone but I will get back to you when I can.

@sonic2kk
Copy link
Owner

No problem, personal life always takes priority. Hope you are well soon and if you have other priorities feel free to close this when you get back.

In the meantime, I will test and work on implementing this feature. However, I will not close this issue as soon as it is completed.

Take time for yourself, real life should always come first :-)

@Mte90
Copy link
Contributor

Mte90 commented Mar 11, 2024

Often I need to reset the game settings because doesn't start (stl and the game), so I removed manually the various config files.
I have to get the log of a game when this is happening.

@sonic2kk
Copy link
Owner

Often I need to reset the game settings because doesn't start

If I recall, you're running on SteamOS. This might be because you're configuring the game in Game Mode, which no longer works in recent SteamOS versions (reported a couple of times, but the one I recall off the top of my head is #1012).

A "Back to Default" button is on the roadmap for v14.0 (#992), but there are a few concerns I have with implementing it, mainly where and how. I am currently considering putting it in the Game Files dialog, where you can tick and delete the config file. This would also be extensible to other files too, like the MangoHud, DXVK, per-game+global env vars, and of course the config file. I tried to implement this a few weeks ago and hit a lot of bumps that I can't remember now, but I will revisit it when I have some time and motivation (low on both right now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants