TJHammersmith Posted May 8, 2020 Share Posted May 8, 2020 (edited) 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 existC:\...\EffNakedFix.psc(6,46): cannot cast a none to a armor, types are incompatibleC:\...\EffNakedFix.psc(7,22): GetWornForm is not a function or does not existC:\...\EffNakedFix.psc(7,46): cannot cast a none to a armor, types are incompatibleC:\...\EffNakedFix.psc(14,24): GetNumItems is not a function or does not existC:\...\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 existC:\...\EffNakedFix.psc(19,46): cannot cast a none to a armor, types are incompatibleC:\...\EffNakedFix.psc(21,34): GetSlotMask is not a function or does not existC:\...\EffNakedFix.psc(21,14): LogicalAnd is not a function or does not existC:\...\EffNakedFix.psc(21,14): cannot call the member function LogicalAnd alone or on a type, must call it on a variableC:\...\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 NoneC:\...\EffNakedFix.psc(25,34): GetSlotMask is not a function or does not existC:\...\EffNakedFix.psc(25,14): LogicalAnd is not a function or does not existC:\...\EffNakedFix.psc(25,14): cannot call the member function LogicalAnd alone or on a type, must call it on a variableC:\...\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 NoneNo 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 May 8, 2020 by TJHammersmith Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 8, 2020 Share Posted May 8, 2020 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 > SourceSpecial 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 More sharing options...
TJHammersmith Posted May 9, 2020 Author Share Posted May 9, 2020 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 More sharing options...
LeelooMinai Posted January 21, 2021 Share Posted January 21, 2021 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 > SourceSpecial 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:PapyrusTHANK YOU SO MUCH! This finally helped me! I almost went insane! <3 Link to comment Share on other sites More sharing options...
DJAitch Posted March 23, 2021 Share Posted March 23, 2021 Thanks for this as well. I've been searching for ages for a solution as to why my script wouldn't compile. This solved it perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts