QUOTE(Wrye @ Feb 19 2007, 01:03 AM) [snapback]9292603[/snapback]
...
Cleaning of these types of refs from dev_akm's game seemed to not cause problems, but keep in mind that this sort of surgery may indeed cause obscure corruption of the game. Hopefully not, but anyway, here you go...
This is a cut down version of the command line script that I used to clean dev_akm's game. For his game, I removed quite a bit of other stuff, but this version should only remove the "Null ObjectRefs". Usage:
* Open bish.py in a text editor, and scroll to the bottom.
* Then, just above the "# Main---" line, past the following code in.
* Save changes to the bish.py, then open a command shell and chdir to the Mopy directory.
* type: python bish.py cleanNullRefs "Name of save file"
* Hint: You may want to rename the savegame to something short in bash to make it easier to type in.
* Hint: Backups are good. I was pretty surprised that this didn't corrupt dev's game. You've been warned!
...
I've been following this topic with great interest. The save file for my current character has crept to nearly 9meg. 2meg of that is from these leftover items so I decided to give Wrye's new "cleanNullRefs" module a shot. Here is the relevant data:
Before cleaning:
Abomb Counter
Integer: 0x4848A6F8
Float: 205467.88
Array Sizes
10339 Created Items
108460 Records
20389 FormIds
Created Items
75 ALCH
80 APPA
788 INGR
5564 KEYM
601 LIGH
3228 MISC
3 WEAP
.
.
.
New ObjectRef Bases
Null Bases: 26871
Count IRef BaseId
568 000010FA 5800341C 28 kb
308 000010FB 58000CE7 16 kb
312 000010FC 58003DEB 21 kb
485 00001A64 00000000 26 kb
1439 00001A65 00000000 78 kb
1175 00001A66 00000000 64 kb
107 000020E4 00000000 5 kb
219 00002414 00000000 11 kb
465 0000243C 00000000 25 kb
1116 000024BD 00000000 61 kb
107 000024C6 00000000 5 kb
209 000024CE 00000000 11 kb
194 000026D9 03002099 10 kb
175 000026DB 03002095 9 kb
178 00002ADD 00000000 9 kb
20031 00002BCC 00000000 1388 kb
690 0000404A 00000000 41 kb
After Cleaning:
Abomb Counter
Integer: 0x4847A3C1
Float: 204431.02
Array Sizes
10217 Created Items
80489 Records
20300 FormIds
Created Items
73 ALCH
80 APPA
786 INGR
5484 KEYM
597 LIGH
3194 MISC
3 WEAP
.
.
.
New ObjectRef Bases
Count IRef BaseId
568 000010FA 5800341C 28 kb
308 000010FB 58000CE7 16 kb
312 000010FC 58003DEB 21 kb
190 000026D9 03002099 10 kb
175 000026DB 03002095 9 kb
The save file dropped from 8954kb to 7178kb. More importantly, the cleaned save game loads just fine. That is a very handy piece of coding Wrye, thank you!
One question to the group, why do I have this in my stats output:
39 Key
13 Oblivion.esm
1 P1DkeyChain.esp
5484 Save 156 - Raven Nightblade - The Great Forest, Level 17, Playing Time 164.12.56.ess
5498 Total
This seems to indicate that my save game has over 5000 keys. Is this a problem with the P1DKeyChain mod? I believe this is the only mod I have ever run that would affect the keys my character carries.
Chris