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: Config gets erased when I bootup Viper #228

Open Aidentheawesome23 opened 4 months ago

Aidentheawesome23 commented 4 months ago

Screenshot 2024-04-03 184541 When I add the correct gamepath to the config file, and bootup Viper, it gives me the error in the screenshot, and reduces the config file to just {}.

Aidentheawesome23 commented 4 months ago

I'll add that titanfall is installed on an SSD

0neGal commented 4 months ago

Huh, that's weird, does this happen every time you bootup Viper? Is there at any point where Viper is functioning as intended?

Is the gamepath on a separate drive from where Windows is installed?

That error should only popup if a gamepath that was previously valid, becomes invalid, either because a folder was renamed, a disk isn't mounted/plugged in, or similar, but it shouldn't erase the entire config file...

Aidentheawesome23 commented 4 months ago

Happens everytime, I haven't even seen any of the menus.

I moved it to my F drive, which is my external hard drive.

Also, It happens whenever I add my gamepath to my config gile.

0neGal commented 4 months ago

When you click "Ok" does it just close?

Can you try running Viper through PowerShell or command prompt, simply drag the .exe into it, and hit enter, then copy whatever it outputs, if anything...

Aidentheawesome23 commented 4 months ago
Checking for update
[47472:0409/211021.626:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
[47472:0409/211021.626:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
[47472:0409/211021.635:ERROR:disk_cache.cc(208)] Unable to create cache
[47472:0409/211021.639:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2
[47472:0409/211021.639:ERROR:disk_cache.cc(208)] Unable to create cache
[47472:0409/211021.639:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2
[28336:0409/211021.671:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
[28336:0409/211021.671:ERROR:disk_cache.cc(208)] Unable to create cache
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
Update for version 1.11.0 is not available (latest version: 1.11.0, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null

And yes, it closes when I hit ok

Aidentheawesome23 commented 4 months ago

My slashes were the wrong direction...

0neGal commented 4 months ago

Wait, what was the error? Did you manually set the gamepath and have it use forward slashes?

Aidentheawesome23 commented 4 months ago

Yes, and after restarting my pc, it went back to having no game path

Aidentheawesome23 commented 4 months ago

Also, Northstar is crashes when I boot it up

Aidentheawesome23 commented 4 months ago

nslog2024-04-10 22-15-46.txt Northstar log

0neGal commented 4 months ago

Yes, and after restarting my pc, it went back to having no game path

Can you try running this in PowerShell and tell me what it outputs:

Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Respawn\Titanfall2\ -Name "Install Dir"

Also, Northstar is crashes when I boot it up

Does it work fine when you run NorthstarLauncher.exe in the game path manually/is it only broken when launching with Viper?