Skip to content

Panic if steam is not running #50

@PROMETHIA-27

Description

@PROMETHIA-27

I'm using aeronet_steam via the new lightyear release, and running into a panic where if steam is not running/reachable when the game starts, aeronet_steam will panic that SteamworksClient is not inserted into the world because I am unable to create and insert it.

Instead of panicking aeronet_steam should fail more gracefully so that games with steam integration don't crash on startup without a helpful error for an end-user.

Here's the full panic error:

Setting breakpad minidump AppID = 1603000
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198111281656 [API loaded no]

thread 'main' panicked at C:\Users\elect\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\aeronet_steam-0.14.0\src\session.rs:43:33:
Requested resource aeronet_steam::SteamworksClient does not exist in the `World`.
                Did you forget to add it using `app.insert_resource` / `app.init_resource`?
                Resources are also implicitly added via `app.add_event`,
                and can be added by plugins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions