Difference between revisions of "Atom Setup"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Gawdl3y
imported>Gawdl3y
Line 13: Line 13:
Obtain the [https://github.com/noseglid/atom-build 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 paths if you need to (make sure to use double-backslashes).
Obtain the [https://github.com/noseglid/atom-build 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 paths if you need to (make sure to use double-backslashes).
<pre>{
<pre>{
"cmd": "C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\Papyrus Compiler\\PapyrusCompiler.exe",
"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
"cwd": "C:\\Program Files (x86)\\Games\\Steam\\SteamApps\\common\\Skyrim\\",
"sh": false,
"sh": false,
"args": [
"args": [
"{FILE_ACTIVE}",
"{FILE_ACTIVE}",
"-import=C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\Data\\Scripts\\Source",
"-import=Data\\Scripts\\Source;Data\\Scripts\\Source\\Dawnguard;Data\\Scripts\\Source\\Dragonborn;Data\\Scripts\\Source\\Hearthfire",
"-output=C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Skyrim\\Data\\Scripts",
"-output=Data\\Scripts",
"-flags=TESV_Papyrus_Flags.flg"
"-flags=TESV_Papyrus_Flags.flg"
],
],
"env": {}
"env": {}
}
}</pre>
}</pre>
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'''.
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'''.

Revision as of 14:03, 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 paths if you need to (make sure to use double-backslashes).

{
	"cmd": "Papyrus Compiler\\PapyrusCompiler.exe",
	"cwd": "C:\\Program Files (x86)\\Games\\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: [[::Atom Setup|English]]