Update: No version change. I have added some files to the ZIP file. See the updates tab for more details.
- CitiesXL 2009
- CitiesXL 2011
- CitiesXL 2012
- CitiesXL Platinum
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.
This part of the Bat file does the clearing of the shadercache folder
These parts start CXLCode:@echo off echo Y | del "%USERPROFILE%\AppData\Local\Focus Home Interactive\Cities XL 2012\live\shadercache" . > nul
Cities XL 2012
Cities XL PlatinumCode:start "" "C:\Users\Public\Desktop\Cities XL 2012.lnk"
Code: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.
Tutorial Delete CXL Shadercache Plus 1.1
Bat files to delete the shadercache and start CXL