Jump to content

A n00b question about scripting, I need help.


drewsbrew

Recommended Posts

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 AAATestScript
No 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

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 to

G:\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 Command
See how easy that was :P
Link to comment
Share on other sites

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

"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 to

a 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 solve

problems is a programmers greatest skill above all others.

 

 

  Reveal hidden contents

 

 

 

  Reveal hidden contents

 

Edited by NexusComa
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...