It sounds to me like you might be going wrong by changing buildsdkshaders.bat in the first place. It calls a number of other script files that also reference perl, and unless you updated all of them as well I suspect it could cause a number of your errors. Instead, try reverting buildsdkshaders to it's default and setup your path variable properly. If you have, those changes to buildsdkshaders.bat should be entirely unnessicary. To check what PATH is currently set to, you can just type "path" (no quotes) into any command line. To build shaders properly, it should have paths to the perl binaries, nmake, and the shader compilers from the directx sdk. On my machine that translates to this at the end of my path variable:
;C:\Perl\site\bin;C:Perl\bin;C:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\bin\x86;D:\Visual Studio 2005\VC\bin Russ Canfield wrote: > I have been trying to compile shaders for the last week...I have followed > every tutorial out there on fixing directories with spaces, and about > everything else > you could think of for the HL2 SDK...Well I am using ActivePerl....and my > code is based on EP1..... > > With that being said, I follow this tutorial: > http://developer.valvesoftware.com/wiki/Shader_Authoring > > I follow this tutorial: > http://www.wraiyth.com/index.php?q=node/5 > > And when I go to compile I get the following error: > myps20.fxc...writing inc > myvs20.fxc...writing inc > 1 file(s) moved. > Can't open perl script "C:\Perl" Permission denied. > > From there it copies my .fxc files and all the SDK .vcs files fine.... > > I switched the directory it looks for Perl to C:\Perl because thats where its > installed..... > > buildsdkshaders.bat was modified with this line: > > REM **************** > REM Execute distributed process on work/build list > REM **************** > perl "C:\Perl" "%SrcDirBase%\materialsystem\stdshaders\runvmpi.pl" > %xbox_args% -changetodir %ChangeToDir% %SDKArgs% > > If anyone can help me I would greatly appreciate it. I am so lost, and I know > very little about perl. Please help!!! > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

