AMXXPawn Language Service

Uma experiência de desenvolvimento moderna e poderosa para a clássica linguagem AMXXPawn.

View the Project on GitHub NiceFeatures/amxxpawn-language

Página Inicial | Histórico de Mudanças

This project revives and modernizes the development experience for AMX Mod X scripters. If you love creating plugins for Half-Life, Counter-Strike 1.6, and other GoldSrc mods but miss modern tools, this extension is for you.

It transforms VS Code into a powerful IDE for Pawn, bringing features that were previously exclusive to newer languages.

✨ What’s New (v1.1.9)

Fixed


✨ What’s New (v1.1.8)

Fixed


✨ What’s New (v1.1.7)


✨ Key Features

This extension goes far beyond simple syntax highlighting. It offers a complete Language Server with:

🚀 Installation

  1. Install Visual Studio Code.
  2. Open the Extensions tab (Ctrl+Shift+X).
  3. Search for AMXXPawn Language Service.
  4. Click Install.
  5. Reload VS Code and enjoy!

You can also install it directly from the Marketplace page.

⚙️ Configuration (Essential Step!)

For the extension to work 100%, you must tell it where your AMXX compiler and include files are located.

  1. Open VS Code Settings (Ctrl + ,).
  2. Click the “Open settings.json” icon in the upper-right corner.
  3. Add the following properties to your settings.json:
{
    // Path to the amxxpc compiler executable.
    "amxxpawn.compiler.executablePath": "C:\\path\\to\\your\\compiler\\amxxpc.exe",

    // List of folders where the extension should look for .inc files.
    // ESSENTIAL for "Go to Definition" of native functions to work.
    "amxxpawn.compiler.includePaths": [
        "C:\\path\\to\\your\\compiler\\include"
    ],

    // --- RECOMMENDED SETTING ---
    // For a cleaner and smarter autocomplete experience,
    // disable generic suggestions based on words in the file.
    "editor.wordBasedSuggestions": "off"
}

IMPORTANT for Windows users: In JSON files, you must use double backslashes (\\) or forward slashes (/) in paths.

Practical Example:

{
    "amxxpawn.compiler.executablePath": "C:/AMXX/compiler/amxxpc.exe",
    "amxxpawn.compiler.includePaths": [
        "C:/AMXX/compiler/include"
    ]
}

⌨️ Available Commands

Open the Command Palette (Ctrl+Shift+P) and type AMXXPawn to see the available commands:

🛠️ For Developers and Contributors

This project is a modernization of a legacy codebase, now using TypeScript and the latest vscode-languageclient APIs. Contributions are very welcome!

To compile and test locally:

  1. Clone the repository:
    git clone https://github.com/NiceFeatures/amxxpawn-language.git
  2. Install dependencies:
    npm install
  3. Compile the project:
    npm run compile
  4. Open the project in VS Code and press F5 to start a debugging session.

🙏 Acknowledgements

This project is a continuation and modernization of the incredible work originally done by KliPPy. All credit for the solid foundation and the original idea goes to him.

📄 License

This project is licensed under the GPL-3.0. See the LICENSE file for more details.