[TUT] Compiling AMXX plugins with Sublime Text
1 Attachment(s)
[TUT] Compiling AMXX plugins with Sublime Text Quote:
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 Contents' Table
You can have tooltips with your function documentations: https://i.imgur.com/txvDpry.png This is how the application looks like. Here I am using the commands:
There is also the commands:
You can see the parameter by putting the mouse over the function name and waiting about 2 seconds: https://i.imgur.com/UHuJU8S.gif Change log Go to top
Spoiler
How to compile? Go to top
Spoiler
What more you can do? Go to top
Spoiler
Why Sublime Text? Go to top Because you can customize anything: Key Bindings, Menus, Snippets, Macros, Completions and more, just about everything in Sublime Text is customizable.
Downloads Go to top What do you need?
Old Versions Downloads Code:
Packages.zip (604.7 KB, 56 views ) - v1.4.3 | 2017-01-17 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 |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins
How to install? Go to top
Spoiler
The auto-completion by [Destro], Go to top To use the auto-completion you need to configure your include folder going on the menu: Code:
Preferences -> Package Settings -> AmxxEditor -> Edit AmxxEditor Autocompletion Settings
Spoiler
FAQ: Frequently Asked Questions Go to top
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Thanks for the tutorial, i will try it as soon as i get the chance
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Ahm, custom includes support ? =\
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
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? |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
I dont understand what you mean...
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 |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Code:
D:/ Code:
C:/ we do not need to copy the include files to the compiler's default include folder. Example: Code:
D:/Game/cstrike/addons/amxmodx/scripting/amxxpc.exe -I"C:/User/Downloads/include" "C:/User/Downloads/include/zp_plague_5.sma" |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
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 ? It also auto completes for all the includes even tho they are not defined in the actual script =/ |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Code:
fatal error 100: cannot read from file: "amxmodx" Code:
D:/Game/cstrike/addons/amxmodx/scripting/amxxpc.exe -I"C:/User/Downloads/include/" -I"F:/AMXX/include/" -I"D:/User/Downloads/include/" "C:/User/Downloads/include/zp_plague_5.sma" Code:
D:/Game/cstrike/addons/amxmodx/scripting/amxxpc.exe -I"D:/Game/cstrike/addons/amxmodx/scripting/include/" -I"C:/User/Downloads/include/" -I"F:/AMXX/include/" -I"D:/User/Downloads/include/" "C:/User/Downloads/include/zp_plague_5.sma" Quote:
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. I will see if I can get it working here. |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Good, I thought that such a simple compiler would not have support for multiple directories of include, so never try xd.
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Released a new version:
Code:
v1.1.1 | 2017-01-06 To use the auto-completion you need to configure your include folder going on: Code:
Amx Mod X -> Edit AMXX-Autocompletion Settings Pictures:
Spoiler
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
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? |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
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 Pictures:
Spoiler
Quote:
Quote:
Code:
Code:
Code:
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Ok, maybe I will create new theme based on your default theme.
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
What to do here?
Code:
[WinError 2] The system cannot find the file specified |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Code:
v1.2 | 2017-01-06 Quote:
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
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. |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Quote:
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:
Code:
Code:
Amx Mod X -> Edit AMXX-Autocompletion Settings
Spoiler
Quote:
I tested it here and it seems file with the default theme and the `Mistrick` Theme. Follow the screenshots:
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Spoiler
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Until now I only had been doing: Code:
Code:
Therefore, Released a new version: Code:
v1.2.1 | 2017-01-07 |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Very cool addons, i will try out the new version tonight :D
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Everything seems fine except for the following
If the file is not saved (i.e you start writing a new sheet without saving it ) the auto completion won't work Also, could you please remove this message ? Quote:
P.S : You forgot highlighting for var/function tags ( public / const / new ) |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Quote:
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
I think both messages should be deleted, they are just waste of space in the output window
Strange, for me all the tags except Float are written with default font color on all the dark themes Oh, and btw, i love the color schemes, they are so good, i really think that you should go further with this, like maybe making it an official IDE for amxx, replacing the old amxmodx studio... |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
What color scheme you are using?
Can you provide some screenshots so I can understand what is going on? |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
It is happening for all the dark themes ( atomic / dark / mistrick / twlight )
http://imgur.com/a/jSUOS |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
No need for It, I found the problem. You need to change the syntax to one compatible.
Code:
Open all with current extension as... -> amxmodx -> AMXX-Pawn Pictures:
Spoiler
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Yep, it solved the problem, thanks :D
I will continue exploring the IDE while scripting and come with issues/suggestions Oh man, really nice work, it is a pleasure to script on this, idk how you got the colors to blend so nice.. |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Any chance to disable the features which sends the text automatically to the next row if the line is too long ?
http://imgur.com/a/gXVqy Nvm, found the solution, View -> Word Wrap |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Any chance of getting auto indenting on tabbing ? :)
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Quote:
Currently you can press `Ctrl+Shift+P` and type `Inden` and it will indent for you:
Spoiler
It can be done, just need change the tab key binding. But is not easy to change the tab behavior because there are lots of settings on it. It is easier to use another shortcut as F1. Just go to `Preferences -> Key Bindings - User`, and insert this where you like most. Code:
{ "keys": ["f1"], "command": "reindent", "args": {"single_line": false} }, Code:
... Quote:
I took the one I use and removed everything from it until it meet what you initially asked. If you are using the other syntax `amxmodx -> AMXX-Pawn`, the colors are not mine, but from color scheme/syntax Destro did on his version. Update: Released a new version: Code:
v1.3 | 2017-01-10 If you want to remove the other message `1 File(s) copied, to the folder C:\Users\Nick\Desktop\SERVER\cstrike\addons\a mxmodx\plugins`, I will let you do this on the script, it is pretty simple, click in the menu `Amx Mod X -> Configure Windows/Batch Compiler` and to find the lines: Code:
File: AmxxPawn.bat Code:
File: AmxxPawn.bat
Spoiler
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
What i meant is when you press Tab, instead of jumping 4 spaces to right, to jump to the next position dividable with 4...
For example, if my variable is written starting from the 6th space and i press tab, it should jump to the 8th space not 10th Btw, thanks for the update, reinstalling now |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
You are welcome. To do it, just enable a setting. To go `Preferences -> User - Settings` and find the line near the end of the file:
Code:
"use_tab_stops": false, Code:
"use_tab_stops": true, |
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Cool thx ! :D
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Autocompletion is still buggy, sometimes i even have to restart the application after saving the file in order to get it working
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Yeah, I found out this afternoon what is the bug. It is a misspelling on the file. I did not release it yet because I am fixing other bugs.
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Great, waiting for the next release :D
|
Re: [TUT] How to setup a simple IDE to program/compile AMXX plugins (with Sublime Tex
Release a new version:
Code:
v1.4 | 2017-01-12 If you see something which still broke, you need to report it again. |
Re: [TUT] Compiling AMXX plugins with Sublime Text
private functions don't highlighted.
https://i.imgur.com/95t6uXE.png |
All times are GMT -4. The time now is 23:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.