Difference between revisions of "Atom"

1,577 bytes added ,  17:12, 12 June 2016
Added manual configuration info
imported>Kicoax
m (Changed hotkeys to bold)
imported>Kicoax
(Added manual configuration info)
Line 26: Line 26:


==Usage==
==Usage==
The build-papyrus package currently only supports using [[Papyrus Projects|Papyrus project files]] to compile.
===Snippets===
Make sure your Papyrus project file is in the base folder that you have open in Atom, and use '''Ctrl-Alt-B''' or '''F9''' to trigger the build.
If you add, delete, or rename a project file, make sure you run the <code>Build: Refresh Targets</code> command in the palette ('''Ctrl-Shift-P''').
Snippets are nearly identical to the [[Sublime Text Papyrus Plugin#Existing_Snippets|Sublime Text plugin's snippets]].
Snippets are nearly identical to the [[Sublime Text Papyrus Plugin#Existing_Snippets|Sublime Text plugin's snippets]].
===Compilation===
There are two methods to configure compilation of your scripts; using a [[Papyrus Projects|Papyrus project file]], or manually configuring the build-papyrus settings.
Using a project file is highly recommended, as it can handle compiling entire folders at the same time, and will always compile all of your scripts when building.
Manual configuration will only compile the file you currently have open.
In either case, you can use '''Ctrl-Alt-B''' or '''F9''' to trigger the build.
If you are keeping your mod's folder outside of the game folder, the project/configuration file should be placed in your mod's folder.
If you are keeping your scripts inside the game folder, it should be placed in <code>Fallout 4\Data\Scripts\Source</code>.
These are also the folders you should have open in Atom.
You should only have one project/configuration file in any folder, as build-papyrus only uses the first one it locates in a folder.
Upon adding or removing a project/configuration file, make sure you run the <code>Build: Refresh Targets</code> command in the palette ('''Ctrl-Shift-P''').
====Project file====
Make sure your Papyrus project file is in the base folder that you have open in Atom. No additional configuration is necessary.
====Manual configuration====
Place the below text into a file called <code>.build-papyrus.yml</code> in the base folder you have open in Atom:
<pre>game: fallout4
imports:
    - C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User
    - C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\DLC01
    - C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\Base
output: C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Data\Scripts\
optimize: true
release: false
final: false</pre>
If your mod's scripts are outside of the game's scripts directory, make sure you add it to the `imports` setting, and change the `output` directory.


==Recommended packages==
==Recommended packages==
Anonymous user