Radar:
This one is a Work In Progress! There are some issues still to be sorted,
the code and functionality is a little messy for this reason. It's still
enough to be useful though, if you can live with a couple of annoyances.
The radar panel can be moved and scaled freely, and shows cars around you
in two ranges: Short range is drawn across the panel, long range is drawn
around the edge of a circle inside the panel. Different colours are used
to show:
Issues:
Other programmers out there with any ideas don't need to be shy pointing out
anything daft I've done, I'm not proud
InSim buffer overflow:
When joining a server with the radar running, there is a period where we
are receiving MCI (position) packets and sending buttons, but LFS is still
loading mods before processing InSim packets. If the server is busy with
mods that you haven't already downloaded, this wait will easily fill the
insim buffer and LFS will close the connection. Joining 'Just A Ride' server
will kill the radar 9 times out of 10, for instance.
Also, time-skipping in replays will do the same thing.
Car markers persisting/'getting stuck':
Sometimes a marker will persist on the radar screen when it shouldn't. I am
working on this! The code seems to be fool-proof in clearing all the old
markers before drawing the new ones, but alas. More testing is required to
know if this bug is in my radar logic, my PIE logic, or LFS button clearing.
Currently handled by doing a full clear of all buttons every X seconds to
catch the stragglers - usable but imperfect.
This one is a Work In Progress! There are some issues still to be sorted,
the code and functionality is a little messy for this reason. It's still
enough to be useful though, if you can live with a couple of annoyances.
The radar panel can be moved and scaled freely, and shows cars around you
in two ranges: Short range is drawn across the panel, long range is drawn
around the edge of a circle inside the panel. Different colours are used
to show:
- you (green)
- long/short range (cyan/white)
- cars a lap up/down from you (blue/red)
- cars causing yellow flag (yellow)
- lagging (magenta)
- cars in contact with others (black)
Issues:
Other programmers out there with any ideas don't need to be shy pointing out
anything daft I've done, I'm not proud
InSim buffer overflow:
When joining a server with the radar running, there is a period where we
are receiving MCI (position) packets and sending buttons, but LFS is still
loading mods before processing InSim packets. If the server is busy with
mods that you haven't already downloaded, this wait will easily fill the
insim buffer and LFS will close the connection. Joining 'Just A Ride' server
will kill the radar 9 times out of 10, for instance.
Also, time-skipping in replays will do the same thing.
Car markers persisting/'getting stuck':
Sometimes a marker will persist on the radar screen when it shouldn't. I am
working on this! The code seems to be fool-proof in clearing all the old
markers before drawing the new ones, but alas. More testing is required to
know if this bug is in my radar logic, my PIE logic, or LFS button clearing.
Currently handled by doing a full clear of all buttons every X seconds to
catch the stragglers - usable but imperfect.