Skip to content

[BUG] OpenSteamTool v1.4.6 fix Debug game library count mismatch with number of .lua files in lua folder (hot reload issue) #85

@h0kd33

Description

@h0kd33

Prerequisites

  • I have searched existing issues and confirmed this has not been reported.
  • I am using the latest build version from the releases page.

Steam client version

Steam v1779918128

Windows version

Windows 11 25H2 (26200.8457)

Describe the bug

After adding 129 .lua files to the collection library (Lua folder),
deleting all 129 .lua files at once causes a freeze during hot reload (the collection library gets stuck at 129 games, the actual Lua folder is cleared).

However, deleting only one .lua file from the collection library (Lua folder) (maintaining 128 .lua files)
deleting all 128 .lua files at once does not cause a freeze during hot reload (the games in the collection library are cleared).

It's unclear whether this is an issue with the ratio of deleted .lua files.

Test the number of .lua files deleted
Lua folder
Add 128 .lua files -> Delete 128 .lua files Hot reload will not freeze
Add 129 .lua files -> Delete 129 .lua files Hot reload will freeze
Add 130 .lua files -> Delete 130 .lua files Hot reload will freeze
Add 135 .lua files -> Delete 135 .lua files Hot reload will freeze
Add 140 .lua files -> Delete 140 .lua files Hot reload will freeze
Add 129 .lua files -> Delete 1 .lua files -> Delete 128 .lua files Hot reload will not freeze

Add 190 .lua files -> Delete 128 .lua files -> Delete 62 .lua files Hot reload will not freeze
Add 190 .lua files -> Delete 129 .lua files -> Delete 61 .lua files Hot reload will freeze

Add 190 .lua files -> Delete 150 .lua files -> Delete 40 .lua files Hot reload will not freeze
Add 190 .lua files -> Delete 155 .lua files -> Delete 35 .lua files Hot reload will not freeze
Add 190 .lua files -> Delete 158 .lua files -> Delete 32 .lua files Hot reload will not freeze
Add 190 .lua files -> Delete 159 .lua files -> Delete 31 .lua files Hot reload will not freeze
Add 190 .lua files -> Delete 160 .lua files Hot reload will freeze

Steps to reproduce

OpenSteamTool v1.4.6 fix Debug
After adding 129 .lua files to the lua folder, deleting all 129 .lua files at once will cause hot reload to freeze

  1. Fresh install Steam v1779918128
  2. Place OpenSteamTool v1.4.6 fix Debug dwmapi.dll, OpenSteamTool.dll, xinput1_4.dll into the Steam root directory
  3. Place opensteamtool.toml into the Steam root directory and modify opensteamtool.toml [log] level = "debug"
  4. After opening Steam, put 129 .lua files into C:\Program Files (x86)\Steam\config\lua
  5. After deleting all 129 .lua files at once, the library will get stuck showing 129 games, but the actual lua folder is already empty

OpenSteamTool v1.4.6 fix Debug
After adding 129 .lua files to the lua folder, delete only 1 .lua file (leaving 128 .lua files in the folder), then delete all 128 .lua files at once; hot reload will not freeze

  1. Fresh install Steam v1779918128
  2. Place OpenSteamTool v1.4.6 fix Debug dwmapi.dll, OpenSteamTool.dll, xinput1_4.dll into the Steam root directory
  3. Place opensteamtool.toml into the Steam root directory and modify opensteamtool.toml [log] level = "debug"
  4. After opening Steam, put 129 .lua files into C:\Program Files (x86)\Steam\config\lua
  5. Delete only 1 .lua file (leaving 128 .lua files in the folder), then delete all 128 .lua files at once; the library’s game count will be cleared, but the actual lua folder is already empty

OpenSteamTool v1.4.6 fix Debug
After adding 190 .lua files to the lua folder, deleting 128 .lua files at once and then deleting another 62 .lua files will not cause hot reload to freeze

  1. Fresh install Steam v1779918128
  2. Place OpenSteamTool v1.4.6 fix Debug dwmapi.dll, OpenSteamTool.dll, xinput1_4.dll into the Steam root directory
  3. Place opensteamtool.toml into the Steam root directory and modify opensteamtool.toml [log] level = "debug"
  4. After opening Steam, put 190 .lua files into C:\Program Files (x86)\Steam\config\lua
  5. Delete 128 .lua files at once and then delete another 62 .lua files; the library game count will display correctly and will not get stuck

OpenSteamTool v1.4.6 fix Debug
After adding 190 .lua files to the lua folder, deleting 129 .lua files at once and then deleting another 61 .lua files will cause hot reload to freeze

  1. Fresh install Steam v1779918128
  2. Place OpenSteamTool v1.4.6 fix Debug dwmapi.dll, OpenSteamTool.dll, xinput1_4.dll into the Steam root directory
  3. Place opensteamtool.toml into the Steam root directory and modify opensteamtool.toml [log] level = "debug"
  4. After opening Steam, put 190 .lua files into C:\Program Files (x86)\Steam\config\lua
  5. Delete 129 .lua files at once and then delete another 61 .lua files; the library game count will display abnormally and freeze, but the actual lua folder is already empty

Expected behavior

After adding a certain number of .lua files to the Lua folder (e.g., 500 .lua files),
deleting a certain number of .lua files (e.g., 200 .lua files) or clearing the Lua folder,
the number of games in the collection library and the number of .lua files in the Lua folder can remain consistent.

Actual behavior

The number of games in the collection library does not match the number of .lua files in the lua folder.

Log files

https://mega.nz/folder/KewmTLxT#KlZFkDM7MpYlQB7EzAljbw

Lua configuration (if relevant)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions