Jump to content

Windows BATCH file for auto deleting shader cache HERE


6 replies to this topic

#1 Gramrock

    Member

  • PipPipPipPipPip
  • 172 posts
  • LocationNeverland

Posted 03 November 2012 - 10:38 AM

I created this file, hope it helps others too.

create a new file (doesnt matter which one).
be sure to enable file extensions for ur windows so u can rename it into a .bat or .cmd file.

put this in there

SET shaderpath="D:\Games\Piranha Games\MechWarrior Online\user\shaders"
SET gamepath="D:\Games\Piranha Games\MechWarrior Online\Bin32\"
 
rd %shaderpath% /S /Q
D:
cd %gamepath%
MechWarriorOnline.exe
exit



please notice I changed to D: because my game is located there so if you've installed it at c:\ just change the D:\ fromt the paths to c:\ and delete the D:

have fun playing

Edited by Gramrock, 04 November 2012 - 02:27 AM.


#2 destraudo

    Member

  • PipPip
  • 35 posts

Posted 03 November 2012 - 03:17 PM

can you explain the reason to do this, is it the cause of a bug?

#3 Gramrock

    Member

  • PipPipPipPipPip
  • 172 posts
  • LocationNeverland

Posted 04 November 2012 - 12:24 AM

yeah many ppl get fps loss to 4-5 fps suddenly bc of the shaders cache... and reports conculde that its bc of the shaders cache so i wanted to help those with this script

#4 Raeven

    Member

  • PipPipPipPipPipPip
  • Moderate Giver
  • Moderate Giver
  • 324 posts
  • LocationHal's Bar. Middletown, Cathay District, Solaris VII

Posted 04 November 2012 - 01:50 AM

How about a bit more of a tutorial on how to use it?

#5 Gramrock

    Member

  • PipPipPipPipPip
  • 172 posts
  • LocationNeverland

Posted 04 November 2012 - 02:25 AM

double click ^^

just create a new file call it whatever u want just a .bat or . cmd extension
put in the batch script code and run it it'll delete ur shader cache and then launch ur game

#6 Demagien

    Member

  • Pip
  • Ace Of Spades
  • 14 posts

Posted 18 November 2012 - 02:27 AM

View PostGramrock, on 03 November 2012 - 10:38 AM, said:

I created this file, hope it helps others too.

create a new file (doesnt matter which one).
be sure to enable file extensions for ur windows so u can rename it into a .bat or .cmd file.

put this in there

SET shaderpath="D:\Games\Piranha Games\MechWarrior Online\user\shaders"
SET gamepath="D:\Games\Piranha Games\MechWarrior Online\Bin32\"
 
rd %shaderpath% /S /Q
D:
cd %gamepath%
MechWarriorOnline.exe
exit



please notice I changed to D: because my game is located there so if you've installed it at c:\ just change the D:\ fromt the paths to c:\ and delete the D:

have fun playing




i had just posted a way to do this in another topic where someone sugested doing this.
another method to try also is :

1. open up notepad then copy and paste this in it:

@echo off

echo deleting shader cache

rmdir /s /q "%~dp0\USER\Shaders\Cache"

echo starting MechWarrior Online

cd "%~dp0\Bin32"

MechWarriorOnline.exe

exit

2. then save as a .bat file

3.put the batch file in "Games\Piranha Games\MechWarrior Online" folder.

4. create a shortcut of the batch file you just made and place on your desktop, and use it to launch the game.

im usen windows 7 ultimate 32bit also, and i know the commands are not all the same for other win OS versions.

Edited by Demagien, 18 November 2012 - 02:33 AM.


#7 Nighpher

    Member

  • PipPipPipPipPip
  • Bad Company
  • Bad Company
  • 144 posts
  • LocationBackwater planet

Posted 18 November 2012 - 01:06 PM

Can you run this script between games to prevent the 4 fps bug?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users