It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
Thanks a million for posting this fix. Been having this issue and it was very annoying to not be able to play at max settings. You have my gratitude.
avatar
rhinox: Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
I just got this game from the insane steam deal they have. I was getting this freezing problem with the lighting.

Now is this the far cry config file you are changing? And can you change it directly or do you need to do some override file thing first?

Does Very High automatically give you HDR lighting or do you need to do the HDR tweak to the config I briefly read about?

http://www.tweakguides.com/Farcry_11.html

That there.
Post edited June 07, 2012 by Sequiro
avatar
rhinox: Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
avatar
Sequiro: I just got this game from the insane steam deal they have. I was getting this freezing problem with the lighting.

Now is this the far cry config file you are changing? And can you change it directly or do you need to do some override file thing first?

Does Very High automatically give you HDR lighting or do you need to do the HDR tweak to the config I briefly read about?

http://www.tweakguides.com/Farcry_11.html

That there.
As for the config goes the answer is yes, I changed the FarCry config. I changed it by hand in notepad :). As for the lighting part, if you enable very hight light details it only gives you shader model 3.0. From here on you can enable HDR from the console with a "r_hdrrendering 1" or something like that (can't remember atm). HDR only works when you have the shader model set to 3.0. I recommend also updating the FXC shader compiler because it does generate faster shader code that the stock version that came with the game.
avatar
rhinox: Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
Hey Rhino-
Where exactly do you go to in order to change that to zero? Thanks.
I'd guess type it into the console.
avatar
rhinox: Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
avatar
GungraveDan: Hey Rhino-
Where exactly do you go to in order to change that to zero? Thanks.
Inside the game folder there is a config file with a '.cfg' extension if I remember correctly. Just find the r_ShadersPrecache option there and edit its value.
avatar
GungraveDan: Hey Rhino-
Where exactly do you go to in order to change that to zero? Thanks.
avatar
rhinox: Inside the game folder there is a config file with a '.cfg' extension if I remember correctly. Just find the r_ShadersPrecache option there and edit its value.
Great, thanks.
I've experienced the same crash with the settings at very high. I looked for the line to change in the configuration file, "r_ShadersPrecache = "0" in system.cfg, but I couldn't find it. Where can I find the file with this line?
Bump, same problem as above, game won't start, freezes on black screen, there is no r_ShadersPrecache in system.cfg. What am i missing?

--edit: managed to run the game with FCAM, wouldn't load the first level, set lighting to "High" from "Very High", had to also set Shadows to medium to eliminate stuttering ingame, everything seems to work more or less.
Post edited June 17, 2014 by PTX
I was having the same issue and the r_ShadersPrecache = "0" wasn't even there to switch it to 0. What I did was simply add it and hit save and then the game would load just fine. Hope it helps someone.
Thank you guys! This helped me out a great deal. Got crashes after startup, went to this forum to look for help, and guess what -- a minute later, my problems were solved.

Thanks, you are awesome. :-)
I didn't have to make any changes to "game.cfg". I was careful to not have any graphic options on more than "High", and that made it for me :)
just wait a bit and it should run,
if you inspect with task manager you will see that subprocesses are being launched to compile the shaders.
It only happens once, or until graphics settings are changed again.
avatar
rhinox: Hi,
I had a problem with FarCry on my GF540M (Dell XPS 15 L502x Win 7 x64). The game froze on startup when I switched on Very High details on lighting. I looked up google for quite a while but with no luck. Then I looked at the game a little bit and noticed a peculiar thing. The game process spawned fxc process one by one. FXC is M$ HLSL compiler. So the problem was probably some were near him so I updated it (downloaded latest DXSDK, fxc.exe is in the 'Utilities' directory) but with no luck. Then I started looking up the config and switched r_ShadersPrecache from 1 to 0 like this

r_ShadersPrecache = "0"

and what do you know it works :D. With every goodness that the game gives including HDR.

Cheers every one I hope this will be help full for anybody.
Thank you so much!