Ok so I have started making my own program to use with outguage, I have it working good but the gauges flash/refresh noticably. Any idea?
I use this code to draw the hands > dialcode.txt
It updates when it recieves a packet from LFS which I have these settings
OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 56551
OutGauge ID 0
My monitor is set to 76Hz (highest) if that could have an effect?
Mine's made all the worse by the fact that it's 100% generated by VB (including the ticks on the rev counter which is why you can't see them ) so probably more things than should get refreshed all the time.
Yes, I know it's fugly, it's a hash job that looks really nasty until LFS connects to it
the first one i was referencing to, but the second one i like! and no offense degats, but i cant even tell what every gauge does i like the first one the best, because it looks the most sporty
if only lfs had headlights full time on, high beams, directionals, wipers for those hard core rally moments
Ok I was going to make a new thread for this but might aswell post it here
This works great but still is beta as I am adding more things, and also more when I eventually buy S2
Working tachometer, speedometer, fuelmeter with low fuel warning. flashes the message when you go below 10 Litres
Also turn signals, digital tachometer and speedometer, gear display with 3 colours, green, amber, red
It was mostly just me playing around with outgauge and has never been officially released. It's mostly there to spit out every piece of data that outGauge sends and adds a couple of funtions like top speed etc. It's more obvious what the gauges do once LFS has actually connected to it and things start happening, although a lot of the random looking numbers have no labels and are pretty obscure
OutGauge is a protocol, in a similar way to InSim, but much simpler in that it only listens for packets from LFS. The only documentation is the very last section in the file %your_lfs_folder%/docs/insim.txt. If you're not using C/C++ this will have to be modified to suit whatever language you're writing the app in (all the ones mentioned on this thread use vb6.0 because its relatively simple to make a GUI).
If you only want to display text/numbers you can use the values recieved from LFS and convert the units as needed. Dials are somewhat more complicated...
There are 2 ways to make the dials themselves - the easy way, by inserting an image as a background, or the hard way (the way I did it) by using only GUI objects (circles, lines etc). The needles can either be lines or images. Both need to be rotated using trig and some 'gymnastics' as one of my lecturers would say.
The 'ticks' on the rev counter on mine are redrawn for each car to take into account for different rev ranges. The ticks for all the other dials are calculated and drawn when the program starts up.
I already have 6+ years experiance with Visual Basic and other languages so I found it easy to do. I can't help with a 'tutorial' but here is a small (looks bad) outgauge source.
ExampleGaugeSource.rar
I used oksocket by RayOK.
' okSocket, a self-subclassing winsock 2.2 vb6 user control by RayOK ([email protected]) ' ucSubclass by [email protected] ' and most winsock code from Will Barden