Talk:Source SDK 2013: Shader Authoring

From Valve Developer Community
Jump to: navigation, search

Can't compile shaders?

Hi! For quite a while I've been adding trying to implement some cool shaders into my Source SDK 2013 MP Mod. I've followed through everything within the instructions. From setting up Perl (with String:CRC32) and DirectX SDK, setting their path variables, creating a.vpc file for my mod, to creating a batch file. However, when I run my build[mod]shaders.bat file I run into this error.

NMAKE :  U1073: don't know how to make 'shaderlib/cshader.h'

When I run it again, I get the same error but with different files. I'm not sure but it appears the bat file is trying to run files from the ..src/public directory as all the files it mentioned are there and present. Anybody know a way for me to fix this? Thanks! --Mariotravel209

2022 Perl Fix

So as it turns out, Activeperl is no longer the right option for this and the information is outdated. I'd edit it myself but I don't know all the workings to these things yet and I don't trust myself to be able to give proper information right on the page itself. That being said, apparently the right version to use these days is "Strawberry Perl" instead of Activeperl. One apparently also has to do "set PATH=#" with # being the directory of perl.exe for things to work. I haven't gone all the way through this process just yet, but it's unfair and exclusionary to have this information exclusively relayed through Discord servers, so I'm putting it out here to help people with their search. --Wolfcl0ck

Changed Perl to Strawberry Perl

Please next time some information is shared on discord, please updated the related Wiki entry - Krispy