PDA

View Full Version : [Tutorial] Installing and Compiling (ATOM) (WINDOWS)



SergiuOfficial
18-05-17, 17:44
Hello users, I'll show how to install and compile the pawn language in a free atom editor, new, and github

1 - You must enter the site to install the atom, the site is https://atom.io/

Just click next blá blá blá... to install atom
2 - After installing the atom, open the command prompt as an administrator in order to install the chocolatey.
you will enter the following code at the prompt
Code:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Just wait a few minutes and chocolatey is installed.
3 - Installed chocolatey, we install git and npm, in the command prompt type:
To install git
Code:
choco install git

To install npm
Code:
choco install npm

4 - After installing open the atom and type CTRL, or go PACKAGES> Settings View> Install Packages and search for "build" and install build.

5 - To compile the pawn, you need to create a file with the name ".atom-build.json" with the settings that will let down, in order to create you can even use Notepad or any other editor ...
Code:
{
"cmd": "pawncc.exe",
"args": [ "{FILE_ACTIVE}", "-i{PROJECT_PATH}", "-D{PROJECT_PATH}", "-r{PROJECT_PATH}\\DOCS\\{FILE_ACTIVE_NAME_BASE}.xht ml", "-;+", "-(+", "-d0 -O1" ],
"sh": false,
"cwd": "C://PATH TO THE FOLDER PAWN",
"env": {

}
}

I will talk a little about the params:

cmd: execute pawncc.exe
args:
"-D{PROJECT_PATH} Compile file to .amx"
"-r{PROJECT_PATH}\\DOCS\\{FILE_ACTIVE_NAME_BASE}.xht ml" Extract documentation .xtml to samp (use pawndoc)
cwd: PATCH FOLDER pawncc..

https://atom.io/packages/build // MORE INFORMATION
6 - Save file .atom-build.json in the directory folder of your samp...

7 - ADD DIRECTORY FOLDER of you samp in atom and Enjoy

PS : Sorry my bad english.
PS˛: Advise use pawn syntax (http://forum.sa-mp.com/showthread.php?t=549547)

- Good Packages(OPTIONAL)

https://atom.io/packages/minimap
https://atom.io/packages/color-picker
https://atom.io/packages/project-manager