Raised This Month: $214 Target: $400
 53% 

[TUT] Compiling AMXX plugins with Sublime Text


Post New Thread Reply   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-29-2017 , 11:29   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #71

I got couple suggestions, could you automate this ? so it won't be required to click and select it manually every time ?
https://forums.alliedmods.net/showpo...1&postcount=28

Also, any new themes ? ^_^
__________________
Depresie is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-29-2017 , 13:14   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #72

Quote:
Originally Posted by Depresie View Post
could you automate this ? so it won't be required to click and select it manually every time ?
If you want to change the default color scheme for new files, you need to edit the amxmodx package's settings:



And change the `"amxx_file_syntax": "Packages/Amxx Pawn/AmxxPawn.sublime-syntax",` setting to point to the syntax you would like as default.

Quote:
Originally Posted by Depresie View Post
Also, any new themes ? ^_^
I always use the same theme & color scheme for everything, so I never work on other themes other than improving the one I use.

But you can search on package control channel for other themes & color schemes. On this link there is a list of several other themes & color schemes you can install:
  1. https://packagecontrol.io/browse/labels/color scheme
  2. https://packagecontrol.io/browse/labels/theme

To install any of them, just press `Ctrl+Shift+P` (or go to the menu `Preferences -> Package Control`) and type `install` and select `Package Control: Install Package`, then type the name of the theme or color scheme you want to install:



Then to activate the theme or color scheme, go to the menu `Preferences -> Color Scheme...` or `Preferences -> Theme...`:



You can also customize the color scheme/theme if you want to, but you will need to study a little on how to do it.

My syntax for pawn `Amxx Pawn/AmxxPawn` is not much friendly with other color schemes other than mine, so you can try to use the @destro syntax `amxmodx/AMXX-Pawn`, if the colors are not quite right. Perhaps some day I can review my syntax to make it more friendly to other colors schemes. But for now I am working on other things, as automatically update everything, so when I release a new version here, you can get the update automatically.
__________________
Plugin: Sublime Text Studio , Galileo
Multi-Mod: Manager / Plugin / Server

Help the AlliedModders' website stay online!

Last edited by addons_zz; 09-29-2017 at 13:17.
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-25-2017 , 13:39   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #73

Released the new major version.
HTML Code:
v2.0.0 | 2017-10-25
 * Installed the Amxx Simple IDE (Amx Mod X) by the AmxxChannel.
 * Deprecated the `Default/Main.sublime-menu` overriding.
With this, now it can update itself automatically, so you only need to install this once, and it will always get updates automatically. You can disable the automatic updates if you like, just to the menu `Preferences -> Packages Settings -> Package Control -> Settings - User`, then add this key to the setting file:
Code:
    "auto_upgrade": false,

On this release the full Sublime Text menu is back. If you like to use the reduced menu, you can download the file `Main.zip` attached at this post and unpack it on the `User` folder `OverrideUnpackedPackages/Default` and restart Sublime Text. After a few seconds the new menus are going to be installed:
Spoiler

You can find the `User` folder by going on the menu `Preferences -> Browse Package...`, then you can find the user folder on your screen:
Spoiler
Attached Files
File Type: zip Main.zip (1.4 KB, 14 views)
__________________
Plugin: Sublime Text Studio , Galileo
Multi-Mod: Manager / Plugin / Server

Help the AlliedModders' website stay online!

Last edited by addons_zz; 10-25-2017 at 13:40.
addons_zz is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-05-2017 , 04:52   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #74

Nice, but i found something, i don't know if it is intended or if it is a bug
When you include libraries ( #include <cstrike> ) the auto completion doesn't work until the file is saved, also after removing the library the auto completion will still work until the file is saved
__________________

Last edited by Depresie; 11-05-2017 at 04:52.
Depresie is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 11-05-2017 , 20:03   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #75

The file includes are only being parsed when the file is saved because it was implemented like this to more lightweight. The other option would be to always keep parsing the file looking for new includes.

It think it could be implemented to always be parsing the file looking for includes, but I am not sure about the performance impact. I think would be better to abandon this autocomple and try to work with a general autocompleter which can work with all languages.

For now I am not working with it, and I am not sure when I would start looking for this universal autocompleter. There are few project running like https://github.com/SublimeCodeIntel/SublimeCodeIntel and https://github.com/Microsoft/language-server-protocol
__________________
Plugin: Sublime Text Studio , Galileo
Multi-Mod: Manager / Plugin / Server

Help the AlliedModders' website stay online!
addons_zz is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 02-13-2018 , 16:14   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #76

Auto-completion is not working.
__________________
Working on : Aliens vs Predator (paused), Zombie Plague MOD (4%)
CrazY. is offline
Send a message via Skype™ to CrazY.
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-13-2018 , 16:49   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #77

What are the contents of your settings and console? Did you set the amxx compiler path?
__________________
Plugin: Sublime Text Studio , Galileo
Multi-Mod: Manager / Plugin / Server

Help the AlliedModders' website stay online!
addons_zz is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 02-15-2018 , 09:59   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #78

Code:
{
    // Path to includes folder, the files here will be used for auto completion.
    "include_directory": "C:\\Program Files\\Counter-Strike 1.6\\cstrike\\addons\\amxmodx\\scripting\\include",

    // ( true / false ) Enable the parameters addition when auto completing.
    "add_function_parameters": true,

    // ( true / false ) Enable IntelTip PopUp
    "enable_inteltip": true,

    // ( true / false ) Enable Auto-Increment Build/Version
    "enable_buildversion": false,

    // ( true / false ) Enable auto completing functions and global variables from the current file.
    // If you change this setting, you need to restart Sublime Text before it can take effect.
    "function_autocomplete": true,

    // ( true / false ) Enable auto completing words from the current file.
    "word_autocomplete": true,

    // Enable editor debug messages, see the file `amxmodx/AMXXEditor.py` for all debugging levels.
    //
    // 0 - Disabled debugging.
    // 1 - Errors messages.
    "debug_level": 1,

    // ( color name ) Set color scheme ( dark / twlight / atomic / white / npp )
    "color_scheme": "dark",

    // The new file syntax when using the menu `Amx Mod X -> New Plug-in`. Possible values are:
    //
    // "Packages/Amxx Pawn/AmxxPawn.sublime-syntax"
    // "Packages/amxmodx/AMXX-Pawn.sublime-syntax"
    //
    "amxx_file_syntax": "Packages/AmxxPawn/AMXX-Pawn.sublime-syntax",

    // ( 0.5 ~ 5.0 ) Delay before regenerating auto-completion snippets
    "live_refresh_delay": 60.0
}
__________________
Working on : Aliens vs Predator (paused), Zombie Plague MOD (4%)
CrazY. is offline
Send a message via Skype™ to CrazY.
Old 02-15-2018, 09:59
CrazY.
This message has been deleted by CrazY.. Reason: Internet, :lol:
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 12:43.


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