Raised This Month: $297 Target: $400
 74% 

[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
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 00:41.


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