Jump to content

[LE] "CODE NOT LOADED" when trying to edit script source of a mod


Recommended Posts

Hi, i try to make a small change to the mod https://www.nexusmods.com/skyrimspecialedition/mods/691?tab=description .

I managed to decompile the pex file to psc and created a zip which has the following folder structure:

 

 

 

Within the "source" folder are the psc files:

 

 

 

I installed this via MO2 and activated it. When i start CK i can edit the

properties of the script but as soon as i try to open the source within CK i only get "CODE NOT LOADED" for the fragments.

I've already verified that the decompilation worked. Is there a way to fix this? All the solutions i've found like deleting "Scripts" and "DialogueViews" didn't work.

I will only release this if the modder gives me his/her approval if somebody is concerned about the decompilation.

 

Solution: I just needed to add the following line to the creation kit config

 

 

sScriptSourceFolder = ".\Data\Scripts\Source"

 

Edited by cracksoldier
Link to comment
Share on other sites

If you are working with Skyrim Special Edition, the default folder structure is "Data\Source\Scripts" for the PSC and "Data\Scripts" for the PEX. You can change it as you did, but you will need to ensure that all of the base game + DLC as well as any mods being worked on have their PSC files located in your chosen directory. Also the flags file needs to be in that directory as well.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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