Skip to content

SteamManager Callback Dispatcher Not Initialized After Scene Load #679

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

Open
Kad0n opened this issue Feb 24, 2025 · 0 comments
Open

SteamManager Callback Dispatcher Not Initialized After Scene Load #679

Kad0n opened this issue Feb 24, 2025 · 0 comments

Comments

@Kad0n
Copy link

Kad0n commented Feb 24, 2025

When loading from the menu scene (where SteamManager is initialized) into any other scene, the following error occurs:
InvalidOperationException: Callback dispatcher is not initialized. Steamworks.CallbackDispatcher.RunFrame (System.Boolean isGameServer) (at Assets/com.rlabrecque.steamworks.net/Runtime/CallbackDispatcher.cs:201) Steamworks.SteamAPI.RunCallbacks () (at Assets/com.rlabrecque.steamworks.net/Runtime/Steam.cs:185) SteamManager.Update () (at Assets/Scripts/Steamworks.NET/SteamManager.cs:173)

Returning to the menu scene causes all Steamworks features to stop working, including the overlay, achievement granting, and displaying the username and profile picture. (All of which work on initial run of the scene)

Steps I take to Reproduce:

Start the game in the menu scene where SteamManager is present and on see on instantiation SteamManager is set as DontDestroyOnLoad.
Load into any scene without SteamManager object originally being part of the scene (to prevent duplicates).
SteamManager object still under DontDestroyOnLoad
Observe the console error regarding the callback dispatcher about once a frame.
Load back to the menu scene.
Notice that all Steamworks features are no longer functional.

Expected Behavior:

SteamManager should persist across scene loads without losing callback dispatcher functionality.
Steamworks features (overlay, achievements, user data) should remain functional when returning to the menu.

Actual Behavior:

InvalidOperationException occurs upon loading any other scene.
Steamworks features are broken when returning to the menu scene.

Unity 2022.3.9f1 DX11
Steamworks.NET 2024.8.0

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

No branches or pull requests

1 participant