LogicXPlaysYT Posted 7 hours ago Report Share Posted 7 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 6 hours ago Report Share Posted 6 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...
LogicXPlaysYT Posted 3 hours ago Author Report Share Posted 3 hours ago Thank you for the warm welcome , it's much appreciated. I am building the game from a Git clone using the following repository: 'https://github.com/0ad/0ad.git' I noticed that the file get-nightly-binaries.bat is not present in the repository. I have also installed the vc141 toolset in VS2022. Should I manually download additional files, such as shaders or translations, from the nightly builds in order to run the game correctly? Thank you for your assistance. Quote Link to comment Share on other sites More sharing options...
Itms Posted 3 hours ago Report Share Posted 3 hours ago Oooh that is the former, outdated git clone of our historical SVN repo. It is archived since summer 2024. The current repository is at https://gitea.wildfiregames.com/0ad/0ad Quote Link to comment Share on other sites More sharing options...
LogicXPlaysYT Posted 3 hours ago Author Report Share Posted 3 hours ago Thank you so much! 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.