Skyrim
0 of 0

File information

Last updated

Original upload

Created by

mikey

Uploaded by

mikeynexus

Virus scan

Safe to use

About this mod

Still can't get rid of that mysterious lingering visual effect? This brute force batchfile approach removes all 8.6 BILLION possible magic and visual effect codes from your character, from 00000000 to FFFFFFFF.

Permissions and credits
Donations
Many thanks to mnelson999 who - voluntarily! - went through the source code for me and made significant improvements for v1.1.
The programme will now check for disc space before running, will run as a background process, and you can now choose to remove only FX, only Spells, or both.


If you have an unwanted lingering visual or magical effect, it can be a real pain to identify it and then an even bigger pain to remove it. To start with, you should definitely check out this tutorial from the forums.

Thanks also to Rusey for pointing out that there are also shrines in the temple in Whiterun to remove unwanted fx if you have USLEEP installed, FYI.

But if that doesn't work then this utility might save your game for you - it did for me!

I had a glow effect surrounding my character that I just could not identify or remove, even after following all the instructions in the tutorial and using the batch files that it includes to remove all known problematic magic and visual effects. It was driving me mad, and reverting to a prior save would have cost me a few dozen hours of gameplay (yeah, for some reason it took me a while to realise it was a bug, not something I'd done on purpose). 

Rather than abandon my game I thought "Stuff This!" and wrote some simple code to auto-generate batch files that exhaustively removed all possible magic and visual codes from the character, from 00000000 to FFFFFFFF. This has to be done twice, once for magic fx and once for visual fx.

Unfortunately, I cannot simply post the batch files because they amount to 3768 files of ~43MB each, for a total of 159GB.

What I've decided to do is post the executable that generates the batch files, plus a handful of "master" batch files that automate the running of those 3768 files. I have also posted the C# source code and declare it to be Public Domain, as it is pretty worthless in itself.

It might sound scary, but the process is very simple. If you do not have the required 159GB available on the drive on which Skyrim is installed, there is a workaround at the end.

1) Put the executable "GenerateBatchFileCodes.exe" in a folder on a disc with at least 159GB of free space available. If you have enough room available you can put this in your Skyrim root folder (NOT the "\data" folder), as the batch files must be run from the Skyrim folder in-game.

2) Click the "BuildCodes" button... and wait. This may take over an hour on a good PC. Remember, it is generating 159GB of text files.

3) The program will generate 3768 files with names "codes000.txt" to "codes151515.txt". When complete, move all the files to the Skyrim root folder.

4) This download also includes a set of master batch files called "cure0.txt" to "cure15.txt", and "cureAll.txt". Put all these in your Skyrim root folder, too.

5) Run Skyrim and load your game. All magic fx of worn items will be removed by this process, so unless you strip down first you'll have to remove/replace all worn items after running the batch files.

6) If you are running Conskrybe, disable it now (toggleskrybing) - seriously! It will cut the execution time by 70%.

7) Open the console and type "bat cure0" (without the quotes) to run the first set of batch files. Continue running "bat cure1" to "bat cure15" until your unwanted effect is removed. Note that each file will take a long time to run; 35 minutes each on my PC (Corei7 @ 4.5GHz).

8) If you want to leave it running overnight, just use the "bat cureall" batch file instead of "cure0" to "cure15", though this is untested.

If you do not have 159GB of free space available on your Skyrim drive...

Check the contents of each of the "curen.txt" batch files. You'll quickly see which of the 3768 sub-files it refers to. For example, cure0.txt runs batch files codes000 to codes01515; cure1.txt runs codes100 to codes11515, etc. Instead of copying all 3768 files to the Skyrim root folder, just copy the one set of files that are needed by a single curen.txt batch file. Repeat until the unwanted effect disappears.

Notes

You will probably need the Microsoft .Net framework installed to run the executable. Let me know if you have any problems.

Dynamically allocated fx can often cause problems and are always given a code beginning with "FF" by the game engine. If you suspect that your unwanted effect is dynamically allocated, start by running batch file cure15.

If you have a reasonable idea of which mod is causing the problem, start by running the appropriate cure batch file that will include that mod; mods 0-15 = cure0, mods 16-31 = cure1, mods 32-47 = cure3, etc.

If your unwanted effect persists, sorry, but I'm $#!+ out of ideas. This process is exhaustive so it literally should work for everything.