samsface / godot-steam-api

Godot Steam integration using GDNative.
403 stars 16 forks source link

Steam.utils.is_running_on_steam_deck() returns an error and crashes engine #36

Closed starsidecosmos closed 1 year ago

starsidecosmos commented 1 year ago

Steam.utils.is_running_on_steam_deck() returns nonexistent function 'is_running_on_steam_deck' in base Reference() error and crashes the engine.

Perhaps the official Godot repositories are not updated yet? However, I did download a zipped version of the master and the same thing occurred.

For reference, I'm on Ubuntu 22.04.1 LTS. Steam is currently running in the background, but Godot is being launched via Itch.

samsface commented 1 year ago

@starsidecosmos Can you screenshot the full error output from Godot please? Including any errors that may have occurred during the game startup.

What version of the steam api are you using? is_running_on_steam_deck was added recently.

starsidecosmos commented 1 year ago

Just downloaded and reimported version 1.55 of the steamworks sdk.

Screenshot from 2023-01-05 12-46-14

samsface commented 1 year ago

@starsidecosmos If you check your steam_i.gd file, does it have this function? https://github.com/samsface/godot-steam-api/blob/743b413022e55309c6498b5143a25f8193217baf/addons/steam_api/steam_i.gd#L200

starsidecosmos commented 1 year ago

It does not.

I tried redownloading from the official repositories and it still doesn't appear. Perhaps the official repositories aren't updated yet?

samsface commented 1 year ago

@starsidecosmos I've just requested the latest commit be used on the Asset Library. Updating the Asset Library is a manual process so my take a few days. You could also try download the plugin directly from this repo: https://github.com/samsface/godot-steam-api/archive/refs/heads/master.zip

starsidecosmos commented 1 year ago

Thanks! I did that before opening the issue, but I must not have implemented it correctly.

I've currently found a solution by using Steam's built-in Steamdeck-only depots and a custom Steamdeck Godot export with a "steamdeck" feature tag.