If you don't close outgauge on disconnect it keeps sending data to port A and if you connect with an other port B and enable outgauge it keeps sending to the port A of the first connection instead to port B.
race tracking with value of "100" equals a SMALL_SSG value of 10...
compare: // OutGauge Delay 1 :minimum delay between packets (100ths of a sec)
with: // Time in ms between NLP or MCI (0 = none)
=> confusing!
The source port of the OG packets is not the same as the port of the other packets -> my udp socket was connected to that port and didn't listen to packets coming from other ports -> no og ^^
As written; Testing with udp only and with tcp returns the same result...
I'm sending the following to lfs.
Connected with local port: 1831
UDP ->: 2c 01 22 00 27 07 10 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 65 73 74 00 00 00 00 00 00 00 00 00 00 00 00
ISI with the local port set and lfs displays the port in brackets ingame.
UDP ->: 08 04 22 02 00 00 00 64
The ISI small of type SSG and delay of 100ms and LFs displays "Outgauge: enabled"
But I only receive the isp ver and the race tracking packets.
UDP <-: 14 02 22 00 30 2e 35 58 00 00 00 00 53 32 00 00 00 00 04 00
The optional ID at the end is not send if you initialize it through insim iirc.
Nope, as it's not even working if I "only" use udp for insim. And if you use only udp the outgauge packets should arrive on the same port as all other packets. Or if you use TCP and set a UDP port they should arrive on that port like the race tracking NLP/MCI do.
it's probably simply ignoring the insim ports when activated through insim
"// The OutGauge packets will be sent to the UDP port specified in the InSimInit packet." Only getting NLP and MCI over that port (or all using udp only)
There is still a problem with the "random delay". If you start counting as soon as you see the lights (NOT the first red, but the grey box) it's always the same time until the green light goes on.
Example: (5 or 6 seconds depending how fast you count ^^)
The time between showing the first box and the green light is 6 seconds.
Now the red lights take ~2 seconds.
Makes 4 seconds which are randomly split into the timespan between showing the box and the first red light, and between the last red light and the green one.