PDA

View Full Version : Pbh??


Acidic32
25 May 2009, 17:28
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?