1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. It's not long before we will be moving. The new hosting has been setup and the next thing to be done is to change the DNS. When it's changed it may take between 24 to 48 hours to take effect. During this time XLN will be closed so it can be backed up. When the new DNS takes effect, you will see a basic page with a message regarding the move. Note: It may take up to two weeks to get XLN up and running again.
    Dismiss Notice

Bat File To Delete The Shadercache

Discussion in 'General Forum' started by skullz613, Nov 18, 2014.

  1. skullz613

    skullz613 Administrator

    Joined:
    Aug 21, 2014
    Messages:
    1,741
    Likes Received:
    1,580
    I've made a simple batch file to delete the contents of the shadercache folder. Plop it on your desktop and run it before playing CXL.

    This is the contents of it.
    Code:
    @echo off
    
    echo Y | del "%USERPROFILE%\AppData\Local\Focus Home Interactive\Cities XL 2012\live\shadercache" . > nul 
    There's probably other ways to code it but I'm happy with it.
     

    Attached Files:

  2. The Funky Monk

    The Funky Monk Moderator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    631
    Likes Received:
    549
    Nice one skullz. BAT files are the best.
     
  3. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    424
    What is the purpose of this? Does it lower crash possibility? Or fix something? Or else..?
     
  4. gbojanic

    gbojanic Governor

    Joined:
    Aug 22, 2014
    Messages:
    185
    Likes Received:
    391
    It gets rid of the D3DX errors crashing the game... You have to empty that shader cache folder every time before starting the game.
     
  5. Mr.X²

    Mr.X² Moderator

    Joined:
    Aug 23, 2014
    Messages:
    1,133
    Likes Received:
    1,391
    nice one skullz
    you could also do this as a cxl-shortcut + deleting the shadercache, means adding a start command for cxl to your batch file
    so you only need one click for everything and can play cxl :)

    for example
    Code:
    @echo off
    
    echo Y | del "%USERPROFILE%\AppData\Local\Focus Home Interactive\Cities XL 2012\live\shadercache" . > nul
    
    start "CitiesXL_2012" "D:\Users\blablabla\Desktop\Games\Cities XL 2012.lnk"
    (im using the shortcut cause i have problems to add the correct localizations to the batch file but effect is the same, so :p)
     
    The Funky Monk and gbojanic like this.
  6. skullz613

    skullz613 Administrator

    Joined:
    Aug 21, 2014
    Messages:
    1,741
    Likes Received:
    1,580
    I did think of that but it was getting late and my brain was running out of steam.
     
  7. skullz613

    skullz613 Administrator

    Joined:
    Aug 21, 2014
    Messages:
    1,741
    Likes Received:
    1,580
    Saves you having to manually delete the cache yourself. Its good to clear out the shadercache to help stop some of the errors.
     
  8. Supersnake

    Supersnake Mayor

    Joined:
    Aug 31, 2014
    Messages:
    308
    Likes Received:
    378
    Good initiative, Skull. Thanks for this helpfull file.

    It could be in the XLEX but there is no category for this kind of file.
     
  9. Skater27

    Skater27 Executive

    Joined:
    Aug 30, 2014
    Messages:
    145
    Likes Received:
    14
    Tutorials seems the best category with a explanation of why.
     
  10. Supersnake

    Supersnake Mayor

    Joined:
    Aug 31, 2014
    Messages:
    308
    Likes Received:
    378
    Indeed !
     
  11. skullz613

    skullz613 Administrator

    Joined:
    Aug 21, 2014
    Messages:
    1,741
    Likes Received:
    1,580
    That's seems a good place for it. I'll do it later as I'm about to head out.
     

Share This Page