blu3mania / npp-papyrus

Notepad++ plugin to provide Papyrus scripting language support to Notepad++, such as syntax highlighting with automatic recognition of class names/functions/properties, keywords matching, and hyperlinks to referenced scripts. It also comes with a compiler that can provide compilation errors in a separate list window, as well as inline annotation and indication where errors are reported, plus support anonymization of compiled .pex files.
GNU General Public License v3.0
24 stars 7 forks source link

Anonymization doesn't work when using MO2 #16

Closed foooooooooooooork closed 9 months ago

foooooooooooooork commented 2 years ago

Compile works but anonymization fails with the message "no such file or directory".

blu3mania commented 2 years ago

I don't use MO2 myself but I know it is using VFS and you need to launch any executable that accesses Data folder through it. Are you launching Notepad++ from MO2? If not, you should try that. Though, if it's the case I am at a loss how PapyrusCompiler.exe is able to find psc file in the correct input folder and generate pex file in output folder...

foooooooooooooork commented 2 years ago

Yes Notepad++ is launched from MO2. It is very strange that the program can generate the correct pex file but anonymization fails... something about the VFS is interfering with the anonymization function but not the compile function?

blu3mania commented 2 years ago

I installed MO2 on another PC just to give this a try and I couldn't reproduce the issue. Can you please check the newest usvfs log file under MO2's logs directory and see what you can find in it? The directory should be C:\Users\{USERNAME}\AppData\Local\ModOrganizer\Skyrim\logs if you are using default installation options.