0

Linking "impossible" nodes makes shader un-openable

Gabe Newell 4 months ago 0

I was multiplying 3 nodes together and this multiply node was feeding into the opacity. The opacity only allows for a single float input but I made the mistake of putting an rgb input in the multiply node (this shouldn't be allowed but here it was). This made Unity point to the fact that the shader was not compilable so I quit Shader Forge to take a look at the error without modifying the shader code but now I couldn't open up Shader Forge anymore with that specific shader.
That means I can't fix the problem in the file, It certainly is fixable thanks to this but I can't  tell what is what in this format:



/*SF_DATA;ver:1.38;sub:START;pass:START;ps:flbk:,iptp:1,cusa:True,bamd:0,cgin:,lico:1,lgpr:1,limd:0,spmd:1,trmd:0,grmd:0,uamb:True,mssp:True,bkdf:False,hqlp:False,rprd:False,enco:False,rmgx:True,imps:True,rpth:0,vtps:0,hqsc:False,nrmq:1,nrsp:0,vomd:0,spxs:False,tesm:0,olmd:1,culm:2,bsrc:0,bdst:7,dpts:2,wrdp:False,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:False,aust:True,igpj:True,qofs:0,qpre:3,rntp:2,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,stcl:True,atwp:False,stva:128,stmr:255,stmw:255,stcp:6,stps:0,stfa:0,stfz:0,ofsf:0,ofsu:0,f2p0:False,fnsp:False,fnfb:False,fsmp:False;n:type:ShaderForge.SFN_Final,id:1873,x:33981,y:32868,varname:node_1873,prsc:2|emission-5993-OUT,alpha-4485-OUT;n:type:ShaderForge.SFN_Tex2d,id:4805,x:33004,y:32735,ptovrint:False,ptlb:MainTex,ptin:_MainTex,varname:_MainTex_copy,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,tex:4a81d345effc4c149a1dc3df246594b6,ntxv:0,isnm:False|UVIN-6874-OUT;n:type:ShaderForge.SFN_Multiply,id:5993,x:33582,y:32872,varname:node_5993,prsc:2|A-4805-R,B-4213-RGB;n:type:ShaderForge.SFN_Color,id:4213,x:33004,y:32926,ptovrint:False,ptlb:Mist Color,ptin:_MistColor,varname:node_4213,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,c1:0.1799694,c2:0.05903979,c3:0.2867647,c4:1;n:type:ShaderForge.SFN_Time,id:765,x:30957,y:32480,varname:node_765,prsc:2;n:type:ShaderForge.SFN_ValueProperty,id:3174,x:30957,y:32652,ptovrint:False,ptlb:X Mist Speed,ptin:_XMistSpeed,varname:node_3174,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:2;n:type:ShaderForge.SFN_Multiply,id:6709,x:31359,y:32311,varname:node_6709,prsc:2|A-765-TSL,B-3174-OUT;n:type:ShaderForge.SFN_Frac,id:1944,x:31633,y:32303,varname:node_1944,prsc:2|IN-6709-OUT;n:type:ShaderForge.SFN_Add,id:8434,x:32124,y:32395,varname:node_8434,prsc:2|A-1944-OUT,B-2313-U,C-4776-OUT;n:type:ShaderForge.SFN_Append,id:6874,x:32589,y:32565,varname:node_6874,prsc:2|A-8434-OUT,B-8913-OUT;n:type:ShaderForge.SFN_TexCoord,id:2313,x:31210,y:32666,varname:node_2313,prsc:2,uv:0,uaff:False;n:type:ShaderForge.SFN_ValueProperty,id:5270,x:30954,y:32936,ptovrint:False,ptlb:X Distort Speed,ptin:_XDistortSpeed,varname:node_5270,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:0;n:type:ShaderForge.SFN_Multiply,id:7369,x:31210,y:32871,varname:node_7369,prsc:2|A-765-TSL,B-5270-OUT;n:type:ShaderForge.SFN_Add,id:1846,x:31409,y:32845,varname:node_1846,prsc:2|A-2313-U,B-7369-OUT;n:type:ShaderForge.SFN_Frac,id:3346,x:31601,y:32845,varname:node_3346,prsc:2|IN-1846-OUT;n:type:ShaderForge.SFN_Append,id:7917,x:31807,y:32894,varname:node_7917,prsc:2|A-3346-OUT,B-7306-OUT;n:type:ShaderForge.SFN_Tex2d,id:4592,x:32033,y:32911,ptovrint:False,ptlb:Distort Tex,ptin:_DistortTex,varname:node_4592,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,tex:1a070049395e1694e88f7d1ae9708888,ntxv:0,isnm:False|UVIN-7917-OUT;n:type:ShaderForge.SFN_RemapRange,id:9983,x:32269,y:32898,varname:node_9983,prsc:2,frmn:0,frmx:1,tomn:-1,tomx:1|IN-4592-R;n:type:ShaderForge.SFN_Multiply,id:4776,x:32493,y:32996,varname:node_4776,prsc:2|A-9983-OUT,B-4318-OUT,C-3062-OUT;n:type:ShaderForge.SFN_ValueProperty,id:4318,x:32269,y:33080,ptovrint:False,ptlb:Distortion Multiply,ptin:_DistortionMultiply,varname:node_4318,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:5;n:type:ShaderForge.SFN_Multiply,id:4485,x:33512,y:33331,varname:node_4485,prsc:2|A-5202-OUT,B-8363-OUT,C-3461-RGB;n:type:ShaderForge.SFN_Slider,id:2428,x:32879,y:33233,ptovrint:False,ptlb:Contrast,ptin:_Contrast,varname:node_2428,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,min:0,cur:2.667607,max:10;n:type:ShaderForge.SFN_Power,id:5202,x:33228,y:33189,varname:node_5202,prsc:2|VAL-4805-R,EXP-2428-OUT;n:type:ShaderForge.SFN_Slider,id:7137,x:32879,y:33382,ptovrint:False,ptlb:Brightness,ptin:_Brightness,varname:node_7137,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,min:0,cur:1,max:1;n:type:ShaderForge.SFN_OneMinus,id:8363,x:33228,y:33342,varname:node_8363,prsc:2|IN-7137-OUT;n:type:ShaderForge.SFN_ValueProperty,id:5711,x:30954,y:33097,ptovrint:False,ptlb:Y Distort Speed,ptin:_YDistortSpeed,varname:node_5711,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:0;n:type:ShaderForge.SFN_Add,id:7071,x:31420,y:33068,varname:node_7071,prsc:2|A-2435-OUT,B-2313-V;n:type:ShaderForge.SFN_Multiply,id:2435,x:31210,y:33097,varname:node_2435,prsc:2|A-765-TSL,B-5711-OUT;n:type:ShaderForge.SFN_Frac,id:7306,x:31589,y:33068,varname:node_7306,prsc:2|IN-7071-OUT;n:type:ShaderForge.SFN_Vector1,id:3062,x:32269,y:33169,varname:node_3062,prsc:2,v1:0.01;n:type:ShaderForge.SFN_Multiply,id:4694,x:31483,y:32485,varname:node_4694,prsc:2|A-765-TSL,B-7671-OUT;n:type:ShaderForge.SFN_ValueProperty,id:7671,x:31292,y:32572,ptovrint:False,ptlb:Y Mist Speed,ptin:_YMistSpeed,varname:node_7671,prsc:2,glob:False,taghide:False,taghdr:False,tagprd:False,tagnsco:False,tagnrm:False,v1:0;n:type:ShaderForge.SFN_Frac,id:8913,x:32264,y:32626,varname:node_8913,prsc:2|IN-4363-OUT;n:type:ShaderForge.SFN_Add,id:4363,x:32074,y:32626,varname:node_4363,prsc:2|A-2313-V,B-4694-OUT;proporder:4805-4213-3174-5270-4592-4318-2428-7137-5711-7671;pass:END;sub:END;*/