ac-custom-shaders-patch / acc-extension-config

Configuration files for Assetto Corsa Custom Shaders Patch
232 stars 224 forks source link

[Linux|Proton] Assetto Corsa missing call from a CSP dll file when launching with latest CSP preview #430

Open TonySSS100 opened 1 year ago

TonySSS100 commented 1 year ago

I recently installed latest CSP preview and CM version (also latest GE-Proton version called 8-20), when I launch game I get this error message: 2023-10-18_13-27

It's essentially a similar error I had long ago the first time I installed AC on Linux Nobara (Fedora) coming from a bootlooped Windows 11 install from an update, before a new CSP preview got released which fixed that error once and for all.

Lastly I would also like to report a small bug with Paintshop app from App Shelf still related to Linux only: it partially works wherein I'm forced to restart a session in order to load it after installing it and I can only highlight parts of a car but cannot select them since some keyboard and mouse controls stop working until I don't delete its folder from apps folder. I'm so hesitant to use it over traditional templates in Photoshop/GIMP since I'm not that good at creating liveries there frankly and got used to livery editors from console games such as Forza instead.

TonySSS100 commented 1 year ago

Lastly when I downgraded to previous version, somehow all LUA apps I have including Pure Config and Planner won't load in game for some reason, but I still have their folders thankfully. image image

greunix commented 11 months ago

Same error for me (DraugerOS, GE-Proton24-8) with csp 0.180p442 and higher. I found out that disable 'Cache AC memory layout' in 'GENERAL PATCH SETTINGS - Optimizations' fixes this error. fix csp error

TonySSS100 commented 11 months ago

Same error for me (DraugerOS, GE-Proton24-8) with csp 0.180p442 and higher. I found out that disable 'Cache AC memory layout' in 'GENERAL PATCH SETTINGS - Optimizations' fixes this error. fix csp error

Thanks, that solved the issue, I can now go finally play AC again!

topas-rec commented 8 months ago

_Adding keyword for people to find this easier: Can't find "g_pPfxContext".

For me on arch linux, with proton 5 and with CSP in version 0.2.0, 0.2.1 or 0.2.2, disabling Cache AC memory layout doesn't fix the issue. Does someone knows more about this and can help out? Otherwise I'll create a new issue for a new version. This issue seems to be for 1.8 previews.

topas-rec commented 8 months ago

I just tried the 0.2.3-preview1 and still get this error. Should I create a new issue?

Marocco2 commented 8 months ago

_Adding keyword for people to find this easier: Can't find "g_pPfxContext".

For me on arch linux, with proton 5 and with CSP in version 0.2.0, 0.2.1 or 0.2.2, disabling Cache AC memory layout doesn't fix the issue. Does someone knows more about this and can help out? Otherwise I'll create a new issue for a new version. This issue seems to be for 1.8 previews.

Try resetting CSP settings and start over tick by tick until it breaks again

topas-rec commented 8 months ago

It happens with all settings default (I checked every page for the reset button in 0.2.3-preview1).

