Skip to content

Add IS_SET packet #101

@mkapal

Description

@mkapal
InSimInit: must set a flag
#define ISF_SET            0x1000    // bit 12: receive SET packets from guests who send their setup

Packet ID:
    ISP_SET,        // 70 - info            : output a sent setup

Packet:
struct IS_SET // SETup
{
    byte    Size;        // 136 (may change in future for a later setup version)
    byte    Type;        // ISP_SET
    byte    ReqI;        // 0
    byte    PLID;        // player's unique id

    char    CName[4];    // skin prefix

    unsigned    Spare;

    byte    FuelLoad;    // FuelLoad at start
    byte    Sp1;
    byte    Sp2;
    byte    Sp3;

    byte    Setup    [120]; // nearly the same as a setup file without the first 12 bytes (but see note below)
};

// NOTE: gear ratios are in a different order
// in the file: 7th gear then FDR then the other 6 gears
// in 'Setup' which comes from RAM: all 7 gears then FDR

Source: https://www.lfs.net/forum/post/2164690#post2164690

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions