Re: Computer Shuts Off While Optimizing Files
Hi Ben,
Firstly - I feel your pain. I can only log in randomly - some days I will get in for a couple of hours and maybe a few times. Other days I can't get in after 15 tries or so... Whatever timer or interupt or whatever is causing this it is a freaking PITA and only occurred after the first patch for me. Full reinstall got me back in - but then it crashed next time again.
Secondly - the game crashing during optimisation *may* have nothing to do with that process. Optimisation doesn't need to be done every time we play and who knows why they have forced it. Each time you change game settings you would want to redo the optimisation, or patches etc.
I will include text below to include in a batch file that will "Toggle" optimisation on/off. I just have it on my desktop and run it.
I have had a hard reboot a few times from games in recent times and also thought PSU or other fault. Invariably its not. You have obviously checked that. My understanding is that some changes in windows now mean a driver can reset instead of just BSOD. I think the reboot is a similar scenario.
Constant hard reboots can corrupt files - so please open a Command Interface as Admin and run System File Checker (sfc /scannow) which will confirm your system files have not been corrupted.
Win key -> type CMD in top bar -> click open as admin in the right panel to open a dos prompt. type sfc / Scannow
It may need running again after reboot if some protected mode files needed replacing.
The code for the Optimising files (from mods on Nexusmods ... there are some good ones there for Jedi Survivor. Shame I can't play it).
**************************************
@echo off
set configpath=%localappdata%\SwGame\Saved\Config\WindowsNoEditor
if not exist "%configpath%\Engine.ini" (
copy /y NUL "%configpath%\Engine.ini" > NUL
)
for /f "tokens=*" %%a in ('inifile "%configpath%\GameUserSettings.ini" [ShaderPipelineCache.CacheFile] LastOpened') do %%a
if %LastOpened%==Test goto enable
if %LastOpened%==SwGame goto disable
echo Could not determine shader precompilation status, doing nothing
:exit
echo DONE! Press any key to exit
pause >nul
exit /b
:disable
echo Disabling shader precompilation
call :clearreadonly
inifile "%configpath%\Engine.ini" [SystemSettings] r.ShaderPipelineCache.LogPSO=1
inifile "%configpath%\GameUserSettings.ini" [ShaderPipelineCache.CacheFile] LastOpened=Test
call 😕etreadonly
goto exit
:enable
echo Enabling shader precompilation
call :clearreadonly
inifile "%configpath%\Engine.ini" [SystemSettings] r.ShaderPipelineCache.LogPSO=
inifile "%configpath%\GameUserSettings.ini" [ShaderPipelineCache.CacheFile] LastOpened=SwGame
goto exit
:clearreadonly
attrib -r "%configpath%\Engine.ini"
attrib -r "%configpath%\GameUserSettings.ini"
goto :eof
😕etreadonly
attrib +r "%configpath%\Engine.ini"
attrib +r "%configpath%\GameUserSettings.ini"
goto :eof
emotes should read : setreadonly with no space.