CSP log ``` 2024-02-19T21:48:12:526 [01428] | INFO | Custom Shaders Patch 0.2.3-preview1 is up and running. 2024-02-19T21:48:12:526 [01428] | INFO | Please avoid using this log file for anything or parsing it in any way. Next update might not print anything here at all. 2024-02-19T21:48:12:527 [01428] | INFO | Time in race.ini: 62640, sun angle=70.4 2024-02-19T21:48:12:536 [01428] | DEBUG | CSP resource pack is ready: 71 MB 2024-02-19T21:48:12:537 [01428] | INFO | Setting AC hooks… 2024-02-19T21:48:12:537 [01428] | INFO | Target: acs 2024-02-19T21:48:12:548 [01428] | DEBUG | 26782 items are loaded from AC cached map 2024-02-19T21:48:12:548 [01428] | INFO | Target initialized 2024-02-19T21:48:12:554 [01428] | INFO | Running with Wine 2024-02-19T21:48:12:954 [01428] | DEBUG | Alternative mapping: use different name `INIReader::useCache`: `?useCache@INIReader@@2_NA`, index=-1 2024-02-19T21:48:12:954 [01428] | DEBUG | Alternative mapping: use different name `INIReader::cache`: `?cache@INIReader@@1V?$map@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@V?$map@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UINISection@@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UINISection@@@std@@@2@@2@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@V?$map@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UINISection@@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UINISection@@@std@@@2@@2@@std@@@2@@std@@A`, index=-1 2024-02-19T21:48:12:957 [01428] | DEBUG | Alternative mapping: use different name `formCurrentOffset`: `?formCurrentOffset@@3Vvec2f@@A`, index=-1 2024-02-19T21:48:12:990 [01428] | DEBUG | Alternative mapping: use different name `SteamInterface::playerGUID`: `?playerGUID@SteamInterface@@2V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@A`, index=-1 2024-02-19T21:48:13:077 [01428] | DEBUG | Alternative mapping: use different name `videoSettings`: `?videoSettings@@3UKGLVideoSettings@@A`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `device`: `?device@@3PEAUID3D11Device@@EA`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `immediateContext`: `?immediateContext@@3PEAUID3D11DeviceContext@@EA`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `swapChain`: `?swapChain@@3PEAUIDXGISwapChain@@EA`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `currentLayout`: `?currentLayout@@3PEAUID3D11InputLayout@@EA`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `videoSettings`: `?videoSettings@@3UKGLVideoSettings@@A`, index=-1 2024-02-19T21:48:13:103 [01428] | DEBUG | Alternative mapping: use different name `CarLodManager::lodDistDivisor`: `?lodDistDivisor@CarLodManager@@2MA`, index=-1 2024-02-19T21:48:13:105 [01428] | DEBUG | Alternative mapping: use different name `RaceManager::carsToBeLoaded`: `?carsToBeLoaded@RaceManager@@2HA`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `blendStates`: `?blendStates@@3PAPEAUID3D11BlendState@@A`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `cullStates`: `?cullStates@@3PAPEAUID3D11RasterizerState@@A`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `depthStates`: `?depthStates@@3PAPEAUID3D11DepthStencilState@@A`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `activeRenderTargetView`: `?activeRenderTargetView@@3PEAUID3D11RenderTargetView@@EA`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `activeDepthStencilView`: `?activeDepthStencilView@@3PEAUID3D11DepthStencilView@@EA`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `screenRenderTarget`: `?screenRenderTarget@@3PEAVKGLRenderTarget@@EA`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `screenDepthTarget`: `?screenDepthTarget@@3PEAVKGLRenderTarget@@EA`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `frameInformation`: `?frameInformation@@3V?$vector@UFrameInformation@@V?$allocator@UFrameInformation@@@std@@@std@@A`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `replayLeaderboards`: `?replayLeaderboards@@3V?$vector@V?$vector@ULeaderboardEntry@@V?$allocator@ULeaderboardEntry@@@std@@@std@@V?$allocator@V?$vector@ULeaderboardEntry@@V?$allocator@ULeaderboardEntry@@@std@@@std@@@2@@std@@A`, index=-1 2024-02-19T21:48:13:107 [01428] | DEBUG | Alternative mapping: use different name `ReplayRecorder::recordIntervalMS`: `?recordIntervalMS@GhostCarRecorder@@2NB`, index=-1 2024-02-19T21:48:13:108 [01428] | DEBUG | Alternative mapping: use different name `pHMD`: `?pHMD@@3PEAVIVRSystem@vr@@EA`, index=-1 2024-02-19T21:48:13:178 [01428] | INFO | Hooks prepared 2024-02-19T21:48:13:178 [01428] | INFO | Time to find things: 630.08 ms 2024-02-19T21:48:13:178 [01428] | ERROR | Failed to initialize ```
topas-rec commented 8 months ago

Switching to 0.1.73 works fine

topas-rec commented 8 months ago

I tried to find out more about this by

The latest version that works is 0.1.79-preview5.

The following versions don't work (fail with the error of this issue)

edit: the latest version that I know of. I didn't find versions between 0.1.79-preview5and 0.1.80-preview442

greunix commented 8 months ago

For me, the options 'Cache AC memory layout' and 'Cache AC data to speed up loading' in 'GENERAL PATCH SETTINGS - Optimizations' must be deactivated for csp to start without fatal errors.

Otherwise try again to deactivate all modules AND all options in 'GENERAL PATCH SETTINGS' except for 'Shaders Patch: Active'. If csp then starts without errors, gradually activate the options again. If not, I'm out of my depth, sorry.

topas-rec commented 8 months ago

I tried both your suggestions and that doesn't work here. What proton version do you use?

edit: What CSP version do you use?

greunix commented 8 months ago

I use a custom proton version, GE-Proton8-24 (https://github.com/GloriousEggroll/proton-ge-custom). CSP 0.2.3-preview1. Linux is draugerOS based on ubuntu.

ockerman0 commented 8 months ago

Switching to the Proton 9.0 beta, as well as disabling the 'Cache AC memory layout' seems to have solved this issue for me, as I'm able to use the 2.3 preview without the error.

topas-rec commented 8 months ago

It works now also for me. Details:

I created a fresh Proton 5.0 prefix (game crashes) and then just changed to protonGe8-32 which made the game work. Then I used lights-patch-v0.2.3-preview1 and disabled the two caching entries in CSP settings and started a race which worked without the error mentioned in this issue. I had missing fonts, see https://github.com/ac-custom-shaders-patch/acc-extension-config/issues/316#issuecomment-1555725535 for details and after adding the fonts the game worked.