You should really consider making this simple IDE for PC since all we got now is the old bugged AMXX studio and other buggy / over developed IDEs full of crap when all there is needed is
Quote:
Open
Save
Compiler
Highlighting
Light + Dark skin
Output + Compiler path
Search + Replace
Disclaimer:
I did not wrote Sublime Text, or the several of its packages I providing on this setup.
Each package has its own README file stating its author, or at least should.
I just gathered them and put them all together, may be a few bug fixed if necessary
on some of them. See the change log for more details.
The distributed packages by the Data.zip or later downloaded by the AmxxChannel
installer, in addition to each one own license, are distributed under the following conditions for
its usage and installation:
Code:
ALL THE SOFTWARES, PACKAGES, PLUGINS, SETTINGS, DOCUMENTATION, EVERYTHING ELSE, ARE PROVIDED
"AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
v3.0.2 | 2020-04-26
* Updated all packages to their latest version
v3.0.1 | 2018-12-21
* Replaced Package Control by PackagesManager, fixing bugs from Package Control
v3.0.0 | 2018-07-24
* Renamed the package from `amxmodx` to `AmxxEditor`:
* Add command to create the `Amx Mod X`
* Fixed storage.type.vars.pawn being pushed into the stack when it should not
* Set the AmxxEditor.sh shell complaint with koalaman/shellcheck
v2.0.0 | 2017-10-25
* Installed the Amxx Simple IDE (Amx Mod X) by the AmxxChannel.
* Deprecated the `Default/Main.sublime-menu` overriding.
v1.6.0 | 2017-09-26
* Updated to Sublime Text 3 build 3143
v1.5.3 | 2017-09-10
* Fixed specify include copy hanging with: a file name or directory name on the target.
v1.5.2 | 2017-09-08
* Fixed the check for cyclic copies skip copying the include folder ending/blocking the compilation.
v1.5.1 | 2017-09-02
* Fixed automatic update for the Amxx Pawn package.
* Added automatic update for the amxmdox package.
* Fixed the amxmdox package creating double new lines on the configuration files.
v1.5.0 | 2017-06-15
* Added the package `Side-by-Side Settings`, just press `Ctrl+k` and `Ctrl+s` to view settings.
* Updated the Amxx Pawn syntax files.
* Updated the amxmodx package.
* Updated the Notepad++ color scheme.
* Allowed automatic update for the `Notepad++ Color Scheme` and `Amxx Pawn` packages.
v1.4.3 | 2017-01-17
* Fixed functions redefinitions as: `#define message_begin xs__hook_message_begin` being recognized as constants.
v1.4.2 | 2017-01-15
* Fixed pawn constants not being highlighted on the default syntax.
v1.4.0 | 2017-01-12
* Fixed misspelling blocking new includes from being processed.
* Fixed compiler error when try to compile non saved files.
* Fixed the some `#if defined` parsing forcing to skip all the source code after them.
* Added support to define function parsing.
v1.3.0 | 2017-01-10
* Fixed error message when compiling plugins on the default compiler's folder.
* Fixed not recognizing all file functions when parsing comments and quotes in chars and strings.
* Fixed the auto completion not working on non-saved files, i.e., you start writing a new sheet without saving it.
* Added a new setting `word_autocomplete` to enable auto completing words from the current file.
* Added a new setting `use_all_autocomplete` to use the package `All Autocomplete` to do the completing on the current file.
* Added a new setting `function_autocomplete` to enable auto completing functions and global variables from the current file.
v1.2.1 | 2017-01-07
* Fixed the `register_cvar` not being recognized at some cases on the AmxxPawn.sublime-syntax
v1.2.0 | 2017-01-06
* Added new setting `add_function_parameters` to enable the parameters addition when autocompleting.
v1.1.1 | 2017-01-06
* Moved the amxmodx settings to the user folder.
v1.1.0 | 2017-02-06
* Added customs include folder detection and autocompletion.
* Improved the Notepad++ Default Stylers Theme.
For the first time, click on the menu `Tools -> Build With...` and choose the `AmxxPawn - Build AMXX Plugin (Windows/Bat)`
For the second time, and others, click on the menu `Tools -> Build`.
As you may notice, those things at the menu's are the keyboard shortcuts:
So, next time you want to do that command just to press `F7` or `Ctrl+Shift+B`.
To close the output build, just press the escape key `Esc`.
To open the build output again, just press `F8`.
The Windows Compiler
Code:
Compiling show_server_info... Current time is: 14:12:18,12 - 30/01/2017
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Header size: 320 bytes
Code size: 1324 bytes
Data size: 1192 bytes
Stack/heap size: 16384 bytes; estimated max. usage=201 cells (804 bytes)
Total requirements: 19220 bytes
Done.
1 File(s) copied, to the folder F:\SteamCMD\steamapps\common\Half-Life\cstrike\addons\amxmodx\plugins
1 File(s) copied, to the folder F:\SteamCMD\steamapps\common\Half-Life\czero\addons\amxmodx\plugins
1 File(s) copied, to the folder F:\SteamLibrary\steamapps\common\Sven Co-op Dedicated Server\svencoop\addons\amxmodx\plugins
Took 0:00:00,38 seconds to run this script.
The Linux Compiler
Code:
Compiling show_server_info... Current time is: Mon, Jan 30, 2017 2:27:52 PM
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Header size: 320 bytes
Code size: 1324 bytes
Data size: 1192 bytes
Stack/heap size: 16384 bytes; estimated max. usage=201 cells (804 bytes)
Total requirements: 19220 bytes
Done.
Installing the plugin to the folder: F:/SteamCMD/steamapps/common/Half-Life/czero/addons/amxmodx/plugins
Installing the plugin to the folder: F:/SteamCMD/steamapps/common/Half-Life/cstrike/addons/amxmodx/plugins
Installing the plugin to the folder: F:/SteamLibrary/steamapps/common/Sven Co-op Dedicated Server/svencoop/addons/amxmodx/plugins
Took '1.27' seconds to run the script 'D/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages/AmxxPawn/AmxxPawn.sh'.
Because you can customize anything: Key Bindings, Menus, Snippets, Macros, Completions and more, just about everything in Sublime Text is customizable.
If you do not like to see the message `This is an unregistered copy` every time you open Sublime Text, you need to buy a
Sublime Text Licence for about $80 dollars.
The distributed packages by the Data.zip or later downloaded by the AmxxChannel
installer, in addition to each one own license, are distributed under the following conditions for
its usage and installation:
Code:
ALL THE SOFTWARES, PACKAGES, PLUGINS, SETTINGS, DOCUMENTATION, EVERYTHING ELSE, ARE PROVIDED
"AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last edited by addons_zz; 06-06-2020 at 23:41.
Reason: Release Version 3.0.2
Unzip the configurations files `Data.zip` inside the folder `Data` inside the Sublime Text folder:
Open the Sublime Text and click in `Cancel`, when it ask you to update:
Install the AmxxEditor Menu by going on `Preferences -> Package Settings -> AmxxEditor -> Install AmxxEditor Menu`
Click in the menu `Amx Mod X -> Configure Windows/Batch Compiler` and put the path to your game plugins folder and the compiler around the line 31 and 41:
For example if you only want output the compiled `.amxx` file to one game mod, you can set the file like this:
Would you have an updated "how to"? I tried installing yesterday, however the application is totally different from the images, probably because of updates ...
Sublime Text version changed and the new version as a very new theme, also, I updated the colors schemes used, them, the images became pretty different. But the text inside the images still the names, so you should be able to just ignore the colors/theme/fonts and just follow written the text.
Quote:
Originally Posted by CrazY.
Autocomplete doesn't work with "includes included into other includes".
AmxxEditor syntax doesn't auto set in include files.
I am not sure why this is happening, as by default that should be working.
Anyways, you can force all files with `.inc` extension to open with the correct syntax:
Opening a `.inc` file
And going on the menu `View -> Syntax -> Open all with current extension as... -> Amxmodx -> AmxmodxPawn`
Spoiler
Quote:
Originally Posted by DruGzOG
How would I go about opening inc files? Checking your first post, I don't have that option
I am not searching for a include folder where the plugin is, and coping it to the folder of your compiler's include folder is.
For now you can manually copy them to yours compiler's folder.
Does it is really necessary?
I can include it on the compilation script later.
Update:
The load seems to be automatic just using the compiler parameter -I/plugin/include/folder
I tested and it works. Latter I will release a update with. Are there some other things you want to include?
The include folder is located in the same folder with the compiler...
Funny tho, it doesn't read from my custom incs, but for some reason it has zombie plague natives, wth
Usually there are two include folders, the first one is the compiler's one.
Code:
D:/
└── Game
└── cstrike
└── addons
└─── amxmodx
└─── scripting
└─── amxxpc.exe
├── compiler.exe
└── include
└── compiler_defeault.inc
The second one could exists or not. If there is one, it would be:
Code:
C:/
└── User
└── Downloads
├── zp_plague_5.sma
└── include
└── zp_includes.inc
So, if we run the compiler with the parameter `-I` pointing to the `zp_plague_5.sma` special include folder,
we do not need to copy the include files to the compiler's default include folder. Example:
Well, for me it seems to read only from the Download folder include..
How do i set it to read and read only includes from the compiler's folder ?
If it was not reading from the compiler folder you would get error like:
Code:
fatal error 100: cannot read from file: "amxmodx"
fatal error 100: cannot read from file: "amxmisc"
fatal error 100: cannot read from file: "fun"
The `-I` parameter is an addition only. Will not remove the include folder never. It will only increase the folders it is able to find includes. The command line can be like this:
Would be redundant to include the folder `D:/Game/cstrike/addons/amxmodx/scripting/include/`, as it is added by default, if it exists.
Quote:
Originally Posted by Depresie
It also auto completes for all the includes even tho they are not defined in the actual script =/
The auto completion comes from a standard file with all auto completes.
To do auto completion based on the included files, I need to parse the plugin file, detect which includes it uses, and parse the include folder to get their definitions.