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

BasicPawn and AMX Mod X


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-01-2017 , 21:40   BasicPawn and AMX Mod X
Reply With Quote #1

Hey there AMX Mod X folks,
i've been developing BasicPawn for SourcePawn (https://github.com/Timocop/BasicPawn) for quite a while now and i'm trying to add support for AMX Mod X. Since AMX Mod X and SourceMod <1.6.4 syntax are quite similar.
However, i'm not an active coder in AMX Mod X and never really used it so i probably need to get some feedback of you guys who are experienced with it. (e.g If something is not working or parsed incorrectly)
Some features like the basic debugger are currently not supported, but i'm going to add it in the future when im more experienced with AMX Mod X.
Any issues or new feature ideas? Please post them on the BasicPawn GitHub (link above) or if you dont have an account there, here.

Currently, it works well with AMX Mod X (latest commit build used):
Timocop is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-02-2017 , 08:20   Re: BasicPawn and AMX Mod X
Reply With Quote #2

looks nice, but how to get fix this error/warnings:

PHP Code:
[ERRO] (02/09/2017 13:13:04Could not read include: sourcemod
[INFO] (02/09/2017 13:13:04Could not start autocomplete update threadit's already running!
[ERRO] (02/09/2017 13:13:05) Could not read include: sourcemod
[INFO] (02/09/2017 13:13:05) Could not start autocomplete update thread, it'
s already running!
[
ERRO] (02/09/2017 13:13:05Could not read include: sourcemod
[ERRO] (02/09/2017 13:13:15Could not read include: sourcemod
[INFO] (02/09/2017 13:13:15Could not start autocomplete update threadit's already running!
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:16) Failed to read name from enum because it has no name: Renamed to '
Enum' (message_const.inc)
[ERRO] (02/09/2017 13:13:19) Uneven brace level! May lead to syntax parser failures! [LV:1] (string_stocks.inc)
[ERRO] (02/09/2017 13:13:20) Could not read include: sourcemod
[INFO] (02/09/2017 13:13:22) Compiling source started!
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (amxconst.inc)
[WARN] (02/09/2017 13:13:22) Failed to read name from enum because it has no name: Renamed to '
Enum' (message_const.inc)
[INFO] (02/09/2017 13:13:22)     AMX Mod X Compiler 1.8.3-dev+5132
[INFO] (02/09/2017 13:13:22)     Copyright (c) 1997-2006 ITB CompuPhase
[INFO] (02/09/2017 13:13:22)     Copyright (c) 2004-2013 AMX Mod X Team
[INFO] (02/09/2017 13:13:22)     
[INFO] (02/09/2017 13:13:22)     Header size:            152 bytes
[INFO] (02/09/2017 13:13:22)     Code size:               24 bytes
[INFO] (02/09/2017 13:13:22)     Data size:               20 bytes
[INFO] (02/09/2017 13:13:22)     Stack/heap size:      16384 bytes
[INFO] (02/09/2017 13:13:22)     Total requirements:   16580 bytes
[INFO] (02/09/2017 13:13:22)     Done.
[INFO] (02/09/2017 13:13:22)     
[INFO] (02/09/2017 13:13:22)     Saved compiled source: C:\Users\MSI\Documents\GitHub\ZP_LAST\scripting\compiled\zp_test.amxx
[INFO] (02/09/2017 13:13:22) Compiling source finished!
[ERRO] (02/09/2017 13:13:25) Uneven brace level! May lead to syntax parser failures! [LV:1] (string_stocks.inc)
[INFO] (02/09/2017 13:13:25) Could not start autocomplete update thread, it'
s already running!
[
ERRO] (02/09/2017 13:14:20Could not read include: sourcemod
[WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:21Failed to read name from enum because it has no nameRenamed to 'Enum' (amxconst.inc)
[
WARN] (02/09/2017 13:14:22Failed to read name from enum because it has no nameRenamed to 'Enum' (message_const.inc)
[
ERRO] (02/09/2017 13:14:25Uneven brace levelMay lead to syntax parser failures! [LV:1] (string_stocks.inc)
[
ERRO] (02/09/2017 13:15:05Could not read include: sourcemod
[ERRO] (02/09/2017 13:15:06Could not read include: sourcemod 
__________________
JusTGo is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-02-2017 , 09:23   Re: BasicPawn and AMX Mod X
Reply With Quote #3

Just ignore the Enum warnings, this only happens when enums dont have any names.
PHP Code:
enum {
    
EnumWithNoName

you can type
Code:
Enum.|
to list all enums without names.

The latest 0.727 release doesnt have Mod detection and still uses
Code:
\
as an escape character, AMX Mod X uses
Code:
^
instead. Thats why you are getting syntax parser errors. Get the latest commit release to solve this problem. https://ci.appveyor.com/project/Timo...uild/artifacts
But im going to release an update soon.

Last edited by Timocop; 09-02-2017 at 09:31.
Timocop is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-02-2017 , 13:09   Re: BasicPawn and AMX Mod X
Reply With Quote #4

Update released. Should work fine now with AMX Mod X's escape character.
Timocop is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 09-02-2017 , 13:34   Re: BasicPawn and AMX Mod X
Reply With Quote #5

Quote:
Originally Posted by Timocop View Post
Update released. Should work fine now with AMX Mod X's escape character.
Can BasicPawn get it from #pragma ctrlchar?
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-02-2017 , 14:29   Re: BasicPawn and AMX Mod X
Reply With Quote #6

Sadly no, it would break the Text Editor highlighting because you can change the escape character anywhere in the code. Its hardcoded instead.

PHP Code:
public plugin_init() {
#pragma ctrlchar '\'
    
server_print("\"")
#pragma ctrlchar '^'
    
server_print("^"")
#pragma ctrlchar '#'
    server_print("
#"")


Last edited by Timocop; 09-02-2017 at 16:33.
Timocop is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 09-02-2017 , 14:59   Re: BasicPawn and AMX Mod X
Reply With Quote #7

Quote:
Originally Posted by Timocop View Post
Sadly no, because it would break the Text Editor highlighting because you can change the escape character anywhere in the code. Its hardcoded instead.
Maybe implement this the same as in the compiler?
__________________

Last edited by PRoSToTeM@; 09-02-2017 at 15:02.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 09-02-2017 , 16:13   Re: BasicPawn and AMX Mod X
Reply With Quote #8

The Text Editor escape character is global you cant set it by line like the compiler does.
And i dont think there is a reason to change the escape character in the first place. Default should work fine.
Timocop is offline
metal_upa
Senior Member
Join Date: Jun 2016
Old 01-20-2021 , 23:58   Re: BasicPawn and AMX Mod X
Reply With Quote #9

Quote:
Originally Posted by Timocop View Post
Hey there AMX Mod X folks,
i've been developing BasicPawn for SourcePawn (https://github.com/Timocop/BasicPawn) for quite a while now and i'm trying to add support for AMX Mod X. Since AMX Mod X and SourceMod <1.6.4 syntax are quite similar.
However, i'm not an active coder in AMX Mod X and never really used it so i probably need to get some feedback of you guys who are experienced with it. (e.g If something is not working or parsed incorrectly)
Some features like the basic debugger are currently not supported, but i'm going to add it in the future when im more experienced with AMX Mod X.
Any issues or new feature ideas? Please post them on the BasicPawn GitHub (link above) or if you dont have an account there, here.

Currently, it works well with AMX Mod X (latest commit build used):
I'm coding for amxx plugins. The software is nice but how to set includes and compiler path? and how to install Custom Syntax Styles? show me the way please. Thank you.
metal_upa is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 01-22-2021 , 11:17   Re: BasicPawn and AMX Mod X
Reply With Quote #10

Setting up includes and compiler is optional. BasicPawn will automatically detect includes and the compiler next to your source file you opened. Just open the source inside your scripting folder next to your includes and compiler. As for the syntax styles go here https://github.com/Timocop/BasicPawn...yntax%20Styles download the XML file and open it via BasicPawn in the settings.
__________________

Last edited by Timocop; 01-22-2021 at 11:18.
Timocop 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 19:46.


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