Trico-Everfire / p2-publishing-tool

MIT License
15 stars 2 forks source link

"Steam must be running" (release) #29

Closed FalconinVoid closed 6 months ago

FalconinVoid commented 8 months ago

"Steam must be running to use this tool (SteamAPI_Init() failed)."

Trico-Everfire commented 8 months ago

Use the release version, I do not provide the debug version of QT binaries.

FalconinVoid commented 8 months ago

Okay, but the release version can't find Steam anymore: "Steam must be running to use this tool (SteamAPI_Init() failed)." Do you know how to solve the problem? (I started Steam before I opened the tool of course)

Trico-Everfire commented 8 months ago

it CAN fail for multiple reasons, 99% it's because Steam isn't running. the other 1% are edgecases.

Trico-Everfire commented 8 months ago

The thing is that, for me the map uploader works fine. If restarting your computer doesn't work then the problem lays way deeper than I thought. Debugging the application on Windiows is quite difficult for me, because I don't own a Windows system, at least, not one that I haven't tested already (the tool works on it). so... I'll see what I can do.

Trico-Everfire commented 8 months ago

I've had 2 separate Windows users confirm that the tool works, it's likely something wrong with your machine. Make sure steam is running, update steam and ensure Portal 2 is installed.

FalconinVoid commented 8 months ago

Okay that's really weird, I'll try it on another machine. The last Steam update was on the 7th March 2024, Portal 2 is installed and Steam is running ofc.

Trico-Everfire commented 8 months ago

The thing is that, The Steam API does NOT update, ever, if it were to, a lot of legacy applications Valve and other Steam users have made in the past would break, with no one to maintain those tools it's Valve's number 1 priority is to never change the legacy Steam API, which this tool relies on because Portal 2 relies on it. besides just setting the application theming and env variables the first piece of code that runs is:

    if ( !SteamAPI_Init() )
    {
    ...
    }

It may be that your computer does not allow applications to set env variables, though, I doubt that. However, if it is indeed the case. You need to put this file at the same location as the .exe

steam_appid.txt

I cannot guarenteee it'd fix it, but it'd be worth a shot.

FalconinVoid commented 8 months ago

I tried that, but unfortuntately, this also doesn't work. Same error message.

FalconinVoid commented 8 months ago

Do I have to put the folder in a special directory? Like bin?

FalconinVoid commented 8 months ago

I tried reinstalling Steam but that also didn't work :(

Trico-Everfire commented 8 months ago

This might be a redundant question, but do you have Portal 2 installed? And if so, is it on your main drive or a secondary drive?

FalconinVoid commented 8 months ago

I tried installing Portal 2 on both drives, but this also didn't work.

Trico-Everfire commented 8 months ago

What happens if you run the map uploader from the command prompt? Does that show anything?

FalconinVoid commented 7 months ago

No, running it from the admin command prompt doesn't work either.

FalconinVoid commented 6 months ago

Fixed the problem now. But it was so stupid, I don't want to talk about it... :|