steam-presence icon indicating copy to clipboard operation
steam-presence copied to clipboard

Windows startup

Open superboo07 opened this issue 1 year ago • 19 comments

superboo07 avatar Nov 08 '23 23:11 superboo07

will be testing this myself soon-ish

JustTemmie avatar Nov 10 '23 14:11 JustTemmie

okay i haven't had the time to setup a windows VM in order to actually test this, @Radiicall :pleading_face:??

JustTemmie avatar Dec 22 '23 19:12 JustTemmie

okay i haven't had the time to setup a windows VM in order to actually test this, @Radiicall :pleading_face:??

Dont have one on hand

Radiicall avatar Dec 23 '23 01:12 Radiicall

any updates?

pparmy avatar Jan 07 '24 03:01 pparmy

any updates?

i haven't had the time to test it out yet, if you're down to try it, please do! and tell me if there's any issues

JustTemmie avatar Jan 07 '24 03:01 JustTemmie

any updates?

i haven't had the time to test it out yet, if you're down to try it, please do! and tell me if there's any issues

,, forgive my ignorance, as I'm not too familiar with github, but I think I've made a decent amount of progress. I've just come along this error when trying to run the main.py file image

pparmy avatar Jan 07 '24 05:01 pparmy

image and here is what happens when i put n

pparmy avatar Jan 07 '24 05:01 pparmy

well, the reason if fails if you do "n" is that it's just missing some code the program needed

i'm unsure why it fails when it tries to install stuff, though if you open the script in notepad, and replace all occurances of python3 with python it should work?

JustTemmie avatar Jan 07 '24 12:01 JustTemmie

image I'm about to lay down for a while but I will leave you with the results

pparmy avatar Jan 07 '24 12:01 pparmy

steam API key seems to be invalid, check config.json and make sure it matches your actual key https://steamcommunity.com/dev/apikey

JustTemmie avatar Jan 07 '24 14:01 JustTemmie

image it works ! ! thank you for the assistance

pparmy avatar Jan 07 '24 21:01 pparmy

and i assume it properly launches steam presence whenever you reset the device?

JustTemmie avatar Jan 07 '24 21:01 JustTemmie

I had an issue with it launching before discord did so there may need to be a delay/timer set for it, or at the very least a option. I assume the cmd has to stay open while in use, correct?

OOH, better idea - allow it to retry looking for a connection

pparmy avatar Jan 07 '24 21:01 pparmy

cmd has to stay open yes, i'm a bit unsure how discord handles RPC connections on windows but it should be able to retry connecting?

JustTemmie avatar Jan 07 '24 21:01 JustTemmie

I'll try restarting it again, I might've clicked the in the cmd pre-emptively as it already showed Press any key to continue or something similar

pparmy avatar Jan 07 '24 21:01 pparmy

no luck image image my discord is setup to launch on system restart but it doesn't for some odd reason . . ? even then cmd doesn't retry for a connection though

pparmy avatar Jan 07 '24 21:01 pparmy

,, I understand it's been a hot minute since I've kept you updated but is there a chance of reviving this? I have it working still under the windows-run.bat which is just placed inside the steam-presence-<insert release> directory. I think the only issue would be if the bat ran before discord launched locking it to a 'Press any key to continue' screen IIRC, in which case I assume there might be a way to run until it finds a connection? but I'm not really sure

pparmy avatar May 25 '24 07:05 pparmy

yeah sorry i didn't mean to close this, i just deleted the dev branch, the crashing before discord thing should be fixable on my end - i'm currently rewriting a lot of the code which way require modding your installer script a bit, so i'll wait to merge it until i'm done with that, should only take a couple weeks

JustTemmie avatar May 25 '24 09:05 JustTemmie

To simplify this why not change powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%startupLocation%\SteamRichPresence.lnk');$s.TargetPath='%CD%\windows-run.bat';$s.Save()"

in installer.bat

to

powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%startupLocation%\SteamRichPresence.lnk');$s.TargetPath='%CD%\main.py';$s.Save()"

This removes the need for two scripts and launches main.py directly.

https://github.com/JustTemmie/steam-presence/commit/5d567f5ce9ffd29c6d92bb0ee41553e114068d25

LunRos avatar Aug 13 '24 19:08 LunRos

,, I understand it's been a hot minute since I've kept you updated but is there a chance of reviving this? I have it working still under the windows-run.bat which is just placed inside the steam-presence-<insert release> directory. I think the only issue would be if the bat ran before discord launched locking it to a 'Press any key to continue' screen IIRC, in which case I assume there might be a way to run until it finds a connection? but I'm not really sure

As long as you don't run a game before Discord launches, this shouldn't be an issue.

LunRos avatar Aug 14 '24 15:08 LunRos

this installer will likely need updating when i finish the fabled rewrite:tm: but it's merged for now

JustTemmie avatar Aug 20 '24 08:08 JustTemmie