API Referenceconsole
Main Development Test
Script defined in `lua/console/test.lua`. Main development test file with vehicle loading and JSON parsing test functions.
Script defined in lua/console/test.lua. Main development test file with vehicle loading and JSON parsing test functions.
Functions/Exports
loadOneVehicle() (global)
Deletes all objects and spawns a single pickup vehicle at origin.
benchJSON() (global)
Parses all .jbeam files from vehicles/pickup/ directory:
- Opens directory, finds all
.jbeamfiles (excludes.jbeamc) - Reads and JSON-decodes each file
- Merges all parts into
allPartstable - Logs part counts per file
- Reports JSON decode errors
Usage
rerequire("lua/console/test")
loadOneVehicle()
benchJSON()Internal Notes
- Loads
lua/console/benchphysicsviarerequireat startup loadOneVehicle()call at bottom is commented outbenchJSON()is a diagnostic tool for validating jbeam file integrity- Uses
pcallfor safe JSON decoding with error reporting
See Also
- BeamConsole Folder Overview - Directory overview
- bananabench-async Reference - Related reference
- bananabench-csv Reference - Related reference
- bananabench-json Reference - Related reference
- Console Commands Guide - Guide
Dynamic Collision Test
Script defined in `lua/console/test_dyncol.lua`. Dynamic collision test - spawns a vehicle and runs 5000 physics steps to test collision behavior over extended simulation.
Unit Tests
Script defined in `lua/console/unittests.lua`. Unit tests for vec3 math operations including correctness and performance validation.