GMod x BeamNG - first spike (source only, UNTESTED)
Goal of v0.1: a BeamNG car appears in Garry's Mod and follows the real BeamNG physics.
Solo only. Both games run at the same time on the player's PC.
Status
- Written without either game available. Nothing here has been run yet.
- Not packaged, no Melty recipe, nothing uploaded.
Parts
beamng_mod/ - BeamNG extension; writes the player car's pose to a JSON file ~20x/s.
gmod_addon/ - GMod server Lua; reads that file and moves a placeholder prop.
Open assumptions to verify first
- BeamNG's
jsonWriteFile can write to an absolute path inside GMod's garrysmod/data/ folder.
modScript.lua autoloads the extension (else load it from the BeamNG console).
- Axis/yaw mapping BeamNG -> Source is identity + metre scale; may need a flip/offset.
- File polling may be too slow or tear; the upgrade is a local socket (needs a GMod binary module,
which would have to be a loader/dependency Melty can install).
- Real BeamNG car meshes must come from the player's own install (converter at install time), never in the upload.
Next
- Verify 1-3 by running both games, then screenshot.
- Package into a Melty recipe (GMod addon + BeamNG mod + companion launch of both games).