PlayerPositionsBridge

A plugin by Beu(Trusted developer)

PlayerPositionsBridge
Downloads 45
Updated 1 month ago
Released 1 month ago
Created 1 year ago
Numeric ID 484
Min. Openplanet 1.26.0
Signed
Game Trackmania

Just a simple plugin that sends the positions of players connected to the server via a Websocket server on the 24183 port by default.

Known issue

The positions of players far away are not sent:

VehicleState doesn't provide state of player too far out, I suppose that's how the game works

Payload format

{
    "Server": {
        "Login": "mj8ttfFQRSspheqgRxsQZA",
        "Name": "Server name"
    },
    "Players": {
        "r-fhwXCGSPe96afjIGR1EA": {
            "Login": "r-fhwXCGSPe96afjIGR1EA",
            "Name": "Nadeo",
            "Position": {
                "Y": 120.385,
                "X": 1579,
                "Z": 927.75
            }
        }
    },
    "LocalPlayer": {
        "Login": "Vvjdn4WBRE6irR6Oie7RpA",
        "Name": "Beu_",        
        "Position": {
            "Y": 127.231,
            "X": 1210.18,
            "Z": 1485.91
        },
        "Direction": {
            "Y": 0.0234747,
            "X": 0.998823,
            "Z": -0.0424523
        }
    }
}