1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pbh??

Discussion in 'Tools programming' started by Acidic32, 25 May 2009.

  1. Acidic32

    Acidic32

    Joined:
    25 May 2009
    Messages:
    2
    Country:
    yugoslavia
    Ok, im trying to generate a PBH to send to the FSD Server, im currently struggling!


    public Offset<Int32> pitch = new FSUIPC.Offset<Int32>(0x578);
    public Offset<Int32> bank = new FSUIPC.Offset<Int32>(0x57c);
    public Offset<uint> heading = new FSUIPC.Offset<uint>(0x580);

    uint pbh = 0;
    pbh = ((uint)pitch.Value << 22) | ((uint)bank.Value << 12) | ((uint)heading.Value << 2);
    Console.WriteLine(pbh.ToString);

    it returns:
    P: 53070376 B: 12994522 H: 4274734951
    PBH = 4286430620

    but the FSD server, using another client sends for the same pitch, bank and heading:
    PBH unsigned value is 50348012
    P=12 B=3 H=1019

    What am i missing?

Share This Page