Raised This Month: $29 Target: $400
 7% 

[TUT] Compiling AMXX plugins with Sublime Text


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-03-2021 , 14:58   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #211

None of the settings helped. Refreshing the Data directory did the trick. Thanks.
__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 02-03-2021 at 15:02.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Nagazora
Old 02-07-2021 , 21:18   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #212

Just some niche picking:

PHP Code:
#include < engine > 
when the include line write like this, sublime can't read it but the compiler can.
__________________
My plugin:
Celena Luna is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-09-2021 , 18:21   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #213

Quote:
Originally Posted by Celena Luna View Post
when the include line write like this, sublime can't read it but the compiler can.
What does mean "sublime can't read"?

Do you see any `Include File Not Found: ` on your Sublime Text console?
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Nagazora
Old 02-10-2021 , 10:52   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #214

Quote:
Originally Posted by addons_zz View Post
What does mean "sublime can't read"?

Do you see any `Include File Not Found: ` on your Sublime Text console?
it is
Code:
Include File Not Found
still can compile but when writing it won't show tooltips
The problem was there is space in front of the include

Normal
Code:
#include <engine>
Error
Code:
#include < engine >
it is a small thing but it might trouble someone
__________________
My plugin:

Last edited by Celena Luna; 02-10-2021 at 10:56.
Celena Luna is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-18-2021 , 16:07   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #215

Quote:
Originally Posted by OciXCrom View Post
None of the settings helped. Refreshing the Data directory did the trick. Thanks.
Lag spikes started yet again.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2021 , 07:40   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #216

It keeps generating syntax summary even though "live_refresh_delay" is set to 0.0.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-23-2021 , 16:04   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #217

Could someone perhaps help me? I've recently installed my new pc with Sublime on it and AmxxEditor. I'm only having trouble compiling plugins... This is the output when i try to compile a standard test plugin.

Code:
Compiling test... Current time is: 21:01:53,94 - di

AMX Mod X Compiler 1.10.0.5416
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size:            192 bytes
Code size:               92 bytes
Data size:              376 bytes
Stack/heap size:      16384 bytes
Total requirements:   17044 bytes
Done.
There was an compilation error. Exiting... 

Took 0:00:00,07 seconds to run this script.

[Finished in 0.1s]
PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
// Add your code here...

However, when i use my test.sma file on amxxpc.exe, it compiles without any problems.

EDIT: found the problem, there was a duplicate map somewhere in my files that didn't belong there.
__________________

Last edited by Napoleon_be; 03-23-2021 at 16:12.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 05-26-2021 , 11:25   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #218

A new version of Sublime was released breaking the operation with amx.

Code:
__init__() got an unexpected keyword argument 'kill_previous'
[cmd: ['D:\\Sublime\\Data\\Packages/User/AmxxEditor/AmxxEditor.bat', 'C:\\Users\\XXX\\Desktop\\Test.sma', 'Test', 'D:\\Sublime\\Data\\Packages', 'C:\\Users\\XXX\\Desktop']]
[dir: C:\Users\XXX\Desktop]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\XXX\AppData\Local\Microsoft\WindowsApps;C:\adb;C:\Program Files\dotnet\;C:\Users\XXX\AppData\Local\Microsoft\WindowsApps;]
[Finished]
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.

Last edited by iceeedr; 05-26-2021 at 11:27.
iceeedr is offline
Send a message via Skype™ to iceeedr
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-26-2021 , 18:51   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #219

Quote:
Originally Posted by iceeedr View Post
A new version of Sublime was released breaking the operation with amx.
Are you using Sublime Text 4 ?

For Sublime Text 4, I think I would need to patch few things. But for now, I still using Sublime Text 3.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 05-26-2021 , 19:46   Re: [TUT] Compiling AMXX plugins with Sublime Text
Reply With Quote #220

Quote:
Originally Posted by addons_zz View Post
Are you using Sublime Text 4 ?

For Sublime Text 4, I think I would need to patch few things. But for now, I still using Sublime Text 3.
Yes, build 4107 has any chance that you can "fix" this version or do you advise me to go back to the previous one?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
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 14:48.


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