1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial Delete CXL Shadercache Plus 1.1

Bat files to delete the shadercache and start CXL

  1. skullz613
    • CitiesXL 2009
    • CitiesXL 2011
    • CitiesXL 2012
    • CitiesXL Platinum
    Update: No version change. I have added some files to the ZIP file. See the updates tab for more details.

    NOTE: Some Antivirus programs might not like the exe file I created. It's what you call a false positive. It is completely safe and contains no virus's. I have removed it from the main ZIP file so if you want the EXE file version, you will need to click on the update tab and download it using the external link I have provided.

    Sometimes you may have D3DX errors in you logs and the idea of clearing the shadercache is to possibly help eliminate these errors. Clearing the cache will possibly help with other graphic errors to.

    So after seeing comments in the forums about clearing the shadercache to avoid these errors, I decided to make a bat file to execute before starting CXL that will clear the shadercache folder.
    After more discussions, Mr.X² suggested to also make it start CXL so I did made some adjustments and it worked. So not only does it clear the shadercache folder, it also starts CXL. :)

    The ZIP file contains these files.
    Delete CXL Shadercache.bat
    Delete CXL Shadercache and start CXL 2012.bat
    Delete CXL Shadercache and start CXL Platinum.bat
    Delete CXL Shadercache and start CXL 2012.exe (made with Advanced BAT to EXE Converter)
    An extras folder containing two icons to use if you want to make your own exe files.
    A couple of readme files.

    The Code:
    This part of the Bat file does the clearing of the shadercache folder

    @echo off
    echo Y | del "%USERPROFILE%\AppData\Local\Focus Home Interactive\Cities XL 2012\live\shadercache" . > nul
    These parts start CXL

    Cities XL 2012
    start "" "C:\Users\Public\Desktop\Cities XL 2012.lnk"
    Cities XL Platinum
    start "" "C:\Users\YOUR NAME HERE\Desktop\Cities XL Platinum.lnk"


    Unpack the ZIP file and put the file you wish to use onto your desktop.
    If you just want to clear the shadercache without starting CXL then use Delete CXL Shadercache.bat
    If you want to start CXL 2012 after clearing the shadercache, use Delete CXL Shadercache and start CXL 2012.bat
    If you want to start CXL Platinum after clearing the shadercache, use Delete CXL Shadercache and start CXL Platinum.bat but.... you will need to edit it.

    Open the Delete CXL Shadercache and start CXL Platinum.bat using Notepad or Notepad++ and change the bit YOUR NAME HERE to your windows user name. Save it and close it.

    If your using an earlier version of CXL, you can edit the Bat files that start CXL using Notepad or Notepad++ and change the path to the shortcut of your version of CXL.
    If you are running Windows XP or earlier, there maybe other changes you will have to make to the lines that point to the shortcuts so they work correctly.

Recent Reviews

  1. sadiemydog
    Version: 1.1
    Great idea but didn't work for CXL 2012 on windows 7 , get .batch files instead of .patch and get the same crash after it.
    1. skullz613
      Author's Response
      You are suppose to run the batch file before using XL, and not put the batch file into your paks folder
  2. Ze_Doc
    Version: 1.1
    works with XXL !!!
    1. skullz613
      Author's Response
      You should not need to use it with XXL. I don't know for sure but it could cause problems
  3. Sabertooth
    Version: 1.0
    This is GREAT! I really appreciate this improvement! Thanks X.
  4. Supersnake
    Version: 1.0
    D3DX errors killer. Good!
  5. Nogerivan
    Version: 1.0
    thanks...this is better then mine
  6. nicko2u
    Version: 1.0
    This could be very useful thanks
  7. Artmaster
    Version: 1.0
    I just had the D3DX error happen to me yesterday and this file is very helpful.
  8. Monty
    Version: 1.0
    This is very helpful. Thank you.
  9. Radiant Dawn
    Radiant Dawn
    Version: 1.0
    Thanx! This should make game-play both easier and more convenient without the need to go through the all the folders to delete the shader catch files before every time I start the game. +1
  10. Mr.X²
    Version: 1.0
    nice to finally see it at the xlex, though id like to suggest to add some more explanations for the unexperienced users here ;)
    1. skullz613
      Author's Response
      Thanks :) I'll do an update soon.