The online racing simulator
#1 - amp88
InSim: Add Status Flags (Not Blue/Yellow Flags) to State Packet
Firstly, let me explain the thread title. During a race session in LFS there are various flags which are either true or false (I'm not talking anything about blue or yellow flags before anyone asks). An example of such a flag would be the "Can Reset" flag. Either the flag is true (and you can reset your car) or it's false (and you can't reset your car). Other examples would be "Must Pit" and "Midrace Join".

Now, when a race begins there is a packet sent out through InSim which contains various information about the race (like what track it's on, what the weather conditions are etc) and that packet contains the above flags. So, using that packet you can tell whether you can reset your car or not during the race. However, if an admin changes that flag during the race (by typing /canreset no, for example) there is no packet sent out through InSim to tell you of that change. Additionally, if you start up your InSim application after the race start you can't tell what the status of the flags are (because you miss the packet that was sent out at the start of the race). So, at the moment it's possible to have either inaccurate information or no information at all about the flags.

To add more complexity for anyone following along at home who's not familiar with InSim you can actually request LFS to send you a state packet which contains things like the track in use, the weather etc but it does not currently contain the reset/midrace join/must pit flags.

So, my suggestion is this: please add the "status flags" to the state packet (IS_STA).
-
(morpha) DELETED by morpha : Read, morpha, read.
Quote from amp88 :Additionally, if you start up your InSim application after the race start you can't tell what the status of the flags are (because you miss the packet that was sent out at the start of the race). So, at the moment it's possible to have either inaccurate information or no information at all about the flags.

When you first connect to the host you can request for an IS_RST packet to be sent by sending an IS_TINY with a sub-type of TINY_RST.

I agree though that I can't see any notification sent by LFS when flags such as /canreset or /mustpit are changed. For player flags there is IS_PFL, so maybe Scawen could add a similar packet but for host flags, or as you say add it to the STA packet.
#3 - amp88
Quote from DarkTimes :When you first connect to the host you can request for an IS_RST packet to be sent by sending an IS_TINY with a sub-type of TINY_RST.

Thanks, very handy tip!

FGED GREDG RDFGDR GSFDG