tx00100xt / SeriousSamClassic-VK

Open source game engine version developed by Croteam for Serious Sam Classic with Vulkan support (Windows, Linux, FreeBSD, OpenBSD, macOS, Raspberry Pi OS). Based on https://github.com/sultim-t/Serious-Engine-Vk and linux port https://github.com/icculus/Serious-Engine
GNU General Public License v2.0
104 stars 12 forks source link

many cvars roll back to his default values when you close/launch the game #14

Closed Sol1vaN closed 1 year ago

Sol1vaN commented 1 year ago

Hi there,

I want to change some advanced graphics options but the game always reset the values, here's the list. I've chequed the PersistentSymbols.ini

tex_iNormalQuality=22 always reset to 0 tex_iAnimationSize=8 always reset to 7 tex_iFiltering=0 always reset to -1 tex_iEffectFiltering=5 always reset to 4 shd_iFiltering=5 always reset to 3 shd_fCacheSize=24 always reset to 16 shd_bCacheAll=1 always reset to 0 mdl_fLODMul=0.5 always reset to 1 mdl_iLODDisappear=0 always reset to 1 mdl_iShadowQuality=3 always reset to 1 gap_iDithering=0 always reset to 2 d3d_iVertexBuffersSize=2048 always reset to 512

*this happens with bot versions of the game, FE and SE.

tx00100xt commented 1 year ago

Hello. You are using the Windows or Linux version of the game. Base game or Mod. Please clarify.

Sol1vaN commented 1 year ago

Hi! sure. I'm using Windows version for the base games. Also the mods suffers the same problems (XPLUS and SSA).

tx00100xt commented 1 year ago

When I ported Vulkan support to Linux, I left the void ForceModernHardwareGraphicsSettings() function only for Windows https://github.com/tx00100xt/SeriousSamClassic-VK/blob/main/SamTFE/Sources/Engine/Graphics/Gfx_Vulkan.cpp#L149 Then I forgot to kill her call when I added support for windows. Initially, the project was only for *nix systems. This function resets the parameters. https://github.com/tx00100xt/SeriousSamClassic-VK/blob/main/SamTFE/Sources/Engine/Graphics/GfxLibrary.cpp#L2368

I will remove the call to this function and update the release within two or three days.

tx00100xt commented 1 year ago

Removed the function call. https://github.com/tx00100xt/SeriousSamClassic-VK/commit/0f654779e8a571ce282d40d2379c461ae891322a https://github.com/tx00100xt/SeriousSamClassic-VK/commit/bd6d5a08305cd5f3b35b74a02b8b53735b977890

tx00100xt commented 1 year ago

Updated release: https://github.com/tx00100xt/SeriousSamClassic-VK/releases/tag/v1.10.4

SeriousSamClassicVk-1.10.4-win32-bin.zip SeriousSamClassicVk-1.10.4-win64-bin.zip

Have a good game

Sol1vaN commented 1 year ago

many many thanks for the ultra fast reply and solution! i've tested the games and mods and now work flaweless😎🤩