Raised This Month: $7 Target: $400
 1% 

[TUT] Compiling AMXX plugins with Sublime Text


Post New Thread Reply   
 
Thread Tools Display Modes
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 02-05-2017 , 15:25   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #11

Good, I thought that such a simple compiler would not have support for multiple directories of include, so never try xd.
__________________

Last edited by Destro-; 02-05-2017 at 15:27.
Destro- is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-06-2017 , 01:38   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #12

Released a new version:
Code:
v1.1.1 | 2017-01-06
 * Moved the amxmodx settings to the user folder.

v1.1 | 2017-02-06
 * Added customs include folder detection and autocompletion.
 * Improved the Notepad++ Default Stylers Theme.

v1.0 | 2017-01-30
 * Initial release.
To update, you need to completely delete your previous/older installation and install it from the first step, otherwise it will not work.
To use the auto-completion you need to configure your include folder going on:
Code:
Amx Mod X -> Edit AMXX-Autocompletion Settings
And setting the path to your compiler's include folder on the `include_directory` setting value.

Pictures:
Spoiler
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-06-2017 at 22:03.
addons_zz is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-06-2017 , 11:42   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #13

Only default theme has full highlighting support. My theme is broken in this pack.
What about setting for don't paste function parameters after autocompletion, add only "()".
How turn off vertical line in the middle of the window?
Mistrick is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-06-2017 , 11:55   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #14

Quote:
Originally Posted by Mistrick View Post
Only default theme has full highlighting support. My theme is broken in this pack.
I tried to create full support for both but my syntax definition is too different.
But anyways you can set the syntax compatible with your and other themes.

For other themes, go to the bottom of the screen, and select the syntax:
Code:
Open all with current extension as... -> amxmodx -> AMXX-Pawn
, instead of Amxx Pawn -> AmxxPawn

Pictures:
Spoiler

Quote:
Originally Posted by Mistrick View Post
What about setting for don't paste function parameters after autocompletion, add only "()".
I will look in to that, should be simple.


Quote:
Originally Posted by Mistrick View Post
How turn off vertical line in the middle of the window?
Go to the menu `Preferences -> Settings - User`, and find the line:
Code:
    "rulers":     [         100     ],
And change it to:
Code:
    "rulers":     [             ],
Or
Code:
    "rulers":     [         100,         120     ],
If you want to add more of them.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-06-2017 at 21:59.
addons_zz is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-06-2017 , 12:07   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #15

Ok, maybe I will create new theme based on your default theme.
Mistrick is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-06-2017 , 15:34   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #16

What to do here?
Code:
[WinError 2] The system cannot find the file specified
[cmd: ['sh', 'C:\\Documents and Settings\\Relaxing\\Desktop\\sublime\\Data\\Packages/Amxx Pawn/AmxxPawn.sh', '', '', 'C:\\Documents and Settings\\Relaxing\\Desktop\\sublime\\Data\\Packages', '']]
[dir: C:\Documents and Settings\Relaxing\Desktop\sublime]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem]
[Finished]
__________________
Relaxing is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-06-2017 , 16:04   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #17

Quote:
Originally Posted by Mistrick View Post
What about setting for don't paste function parameters after autocompletion, add only "()".
Released a new version. Was this what did you meant to?
Code:
v1.2 | 2017-01-06
 * Added new setting `add_function_parameters` to enable the parameters addition when autocompleting.
Quote:
Originally Posted by Relaxing View Post
What to do here?
Code:
[WinError 2] The system cannot find the file specified
[cmd: ['sh', 'C:\\Documents and Settings\\Relaxing\\Desktop\\sublime\\Data\\Packages/Amxx Pawn/AmxxPawn.sh', '', '', 'C:\\Documents and Settings\\Relaxing\\Desktop\\sublime\\Data\\Packages', '']]
[dir: C:\Documents and Settings\Relaxing\Desktop\sublime]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem]
[Finished]
The `cmd: ['sh'` on the start of your command means you are using the Linux compiler instead of the Windows one.
  1. For the first time, click on the menu `Tools -> Build With...` and choose the `AmxxPawn - Build AMXX Plugin (Windows/Bat)`

  2. For the second time, and others, click on the menu `Tools -> Build`.

    Pictures:
    Spoiler
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-06-2017 at 22:04.
addons_zz is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-06-2017 , 16:54   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #18

Quote:
Originally Posted by addons_zz View Post
Was this what did you meant to?
Yes. Thanks.
Something wrong with register_cvar() in default theme and AmxxPawn syntax. IntelTip PopUp doesn't work and highlighted not like a function. With AMXX-Pawn all fine.

Last edited by Mistrick; 02-06-2017 at 16:56.
Mistrick is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-06-2017 , 18:31   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #19

Quote:
Originally Posted by Mistrick View Post
Yes. Thanks.
You are welcome.

Quote:
Originally Posted by Mistrick View Post
IntelTip PopUp doesn't work
I do not use the IntelTip, as it is only available on builds higher than 3114, which is frequently crashing here.
However, I can install it to see what is going on.

Update:

I just remembered, I disabled by default a setting on the Sublime Text which should be relate to it.
Try to enable this, Go to the menu `Preferences -> Settings - User`, and find the line:
Code:
    "show_definitions": false,
And change it to:
Code:
    "show_definitions": true,
There is also the setting on the `auto-completion` settings.
Code:
Amx Mod X -> Edit AMXX-Autocompletion Settings

...
    "enable_inteltip": false,
Pictures:
Spoiler

Quote:
Originally Posted by Mistrick View Post
highlighted not like a function.
I quite do not get what this means, could you show some screenshots?
I tested it here and it seems file with the default theme and the `Mistrick` Theme. Follow the screenshots:
  1. On this first I am showing the Go to command, I implemented over the `register_cvar`, could be related to it the problem.
    When you do the Go to, it goes to the cvar on configuration file, if it exists and is correctly set to the cfg syntax I ship out with this settings.



__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-06-2017 at 22:04.
addons_zz is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 02-06-2017 , 19:12   Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Reply With Quote #20

Quote:
Originally Posted by addons_zz View Post
I quite do not get what this means, could you show some screenshots?
Wrong detection with AmxxPawn syntax.
Spoiler
Mistrick is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode