1. If you are going to register on XLNation, please make sure you do not use a proxy server.
    If you use a proxy server your registration will most likely get blocked due to spammers and hackers using proxy servers to hide their real IP address.

    If your using your home or work IP address and have not received your registration email, check your spam folder.
    PLEASE DO NOT ASK TO HAVE YOUR ACCOUNT DELETED IF YOU HAVE POSTED IN THE FORUM! If so we do not delete accounts due to the mess it can make on the forum.
    Dismiss Notice
  2. Please see the following thread for more information
    XLN's future is looking bad

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:
    2,203
    Likes Received:
    2,250
    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:
    632
    Likes Received:
    565
    Nice one skullz. BAT files are the best.
     
  3. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    440
    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:
    406
    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,338
    Likes Received:
    1,714
    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:
    2,203
    Likes Received:
    2,250
    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:
    2,203
    Likes Received:
    2,250
    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:
    405
    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:
    173
    Likes Received:
    18
    Tutorials seems the best category with a explanation of why.
     
  10. Supersnake

    Supersnake Mayor

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

    skullz613 Administrator
    Staff Member

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

Share This Page