Community Forum

New Map, GISL error when adding fruit

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created27.09.2016 23:00


Mar Farmar (mfwgmxde) 27.09.2016 23:08
I have created a new map. Now after the clean up and some basic work, I wanted to add some grass fruit and then this error appears.
Error: Could not parse GISL program.
(73): ERROR: ')' : syntax error parse error

It appears in GE and when I plant fruit when running the map

What I have done so far:
- from Mod Map SDK, exported bjornholm
- clean up the map (deleted most objects and decoration)
- extracting grle to png, deleted old grles
- clean all fruit and terrain texture by cleaning (blacking) the *_density.png
- increased size by resizing the png's and the units in GE
- created terrain profile

As far as I want to create some grass foliage GE and also ingame gives me that error

I have copied the shaders from the game over my local shaders, no change. Can I figure out which shader creates the error?


thanks for any help



Mar Farmar (mfwgmxde) 28.09.2016 12:48
So taking the facts, I suppose the error happend wheter when increaseing the map size or at the map cleanup step. As it happens when adding any fruit/foliage (e.g. gras) I had a look at the fruitGrowthFoliageShader.xml
Now line 73 is supposed to be the wrong because of preprocessing. Or does it match the exakt xml line number.

Nevertheless, in this shadre there is just one line with a single ")" it is line 92. The code there is

#ifdef VERTEX_DIRLIGHT_LIGHTING
#for (i=0,(NUM_DIRECTIONAL_LIGHTS-1)) (
{ float NdotL = saturate(dot(-dirLightDirections[i].xyz, worldNormal.xyz));
CONCAT(Out.dirVertexLighting,i) = NdotL*diffuseColors[i].xyz; }
)
#endif

so what could fail, any thoughts?

thanks






Mar Farmar (mfwgmxde) 28.09.2016 14:55
Right place: when I change it to

#ifdef VERTEX_DIRLIGHT_LIGHTING
#for (i=0,(NUM_DIRECTIONAL_LIGHTS-1)) ( { float NdotL = saturate(dot(-dirLightDirections[i].xyz, worldNormal.xyz)); CONCAT(Out.dirVertexLighting,i) = NdotL*diffuseColors[i].xyz; } )
#endif

mind: no newlines

BUT WHY, is there any help about the syntax of GLSL shaders?

thanks



Note: Log in to post. Create a new account here.