1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. I will no longer be hosting XLNation as of March 1, 2017. Unless some one steps forward to take over the domain name and provide hosting XLNation will shutdown. If you are seriously interested in taking on this project and can technically and financially support the project please contact me.

Tutorial Delete CXL Shadercache Plus 1.1

Bat files to delete the shadercache and start CXL

  1. skullz613
    Compatible:
    • 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)
    attachFull8901
    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

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

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

    Instructions:


    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.

    Notes:
    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
    sadiemydog
    2/5,
    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
    Ze_Doc
    5/5,
    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
    Sabertooth
    5/5,
    Version: 1.0
    This is GREAT! I really appreciate this improvement! Thanks X.
  4. Supersnake
    Supersnake
    5/5,
    Version: 1.0
    D3DX errors killer. Good!
  5. Nogerivan
    Nogerivan
    5/5,
    Version: 1.0
    thanks...this is better then mine
  6. nicko2u
    nicko2u
    5/5,
    Version: 1.0
    This could be very useful thanks
  7. Artmaster
    Artmaster
    5/5,
    Version: 1.0
    I just had the D3DX error happen to me yesterday and this file is very helpful.
  8. Monty
    Monty
    5/5,
    Version: 1.0
    This is very helpful. Thank you.
  9. Radiant Dawn
    Radiant Dawn
    5/5,
    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²
    Mr.X²
    5/5,
    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.