Difference between revisions of "Atom Setup"

337 bytes added ,  16:26, 19 June 2016
Added snippets info and separated usage into snippets and compilation
imported>Gawdl3y
m
imported>Gawdl3y
(Added snippets info and separated usage into snippets and compilation)
Line 26: Line 26:


==Usage==
==Usage==
===Snippets===
The language-papyrus package includes hundreds of snippets you can use for vanilla Skyrim functions and events, as well as various library mods. To use a snippet, just begin typing a function/event name, and press Tab to autocomplete it. Suggestions will appear below the current line as you're typing.
===Compilation===
Place the below text in a file called '''.build-papyrus.yml''' (yes, with the leading dot!) in your <code>Skyrim\Data\Scripts\Source</code> directory. If you don't have the DLC, just remove them from the <code>imports</code> list.
Place the below text in a file called '''.build-papyrus.yml''' (yes, with the leading dot!) in your <code>Skyrim\Data\Scripts\Source</code> directory. If you don't have the DLC, just remove them from the <code>imports</code> list.
<pre>game: skyrim
<pre>game: skyrim
Line 38: Line 42:
If there are errors during compilation, clicking a filename in the build output window will take you directly to the spot in your code in which the error occurred. '''Ctrl-Alt-G''' will also jump between any errors.
If there are errors during compilation, clicking a filename in the build output window will take you directly to the spot in your code in which the error occurred. '''Ctrl-Alt-G''' will also jump between any errors.


=== Mod Organizer ===
====Mod Organizer====
One of the most common problem modders have with Mod Organizer is getting Papyrus compilation working correctly. Setting up Atom to work with Mod Organizer is simple. You do '''not''' need to launch Atom through Mod Organizer. Instead, just place the above '''.build-papyrus.yml''' file in the mod's scripts source directory that you're working on, e.g. <code>Mod Organizer\mods\Ultra Cool Mod\Scripts\Source</code>. Some tweaking to the file needs to be done, namely changing the <code>imports</code> and <code>output</code> settings. Using the prior mod example, your imports and output settings would look similar to this:
One of the most common problem modders have with Mod Organizer is getting Papyrus compilation working correctly. Setting up Atom to work with Mod Organizer is simple. You do '''not''' need to launch Atom through Mod Organizer. Instead, just place the above '''.build-papyrus.yml''' file in the mod's scripts source directory that you're working on, e.g. <code>Mod Organizer\mods\Ultra Cool Mod\Scripts\Source</code>. Some tweaking to the file needs to be done, namely changing the <code>imports</code> and <code>output</code> settings. Using the prior mod example, your imports and output settings would look similar to this:
<pre>imports:
<pre>imports:
Anonymous user