Raised This Month: $12 Target: $400
 3% 

[TUT] Compiling AMXX plugins with Sublime Text


Post New Thread Reply   
 
Thread Tools Display Modes
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-01-2020 , 15:41   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #181

Quote:
Originally Posted by DruGzOG View Post
how would I go about disabling the feature of needing to save the file in order to compile?
You cannot disable it because, in order to compile the plugin, the `amxxpc` compiler needs to find the file on the file system.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-01-2020 , 15:44   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #182

Quote:
Originally Posted by addons_zz View Post
You cannot disable it because, in order to compile the plugin, the `amxxpc` compiler needs to find the file on the file system.
This wasn't nessecary on AMXx studio, i could copy paste and compile without saving, would give me an "untitled.amxx" file on my desktop.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-01-2020 , 17:06   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #183

Quote:
Originally Posted by Napoleon_be View Post
This wasn't nessecary on AMXx studio, i could copy paste and compile without saving, would give me an "untitled.amxx" file on my desktop.
Amxx studio was either:
  1. Using some `amxxpc` compiler option to input the source code directly by stdin (if this exists)
  2. Creating a temporary file on the file system with your plugin and calling the compiler with the temporary file as the input

As I use the Sublime Text build system to compile the file, any of these options are not possible as Sublime Text build system requires a file input by the user (not this plugin):
  1. https://www.sublimetext.com/docs/3/build_systems.html
  2. https://forum.sublimetext.com/t/any-way-to-build-without-saving-file-first/1658
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-01-2020 , 17:10   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #184

Quote:
Originally Posted by addons_zz View Post
Amxx studio was either:
  1. Creating a temporary file on the file system with your plugin and calling the compiler with the temporary file as the input
Yea, i remember AMXx studio creating invisible .bak files, didn't know that was the reason, thanks for sharing.
__________________

Last edited by Napoleon_be; 05-01-2020 at 17:10.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-01-2020 , 17:33   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #185

Yeah, Amxx Studio could be using the .bak files for this. But the .bak files could also be just a backup option Amxx Studio uses. When creating the temporary files for compiling, it would be more reasonable to create them in someplace as `C:\Users\<username>\AppData\Local\Temp` (windows) or `/tmp` (linux)
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-15-2020 , 23:52   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #186

I just released a new version of the `AmxxEditor` adding support to show the function documentation on the tooltip:

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

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-23-2020 , 08:06   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #187



Can you add an option for the documentation to show up only when you click on the function's name instead of it being shown all the time when you're editing its arguments? I find it really bothering the way it is right now.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-27-2020 , 06:53   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #188

Thanks addons_zz, been trying to figure that shit out for a while now, not realizing it wasn't out there yet lol.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 06-06-2020 , 11:41   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #189

Quote:
Originally Posted by OciXCrom View Post
Can you add an option for the documentation to show up only when you click on the function's name instead of it being shown all the time when you're editing its arguments? I find it really bothering the way it is right now.
I changed the code, now by default it will show the documentation if you hover it and if you keep the option `enable_inteltip_calls` enabled, it will show phantoms bellow the function line.
__________________
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; 06-06-2020 at 15:51.
addons_zz is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-06-2020 , 14:28   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #190



This happened after the update
__________________
My plugin:

Last edited by Celena Luna; 06-06-2020 at 14:29.
Celena Luna 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 12:32.


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