Jump to content

Need help understanding how to patch scripts


probbes

Recommended Posts

Hello !

 

I am trying to patch Better Spell Learning and Mysticism (I know a patch has already been made, but it doesn't include all the spells). I can see in SSEedit that some spells have a script category added by BSL and some don't. When I open those two mods in the CK, I can clearly see that the working spells have the papyrus script "SpellTomeReadScript" but the not working spells don't.

 

My question is : How can I copy paste this script inside the spells that doesn't have it ? Do I do it in the CK or in SSEedit (if possible) ?

Link to comment
Share on other sites

As long as you do not need to modify the script itself, you can do the following:

Ensure that the PSC file needing to be attached is present in the script source folder used by the Creation Kit. (SSE default is 'Data > Source > Scripts')

Load the appropriate plugin in the Creation Kit, find the necessary records, attach the script, close the record, re-open the record, modify properties as needed, close the record, repeat for each one, save the plugin and finally test it out.

 

If you cannot load the plugin due to one or more ESP files as parent masters:

Using Wrye Bash select the "Add/Remove ESM Flag to/From Masters" option from the plugin's right click menu

Before testing in game, be sure to reverse the changes made. Otherwise the affected plugins will be loading in the ESM section rather than the ESP section. This may cause behavior to be different than what users would experience when using the regular ESP files.

Using xEdit modify the header flag of each ESP parent master to indicate ESM

Before testing in game, be sure to reverse the changes made. Otherwise the affected plugins will be loading in the ESM section rather than the ESP section. This may cause behavior to be different than what users would experience when using the regular ESP files.

Alternatively, apply the Creation Kit Fixes mod (no idea if it works with the latest version of the CK - read comments and decide for yourself).

Link to comment
Share on other sites

Thank you for your answer.

I can't find the script in the Source/Scripts folder. The script I am looking for is called "SpellTomeReadScript". However, I can add the scripts that I found in the Scripts folder to any spell tomes, but not the script that I want.

I found that the scripts that I can add and that I can create have a little blue + next to their name, but the SpellTomeReadScript has (the script that I can't add) has a little + and a yellow pencil. I don't know what it means.

I have Creation Kit Fixes and I am using MO2 to launch the creation kit. I am also using SSEedit.

I also can load the plugins without issue.

Link to comment
Share on other sites

The + with a pencil is just an icon to indicate that properties have been filled.

The + is an icon that indicates that properties have not been filled and / or at their default values.

 

These icons have nothing to do with whether a script can be attached or not. What governs its ability to be attached is whether or not the PSC file is accessible by the Creation Kit.

 

The script in question is probably from one of the two mods you are wanting to patch. If they have BSA files, extract them to a folder outside of the game and see if the PSC is there. If you cannot find the PSC but can find the PEX. Use Champollion to decompile into a reusable and readable format (there is a GUI option if you do not like using command line text).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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