eezstreet / SWATEliteForce

A modification for SWAT 4: The Stetchkov Syndicate
GNU General Public License v2.0
211 stars 35 forks source link

Viewmodel FOV not being saved #643

Open smug opened 2 years ago

smug commented 2 years ago

Discussed in #444 but no solution was given.

Viewmodel FOV will reset upon game restart.

WinkelCode commented 1 year ago

I'm having the same issue, other settings and progress saves fine but viewmodel FOV always resets to 85 on restart.

There are some older Discord messages on the SWAT4 CO-OP server where someone has the same issue and someone else replied that the setting is being saved for them.

WinkelCode commented 1 year ago

Workaround Discovered:

Open {mod folder}\System\Swat4X.ini and add the following

[Engine.FOVSettings]
FPFOV=85.0000

Replace 85.0000 with your desired viewmodel FOV, for example 95.0000.

Caveat: You still can't change it via the settings menu, but you can at least configure what it defaults back to.

For completeness: The normal FOV is saved in {mod folder}\System\User.ini under [Engine.PlayerController] as BaseFOV=97.330002, 97.330002 being the value to change, for example to 120.000000. For me this value is correctly saved when using the settings menu.


I am not an Unreal Engine expert so this came from trial and error based on information from the source code. I find it weird that BaseFOV is in User.ini, while the FOVSettings section has to be in Swat4X.ini (it doesn't work in User.ini), maybe there is still a way to make it properly save changes from the settings menu?