• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tool] Open Pawn — Cross-platform Pawn compiler & tools for VS Code
#1
Open Pawn — Cross-platform Pawn compiler & tools for VS Code (no Wine on macOS)

Open Pawn is a VS Code extension for SA-MP / open.mp Pawn development that bundles a native pawncc compiler for all three desktop platforms, allowing gamemodes to be compiled directly from the editor with no extra setup and no Wine/CrossOver on macOS.

Background
On Apple Silicon Macs there was no clean way to compile: the official pawn-lang macOS release ships a 32-bit i386 binary that cannot run on modern macOS, so the common workaround was running the Windows pawncc.exe under Wine. Wine is not actually required — building pawncc natively (with the default 32-bit cells) produces output the open.mp server accepts (AMX magic 0xF1E0). This extension bundles that native compiler for each OS.

Features
  • Native pawncc bundled — Windows x64, macOS (Apple Silicon), and Linux x64. All verified producing open.mp-compatible AMX.
  • Compile workflow — compile command, Ctrl/Cmd+Shift+B build task, compile-on-save, errors/warnings in the Problems panel.
  • IntelliSense — autocomplete, hovers, signature help, go-to-definition, document/workspace symbols (indexed live from .inc / .pwn files).
  • Syntax highlighting — Pawno-equivalent colours, including format placeholders and tags.
  • Snippets — common callbacks and constructs (OnPlayerConnect, command handlers, dialogs, enum+data arrays, timers, etc.).
  • Folding & a dependency-free formatter — no astyle WASM, so none of the extension-host crashes that affected other formatters.
  • Smart compiler discovery — finds pawncc in qawno/, pawno/, on PATH, or uses the bundled one; legacy SA-MP layouts work out of the box. Falls back to a Wine wrapper only if desired.

How it compares
vs the existing Pawn Development Tool extension:

Feature Pawn Development Tool Open Pawn
Syntax highlightingYesYes
SnippetsYesYes
Autocomplete / IntelliSenseYesYes
Hover / Go-to-definitionYesYes
Document / workspace symbolsYesYes
Code foldingYesYes
Document formatterYes (astyle WASM)Yes (dependency-free, no host crashes)
Build task → pawnccYesYes
Problems-panel diagnosticsPartialYes
Bundles a compilerNo (bring your own)Yes — Windows / macOS / Linux
Native macOS (no Wine)NoYes

Both can coexist, but running them together may produce duplicate autocomplete/hovers — Open Pawn will offer to help disable the other.

Platform support
  • Windows 10/11 (x64) — pawncc.exe runs natively, works out of the box.
  • macOS Apple Silicon — native pawncc bundled, no Wine.
  • Linux x64 — native pawncc bundled.
  • Intel Mac — build once with the included script.

Install
Code:
code --install-extension Mac-Andreas.open-pawn
(Also works in Cursor / VSCodium via Open VSX.)

Source & issues
github.com/Mac-Andreas/vscode-open-pawn — MIT licensed. Bug reports and pull requests welcome.

This is an early (0.1) release. The compiler pipeline is tested on all three platforms and verified against a real open.mp server; feedback is welcome, particularly from Windows and Linux users.
Xyranaut
Founder & Developer
Mac Andreas

Open Source Projects:
  • Using a MacBook with Apple Silicon? Play open.mp natively on macOS. Get it here
  • Need to host an open.mp server on macOS? Run open.mp servers natively on Apple Silicon. Get it here
  • Need Windows server compatibility on macOS? Run open.mp through Wine32 or CrossOver. Get it here
  • Need a Pawn IDE for macOS? Qawno brings the classic experience to Mac. Get it here
  • Coding in VS Code? Open Pawn provides modern Pawn tooling. Get it here
  • Need a modern command processor? omp-cmd simplifies open.mp development. Get it here
  • Upgrade your MySQL with omp-MySQL: TLS, Argon2id and prepared statements. Get it here
  • Migrating an FCNPC server? omp-fcnpc Adapter helps bring servers to open.mp. Get it here
  • Is San Andreas Multiplayer dead? Check the live stats and previous trends on the dashboard Open Dashboard

Looking for Beta Testers for my open.mp Mac project! [Apply here]
  • Must have MacBook Air M1 (Base: 8C CPU, 7C GPU, 8GB Ram) or above with Wine32 or Crossover
  • Experience in plugin development, scripting and debugging, using crossover and navigating Wine32
  • European Region preferred - for low latency testing (UK best)
  • Experience in using AI applications and analytics to understand behaviour patterns collected by telementary data.

Quote:
~ "Talent will have to deal with the world where writing code will not be the goal. It will be actually making AI work."
Away
  Reply


Forum Jump: