drewsbrew Posted March 26, 2016 Share Posted March 26, 2016 OK, so a few days ago I created a post in the forums here explaining that I was having some trouble getting Notepad++ set up for scripting. Firstly, I was told that I needed to extract the files from the Scripts.rar file in the data folder (which I did) and I was also told to modify the ScriptCompile.bat file with this line of code; "C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="TESV_Papyrus_Flags.flg" -i="C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source" -o="C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts"pause I did that and got this message; So basically I think I probably need to use a different line of code in the ScriptCompile.bat file, but I don't know what. In the creation kit (which I'm running through MO) I tried to attach a script to a duplicate barrel I made, I clicked the 'Add' button, I selected '[New Script]', clicked 'OK' and got this error message; Starting 1 compile threads for 1 files...Compiling "AAATestScript"...<unknown>(0,0): unable to locate script AAATestScriptNo output generated for AAATestScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on AAATestScript Anyone know what I need to do to fix this? Link to comment Share on other sites More sharing options...
NexusComa Posted March 26, 2016 Share Posted March 26, 2016 You're so close !!!My Steam is located on my G: drive yours will be different ...( you have to have the correct path to your steam folder ) Make a file called: ScriptCompile.bat then move it toG:\Steam\steamapps\common\skyrim\Papyrus Compiler Paste this in it ... cd %2"G:\Steam\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler" %1 -f="TESV_Papyrus_Flags.flg" -i="G:\Steam\steamapps\common\skyrim\Data\Scripts\Source" -o="G:\Steam\steamapps\common\skyrim\Data\Scripts"pause Open Notepad++Hit F5 (run)Paste the following line into the input in the "Run..." dialogue window in Notepad++: "G:\Steam\steamapps\common\skyrim\Papyrus Compiler\ScriptCompile.bat" "$(FILE_NAME)" "$(CURRENT_DIRECTORY)" Select Save...Name it something useful like "Compile Papyrus"Set up a keyboard shortcut if you want, such as CTRL+F5.You can find the new shortcut under the Run menu option You can change the keyboard shortcut under Run -> Modify Shortcut/Delete CommandSee how easy that was :P Link to comment Share on other sites More sharing options...
NexusComa Posted March 26, 2016 Share Posted March 26, 2016 Every single "G:\Steam ..." Needs to be your path Link to comment Share on other sites More sharing options...
drewsbrew Posted March 26, 2016 Author Share Posted March 26, 2016 Thanks for the help, but it still isn't working. I modified the ScriptCompile.bat with the lines of code (changing the 'G' drive to 'C' because that's where mine is) and the new message says it can't find the file path. I double and triple checked that the path was right. Link to comment Share on other sites More sharing options...
NexusComa Posted March 26, 2016 Share Posted March 26, 2016 (edited) "and the new message says it can't find the file path" As an inspiring programmer you have to learn to relish moments like this. It's all about connecting the dots.Just like programming itself nothing ever comes easy. Breaking down a problem and finding the solution is about 80% of what programmers do. Anyone can add text toa file or follow a guide. But a programmer looks past the obvious to see the problem from a deeper perspective. Any clues what so ever are considered. Let's break this down a bit ... Looking at my paste (that we know works) vs your path (that we know isn't working due to a path error) what is the difference?You already said your path is not G: ... There is our not so obvious clue. Why would I decide to install my steam on the root of my G: drive vs the default installation spot. Look closely at the the path I use and the path you are trying to use. What do you see and what don't you see ? ... Don't just hit the spoiler ...Really look at the two paths and see if you can see why they are different.Don't assume anything, question and test everything for yourself.That is programming at it's core. Problem solving or better yet how to solveproblems is a programmers greatest skill above all others. Reveal hidden contents My path has no spaces in the pass command argument.It also pulled everything out of the programs folder.(to avoid the administrator permission thing) You could use the "" "" option for passing a string oryou could just set it in a path with no spaces ... I also seem to remember it not being able to handle a really long path. Considering this was a problem once I went with the latter.Remember this it will come up again at some point. Reveal hidden contents This is probably how it's done for the c:/programs folder.cd %2"C:\Program Files\Steam\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler" %1 -f="TESV_Papyrus_Flags.flg" -i=""C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source"" -o=""C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts""pauseNotice the double "" "" this picks up the space syntax error.Sometimes it's "" "" others it's a '" "' and it could even be "' '"Myself, I hate this error so much I always avoid it when possible.Also I never name any folder or file name with a space in it.The fact your .exe files are in a folder with a space (program files)is crazy on windows part. (crazy like a fox) Edited March 26, 2016 by NexusComa Link to comment Share on other sites More sharing options...
drewsbrew Posted March 28, 2016 Author Share Posted March 28, 2016 Thanks so much for all of your help! Still no luck on my end unfortunately, but I'll keep trying. In the meantime while I try to get all this programming stuff figured out I've got plenty of other work to do for the mods I want to make so I'm definitely not giving up on this! Link to comment Share on other sites More sharing options...
Recommended Posts