LogicXPlaysYT Posted 3 hours ago Report Share Posted 3 hours ago Hi, I'm trying to build 0 A.D. from source on Windows using Visual Studio 2022. The build completes successfully, but when I run `pyrogenesis.exe`, the game crashes with the following assertion: "Assertion failed: "0 <= pass && pass < static_cast<int>(m_Passes.size())" Location: shadertechnique.cpp:79 (CShaderTechnique::GetGraphicsPipelineState)" This happens during GUI rendering, and the call stack shows references to CCanvas2D and shader bindings. I did run `update-workspaces.bat` and built with `MSBuild pyrogenesis.sln /p:Configuration=Release /p:Platform=x64`. I also cleared the shader cache at: %LOCALAPPDATA%\0ad\cache But the crash still occurs. Do you have any advice on how to fix this or properly reset the graphics pipeline/shaders? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Itms Posted 2 hours ago Report Share Posted 2 hours ago Hi and welcome to the forums. We're a few days away from supporting building with VS 2022, there is an almost ready PR that you could test: #8176 If you're using the main branch or the nightly build, VS 2017 is the only supported compiler (though you could use the vc141 toolset in VS2022) until that PR is merged. And lastly, if you're building from a git clone, you'll need to download Vulkan shaders and translations from the nightly build using `binaries/system/get-nightly-binaries.bat`, or else you'll have the game fall back to OpenGL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.