1.1.2 • Published 9 years ago

crew-telemetry v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

The Crew Telemetry

NPM module to read telemetry data from Ubisoft's The Crew

How To

First, make sure you follow the directions provided here.

If you don't do this, The Crew will not broadcast the data.

In the ‘my Documents\The Crew’ folder, create a file ExtraConfig.xml.

In this file add those lines

<ExtraConfig
  phys_out_sim="127.0.0.1:1337"
  phys_out_sim_rate="3"
  phys_out_nitro_lean="0.5"
  />

Then npm install crew-telemetry

After that, you can access all the data as a Javascript object like so:

//1337 is the default port. You can also do an array of multiple ports
var ct = require('crew-telemetry')(1337);

ct.on('data', function(data){
  //do stuff
});

//you can also receive the raw Buffer, remote address information,
//and port and parse it with the parse method, or parse it yourself.
ct.on('message', function(msg, rInfo, port){
  ct.parse(msg, rInfo, port);
});

ct.on('error' function(err){
  //do stuff
});

Available Data

PropertyValueUnit
timeIncremented every packet sent.N/A
angularVelocityAngular velocity pitch, roll, yawRadians per second
orientationEuleer angles yaw, pitch, rollRadians
velocityLinear velocity lateral, longitudinal, verticalMeters per second
accelerationLinear acceleration lateral, longitudinal, verticalMeters per second²
positionPosition in world x, y, zMeter times 65536
gameIDN/A
1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago