doodlum / skyrim-community-shaders

SKSE core plugin for community-driven advanced graphics modifications for AE, SE and VR. Also fixes bugs and improves performance.
GNU General Public License v3.0
184 stars 46 forks source link

DEV (2024-10-1) Test not loading on GOG 1.6.659.0 #581

Open CyborgArmGun opened 1 month ago

CyborgArmGun commented 1 month ago

As it says on the tin.

DLL incompatibility.

CyborgArmGun commented 1 month ago
A DLL plugin has failed to load correctly. If a new version of Skyrim was just released, the plugin needs to be updated. Please check the mod's webpage for updates.

CommunityShaders.dll: disabled, fatal error occurred while loading plugin

Continuing to load may result in lost save data or other undesired behavior.
Exit game? (yes highly suggested)
CyborgArmGun commented 1 month ago
[2024-10-01 09:36:51.835] [info] [17436] [XSEPlugin.cpp:53] Loaded CommunityShaders 0-8-7-0
[2024-10-01 09:36:52.646] [info] [17436] [State.cpp:156] Unable to open user config file (Data\SKSE\Plugins\CommunityShadersUSER.json); trying default (Data\SKSE\Plugins\CommunityShaders.json)
[2024-10-01 09:36:52.646] [warning] [17436] [State.cpp:148] Error parsing json config file (Data\SKSE\Plugins\CommunityShaders.json) : [json.exception.parse_error.101] parse error at line 1, column 1: attempting to parse an empty input; check that your input string or stream contains the expected JSON

[2024-10-01 09:36:52.647] [info] [17436] [State.cpp:161] No default config (Data\SKSE\Plugins\CommunityShaders.json), generating new one
[2024-10-01 09:37:03.251] [info] [17436] [State.cpp:294] Skyrim Upscaler not detected
[2024-10-01 09:37:03.252] [info] [17436] [Deferred.h:148] [Deferred] Installed hooks
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1592] Hooking BGSTextureSet
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1595] Hooking BSLightingShaderProperty
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1600] Hooking BSLightingShader
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1605] Hooking TESObjectLAND
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1608] Hooking TESLandTexture
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1620] Hooking SetPerFrameBuffers
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1623] Hooking BSTempEffectSimpleDecal
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1626] Hooking BSTempEffectGeometryDecal
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1629] Hooking BSGrassShaderProperty::ctor
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1632] Hooking BSGrassShaderProperty
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1635] Hooking BSGrassShader
[2024-10-01 09:37:03.252] [info] [17436] [TruePBR.cpp:1639] Hooking TESObjectSTAT
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:605] Hooking BSInputDeviceManager::PollInputDevices
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:608] Hooking BSShader::LoadShaders
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:610] Hooking BSShader::BeginTechnique
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:616] Hooking BSGraphics::SetDirtyStates
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:619] Hooking BSGraphics::Renderer::InitD3D
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:622] Hooking WndProcHandler
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:625] Hooking BSShaderRenderTargets::Create
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:628] Hooking BSShaderRenderTargets::Create::CreateRenderTarget(s)
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:640] Hooking BSImagespaceShader
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:643] Hooking BSComputeShader
[2024-10-01 09:37:03.252] [info] [17436] [Hooks.cpp:646] Hooking Renderer::DispatchCSShader
[2024-10-01 09:37:03.254] [info] [17436] [ShaderCache.cpp:2196] Disk cache outdated or invalid
[2024-10-01 09:37:03.254] [info] [17436] [ShaderCache.cpp:2177] Deleted disk cache
davidowens commented 1 month ago

This might be an AE problem too. I get ~the same~ a very very similar error on AE 1.6.1170

[2024-10-01 23:11:59.959] [info] [23348] [XSEPlugin.cpp:53] Loaded CommunityShaders 0-8-7-0
[2024-10-01 23:11:59.960] [info] [23348] [State.cpp:156] Unable to open user config file (Data\SKSE\Plugins\CommunityShadersUSER.json); trying default (Data\SKSE\Plugins\CommunityShaders.json)
[2024-10-01 23:11:59.960] [info] [23348] [State.cpp:161] No default config (Data\SKSE\Plugins\CommunityShaders.json), generating new one
[2024-10-01 23:12:19.678] [info] [23348] [State.cpp:294] Skyrim Upscaler not detected
[2024-10-01 23:12:19.679] [info] [23348] [Deferred.h:148] [Deferred] Installed hooks
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1592] Hooking BGSTextureSet
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1595] Hooking BSLightingShaderProperty
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1600] Hooking BSLightingShader
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1605] Hooking TESObjectLAND
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1608] Hooking TESLandTexture
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1620] Hooking SetPerFrameBuffers
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1623] Hooking BSTempEffectSimpleDecal
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1626] Hooking BSTempEffectGeometryDecal
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1629] Hooking BSGrassShaderProperty::ctor
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1632] Hooking BSGrassShaderProperty
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1635] Hooking BSGrassShader
[2024-10-01 23:12:19.679] [info] [23348] [TruePBR.cpp:1639] Hooking TESObjectSTAT
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:605] Hooking BSInputDeviceManager::PollInputDevices
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:608] Hooking BSShader::LoadShaders
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:610] Hooking BSShader::BeginTechnique
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:616] Hooking BSGraphics::SetDirtyStates
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:619] Hooking BSGraphics::Renderer::InitD3D
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:622] Hooking WndProcHandler
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:625] Hooking BSShaderRenderTargets::Create
[2024-10-01 23:12:19.679] [info] [23348] [Hooks.cpp:628] Hooking BSShaderRenderTargets::Create::CreateRenderTarget(s)
[2024-10-01 23:12:19.680] [info] [23348] [Hooks.cpp:640] Hooking BSImagespaceShader
[2024-10-01 23:12:19.680] [info] [23348] [Hooks.cpp:643] Hooking BSComputeShader
[2024-10-01 23:12:19.680] [info] [23348] [Hooks.cpp:646] Hooking Renderer::DispatchCSShader
[2024-10-01 23:12:19.683] [info] [23348] [ShaderCache.cpp:2196] Disk cache outdated or invalid
[2024-10-01 23:12:19.683] [info] [23348] [ShaderCache.cpp:2177] Deleted disk cache
davidowens commented 1 month ago

Screenshot 2024-10-01 224802

matm-git commented 1 month ago

Has CommunityShaders.json been created in Overwrite\skse\plugins and is not empty?

CyborgArmGun commented 1 month ago

Yup, same error.

EDIT:It was empty O_O. Trying some stuff

CyborgArmGun commented 1 month ago

Copied CommunityShaders.json from old 0.8.7 version, new log:

[2024-10-01 19:18:41.657] [info] [19956] [XSEPlugin.cpp:53] Loaded CommunityShaders 0-8-7-0
[2024-10-01 19:18:41.657] [info] [19956] [State.cpp:156] Unable to open user config file (Data\SKSE\Plugins\CommunityShadersUSER.json); trying default (Data\SKSE\Plugins\CommunityShaders.json)
[2024-10-01 19:18:41.658] [info] [19956] [Feature.cpp:45] GrassLighting.ini 1-5-1 successfully loaded
[2024-10-01 19:18:52.096] [info] [19956] [State.cpp:294] Skyrim Upscaler not detected
[2024-10-01 19:18:52.097] [info] [19956] [Deferred.h:148] [Deferred] Installed hooks
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1592] Hooking BGSTextureSet
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1595] Hooking BSLightingShaderProperty
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1600] Hooking BSLightingShader
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1605] Hooking TESObjectLAND
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1608] Hooking TESLandTexture
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1620] Hooking SetPerFrameBuffers
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1623] Hooking BSTempEffectSimpleDecal
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1626] Hooking BSTempEffectGeometryDecal
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1629] Hooking BSGrassShaderProperty::ctor
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1632] Hooking BSGrassShaderProperty
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1635] Hooking BSGrassShader
[2024-10-01 19:18:52.097] [info] [19956] [TruePBR.cpp:1639] Hooking TESObjectSTAT
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:605] Hooking BSInputDeviceManager::PollInputDevices
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:608] Hooking BSShader::LoadShaders
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:610] Hooking BSShader::BeginTechnique
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:616] Hooking BSGraphics::SetDirtyStates
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:619] Hooking BSGraphics::Renderer::InitD3D
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:622] Hooking WndProcHandler
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:625] Hooking BSShaderRenderTargets::Create
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:628] Hooking BSShaderRenderTargets::Create::CreateRenderTarget(s)
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:640] Hooking BSImagespaceShader
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:643] Hooking BSComputeShader
[2024-10-01 19:18:52.097] [info] [19956] [Hooks.cpp:646] Hooking Renderer::DispatchCSShader
[2024-10-01 19:18:52.099] [info] [19956] [ShaderCache.cpp:2196] Disk cache outdated or invalid
[2024-10-01 19:18:52.099] [info] [19956] [ShaderCache.cpp:2177] Deleted disk cache](url)

Copied CommunityShaders.json and renamed it CommunityShadersUSER.json:

[2024-10-01 19:21:11.643] [info] [17872] [XSEPlugin.cpp:53] Loaded CommunityShaders 0-8-7-0
[2024-10-01 19:21:12.465] [info] [17872] [Feature.cpp:45] GrassLighting.ini 1-5-1 successfully loaded
[2024-10-01 19:21:23.050] [info] [17872] [State.cpp:294] Skyrim Upscaler not detected
[2024-10-01 19:21:23.051] [info] [17872] [Deferred.h:148] [Deferred] Installed hooks
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1592] Hooking BGSTextureSet
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1595] Hooking BSLightingShaderProperty
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1600] Hooking BSLightingShader
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1605] Hooking TESObjectLAND
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1608] Hooking TESLandTexture
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1620] Hooking SetPerFrameBuffers
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1623] Hooking BSTempEffectSimpleDecal
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1626] Hooking BSTempEffectGeometryDecal
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1629] Hooking BSGrassShaderProperty::ctor
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1632] Hooking BSGrassShaderProperty
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1635] Hooking BSGrassShader
[2024-10-01 19:21:23.051] [info] [17872] [TruePBR.cpp:1639] Hooking TESObjectSTAT
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:605] Hooking BSInputDeviceManager::PollInputDevices
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:608] Hooking BSShader::LoadShaders
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:610] Hooking BSShader::BeginTechnique
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:616] Hooking BSGraphics::SetDirtyStates
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:619] Hooking BSGraphics::Renderer::InitD3D
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:622] Hooking WndProcHandler
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:625] Hooking BSShaderRenderTargets::Create
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:628] Hooking BSShaderRenderTargets::Create::CreateRenderTarget(s)
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:640] Hooking BSImagespaceShader
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:643] Hooking BSComputeShader
[2024-10-01 19:21:23.051] [info] [17872] [Hooks.cpp:646] Hooking Renderer::DispatchCSShader
[2024-10-01 19:21:23.053] [info] [17872] [ShaderCache.cpp:2196] Disk cache outdated or invalid
[2024-10-01 19:21:23.053] [info] [17872] [ShaderCache.cpp:2177] Deleted disk cache

Same error each time.

matm-git commented 1 month ago

Me and some other have had the same issue. On first launch CS.json is not created, because of this shaders are not fully created and we see the DLL error. I can get around this by opening CS menu in game, clicking on load config. Then closing and opening the game again. You may want to delete the CS.json you copied from the older version before you do this, as I am not sure this is doing good

davidowens commented 1 month ago

what worked for me on the 2024-10-11 release was adding CommunityShaders.json with just an empy object inside

{}

this way there were no complaints about an empty file, and I didn't need to reuse an old version from a previous dev release

davidowens commented 3 weeks ago

it looks related to this block here

https://github.com/doodlum/skyrim-community-shaders/blob/e810d9a90dbfba0b6dc71883434acc6355f8a3df/src/State.cpp#L166-L176

when the new default config file is created to make up for having a missing one

adding CommunityShaders.json with just an empy object inside {} worked again for me on the 2024-10-22 LLF fix test build

davidowens commented 2 weeks ago

I'm on windows 11 with a latest Steam version, so not sure why it happens to me. Only differences might be being in a MO2 GameRoot setup, but that shouldn't matter

This works for me the last 3 test releases though

  1. remove/disable all the old versions of CS including the 2 json files and the ShaderCache
  2. install the new one
  3. run skyrim (from skse)
  4. CS tries to load, can't find CommunityShaders.json
  5. CS makes a new empty CommunityShaders.json, tries to read it, it's empty so it throws the dll error even though it's not a dll problem
  6. shut down Skyrim
  7. add {} as the contents of the generated CommunityShaders.json
  8. run skyrim (from skse)
  9. turn shaders on and tweak settings in the CS GUI
  10. everything looks awesome