Jump to content

[LE] Corrupted script -- how to fix?


Recommended Posts

I had the CK crash on me while I was working on a script, leading to a total loss. I nuked the .pex and .psc files and started rebuilding it. This worked for a while, but then I started getting errors on trying to modify properties. Copied the code out into a scratch file, removed the .pex and .psc files again, and now I get:

 

1. "Cannot open store for class" on opening up the Papyrus manager;

2. "Errors in script during load, script not added" for attempting to create a new empty script with the same name.

 

In principle I could rename it, but it's referred to elsewhere and I'd like to avoid that.

Link to comment
Share on other sites

You can't just delete a script file and start all over. Especially when using the CK to create and compile the script. If there is just one record that is referencing the script when you delete it, there will be problems as you have found out. If you can restore the old files then remove the reference to that script from all records in the CK. You can then safely delete it and start over. Your other solution is to use a third party utility like Sublime Text to write and then compile the script. That way you'll have the file in place when you load the CK. Just be sure to check the properties for each record using that script. Property data is stored on the record rather than the script and is one of the reasons that the CK is having a fit about the deleted script files.

Link to comment
Share on other sites

It's not stored in any properties as far as I can find, and I removed it from the base object, which should've carried through to all the placed instances, and I've remarked out all references to it in other scripts that I have found. Still no joy. Blegh.

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...