Skip to content
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

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

Closed
starsidecosmos opened this issue Jan 5, 2023 · 6 comments

Comments

@starsidecosmos
Copy link

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
Copy link
Owner

samsface commented Jan 5, 2023

@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
Copy link
Author

Just downloaded and reimported version 1.55 of the steamworks sdk.

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

@samsface
Copy link
Owner

samsface commented Jan 5, 2023

@starsidecosmos If you check your steam_i.gd file, does it have this function?

func is_running_on_steam_deck() -> bool:

@starsidecosmos
Copy link
Author

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
Copy link
Owner

samsface commented Jan 5, 2023

@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
Copy link
Author

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.

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

2 participants