Sign in to follow this  
Blaze

Will running the P3d "Repair option" restore original Shader Files?

Recommended Posts

Trying to use PTA_32.exe but I have 4 not original P3d shader errors in my log...

 

Cloud.fx

GPUTerrain.fx

General.FX

HDR.hlsl

 

Will doing a "repair" of P3dv32.2 restore them?

 

I am running P3Dv3.2 and don't wish to update yet.

 

 

 

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hello 

By running a repair on the Prepar3D_Setup.exe it will restore all default files and folders.

The files you have posted are in the ShadersHLSL folder,  You could just Repair the Client   

Right click on Install_Client.msi and click repair 

Share this post


Link to post
Share on other sites

Good to know! There's a repair option on just the client installer I'm going to try that route.

 

Thanks!

Share this post


Link to post
Share on other sites

Interestingly enough neither of the repair options Client.msi or main P3D repair seem to have restored my shader files however, uninstalling and then reinstalling/reactivating the client.msi as Elaine suggested did the trick. 

Share this post


Link to post
Share on other sites

The PTA backup/restore of the default shaders didn't work the first time that I tried it. I ended up with no clouds (nice haze but no clouds).

 

Using the uninstall/reinstall of the client.msi as Elaine suggested got everything back to default without disrupting any other functionality.

Share this post


Link to post
Share on other sites

I manually emptied the ShadersHLSL folder and repaired Prepar3D 3.2, and it restored the original shaders.

Share this post


Link to post
Share on other sites

The PTA backup/restore of the default shaders didn't work the first time that I tried it. I ended up with no clouds (nice haze but no clouds).

At fisrt start, PTA should automatically find proper P3D installation directory, shaders cache directory, and create backup of used in tweaks shaders to \SHADERS_BACKUP subdirectory in main PTA directory.

But if any shader at PTA first start is not original, it will be completely ignored: no backup for it, no tweaks for it, no restore from backup.

And every start PTA will try to find that original shader in ShadersHLSL folder of sim. If it will be found, tool start to work with this shader - backup, tweaks, restoring from backup.

Menu command "Restore original P3D shaders" restore  only those shaders that have been successfully stored at backup from your copy of Prepar3D. It's not a method to restore all original shaders (otherwise it seems to be distribution of copyrighted content.)

 

 

Best regards,

Share this post


Link to post
Share on other sites

I thought that if you just deleted them P2D would rebuild them.

 

Jeff Callender

 

If you delete the shader cache P3D will rebuild it, but it rebuilds the cache from the currently installed shaders.

Share this post


Link to post
Share on other sites
On 6/26/2016 at 2:41 AM, Buziel-411 said:

I manually emptied the ShadersHLSL folder and repaired Prepar3D 3.2, and it restored the original shaders.

This will work no problem,  But when you run a full Repair it will revert all files that have been Modified by 3rd Party Software back to Default,  This is Ok, as in most case you can Inject your Precipfs or Rex Texture Theme again,  You can just open your FTX Control Panel and it will Automatically Modify your Autogen files again and so on,  Some other Software you have to run the Installers again,  The 1 software that comes to mind is FTX Global Base,  These also modify a large amount of the Textures in  Prepar3D ► Scenery ► World  ► Textures. 

On 6/26/2016 at 3:15 AM, jbcallender said:

I thought that if you just deleted them P2D would rebuild them.

 

Jeff Callender

 

If you Delete the Shader folder Located below, Yes it will generate again when you launch Prepar3D  

Local Disk (C:) ► Users ► you ► AppData ► Local ► Lockheed Martin ► PreparD v3 Shaders 

 

But if you Delete the ShadersHLSL folder located below it Will Not generate again you launch prepar3D   

Prepar3D ► ShadersHLSL

The correct Shader folder to Delete and where and how to find it   http://www.avsim.com...older-prepar3d/

Share this post


Link to post
Share on other sites

At fisrt start, PTA should automatically find proper P3D installation directory, shaders cache directory, and create backup of used in tweaks shaders to \SHADERS_BACKUP subdirectory in main PTA directory.

But if any shader at PTA first start is not original, it will be completely ignored: no backup for it, no tweaks for it, no restore from backup.

 

Thanks for the explanation. This was a fresh install of P3d v3,3 so not sure why the cloud.fx did not get backed up on initial run of PTA.

 

It was fairly easy to get sorted out.

 

Love PTA by the way!

Share this post


Link to post
Share on other sites

I manually emptied the ShadersHLSL folder and repaired Prepar3D 3.2, and it restored the original shaders.

That's what I did too, but for reasons unknown PTA still showed the non-default shader error?  I double checked versions to make sure I had not made some sort of mistake but near as I can tell I didn't.  I mean really, it's not a complex procedure but, the end state for me was having to uninstall the client and reinstall it, then I was set.

Share this post


Link to post
Share on other sites

This was a fresh install of P3d v3,3 so not sure why the cloud.fx did not get backed up on initial run of PTA

Maybe REX was installed with "Cloud size algortithm" option is on?  In that case REX modify cloud.fx shader.

 

That's what I did too, but for reasons unknown PTA still showed the non-default shader error?  I double checked versions to make sure I had not made some sort of mistake but near as I can tell I didn't.  I mean really, it's not a complex procedure but, the end state for me was having to uninstall the client and reinstall it, then I was set.

 

