Jump to content

[LE] Script Newb needs help compiling


Recommended Posts

Full disclosure - I'm using Mod Organiser 2

 

I'm trying to edit a script that came with a mod (the Naked Follower fix for EFF: https://www.nexusmods.com/skyrim/mods/62188) and increase the time that it takes certain events to trigger.

 

I've edited the psc in Notepad++ (all I did was increase the integer value from 10 to 99999999)

 

I'm trying to recompile the script in the CK but despite being able to locate the script under Gameplay>Compile Papyrus Scripts, it returns the following error when trying to compile: "unable to locate script EffNakedFix"

 

I tried putting the psc and pex files in the base Skyrim installation to see if MOO2 was causing the issue but then it threw different errors at me as follows:

C:\...\EffNakedFix.psc(6,22): GetWornForm is not a function or does not exist
C:\...\EffNakedFix.psc(6,46): cannot cast a none to a armor, types are incompatible
C:\...\EffNakedFix.psc(7,22): GetWornForm is not a function or does not exist
C:\...\EffNakedFix.psc(7,46): cannot cast a none to a armor, types are incompatible
C:\...\EffNakedFix.psc(14,24): GetNumItems is not a function or does not exist
C:\...\EffNakedFix.psc(14,6): type mismatch while assigning to a int (cast missing or types unrelated)
C:\...\EffNakedFix.psc(19,28): GetNthForm is not a function or does not exist
C:\...\EffNakedFix.psc(19,46): cannot cast a none to a armor, types are incompatible
C:\...\EffNakedFix.psc(21,34): GetSlotMask is not a function or does not exist
C:\...\EffNakedFix.psc(21,14): LogicalAnd is not a function or does not exist
C:\...\EffNakedFix.psc(21,14): cannot call the member function LogicalAnd alone or on a type, must call it on a variable
C:\...\EffNakedFix.psc(21,61): cannot compare a none to a int (cast missing or types unrelated)
C:\...\EffNakedFix.psc(21,61): cannot relatively compare variables to None
C:\...\EffNakedFix.psc(25,34): GetSlotMask is not a function or does not exist
C:\...\EffNakedFix.psc(25,14): LogicalAnd is not a function or does not exist
C:\...\EffNakedFix.psc(25,14): cannot call the member function LogicalAnd alone or on a type, must call it on a variable
C:\...\EffNakedFix.psc(25,61): cannot compare a none to a int (cast missing or types unrelated)
C:\...\EffNakedFix.psc(25,61): cannot relatively compare variables to None
No output generated for EffNakedFix.psc, compilation failed.
This surprised me a little, as I thought the script wouldn't have any errors, having successfully been compiled by the mod author in the first place.
Can anyone help me out and let me know what I need to do to compile this script correctly?
Edited by TJHammersmith
Link to comment
Share on other sites

Make sure SKSE is properly installed.

The PSC files need to be where the Creation Kit / compiler can read them.

By default:

Original Skyrim - Data > Scripts > Source

Special Skyrim - Data > Source > Scripts

 

With MO2 you can make a dedicated 'mod folder' for the PSC files and activate it only when you need to use the Creation Kit and / or compile.

 

Alternatively use a third party utility to edit and compile your scripts (might have to set them up to run through MO2). These tools can be set up to read PSC files from multiple locations.

See the section External Text Editors on the right hand side for various options and instructions on setting them up: https://www.creationkit.com/index.php?title=Category:Papyrus

Link to comment
Share on other sites

Thanks!

 

Following your post, I first tried using Notepad++ to compile, but that gave me even more errors than I had originally.

 

I then reinstalled SKSE directly into the Skyrim directory (bypassing MO2) and tried recompiling the script using the CK via MO2, but that had the same "unable to locate" issue as before.

 

I then directly copied the relevant psc and pex files into the Skyrim installation and then recompiled though CK and it worked! I moved the recompiled pex file back into the MO2 setup and so far, it seems to be holding together correctly :)

Link to comment
Share on other sites

  • 8 months later...

Make sure SKSE is properly installed.

The PSC files need to be where the Creation Kit / compiler can read them.

By default:

Original Skyrim - Data > Scripts > Source

Special Skyrim - Data > Source > Scripts

 

With MO2 you can make a dedicated 'mod folder' for the PSC files and activate it only when you need to use the Creation Kit and / or compile.

 

Alternatively use a third party utility to edit and compile your scripts (might have to set them up to run through MO2). These tools can be set up to read PSC files from multiple locations.

See the section External Text Editors on the right hand side for various options and instructions on setting them up: https://www.creationkit.com/index.php?title=Category:Papyrus

THANK YOU SO MUCH! This finally helped me! I almost went insane! <3

Link to comment
Share on other sites

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

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