Difference between revisions of "Atom Setup"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Gawdl3y
imported>Gawdl3y
Line 14: Line 14:
<pre>{
<pre>{
"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
"cwd": "C:\\Program Files (x86)\\Games\\Steam\\SteamApps\\common\\Skyrim\\",
"cwd": "C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\",
"sh": false,
"sh": false,
"args": [
"args": [

Revision as of 13:14, 13 September 2014

Atom is a new open-source text editor that is currently in an open alpha stage. It was created and is being actively developed by the GitHub team. It can be downloaded from the official Atom site. Atom has an extremely flexible package system that allows customization of virtually everything about the editor.

Syntax highlighting and snippets

Syntax highlighting for Papyrus and Papyrus assembly is provided by the language-papyrus package. To install it, follow these instructions:

Method 1

Open the settings tab (File -> Settings, or Ctrl + Comma), select the packages section, and search for "language-papyrus". When the results appear, click "Install" on the package.

Method 2

Run apm install language-papyrus in a command prompt.

Quick compile

Obtain the build package the same way as above. Then, place the below text in a file called .atom-build.json (yes, with the leading dot!) in your Skyrim\Data\Scripts\Source directory. Change the path in the cwd setting if you need to (make sure to use double-backslashes). If you don't have the DLC, just remove them from the -import= argument.

{
	"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
	"cwd": "C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\",
	"sh": false,
	"args": [
		"{FILE_ACTIVE}",
		"-import=Data\\Scripts\\Source;Data\\Scripts\\Source\\Dawnguard;Data\\Scripts\\Source\\Dragonborn;Data\\Scripts\\Source\\Hearthfire",
		"-output=Data\\Scripts",
		"-flags=TESV_Papyrus_Flags.flg"
	],
	"env": {}
}
}

After placing the .atom-build.json file there, any of the scripts you open in Atom will be able to be compiled simply by pressing Ctrl-Alt-B.



Language: English