Phasor is a server-side extension for Halo PC/Custom Edition. It exposes a Lua Scripting API, anti-cheat tools, event hooks, command handling, player management, logging, and numerous under-the-hood features. This guide focuses on its Lua API, walks through the core scripting model and practical examples so you can build your Lua scripts.

Important: Phasor's Lua API is based on Lua 5.2.

This guide assumes you have read:


Script Skeleton & Version Check

See this blank Phasor script


Handling Game Version (PC vs CE)

Because Phasor cannot scan signatures, you must use the game parameter to select the correct hardcoded addresses. The Common Lua References provides many offsets - here’s a practical example:

local gametype_base

function OnScriptLoad(processid, game, persistent)
    if game == "PC" then
        gametype_base = 0x671340
    else  -- CE
        gametype_base = 0x5F5498
    end
end

function get_score_limit()
    return readbyte(gametype_base + 0x58)
end

THE REST OF THIS GUIDE IS STILL BEING WORKED ON

THE REST OF THIS GUIDE IS STILL BEING WORKED ON

THE REST OF THIS GUIDE IS STILL BEING WORKED ON

THE REST OF THIS GUIDE IS STILL BEING WORKED ON