Jump to content

[LE] Could you explain scripts folder and subfolders in Skyrim?


Recommended Posts

PSC files are the raw papyrus scripts -- they are the source of a PEX file.

PEX files are the results of a "compiled" PSC file.

 

So, basically when you create a script it starts out/saved as a PSC file. When you "compile" the script, a PEX file is then created. Someone can correct me if I'm wrong, but a PSC script cannot function in the game without it's PEX file since it tells the game what to do.

 

You can open a PSC file using a text editor like Notepad++ to view the contents of the script, but if you open a PEX file in Notepad++ it looks crazy and formatted. Fortunately you can decompile PEX files by drag-and-dropping them in a free program like Champollion. Champollion will create a PSC file so you can see how the PEX was scripted.

 

I hope that all makes sense :smile:

Edited by justinglen75
Link to comment
Share on other sites

That makes sense, but the main question is why there are a lot of dlc1 psc scripts in data - scripts - source - dawnguard folder, and there are only few dlc1 pex scripts in data - scripts folder. If to follow what you said all these dlc1 psc scripts are uncompiled and are not used in game. Is that so?

Link to comment
Share on other sites

The PEX files for the base game and DLC are packed inside their respective BSA files.

The PSC files are provided with the Creation Kit in a scripts.rar file that must first be unpacked in order to use them with the Creation Kit.

 

Where the PEX and PSC files are located for a mod differs based on the author. Some provide both as loose files, some pack them both in a BSA, some only provide the PEX as that is what the game needs.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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