Moderator
Staff member
Moderator
- Joined
- Feb 22, 2008
- Messages
- 2,429
- Reaction score
- 760
its all ok now, except for this:
cant reproduce that in C# 
I know a union allows that offset to be read as a int,float or a short in the 1st case, I just make it as an int, then I try to retrieve the next fields, like: sessionID, X,Y,Z, but they are with the incorrect values
Code:
union {
long unknowInt8[34];
float unknowFloat8[34];
short unknowShort8[68];
};
long sessionID;
long x;
long y;
long z;
union {
long unknowInt9[4];
float unknowFloat9[4];
short unknowShort9[8];
};
I know a union allows that offset to be read as a int,float or a short in the 1st case, I just make it as an int, then I try to retrieve the next fields, like: sessionID, X,Y,Z, but they are with the incorrect values


