Skip to content

BitStream

Qais Patankar edited this page Sep 4, 2018 · 3 revisions

Changes between minor versions Multi Theft Auto must be backwards compatible.

This means that 1.5.5 players must still be able to play on 1.5.6 servers, and vice-versa.

To achieve this the server and client will negotiate a BitStream version that they can share.

Adding support for backwards compatible features

After incrementing the bitstream version in version.h, your BitStream additions need to be wrapped in something like this (for both the server and the client):

if (bitStream.Version() > 0xBEAF)
{
   // Do your stuff
}

Authors: qaisjp, Jusonex