AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   BasicPawn and AMX Mod X (https://forums.alliedmods.net/showthread.php?t=300877)

Timocop 09-01-2017 21:40

BasicPawn and AMX Mod X
 
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):
https://i.imgur.com/uYCTbd5.gif

JusTGo 09-02-2017 08:20

Re: BasicPawn and AMX Mod X
 
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 


Timocop 09-02-2017 09:23

Re: BasicPawn and AMX Mod X
 
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.

Timocop 09-02-2017 13:09

Re: BasicPawn and AMX Mod X
 
Update released. Should work fine now with AMX Mod X's escape character.

PRoSToTeM@ 09-02-2017 13:34

Re: BasicPawn and AMX Mod X
 
Quote:

Originally Posted by Timocop (Post 2546025)
Update released. Should work fine now with AMX Mod X's escape character.

Can BasicPawn get it from #pragma ctrlchar?

Timocop 09-02-2017 14:29

Re: BasicPawn and AMX Mod X
 
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("
#"")



PRoSToTeM@ 09-02-2017 14:59

Re: BasicPawn and AMX Mod X
 
Quote:

Originally Posted by Timocop (Post 2546035)
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?

Timocop 09-02-2017 16:13

Re: BasicPawn and AMX Mod X
 
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.

metal_upa 01-20-2021 23:58

Re: BasicPawn and AMX Mod X
 
Quote:

Originally Posted by Timocop (Post 2545908)
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):
https://i.imgur.com/uYCTbd5.gif

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.

Timocop 01-22-2021 11:17

Re: BasicPawn and AMX Mod X
 
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.
https://i.imgur.com/5J3Hv7L.png


All times are GMT -4. The time now is 11:05.

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