The online racing simulator
problems with reading int values please help
Hi, I am reading a program which connects to a Lfs server and does something there...
But I have some problems with reading the int values sent by Lfs.
Could somebody write here what format it is written from bit to bit please?
What language are you working with? Any particular packet you're having issues with?
I'm working with pascal , but it isn't interesting.
I have problems with the ISP_MCI (car info) packets' x,y and z value which are
4 byte signed int values. First I read them into bytes and then I want to do concrate integer values from the 4 bytes. But I've tried a lot of alternatives but nothing works. The created values are jumping up and down as I drive straight
in LFS...
I am interested in which bit means what in those numbers.
E.G. which one is the sign or how is it stored
I found a lot of variations for storing signed numbers...
LFS uses classic x86 32bit little endian format in all its packets.
Thank you!

FGED GREDG RDFGDR GSFDG