I'm trying to reproduce error situation with no original and original shaders and can't do it. In my case PTA run as described: error in log if non-original shader and when original shader placed in sim, found it, and make backup.

What is exact error message in log?

 

Just FYI table of original shader files sizes for different P3D versions:

 

Shader file name | Prepar3D version | Shader file size (bytes)

--------------------------------------------------------------

Cloud.fx         | 3.1              |  21690

Cloud.fx         | 3.2              |  21301

Cloud.fx         | 3.3              |  20578

--------------------------------------------------------------

GPUTerrain.fx    | 3.1              |  51019

GPUTerrain.fx    | 3.2              |  51029

GPUTerrain.fx    | 3.3              |  50854

--------------------------------------------------------------

General.fx       | 3.1              |  35841

General.fx       | 3.2              |  33360

General.fx       | 3.3              |  33360

--------------------------------------------------------------

GPUTerrain.fxh   | 3.1              |  14723

GPUTerrain.fxh   | 3.2              |  14723

GPUTerrain.fxh   | 3.3              |  14519

--------------------------------------------------------------

HDR.hlsl         | 3.1              |  6252

HDR.hlsl         | 3.2              |  6252

HDR.hlsl         | 3.3              |  6252

--------------------------------------------------------------

FXAAResolve.hlsl | 3.1              |  1077

FXAAResolve.hlsl | 3.2              |  1077

FXAAResolve.hlsl | 3.3              |  1077

Share this post


Link to post
Share on other sites

I am using ASN with Rex Soft Clouds. Could that cause a similar issue? I have not use the "Cloud Size Algorithm" in any of the presets I tried.

 

Not seeing any log files in the PTA install location and no PTA folders in appdata(s). Where would the log files be located?

Share this post


Link to post
Share on other sites

 

 


Not seeing any log files in the PTA install location and no PTA folders in appdata(s). Where would the log files be located?

Henry, PTA doesn't have a permanent log in file. Only current session log on bottom of main window.

Share this post


Link to post
Share on other sites

Yuri,

 

Probably any useful info for you was lost when I manually copied the shader files from P3d into the PTA backup folder.

 

I am getting my downloads together to upgrade to v3.3.5 so this may be a good time to test again.

 

What I will do is this:

1) Restore backup from my current PTA install and clear the shaders.

2) Delete the items in the PTA backup folder

3) Do the P3D upgrade

4) Run PTA and see if the files end up in the backup folder.

 

Do this seem like a good troubleshooting path for you? Any changes or other steps you would like to see?

Share this post


Link to post
Share on other sites

Do this seem like a good troubleshooting path for you? Any changes or other steps you would like to see?

Only clear shaders in step #1 looks redundant. Thank you, Henry!

Share this post


Link to post
Share on other sites

Here is the log from the 1st run of PTA after the v3.3.5 upgrade. All looks proper. I manually checked the backup folder and all the correct shader files were there.

 

The only scenario that makes sense with my v3.3.3 install is that somehow the cloud.fx file was modified (or possibly corrupted) and PTA did not back it up on first run.

 

Appreciate all your help troubleshooting and sorry I couldn't get you more information. It looks like PTA is doing exactly what it should if the default/correct shaders are in place!

 

Prepar3D directory found at E:\Prepar3D v3\.
Shaders cache directory found at C:\Users\fs\AppData\Local\Lockheed Martin\Prepar3D v3\Shaders\.
Prepar3D main configuration file found at C:\Users\fs\AppData\Roaming\Lockheed Martin\Prepar3D v3\Prepar3D.cfg.
Prepar3D cameras configuration file found at C:\Users\fs\AppData\Roaming\Lockheed Martin\Prepar3D v3\cameras.cfg.
Preset F:\Applications\Prepar3d Tweak Assistant\default.ini loaded.
Check shaders integrity...
Backup of shader E:\Prepar3D v3\ShadersHLSL\Cloud.fx has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\Cloud.fx
Backup of shader E:\Prepar3D v3\ShadersHLSL\GPUTerrain.fx has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\GPUTerrain.fx
Backup of shader E:\Prepar3D v3\ShadersHLSL\General.fx has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\General.fx
Backup of shader E:\Prepar3D v3\ShadersHLSL\GPUTerrain.fxh has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\GPUTerrain.fxh
Backup of shader E:\Prepar3D v3\ShadersHLSL\PostProcess\HDR.hlsl has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\PostProcess\HDR.hlsl
Backup of shader E:\Prepar3D v3\ShadersHLSL\PostProcess\FXAAResolve.hlsl has been copied to F:\Applications\Prepar3d Tweak Assistant\SHADERS_BACKUP\PostProcess\FXAAResolve.hlsl

Share this post


Link to post
Share on other sites

Here is the log from the 1st run of PTA after the v3.3.5 upgrade.

Thanks for feedback!

Share this post


Link to post
Share on other sites
On 6/25/2016 at 3:38 PM, Poppet said:

Hello 

By running a repair on the Prepar3D_Setup.exe it will restore all default files and folders.

The files you have posted are in the ShadersHLSL folder,  You could just Repair the Client   

Right click on Install_Client.msi and click Repair 

I had this problem and that fixed it for me.  Thank you.

 

Bill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this