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. Skullz613 will be taking the reigns of the site in early 2017 and XLNation will be moving to a new web hosting service. During that transition there will be an interruption in service of up to two weeks. Skullz613 is now a full administrator of XLNation. Be kind to him.

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,645
    Likes Received:
    1,408
    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:
    547
    Nice one skullz. BAT files are the best.
     
  3. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    422
    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:
    385
    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,076
    Likes Received:
    1,302
    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,645
    Likes Received:
    1,408
    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,645
    Likes Received:
    1,408
    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:
    377
    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:
    137
    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:
    377
    Indeed !
     
  11. skullz613

    skullz613 Administrator

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

Share This Page