Difference between revisions of "Atom"

40 bytes added ,  10:46, 20 June 2016
Updated button inputs to use the key press template
imported>Kicoax
m (Fixed DLC03 import)
imported>Kicoax
(Updated button inputs to use the key press template)
Line 12: Line 12:
Syntax highlighting and snippets are provided by the [https://atom.io/packages/language-papyrus language-papyrus] package.
Syntax highlighting and snippets are provided by the [https://atom.io/packages/language-papyrus language-papyrus] package.
Compilation is provided by the [https://atom.io/packages/build build] and [https://atom.io/packages/build-papyrus build-papyrus] packages.
Compilation is provided by the [https://atom.io/packages/build build] and [https://atom.io/packages/build-papyrus build-papyrus] packages.
#In Atom, open the settings tab (File -> Settings, or Ctrl + Comma)
#In Atom, open the settings tab (File -> Settings, or {{key press|Ctrl|,}})
#Select the Install tab on the side
#Select the Install tab on the side
#Search for <code>language-papyrus</code>, then click install on the package when the results appear
#Search for <code>language-papyrus</code>, then click install on the package when the results appear
Line 20: Line 20:


If your Papyrus Compiler isn't in the default location (<code>C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Papyrus Compiler\PapyrusCompiler.exe</code>), then you must set it in the build-papyrus package settings:
If your Papyrus Compiler isn't in the default location (<code>C:\Program Files (x86)\Steam\SteamApps\common\Fallout 4\Papyrus Compiler\PapyrusCompiler.exe</code>), then you must set it in the build-papyrus package settings:
#In Atom, open the settings tab (File -> Settings, or Ctrl + Comma)
#In Atom, open the settings tab (File -> Settings, or {{key press|Ctrl|,}})
#Select the Packages tab on the side
#Select the Packages tab on the side
#Search for <code>build-papyrus</code> or find it in the list, and click on Settings
#Search for <code>build-papyrus</code> or find it in the list, and click on Settings
Line 33: Line 33:
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.
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.
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.
In either case, you can use {{key press|Ctrl|Alt|B}} or {{key press|F9}} to trigger the build.


If you are keeping your scripts inside the game folder, the project/configuration file should be placed in <code>Fallout 4\Data\Scripts\Source</code>.
If you are keeping your scripts inside the game folder, the project/configuration file should be placed in <code>Fallout 4\Data\Scripts\Source</code>.
Line 39: Line 39:
These are also the folders you should have open in Atom.
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.
You should only have one project/configuration file in any folder, as build-papyrus only uses the first one it locates.
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''').
Upon adding or removing a project/configuration file, make sure you run the <code>Build: Refresh Targets</code> command in the palette ({{key press|Ctrl|Shift|P}}).


====Project file====
====Project file====
Anonymous user