The online racing simulator
Searching in All forums
(3 results)
NiteLite
S2 licensed
It seams there is a bug with the direction and heading when using the in-game server. I switched to the dedicated host and now its working perfectly ...
NiteLite
S2 licensed
Whats funny is the fact that the values never reach 65536 ...

When i drive the car around in a circle the values (convert to an unsigned 16 bit int) go from 0 to 32700ish and then they suddenly jump to 16191 and stay around 16191 jumping irradicly +/- 100 untill i get to 0 around and it all starts over

The actually convertion of units = degrees is working fine, but the packets i recieve from LFS suddenly only contain 3F3F as the value for Direction and Heading when i pass 180 degrees...

I guess that its working fone for you since you dont seam to have had this problem ?
NiteLite
S2 licensed
I am currently trying to using the Direction and Heading information in the CompCar struct to try to find the angle of the car ... Problem is, it seams to only be working with 0 to 180 degrees ... if the car is within 180 to 360 (or -180 to 0 if you like) if get the following CompCar struct ...

0104 01 02 003f3e3f 3f3f3f6b 00013e3f 033f 3f3f 3f3f 3f70

Both the Direction and the Heading values come out as 3F3F

Within 0 to 180 degrees its something like:

0102 01 02 003f3f3f 3f3f3f3f 00012055 060f 5c3f 5627 0962


The manual defines these values as word (2-byte unsigned integer) so i am having problems making the angles work properly
FGED GREDG RDFGDR GSFDG