User talk:SoapyMan: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
I have the Episode One SDK, and i can't compile shaders from custom Dir, but i tried to compile it through the shadercompile.exe .


'''here''' is output log:
<code>
After VMPI_Init
After VMPI_FileSystem_Init
150 compiles
After Shared_ParseListOfCompileCommands
trying to open: bin\vstdlib.dll
trying to open: bin\tier0.dll
fxc.exe /DSHADERCOMBO=0 /DTOTALSHADERCOMBOS=288 /DCENTROIDMASK=0 /DNUMDYNAMICCOMBOS=12 /DFLAGS=0x0 /DHDRENABLED=0 /DFOGTYPE=0
...... (more combos).....
Shader combo 149 of 150... 
mkdir G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\fxc
Can't open G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\fxc\G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\flashlight_ps20.vcs
5 seconds elapsed
</code>
'''here''' command line parameters:
<code>set DIR_PPC=G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game
bin\shadercompile.exe -game tokamak -shaderpath %DIR_PPC% -shaderOutputDir %DIR_PPC% -nompi -verbose >output.txt 2>&1</code>
You can see than the output path is doubling, or tripleing
above one line from '''filelist.txt:'''
<code>fxc.exe /DSHADERCOMBO=0 /DTOTALSHADERCOMBOS=288 /DCENTROIDMASK=0 /DNUMDYNAMICCOMBOS=12 /DFLAGS=0x0 /DHDRENABLED=0 /DFOGTYPE=0 /DFLASHLIGHTDEPTH=0 /DNORMALMAP=0 /DNORMALMAP2=0 /DWORLDVERTEXTRANSITION=0 /DHDRTYPE=0 /Dmain=main /Emain /Tps_2_0 /DSHADER_MODEL_PS_2_0=1 /nologo /Foshader.o G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\flashlight_ps20.fxc>output.txt 2>&1</code>
If you set fxc file name to '''G:\PRIVATEDATA\Projects\TOKAMAK-GAME\Game\flashlight_ps20.fxc''', fxc compiles it, but if you set only '''flashlight_ps20.fxc''', the fxc will not find that file
Sorry for my English
If you have a way, how to fix it, please send it on my mail: '''mcilia@rambler.ru'''

Revision as of 09:12, 27 October 2008