samsface / godot-steam-api

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

Cannot get this to work at all #30

Open mearlam opened 1 year ago

mearlam commented 1 year ago

I have googled everywhere trying to find out what I am doing wrong but this plugin does not work for me in any circumstance and doesn't really say why.

Any help would be appreciated, thanks.

Error from IDE:

`E 0:00:09.603 call: Failed to init steam api. Is Steam running? Is the plugin activated? Did you do the setup in ProjectSettings > SteamAPI <C++ Source> modules/gdscript/gdscript_functions.cpp:775 @ call()

steam.gd:44 @ _ready()` No other errors, this is the only one. Error when running from exe: * Is Steam running? - YES * Is the plugin activated? - YES * Did you do the setup in ProjectSettings > SteamAPI? - YES ` ERROR: Failed to init steam api. Is Steam running? Is the plugin activated? Did you do the setup in ProjectSettings > SteamAPI at: call (modules/gdscript/gdscript_functions.cpp:775) - Failed to init steam api. Is Steam running? Is the plugin activated? Did you do the setup in ProjectSettings > SteamAPI ERROR: You're running an exported build. Steam integration will only work if the game is launched by Steam. Either upload this build to Steam or create a file in the same directory as your exported build named 'steam_appid.txt' with just your steam app id in it. at: call (modules/gdscript/gdscript_functions.cpp:775) - You're running an exported build. Steam integration will only work if the game is launched by Steam. Either upload this build to Steam or create a file in the same directory as your exported build named 'steam_appid.txt' with just your steam app id in it.`
samsface commented 1 year ago

@mearlam

mearlam commented 1 year ago

`Running: E:/Godot_v3.5-stable_win64.exe --path E:/work/eow-survivors-go --remote-debug 127.0.0.1:6008 --allow_focus_steal_pid 131352 --position 760,180 --breakpoints res://CarTrigger.gd:9,res://UI/HoverLabelButtonUI.gd:61,res://UI/ItemUI.gd:58

Godot Engine v3.5.stable.official.991bb6ac7 - https://godotengine.org OpenGL ES 3.0 Renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2 Async. shader compilation: OFF

ERROR: Error calling method from signal 'visibility_changed': 'CanvasLayer(PauseMenuUI.gd)::_on_HomeBaseUI_visibility_changed': Method not found.. at: emit_signal (core/object.cpp:1242) ERROR: Failed to init steam api. Is Steam running? Is the plugin activated? Did you do the setup in ProjectSettings > SteamAPI at: call (modules/gdscript/gdscript_functions.cpp:775) Steam.is_init: False Steam achievement test: Null ERROR: Error calling method from signal 'sort_children': 'CanvasLayer(PauseMenuUI.gd)::_on_SettingsMenu_sort_children': Method not found..`

samsface commented 1 year ago

Just started a fresh project on Win11, Godot Stable 3.5, downloaded from the plugin asset lib and worked straight away :thinking:.

mearlam commented 1 year ago

Yeah, I guess I am doing something dumb tbh but I have no idea what.

See my latest comment, I think I may be wasting your time

mearlam commented 1 year ago

Ah hang on, I just noticed this label.

Steam App ID (must be a valid in your steam library).

I think this is the problem. I only have a store page at the moment.

Is it even possible to get my game in my steam library before it is released?

samsface commented 1 year ago

Ah, there's your problem. The steam game needs to be in your library.

You can request keys for your game here before it's released: Login to steamworks > landing page of your app > Request Product Keys > Developer Grant (should get you an instant key, might have to relogin to steam). Though if I remember... I think if you just login to steam with your developer account, the game should be in your library already too. I think in your case, you haven't uploaded any build to Steam yet I'm guessing. You'll need to do that first.

mearlam commented 1 year ago

So it was me doing something dumb of course.

I have requested a key and got this lovely reply.

Key requests are usually reviewed within a day or two. You'll receive an e-mail once your keys have been approved.

You are correct though, I am logged in with my personal steam account but use a new one for my game that I have never logged in as.

I swapped accounts while I wait for that key and it works perfectly.

Clearly this is me being a total clown but could you make a change in the code to give a better error about not finding the game in your library or something?

Not like I should be suggesting anything mind.

Thanks for your help and being so quick to respond.

samsface commented 1 year ago

Yeah there should be an error for this. Leaving ticket open to track.