-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced the
automate
button with individual buttons for `card farm…
…ing` and `achievement unlocker` Ensure current SGI user and current Steam user match in certain situation to prevent errors and confusion Now shows details about the account used for `card farming` in `settings > card farming` when credentials are validated Added a `Reset all` button to the `achievements > statistics` tab Fixed an issue where some elements weren't being displayed on the `card farming` screen Fixed an issue with the login background video
- Loading branch information
Showing
75 changed files
with
1,508 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
[![Downloads](https://img.shields.io/github/downloads/zevnda/steam-game-idler/1.6.0-beta.2/total?style=for-the-badge&logo=github&color=137eb5)](https://github.com/zevnda/steam-game-idler/releases/download/1.6.0-beta.2/Steam.Game.Idler_1.6.0.2_x64_en-US.msi) | ||
[![Downloads](https://img.shields.io/github/downloads/zevnda/steam-game-idler/1.6.0-beta.3/total?style=for-the-badge&logo=github&color=137eb5)](https://github.com/zevnda/steam-game-idler/releases/download/1.6.0-beta.3/Steam.Game.Idler_1.6.0.3_x64_en-US.msi) | ||
|
||
> [!Important] | ||
> ### This is a beta release | ||
> Consider using the stable version unless you specifically want to test new features. | ||
> Consider using the [stable version](https://github.com/zevnda/steam-game-idler/releases/latest) unless you specifically want to test new features. | ||
> The `.msi` installer is not fully compressed, hence the large file size. This is expected for a beta release. | ||
> This release will not receive automatic updates. If a newer beta version becomes available you will need to install it manually. | ||
## Changelog | ||
- New login screen and login method for getting account information | ||
- If you have multiple accounts saved on the Steam desktop app, the login screen will now display each account for you to choose from | ||
- Logging in no longer requires Steam to be running | ||
- Logging in no longer adds a `Spacewars` game to your recently played games | ||
- The `achievements` and `statistics` pages no longer lag/freeze while scrolling when there are a lot of achievements or statistics to display | ||
- The search bar for the `games list` is now hidden when not viewing the `games list` | ||
- The search bar for the `achievements list` has moved to the `title bar` | ||
- Fixed an error when searching in the `achievements list` | ||
- Fixed some major prop drilling issues | ||
- Other miscellaneous UI styling | ||
- Replaced the `automate` button with individual buttons for `card farming` and `achievement unlocker` | ||
- Ensure current SGI user and current Steam user match in certain situation to prevent errors and confusion | ||
- Now shows details about the account used for `card farming` in `settings > card farming` when credentials are validated | ||
- Added a `Reset all` button to the `achievements > statistics` tab | ||
- Fixed an issue where some elements weren't being displayed on the `card farming` screen | ||
- Fixed an issue with the login background video |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"version": "1.6.0-2", | ||
"version": "1.6.0-3", | ||
"major": true, | ||
"platforms": { | ||
"windows-x86_64": { | ||
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUSDh2NGF3cDBSMHF6TE1wUzZmQUNhOHphUFR2b29IMkU0WlBuZms2UHhBUXdyenZ0VS9lNGNpeC9BcTYxeFNsRjVSaFFyVXV3bHc5Qm5IeGE5YUlUQm5Bcy9ZbGVHRUFNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzM0NTgwNzc1CWZpbGU6U3RlYW0gR2FtZSBJZGxlcl8xLjUuMzFfeDY0X2VuLVVTLm1zaS56aXAKNWk5ZHp5Y1dDMlQyMGZIWU16bHk1UW5IdkZmUGR3VjI3WWkrem5nQUtaNnVtSVlaSVBNUkNRRUJDanJ0L09icGtQUHFzVncxSjQ4VDU0Mm5rTFdaQWc9PQo=", | ||
"url": "https://github.com/zevnda/steam-game-idler/releases/download/1.6.0-beta.2/Steam.Game.Idler_1.6.0.2_x64_en-US.msi.zip" | ||
"url": "https://github.com/zevnda/steam-game-idler/releases/download/1.6.0-beta.3/Steam.Game.Idler_1.6.0.3_x64_en-US.msi.zip" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using Steamworks; | ||
|
||
namespace SteamUtility.Commands | ||
{ | ||
public class ResetStats : ICommand | ||
{ | ||
static bool statsReceived = false; | ||
static Callback<UserStatsReceived_t> statsReceivedCallback; | ||
|
||
public void Execute(string[] args) | ||
{ | ||
if (args.Length < 2) | ||
{ | ||
MessageBox.Show( | ||
"Usage: SteamUtility.exe reset_stats <AppID>", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
return; | ||
} | ||
|
||
// Validate the AppID | ||
uint appId; | ||
if (!uint.TryParse(args[1], out appId)) | ||
{ | ||
MessageBox.Show( | ||
"Invalid AppID. Please provide a valid Steam App ID (e.g. 221100).", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
return; | ||
} | ||
|
||
// Set the Steam App ID environment variable | ||
Environment.SetEnvironmentVariable("SteamAppId", appId.ToString()); | ||
|
||
// Initialize the Steam API | ||
if (!SteamAPI.Init()) | ||
{ | ||
Console.WriteLine("error"); | ||
return; | ||
} | ||
|
||
try | ||
{ | ||
// Get the Steam user ID and create a callback for receiving user stats | ||
CSteamID steamId = SteamUser.GetSteamID(); | ||
statsReceivedCallback = Callback<UserStatsReceived_t>.Create(OnUserStatsReceived); | ||
// Request user stats from Steam | ||
SteamAPICall_t apiCall = SteamUserStats.RequestUserStats(steamId); | ||
|
||
// Check if the API call is valid | ||
if (apiCall == SteamAPICall_t.Invalid) | ||
{ | ||
MessageBox.Show( | ||
"Failed to request stats from Steam.", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
return; | ||
} | ||
|
||
// Wait for the stats to be received | ||
DateTime startTime = DateTime.Now; | ||
while (!statsReceived) | ||
{ | ||
SteamAPI.RunCallbacks(); | ||
if ((DateTime.Now - startTime).TotalSeconds > 10) | ||
{ | ||
MessageBox.Show( | ||
"Timed out waiting for stats from Steam.", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
return; | ||
} | ||
Thread.Sleep(100); | ||
} | ||
|
||
// Reset all stats | ||
if (SteamUserStats.ResetAllStats(true)) | ||
{ | ||
if (SteamUserStats.StoreStats()) | ||
{ | ||
Console.WriteLine("All stats reset successfully."); | ||
} | ||
else | ||
{ | ||
MessageBox.Show( | ||
"Failed to store reset stats.", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
} | ||
} | ||
else | ||
{ | ||
MessageBox.Show( | ||
"Failed to reset stats.", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
} | ||
} | ||
catch (Exception ex) | ||
{ | ||
MessageBox.Show( | ||
$"An error occurred: {ex.Message}", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
} | ||
finally | ||
{ | ||
// Shutdown the Steam API | ||
SteamAPI.Shutdown(); | ||
} | ||
} | ||
|
||
// Callback method for when user stats are received | ||
static void OnUserStatsReceived(UserStatsReceived_t pCallback) | ||
{ | ||
if (pCallback.m_nGameID == SteamUtils.GetAppID().m_AppId) | ||
{ | ||
if (pCallback.m_eResult == EResult.k_EResultOK) | ||
{ | ||
statsReceived = true; | ||
} | ||
else | ||
{ | ||
MessageBox.Show( | ||
$"Failed to receive stats from Steam. Error code: {pCallback.m_eResult}", | ||
"Error", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Error | ||
); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.