Jump to content

[LE] Can I move PSC files to one location?


Recommended Posts

Hi all,

 

Background:

 

I play Skyrim VR. First day attempting scripting. I installed scripts.zip using MO2 and it was cranky about installing Source and/or Dialogue Views directly under Data. So I did a bit of reading and one suggestion was that it should be installed under data\Scripts which I did. Then I got the "couldn't find TESV_Papyrus_Flags.flg" problem so I added 'sScriptSourceFolder=Data\Scripts\Source' to my CreationKit.ini and I was off. Made a bunch of script fragments. Rock'n'Roll! Then I decided I wanted to look at some other bits of scripting for solutions and got the ';CODE NOT LOADED' problem which I now understand to mean CK can't find the .psc file. So I went and had a look at the data tree in MO2 and there are .psc files all over the place. Some in \scripts, some in \scripts\source, and some in \source\scripts. I've since learned that Bethesda changed the default location for psc files in Skyrim SE (and, by extension, presumably VR as well) from \scripts\source\ to \source\scripts and this would go some way towards explaining that.

 

I've come to the opinion that the Skyrim cares very much about the location of the PEX files (\scripts) and that is supported by looking at the data tree. No exceptions there. However, I'm starting to form the opinion that it doesn't care about the location of the PSC files. I'm not even sure the game uses them... Moreover, I'm coming to the conclusion that CK cares very much about the location of the PSC files and will only look in the location specified in CreationKit.ini.

 

In order to access all the scripts from CK and assuage my OCD...

 

  • Have I understood the relationship between file type and application correctly?
  • Can I just move them to a single location? (probably \source\scripts and amend the ini file)

Any help much appreciated.

 

 

<edit>

After some testing it seems to work out okay, although...

  • Can CK see PSC files packed in an archive?
Edited by RobWed
Link to comment
Share on other sites

You are correct in that the game does not care one iota about the PSC files. The Creation Kit, however, is very adamant about where they are. That said, third party utilities can be used to compile from multiple source folders.

 

If you do not use a third party utility (Sublime Text, Notepad++, etc) for compiling, then you need to copy all the PSC files you need to work with into one single directory. Whatever directory you use should either be the original default (LE: Data > Scripts > Source -- SE: Data > Source > Scripts -- VR: unknown) or whatever path is assigned to sScriptSourceFolder in the INI. Do note that the order of copying is very important. Copy in the wrong order and you may be working with a PSC that does not match the existing PEX. This could cause problems if you re-compile that PSC for some reason. Also, if the wrong PSC is present there may be missing functions or variables that will cause compilation to fail when compiling a script that needs access to the missing function or variable.

 

The Creation Kit does not see PSC files packed inside the BSA files.

Link to comment
Share on other sites

Fabulous answer! Covered everything I needed.

 

I'll pay particular attention to the load order where I have multiple versions of a given PEX and ensure I choose the appropriate PSC.

 

Thinking about it, I think I'll move any errant PSC files to a \source\scripts folder within the mod folder in MO2. That'll ensure the alignment of PEX and PSC across winning mods. Saves me having to find and delete about 1500 PSC files from scripts.zip that are updated by USSEP...

 

I'm also considering a second instance of Skyrim VR so I have a game instance and a creation instance. Have to think a bit more about the practicality of that...

Edited by RobWed
Link to comment
Share on other sites

Haha! Just got caught out by load order.

 

I was getting the function not found error for GetWornForm. Did my head in for a bit! I could see it in SKSEVR\source\scripts\actor.psc. Finally checked MO2 and it's being overwritten by the scripts.rar version.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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