TangerineDog Posted November 2, 2018 Share Posted November 2, 2018 (edited) It's worse than I thought.I had failed to compile any script and thought I had just forgotten how to do it. But now I've set and set again the correct paths in the Papyrus Compiler .bat and tried to use the CK's own Papyrus Script Manager to compile a few scripts. Each time, it just says 'failed'.Clicking on the failed scripts just nets me blank lines where the report should be. I've reinstalled the CK, renewed the Scripts folder, tried running everything in admin mode......and no joy. Help? Please? Edited November 2, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
SeraphimKensai Posted November 2, 2018 Share Posted November 2, 2018 Is it generating errors or just crashing? Link to comment Share on other sites More sharing options...
TangerineDog Posted November 2, 2018 Author Share Posted November 2, 2018 Is it generating errors or just crashing?It says failed. I can't see any errors anywhere, but I can click ok and try again as many times as I want, so I'm not even sure if that qualifies as a crash... Link to comment Share on other sites More sharing options...
SeraphimKensai Posted November 2, 2018 Share Posted November 2, 2018 Post a script your trying to compile. I'm at work, but later today I can try and compile it to see if the error reoccurs on my end or if it's a problem exclusive to your machine. Link to comment Share on other sites More sharing options...
TangerineDog Posted November 2, 2018 Author Share Posted November 2, 2018 It's exclusive, that much I can tell.No script (I've tried new ones, those of mine I've compiled before and many that just came with the game) will compile. Link to comment Share on other sites More sharing options...
SeraphimKensai Posted November 2, 2018 Share Posted November 2, 2018 Perhaps uninstall/reinstall the software your using to compile, or alternatively look line by line through the script (which I'm guessing you already did) to see if you can manually spot an error. Link to comment Share on other sites More sharing options...
foamyesque Posted November 2, 2018 Share Posted November 2, 2018 (edited) This won't be, from the symptoms, an issue with the actual script. I'm not sure what the problem is. You say you've done a nuke & pave, checked the paths, etc, and it sounds like you've tried compiling directly in the CK and not with a third party tool, so those are the most obvious troubleshooting steps out of the way. Edited November 2, 2018 by foamyesque Link to comment Share on other sites More sharing options...
TangerineDog Posted November 2, 2018 Author Share Posted November 2, 2018 (edited) This won't be, from the symptoms, an issue with the actual script. I'm not sure what the problem is. You say you've done a nuke & pave, checked the paths, etc, and it sounds like you've tried compiling directly in the CK and not with a third party tool, so those are the most obvious troubleshooting steps out of the way.Unfortunately, I agree - I've done the works on checking if it's just user error and turned it off and on again. So basically, I've now tried tweaking stuff to make it work. I mean, what else could go wrong?Back to square 0. Now let's assume ThisDamnScript.psc is 100% correct (And it is. It just is. I know it is 'cause my favorite mod runs on it and has done so for 300 hours. It is not the fault of the script. And it is just an example here anyway, it doesn't work with all the other scripts either. :( :( :( ).Entering this into the .bat file and running it should directly compile ThisDamnScript.psc and put it into the scripts folder, right? "D:\SteamLibrary\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler.exe" "ThisDamnScript.psc" -f="TESV_Papyrus_Flags.flg" -i="D:\SteamLibrary\steamapps\common\skyrim\Data\Scripts\Source" -o="D:\SteamLibrary\steamapps\common\skyrim\Data\Scripts"pause Edited November 2, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
ReDragon2013 Posted November 3, 2018 Share Posted November 3, 2018 (edited) You forgot to tell us what Operating System you are using!Next steps could be helpful to test what is going wrong with your compiler.(1) create new folder, just like that, we assume drive D exists as logical HD-drive name. D:\Papyrus(2) copy next files to this folder from "..\SteamApps\common\skyrim\Papyrus Compiler" antlr.runtime.dll Antlr3.Runtime.dll Antlr3.Utility.dll PCompiler.dll StringTemplate.dll PapyrusAssembler.exe PapyrusCompiler.exe (3) create new subfolders, like that D:\Papyrus\scripts D:\Papyrus\scripts\source D:\Papyrus\scripts_compile D:\Papyrus\scripts_disassemble (4) copy all vanilla psc-files to next folder, make sure you have enough space on the logical drive D:\Papyrus\scripts\source Do not forget sources are stored into archive "scripts.rar"! And make sure the file "TESV_Papyrus_Flags.flg" is also copied.(5) create new bat-file, "compile.bat" inside folder "scripts_compile", Attention all sources in the same folder as the bat-file will be compiled! @echo OFF SETLOCAL SET folder= for %%f in (*.psc) do ( rem echo %%~nf ..\PapyrusCompiler.exe %%f -d -op -f="TESV_Papyrus_Flags.flg" -i="..\scripts\source" -o="%folder%" >output_%%~nf.txt echo. REM move output_%%~nf.txt %folder%\output_%%~nf.txt ) del *.dot pause rem d:\papyrus\PapyrusCompiler.exe %1 -d -op -f="TESV_Papyrus_Flags.flg" rem -d == Debuginfo rem -op == optimization rem -f="TESV_Papyrus_Flags.flg" rem -i="d:\Papyrus\scripts\source" rem -o="d:\Papyrus\scripts_compile" (6) create new bat-file, "disassemble.bat" inside folder "scripts_disassemble", if you need it @echo OFF for /R %%f in (*.pex) do ( rem echo %%~nf ..\PapyrusAssembler.exe %%~nf -D echo. ) pause(7) copy to folder "D:\Papyrus\scripts_compile" the psc-file(s) you like to compile "ThisDamnScript.psc" doubleclick on file "compile.bat", it should make next files if no error ThisDamnScript.pex ; the executable ThisDamnScript.pas ; assembly for handish code optimization, can be removed output_ThisDamnScript.txt ; compiler output, can be removed(xx) Info about papyrus executable files overlapping: All of the next 72 files exist twice, once for the vanilla Skyrim (with 1 exception) and the other depends on the DLC you use! // DAWNGUARD /25/ ------------------------------------------- 1 c03sacredfontscript.pex 2 dundustmanscairnlever.pex 3 dunraldbtharpuzzlegearblockerscript.pex 4 fxdwarvenspiderscript.pex 5 magicimodbeginloopend.pex 6 nightmothercoffinscript.pex 7 playervampirequestscript.pex 8 playerwerewolfchangescript.pex 9 playerwerewolfcuresconcescript.pex 10 prkf_vampirefeedbeds_000cf02c.pex 11 qf_c03rampage_000aebfe.pex 12 qf_da04_0002d512.pex 13 qf_da16_000242af.pex 14 qf_tg05_00021551.pex 15 qf_tg05sp_0002c367.pex 16 qf_tg08_00021554.pex 17 qf_vc01_0005c625.pex 18 sf_db09maroambushscene_00064269.pex 19 tg08bquestscript.pex 20 tif__0001c677.pex 21 tif__0002725e.pex 22 tif__00027260.pex 23 tif__000e7697.pex 24 vampirequestscript.pex 25 wealiasscript.pex // DRAGONBORN /7/ ------------------------------------------- 1 da04questscript.pex 2 default2stateactivator.pex 3 dragonactorscript.pex 4 dunprogressivecombatscript.pex 5 mqkilldragonscript.pex 6 tif__0007a50b.pex 7 wetriggerscript.pex // HEARTHFIRES /40/ ------------------------------------------- 1 byohrelationshipadoptableaccessor.pex (debug info here, fixed with Dragonborn version) 2 carriagesystemscript.pex 3 housepurchasescript.pex 4 mannequinactivatorscript.pex (use this all the time, regardless of DLC, except you are using a Mod which changes that file) 5 playersleepquestscript.pex 6 qf_favor255_000a34ce.pex 7 qf_favor256_000a34d4.pex 8 qf_favor258_000a34de.pex 9 qf_housepurchase_000a7b33.pex 10 qf_relationshipmarriagefin_00021382.pex 11 relationshipmarriagespousehousescript.pex 12 tif__00090df8.pex 13 tif__000a9634.pex 14 tif__000c57f2.pex 15 tif__000c57f4.pex 16 tif__000c6e1a.pex 17 tif__000c896c.pex 18 tif__000c9da2.pex 19 tif__000ccb58.pex 20 tif__000ccba8.pex 21 tif__000ccbad.pex 22 tif__000ccbae.pex 23 tif__000ccbaf.pex 24 tif__000ccbb0.pex 25 tif__000cd595.pex 26 tif__000cd599.pex 27 tif__000cd59a.pex 28 tif__000cd59d.pex 29 tif__000cd59e.pex 30 tif__000cd5a0.pex 31 tif__000cd60e.pex 32 tif__000cd60f.pex 33 tif__000cd611.pex 34 tif__000e24d9.pex 35 tif__000e24ec.pex 36 tif__000e493d.pex 37 tif__000e67c8.pex 38 tif__000e67ca.pex 39 tif__000f3921.pex 40 wichangelocation08script.pex Edited November 3, 2018 by ReDragon2013 Link to comment Share on other sites More sharing options...
TangerineDog Posted November 3, 2018 Author Share Posted November 3, 2018 (edited) You forgot to tell us what Operating System you are using!Next steps could be helpful to test what is going wrong with your compiler.(1) create new folder, just like that, we assume drive D exists as logical HD-drive name. D:\Papyrus(2) copy next files to this folder from "..\SteamApps\common\skyrim\Papyrus Compiler" antlr.runtime.dll Antlr3.Runtime.dll Antlr3.Utility.dll PCompiler.dll StringTemplate.dll PapyrusAssembler.exe PapyrusCompiler.exe (3) create new subfolders, like that D:\Papyrus\scripts D:\Papyrus\scripts\source D:\Papyrus\scripts_compile D:\Papyrus\scripts_disassemble (4) copy all vanilla psc-files to next folder, make sure you have enough space on the logical drive D:\Papyrus\scripts\source Do not forget sources are stored into archive "scripts.rar"! And make sure the file "TESV_Papyrus_Flags.flg" is also copied.(5) create new bat-file, "compile.bat" inside folder "scripts_compile", Attention all sources in the same folder as the bat-file will be compiled! @echo OFF SETLOCAL SET folder= for %%f in (*.psc) do ( rem echo %%~nf ..\PapyrusCompiler.exe %%f -d -op -f="TESV_Papyrus_Flags.flg" -i="..\scripts\source" -o="%folder%" >output_%%~nf.txt echo. REM move output_%%~nf.txt %folder%\output_%%~nf.txt ) del *.dot pause rem d:\papyrus\PapyrusCompiler.exe %1 -d -op -f="TESV_Papyrus_Flags.flg" rem -d == Debuginfo rem -op == optimization rem -f="TESV_Papyrus_Flags.flg" rem -i="d:\Papyrus\scripts\source" rem -o="d:\Papyrus\scripts_compile" (6) create new bat-file, "disassemble.bat" inside folder "scripts_disassemble", if you need it @echo OFF for /R %%f in (*.pex) do ( rem echo %%~nf ..\PapyrusAssembler.exe %%~nf -D echo. ) pause(7) copy to folder "D:\Papyrus\scripts_compile" the psc-file(s) you like to compile "ThisDamnScript.psc" doubleclick on file "compile.bat", it should make next files if no error ThisDamnScript.pex ; the executable ThisDamnScript.pas ; assembly for handish code optimization, can be removed output_ThisDamnScript.txt ; compiler output, can be removed(xx) Info about papyrus executable files overlapping: All of the next 72 files exist twice, once for the vanilla Skyrim (with 1 exception) and the other depends on the DLC you use! // DAWNGUARD /25/ ------------------------------------------- 1 c03sacredfontscript.pex 2 dundustmanscairnlever.pex 3 dunraldbtharpuzzlegearblockerscript.pex 4 fxdwarvenspiderscript.pex 5 magicimodbeginloopend.pex 6 nightmothercoffinscript.pex 7 playervampirequestscript.pex 8 playerwerewolfchangescript.pex 9 playerwerewolfcuresconcescript.pex 10 prkf_vampirefeedbeds_000cf02c.pex 11 qf_c03rampage_000aebfe.pex 12 qf_da04_0002d512.pex 13 qf_da16_000242af.pex 14 qf_tg05_00021551.pex 15 qf_tg05sp_0002c367.pex 16 qf_tg08_00021554.pex 17 qf_vc01_0005c625.pex 18 sf_db09maroambushscene_00064269.pex 19 tg08bquestscript.pex 20 tif__0001c677.pex 21 tif__0002725e.pex 22 tif__00027260.pex 23 tif__000e7697.pex 24 vampirequestscript.pex 25 wealiasscript.pex // DRAGONBORN /7/ ------------------------------------------- 1 da04questscript.pex 2 default2stateactivator.pex 3 dragonactorscript.pex 4 dunprogressivecombatscript.pex 5 mqkilldragonscript.pex 6 tif__0007a50b.pex 7 wetriggerscript.pex // HEARTHFIRES /40/ ------------------------------------------- 1 byohrelationshipadoptableaccessor.pex (debug info here, fixed with Dragonborn version) 2 carriagesystemscript.pex 3 housepurchasescript.pex 4 mannequinactivatorscript.pex (use this all the time, regardless of DLC, except you are using a Mod which changes that file) 5 playersleepquestscript.pex 6 qf_favor255_000a34ce.pex 7 qf_favor256_000a34d4.pex 8 qf_favor258_000a34de.pex 9 qf_housepurchase_000a7b33.pex 10 qf_relationshipmarriagefin_00021382.pex 11 relationshipmarriagespousehousescript.pex 12 tif__00090df8.pex 13 tif__000a9634.pex 14 tif__000c57f2.pex 15 tif__000c57f4.pex 16 tif__000c6e1a.pex 17 tif__000c896c.pex 18 tif__000c9da2.pex 19 tif__000ccb58.pex 20 tif__000ccba8.pex 21 tif__000ccbad.pex 22 tif__000ccbae.pex 23 tif__000ccbaf.pex 24 tif__000ccbb0.pex 25 tif__000cd595.pex 26 tif__000cd599.pex 27 tif__000cd59a.pex 28 tif__000cd59d.pex 29 tif__000cd59e.pex 30 tif__000cd5a0.pex 31 tif__000cd60e.pex 32 tif__000cd60f.pex 33 tif__000cd611.pex 34 tif__000e24d9.pex 35 tif__000e24ec.pex 36 tif__000e493d.pex 37 tif__000e67c8.pex 38 tif__000e67ca.pex 39 tif__000f3921.pex 40 wichangelocation08script.pex Done it step by step. When I run it in admin mode, it just tells me that C:\WINDOWS\system32\*.dot couldn't be found. When I just double click it, it tells me that D:\Papyrus\scripts_compile\*.dot couldn't be found and generates a blank .txt named output_ThisDamnScript in scripts_compile. Edited November 3, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
Recommended Posts