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

Bat File To Delete The Shadercache

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

  1. skullz613

    skullz613 Administrator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    1,815
    Likes Received:
    1,670
    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:
    550
    Nice one skullz. BAT files are the best.
     
  3. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    427
    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:
    392
    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
    Staff Member

    Joined:
    Aug 23, 2014
    Messages:
    1,199
    Likes Received:
    1,497
    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
    Staff Member

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

    skullz613 Administrator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    1,815
    Likes Received:
    1,670
    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:
    383
    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:
    147
    Likes Received:
    15
    Tutorials seems the best category with a explanation of why.
     
  10. Supersnake

    Supersnake Mayor

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

    skullz613 Administrator
    Staff Member

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

Share This Page