How to fix shaders/lighting.fx problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • McLoone

    #61
    Re: How to fix shaders/lighting.fx problem

    Great post mate, thnx alot

    Comment

    • Leftovercash2

      #62
      Re: How to fix shaders/lighting.fx problem

      My friend actually has this problem currently, but what it looks like to me, is that some of the games were sent out with the wrong name on a file. The correct file name is lightning.fx but from what I am seeing everyone talking about they only have a file called lighting.fx. What I did to test that this was really the problem, was changed the name of my lightning.fx file to lighting.fx and ran BF2. Sure enough I got the same error message that every one of you has been getting. So pretty much all you have to do is drag the lighting.fx file to your desktop click on the name change it to lightning.fx and put it back in, and you should be good to go. :)

      PS this should be the location of the file...
      C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\Shaders_client.zip

      Comment

      • sag47

        #63
        Re: How to fix shaders/lighting.fx problem Simple Solution

        Battlefield 2 Special Forces Shader Sync
        Here is a simple solution for all.

        What did I do?
        1. Installed BF2 (I even installed a few map packs though not necessary)
        2. Installed EuroForce
        3. Installed Armored Fury
        4. Installed 1.41 Patch
        5. Installed Special Forces
        6. Installed bf2-sf-shaders-vista.exe (attached to this post)
        7. Play game

        Even though bf2-sf-shaders-vista.exe says vista. It should still work on Windows XP because it uses the same method of detecting Battlefield 2. Also if you have only BF2 installed and not SF, bf2-sf-shaders-vista.exe will still do its job.

        Known Compatability Issues: the nighttime maps are extremely laggy even on the best of hardware for unknown reasons on Windows Vista. Daytime maps are just fine though so those are still playable.


        No need to re-patch. No crazy steps of patch install (like I saw in other posts on this thread). Follow those steps and you'll be fine.

        Download the attachment bf2-sf-shaders-vista.zip and run bf2-sf-shaders-vista.exe. I also provided the source to ensure its innocence.

        NOTE: This is just an automated installer that simply does whatever has been discussed in this thread. These are the most up-to-date and patched files needed to fix the "lightning.fx" error. Latest patch as of this post BF2 1.41 Patch.

        File List:
        Code:
          SetOutPath "$BF2DIR\mods\bf2\shaders"
          SetOverwrite ifnewer
          File "mods\bf2\shaders\BundledMesh.fx"
          File "mods\bf2\shaders\BundledMesh_debug.fx"
          File "mods\bf2\shaders\BundledMesh_editor.fx"
          File "mods\bf2\shaders\BundledMesh_lightmapgen.fx"
          File "mods\bf2\shaders\BundledMesh_nv3x.fx"
          File "mods\bf2\shaders\BundledMesh_r3x0.fx"
          File "mods\bf2\shaders\Common.dfx"
          File "mods\bf2\shaders\commonVertexLight.fx"
          File "mods\bf2\shaders\datatypes.fx"
          File "mods\bf2\shaders\DebugCircleShader.fx"
          File "mods\bf2\shaders\DebugD3DXMeshShapeShader.fx"
          File "mods\bf2\shaders\DebugLineGraph.fx"
          File "mods\bf2\shaders\DebugSphereShader.fx"
          File "mods\bf2\shaders\Decals.fx"
          File "mods\bf2\shaders\Font.fx"
          File "mods\bf2\shaders\FSQuadDrawer.fx"
          File "mods\bf2\shaders\FXCommon.fx"
          File "mods\bf2\shaders\LightGeom.fx"
          File "mods\bf2\shaders\LightManager_r3x0.fx"
          File "mods\bf2\shaders\Lightning.fx"
          File "mods\bf2\shaders\LoadingScreen.fx"
          File "mods\bf2\shaders\MeshParticleMesh.fx"
          File "mods\bf2\shaders\MeshParticleMesh_nv3x.fx"
          File "mods\bf2\shaders\Nametag.fx"
          File "mods\bf2\shaders\NonScreenAlignedParticles.fx"
          File "mods\bf2\shaders\Particles.fx"
          File "mods\bf2\shaders\PointSpriteParticles.fx"
          File "mods\bf2\shaders\PortedFontShader.fx"
          File "mods\bf2\shaders\PortedMenuShader.fx"
          File "mods\bf2\shaders\PostProduction_nv3x.fx"
          File "mods\bf2\shaders\PostProduction_r3x0.fx"
          File "mods\bf2\shaders\QuadGeom.fx"
          File "mods\bf2\shaders\RaCommon.fx"
          File "mods\bf2\shaders\RaDefines.fx"
          File "mods\bf2\shaders\Rain.fx"
          File "mods\bf2\shaders\RaShader1Dif.fx"
          File "mods\bf2\shaders\RaShader1Dif1BoneSkinned.fx"
          File "mods\bf2\shaders\RaShaderBM.fx"
          File "mods\bf2\shaders\RaShaderBM.mfx"
          File "mods\bf2\shaders\RaShaderBMadditive.fx"
          File "mods\bf2\shaders\RaShaderBMCommon.fx"
          File "mods\bf2\shaders\RaShaderBMZOnly.fx"
          File "mods\bf2\shaders\RaShaderDefault.fx"
          File "mods\bf2\shaders\RaShaderEditorRoad.fx"
          File "mods\bf2\shaders\RaShaderEditorRoadDetail.fx"
          File "mods\bf2\shaders\RaShaderEditorRoadDetailNoBlend.fx"
          File "mods\bf2\shaders\RaShaderLeaf.fx"
          File "mods\bf2\shaders\RaShaderLeafOG.fx"
          File "mods\bf2\shaders\RaShaderLeafPointLight.fx"
          File "mods\bf2\shaders\RaShaderLeafPointLightShadowed.fx"
          File "mods\bf2\shaders\RaShaderLeafShadowed.fx"
          File "mods\bf2\shaders\RaShaderRoad.fx"
          File "mods\bf2\shaders\RaShaderRoadDetail.fx"
          File "mods\bf2\shaders\RaShaderRoadDetailNoBlend.fx"
          File "mods\bf2\shaders\RaShaderSM.fx"
          File "mods\bf2\shaders\RaShaderSM.mfx"
          File "mods\bf2\shaders\RaShaderSMCommon.fx"
          File "mods\bf2\shaders\RaShaderSTM.fx"
          File "mods\bf2\shaders\RaShaderSTM.mfx"
          File "mods\bf2\shaders\RaShaderSTMCommon.fx"
          File "mods\bf2\shaders\RaShaderTrunkOG.fx"
          File "mods\bf2\shaders\RaShaderTrunkSTMBase.fx"
          File "mods\bf2\shaders\RaShaderTrunkSTMBaseShadowed.fx"
          File "mods\bf2\shaders\RaShaderTrunkSTMDetail.fx"
          File "mods\bf2\shaders\RaShaderTrunkSTMDetailShadowed.fx"
          File "mods\bf2\shaders\RaShaderWater2D.fx"
          File "mods\bf2\shaders\RaShaderWater3D.fx"
          File "mods\bf2\shaders\RaShaderWaterBase.fx"
          File "mods\bf2\shaders\RaShaderWaterDistant2D.fx"
          File "mods\bf2\shaders\RaShaderWaterDistant3D.fx"
          File "mods\bf2\shaders\RaShaderWaterHighEnd3D.fx"
          File "mods\bf2\shaders\RaShaderWaterSurrounding2D.fx"
          File "mods\bf2\shaders\RaShaderWaterSurrounding3D.fx"
          File "mods\bf2\shaders\Road.fx"
          File "mods\bf2\shaders\RoadCompiled.fx"
          File "mods\bf2\shaders\SimpleAlphaBlendShader.fx"
          File "mods\bf2\shaders\SkinnedMesh.fx"
          File "mods\bf2\shaders\SkinnedMesh_dx9.dfx"
          File "mods\bf2\shaders\SkinnedMesh_r3x0.fx"
          File "mods\bf2\shaders\SkyDome.fx"
          File "mods\bf2\shaders\SplineShader.fx"
          File "mods\bf2\shaders\StaticMesh.dfx"
          File "mods\bf2\shaders\StaticMesh.fx"
          File "mods\bf2\shaders\StaticMesh_debug.fx"
          File "mods\bf2\shaders\StaticMesh_dx9.dfx"
          File "mods\bf2\shaders\StaticMesh_editor.fx"
          File "mods\bf2\shaders\StaticMesh_lightmapgen.fx"
          File "mods\bf2\shaders\StaticMesh_nv3x.fx"
          File "mods\bf2\shaders\StaticMesh_nv3xpp.fx"
          File "mods\bf2\shaders\StaticMesh_r3x0.fx"
          File "mods\bf2\shaders\STM1_4.fx"
          File "mods\bf2\shaders\SwiffMenu.fx"
          File "mods\bf2\shaders\TerrainEditorShader.fx"
          File "mods\bf2\shaders\TerrainShader.fx"
          File "mods\bf2\shaders\TerrainShader_backup.fx"
          File "mods\bf2\shaders\TerrainShader_debug.fx"
          File "mods\bf2\shaders\TerrainShader_Hi.fx"
          File "mods\bf2\shaders\TerrainShader_Low.fx"
          File "mods\bf2\shaders\TerrainShader_nv3x.fx"
          File "mods\bf2\shaders\TerrainShader_nv3x_leftover.fx"
          File "mods\bf2\shaders\TerrainShader_r3x0.fx"
          File "mods\bf2\shaders\TerrainShader_Shared.fx"
          File "mods\bf2\shaders\TerrainUGShader.fx"
          File "mods\bf2\shaders\Trail.fx"
          File "mods\bf2\shaders\TreeBillboard.fx"
          File "mods\bf2\shaders\TreeMesh.fx"
          File "mods\bf2\shaders\TreeMeshBillboardGenerator.fx"
          File "mods\bf2\shaders\Undergrowth.fx"
          SetOutPath "$BF2DIR\mods\xpack\shaders"
          File "mods\xpack\BundledMesh.fx"
          File "mods\xpack\BundledMesh_debug.fx"
          File "mods\xpack\BundledMesh_editor.fx"
          File "mods\xpack\BundledMesh_lightmapgen.fx"
          File "mods\xpack\BundledMesh_nv3x.fx"
          File "mods\xpack\BundledMesh_r3x0.fx"
          File "mods\xpack\caustics.hlsl"
          File "mods\xpack\Common.dfx"
          File "mods\xpack\commonSamplers.dfx"
          File "mods\xpack\commonVertexLight.fx"
          File "mods\xpack\datatypes.fx"
          File "mods\xpack\DebugCircleShader.fx"
          File "mods\xpack\DebugD3DXMeshShapeShader.fx"
          File "mods\xpack\DebugLineGraph.fx"
          File "mods\xpack\DebugSphereShader.fx"
          File "mods\xpack\Decals.fx"
          File "mods\xpack\Font.fx"
          File "mods\xpack\FSQuadDrawer.fx"
          File "mods\xpack\FXCommon.fx"
          File "mods\xpack\LightGeom.fx"
          File "mods\xpack\LightManager_r3x0.fx"
          File "mods\xpack\LoadingScreen.fx"
          File "mods\xpack\MeshParticleMesh.fx"
          File "mods\xpack\MeshParticleMesh_nv3x.fx"
          File "mods\xpack\Nametag.fx"
          File "mods\xpack\NonScreenAlignedParticles.fx"
          File "mods\xpack\Particles.fx"
          File "mods\xpack\PointSpriteParticles.fx"
          File "mods\xpack\PortedFontShader.fx"
          File "mods\xpack\PortedMenuShader.fx"
          File "mods\xpack\PostProduction_nv3x.fx"
          File "mods\xpack\PostProduction_r3x0.fx"
          File "mods\xpack\QuadGeom.fx"
          File "mods\xpack\RaCommon.fx"
          File "mods\xpack\RaDefines.fx"
          File "mods\xpack\RaShader1Dif.fx"
          File "mods\xpack\RaShader1Dif1BoneSkinned.fx"
          File "mods\xpack\RaShader2DifDet.fx"
          File "mods\xpack\RaShaderBM.fx"
          File "mods\xpack\RaShaderBM.mfx"
          File "mods\xpack\RaShaderBMadditive.fx"
          File "mods\xpack\RaShaderBMCommon.fx"
          File "mods\xpack\RaShaderBMZOnly.fx"
          File "mods\xpack\RaShaderDefault.fx"
          File "mods\xpack\RaShaderEditorRoad.fx"
          File "mods\xpack\RaShaderEditorRoadDetail.fx"
          File "mods\xpack\RaShaderEditorRoadDetailNoBlend.fx"
          File "mods\xpack\RaShaderLeaf.fx"
          File "mods\xpack\RaShaderLeafOG.fx"
          File "mods\xpack\RaShaderLeafPointLight.fx"
          File "mods\xpack\RaShaderLeafPointLightShadowed.fx"
          File "mods\xpack\RaShaderLeafShadowed.fx"
          File "mods\xpack\RaShaderRoad.fx"
          File "mods\xpack\RaShaderRoadCommon.fx"
          File "mods\xpack\RaShaderRoadDetail.fx"
          File "mods\xpack\RaShaderRoadDetailNoBlend.fx"
          File "mods\xpack\RaShaderSM.fx"
          File "mods\xpack\RaShaderSM.mfx"
          File "mods\xpack\RaShaderSMCommon.fx"
          File "mods\xpack\RaShaderSTM.fx"
          File "mods\xpack\RaShaderSTM.mfx"
          File "mods\xpack\RaShaderSTMCommon.fx"
          File "mods\xpack\RaShaderSTM_Shadows.hlsl"
          File "mods\xpack\RaShaderTrunkOG.fx"
          File "mods\xpack\RaShaderTrunkSTMBase.fx"
          File "mods\xpack\RaShaderTrunkSTMBaseShadowed.fx"
          File "mods\xpack\RaShaderTrunkSTMDetail.fx"
          File "mods\xpack\RaShaderTrunkSTMDetailShadowed.fx"
          File "mods\xpack\RaShaderWater.fx"
          File "mods\xpack\RaShaderWater2D.fx"
          File "mods\xpack\RaShaderWater3D.fx"
          File "mods\xpack\RaShaderWaterBase.fx"
          File "mods\xpack\RaShaderWaterDistant2D.fx"
          File "mods\xpack\RaShaderWaterDistant3D.fx"
          File "mods\xpack\RaShaderWaterHighEnd3D.fx"
          File "mods\xpack\RaShaderWaterSurrounding2D.fx"
          File "mods\xpack\RaShaderWaterSurrounding3D.fx"
          File "mods\xpack\Road.fx"
          File "mods\xpack\RoadCompiled.fx"
          File "mods\xpack\SimpleAlphaBlendShader.fx"
          File "mods\xpack\SkinnedMesh.fx"
          File "mods\xpack\SkinnedMesh_dx9.dfx"
          File "mods\xpack\SkinnedMesh_r3x0.fx"
          File "mods\xpack\SkyDome.fx"
          File "mods\xpack\SplineShader.fx"
          File "mods\xpack\StaticMesh.dfx"
          File "mods\xpack\StaticMesh.fx"
          File "mods\xpack\StaticMesh_debug.fx"
          File "mods\xpack\StaticMesh_dx9.dfx"
          File "mods\xpack\StaticMesh_editor.fx"
          File "mods\xpack\StaticMesh_lightmapgen.fx"
          File "mods\xpack\StaticMesh_nv3x.fx"
          File "mods\xpack\StaticMesh_nv3xpp.fx"
          File "mods\xpack\StaticMesh_r3x0.fx"
          File "mods\xpack\STM1_4.fx"
          File "mods\xpack\SwiffMenu.fx"
          File "mods\xpack\TerrainEditorShader.fx"
          File "mods\xpack\TerrainShader.fx"
          File "mods\xpack\TerrainShader_backup.fx"
          File "mods\xpack\TerrainShader_debug.fx"
          File "mods\xpack\TerrainShader_Hi.fx"
          File "mods\xpack\TerrainShader_Low.fx"
          File "mods\xpack\TerrainShader_nv3x.fx"
          File "mods\xpack\TerrainShader_nv3x_leftover.fx"
          File "mods\xpack\TerrainShader_r3x0.fx"
          File "mods\xpack\TerrainShader_Shadows.hlsl"
          File "mods\xpack\TerrainShader_Shared.fx"
          File "mods\xpack\TerrainUGShader.fx"
          File "mods\xpack\Trail.fx"
          File "mods\xpack\TreeBillboard.fx"
          File "mods\xpack\TreeMesh.fx"
          File "mods\xpack\TreeMeshBillboardGenerator.fx"
          File "mods\xpack\Undergrowth.fx"
          File "mods\xpack\XPack_Shadows.hlsl"
        NOTE: mods\xpack\ is only the path of the files I was compiling so don't make the mistake of thinking you had it all wrong and that you should copy all the shader files to mods\xpack\. The correct dir is mods\xpack\shaders (if you notice SetOutPath "$BF2DIR\mods\xpack\shaders").

        keywords: battlefield 2, special forces, battlefield 2 special forces vista, bf2 sf vista, bf2 shader sync, special forces shader sync, lightning.fx not found, lighting.fx not found, battlefield 2 vista

        Comment

        • Irish Freedom
          Member
          • Aug 2007
          • 214

          #64
          What do you mean"copy the following files?" I'm not an expert with computers, so what do you mean by copy?
          Originally posted by Shepherd007
          Apparently, a lot of people have had problems with installing Special Forces after the 1.3 update. Here's what I did to fix it.

          If you get the "syncronize shaders/lighting.fx not found" issue, then you'll need to copy the following files:

          Copy all of the files from:
          C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders_client
          to:
          C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders

          and

          Copy all of the files from:
          C:\Program Files\EA GAMES\Battlefield 2\mods\xpack\shaders_client
          to:
          C:\Program Files\EA GAMES\Battlefield 2\mods\xpack\shaders

          After you have copied the files, install the FULL 1.41 patch, as the SF install will remain at version 1.1, even though your vanilla BF2 will be up to date. This will prevent you from receiving a modded map error when you try to load one of the SF maps.

          Comment

          • signa
            CS-Nation / TGN Staff
            • Dec 2004
            • 4191

            #65
            open windows explorer (windows key + E) or find it under your start menu accessories, or right click on 'my computer' then select 'explore'.

            navigate to "C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\" folder and you will see the shaders_client file which is a 'zip archive'. open that, select all files (control+A), right click, then "copy".

            go back in windows explorer to this folder: "C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders" and right click then "paste".

            that will copy all the files from that zip file to the shaders folder. repeat the directions but with the XPACK files / folders.
            "Crunch's First Officer"
            twitter: @signaprime

            Comment

            • Kyle0wnz

              #66
              You saved my life, (£5) Thanks!

              ~Kyle

              Comment

              • magnifunique

                #67
                I installed the patch again and it worked just fine

                Comment

                • dadit2

                  #68
                  Re: How to fix shaders/lighting.fx problem

                  I cant find shaders_client in C:\Program Files\EA GAMES\Battlefield 2\mods\bf2.!
                  HELP

                  Comment

                  • signa
                    CS-Nation / TGN Staff
                    • Dec 2004
                    • 4191

                    #69
                    Re: How to fix shaders/lighting.fx problem

                    Originally posted by dadit2
                    I cant find shaders_client in C:\Program Files\EA GAMES\Battlefield 2\mods\bf2.!
                    HELP
                    did you see my post above? the shaders client file should be a zip file.
                    "Crunch's First Officer"
                    twitter: @signaprime

                    Comment

                    • marcel234
                      Member
                      • Dec 2009
                      • 1

                      #70
                      Re: How to fix shaders/lighting.fx problem

                      hello,

                      i have placed the shaders_client file unzipped in the mods/bf2/shaders map but he say the same problem.
                      and i can't find the download the attachment from sag47

                      what i need to do?

                      Comment

                      • signa
                        CS-Nation / TGN Staff
                        • Dec 2004
                        • 4191

                        #71
                        Re: How to fix shaders/lighting.fx problem

                        did you try doing it the way I posted?

                        open windows explorer (windows key + E) or find it under your start menu accessories, or right click on 'my computer' then select 'explore'.

                        navigate to "C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\" folder and you will see the shaders_client file which is a 'zip archive'. open that, select all files (control+A), right click, then "copy".

                        go back in windows explorer to this folder: "C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders" and right click then "paste".

                        that will copy all the files from that zip file to the shaders folder. repeat the directions but with the XPACK files / folders.
                        you have to do this twice, once under the \mods\bf2\ folder and then again under the \mods\xpack\ folder.

                        C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders_client.zip - unzip to:
                        C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\shaders\

                        C:\Program Files\EA GAMES\Battlefield 2\mods\xpack\shaders_client.zip - unzip to:
                        C:\Program Files\EA GAMES\Battlefield 2\mods\xpack\shaders\
                        "Crunch's First Officer"
                        twitter: @signaprime

                        Comment

                        • bonezez
                          Member
                          • Jan 2010
                          • 1

                          #72
                          Re: How to fix shaders/lighting.fx problem

                          mods/bf2/shaders/lighting.fx not found!!! _DO_ check your working directory, _AND_ sync your shaders folder before calling upon you local rendering programmer (really!)

                          I have Winows 7 which installed BF2 and all booster packs completely, but I can't start any of the games without this popping up, please help! (and in a way that a 13 year old who sucks with computers or his 18 year old brother who's ok with computers can understand)

                          Comment

                          • Darkkrauserr
                            Member
                            • Aug 2011
                            • 1

                            #73
                            Re: How to fix shaders/lighting.fx problem

                            imma tell if it works...i did that i have 1.5 patch already so i see if it works.

                            Comment

                            Working...