0neGal / viper

Launcher+Updater for TF|2 Northstar
https://0negal.github.io/viper
GNU General Public License v3.0
151 stars 21 forks source link

bug: Viper does not launch in foreground #236

Closed GeckoEidechse closed 2 months ago

GeckoEidechse commented 2 months ago

Describe the bug Taken from a recent ticket on Northstar Discord

Describe your issue for us. Whenever I try to launch Viper I can see it in task manager as a background process. It does not come up as a window.

Have you read the Wiki and announcements? Not everything (I have looked at faqs relating to northstar/viper as well as looking on reddit)

What OS? What Installer (Viper/VTOL/R2MM)? Windows 10/Viper

Are you trying to host a server? no

What have you tried so far? I have tried reinstalling viper Running the setup and app as an admin Restarting PC Running TF2 with viper also running (had no reason for it to work but I tried it)

image

0neGal commented 2 months ago

Sounds a lot like #231 albeit it got fixed, and they're presumable on the latest version. So it's likely just some other error that occurs before the window is created. I would need logs (running Viper in cmd.exe or powershell.exe) to diagnose this unfortunately :p

GeckoEidechse commented 2 months ago

I'll forward

GeckoEidechse commented 2 months ago

ran it a third time and it had the same output as the second one @Gecko

image

image

0neGal commented 2 months ago

Seems to be an issue with parsing the libraryfolders.vdf file from Steam, while it's fixable without, I wouldn't mind knowing the contents of it (should be at C:\Program Files (x86)\Steam\steamapps\libraryfolders.vdf), wondering whether it's Viper's fault or the parser. Either way I'll add some more checking to it to fix this.

In the meantime, this could be fixed by either editing the config file (%APPDATA%\viper.json) manually and setting the path, or simply adding --setpath "<gamepath>" onto the Viper.exe command.

Replacing <gamepath> with the actual gamepath of course.

0neGal commented 2 months ago

This should ideally be fixed with 384977d

GeckoEidechse commented 2 months ago

Seems to still be an issue in 1.12.0

image

0neGal commented 2 months ago

Ouch, I now realize the actual issue, should be properly fixed in v1.12.1