Exception thrown when trying to add new texture layer

I took as SS, hopefully a dev can make more sense of it all.

Edit: Even though the terrain textures can be added and selected and drawn within the viewer, those layers will not render on during the game

There is an error in one of your shader programs. Fix the error and it should work fine.

In case anyone is interested, the message box says:

Error in scene!

[com.jme3.renderer.RenderException: compile error

in ShaderSource[name=Common/MatDefs/Terrain/TerrainLighting.frag, defines, type=fragment]

error: fragment shader failed to compile with the following errors:

Error 0:136 error[#143] undeclared identifier m_DiffuseMap_2_scale

Error: error[#273] 1 compilation errors. No code generated

Where did you get that fragment shader from? Thats the problem.

…?? All i did was update the jmonkey platform, thats it, no special things done to it

Read the release post for the latest alpha-4: http://hub.jmonkeyengine.org/2011/03/13/jmonkeyengine3-sdk-alpha-4-released/

Do i have to download the platform again to get the Alpha4? I figured it was just in the updates. And i didnt find anything on the Terrain texture layers.