GamerRick Posted October 20, 2021 Share Posted October 20, 2021 (edited) I downloaded and installed Notepad++ and am following the setup guide here: Setting up a quick compile My game is installed at: F:\Steam\steamapps\common\Skyrim Special Edition Here is my ScriptCompile.bat: cd %2 "%~dp0PapyrusCompiler" %1 -f="%~dp0..\Data\Source\Scripts\TESV_Papyrus_Flags.flg" -i="%~dp0..\Data\Scripts\Source" -o="%~dp0..\Data\Scripts" pauseHere is what I paste into the Run command for NP++ "F:\Steam\steamapps\common\Skyrim Special Edition\Papyrus Compiler\ScriptCompile.bat" "$(FILE_NAME)" "$(CURRENT_DIRECTORY)"So far, I got it to find the flags file, but am getting an error saying it cannot find the very script I am trying to compile: \Data\Source\Scripts\ihoconfigmenuscript.psc It is a script from the Immersive horses mod. The error: C:\Program Files\Notepad++>cd "F:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts" C:\Program Files\Notepad++>"F:\Steam\steamapps\common\Skyrim Special Edition\Papyrus Compiler\PapyrusCompiler" "ihoconfigmenuscript.psc" -f="F:\Steam\steamapps\ common\Skyrim Special Edition\Papyrus Compiler\..\Data\Source\Scripts\TESV_Papyr us_Flags.flg" -i="F:\Steam\steamapps\common\Skyrim Special Edition\Papyrus Compi ler\..\Data\Scripts\Source" -o="F:\Steam\steamapps\common\Skyrim Special Edition \Papyrus Compiler\..\Data\Scripts" Starting 1 compile threads for 1 files... Compiling "ihoconfigmenuscript"... <unknown>(0,0): unable to locate script ihoconfigmenuscript No output generated for ihoconfigmenuscript.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on ihoconfigmenuscript.psc C:\Program Files\Notepad++>pause Press any key to continue . . .I first tried just pasting the script into NP++ and then tried opening the script (so it would know where it is). Same thing. What's the deal with there being a Data\source\scripts\ directory and a Data\scripts\source directory?? Thanks! EDIT: I changed the directory to: -i="%~dp0..\Data\Source\Scripts" Now it can't find anything else: nuscript.psc(742,12): none is not a known user-defined type F:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\scripts\ihoconfigmenuscript.psc(740,4): function onkeymapchangest cannot be defined in state herdwaitkeycode without also being defined in the empty state F:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\scripts\ihoconfigmenuscript.psc(747,4): function ondefaultst cannot be defined in state herdwaitkey code without also being defined in the empty state F:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\scripts\ihoconfigmenuscript.psc(756,: SetInfoText is not a function or does not exist ET CETERA..... Name is not a function or does not exist No output generated for ihoconfigmenuscript.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on ihoconfigmenuscript.psc C:\Program Files\Notepad++>pause Press any key to continue . . .Is there any info on exactly how we would extract all source scripts from all BSAs and put them all where the compiler can find them? SKYUI doesn't include the source scripts. How do you make scripts work with it? Edited October 20, 2021 by GamerRick Link to comment Share on other sites More sharing options...
IsharaMeradin Posted October 20, 2021 Share Posted October 20, 2021 SkyUI has an SDK that you need to download. https://github.com/schlangster/skyui/wiki/It works for both LE and SSE. As to why there is a "Data > Scripts > Source" vs "Data > Source > Scripts"By default LE Creation Kit uses "Data > Scripts > Source"By default SSE Creation Kit uses "Data > Source > Scripts" Some SSE authors saw this change as a "bug" and changed their system to use "Data > Scripts > Source"Some SSE authors went with the change and use "Data > Source > Scripts" The advantage of NP++ is that it is possible to use multiple source folder locations. However, it has been a while since I used NP++ (got a new PC since, no old files to even look at). Most recently I have used Sublime Text as it does not require changing the bat file at all and can handle multiple source folder locations. Link to comment Share on other sites More sharing options...
GamerRick Posted October 20, 2021 Author Share Posted October 20, 2021 (edited) Thanks IsharaMeradin! I had managed to get LE setup to tweak a few scripts. OK, so I may as well go with the scripts\source location since that is where the mods I have downloaded so far put theirs, and SKUI SDK puts theirs too as well. Is there a guide on how to build the sctripts\source directory with all of the scripts you will need? Does that source.zip file have all of the vanilla psc files, including DLCs? Or do I need to extract the scripts directory from all DLC BSAs, USSEP BSA, and any other that have scripts I want to play with? Thanks. EDIT: It worked. I copied everything in source\scripts to scripts\source (telling it to not copy over existing ones). Then configured this: ScriptCompile.bat: cd %2 "%~dp0PapyrusCompiler" %1 -f="%~dp0..\Data\Scripts\Source\TESV_Papyrus_Flags.flg" -i="%~dp0..\Data\Scripts\Source" -o="%~dp0..\Data\Scripts" pause Edited October 20, 2021 by GamerRick Link to comment Share on other sites More sharing options...
Recommended Posts