API Referencecommonutils
utils/ - Utility Modules
General-purpose utility modules for debugging, profiling, networking, graphics, and data processing.
General-purpose utility modules for debugging, profiling, networking, graphics, and data processing.
| File | Description |
|---|---|
calltracer.lua | Function call graph recorder, exports to TGF for yEd visualization |
dateUtils.lua | ISO 8601 date parsing and time-since calculations |
debugDraw.lua | FFI-based debug drawing API (spheres, lines, text, triangles) with packed colors |
filterchain.lua | Functional signal processing filter chain (smooth, interval, scale, digitize) |
heatmap.lua | SVG heatmap generator for vehicle path visualization |
httpJsonServer.lua | Simple REST/JSON HTTP server using LuaSocket |
interactiveShell.lua | Interactive Lua REPL for runtime debugging |
languageMap.lua | ISO 639-1/3166-1 language and country code mappings |
perf.lua | Performance profiler with windowed stats and CSV export |
pixellib.lua | Pixel drawing library with RGBA buffers, primitives, and text |
simpleHttpServer.lua | HTTP server with static files, JSON, routing, and templating |
simpleProfiler/report.lua | Flame chart HTML report generator using Mustache templates |
torqueScriptParser.lua | TorqueScript source code parser (PEG-based AST) |
wsUtils.lua | WebSocket server creation with auto network adapter detection |
filterchain Reference
Module defined in `lua/common/utils/filterchain.lua`. Functional programming filter chain for signal processing - chains composable filter objects (smooth, interval, scale, digitize, etc.) into a proc
heatmap Reference
Module defined in `lua/common/utils/heatmap.lua`. Generates SVG heatmap visualizations of vehicle paths on the game map, including road overlay.