The online racing simulator
OutGauge Help.
(16 posts, started )
OutGauge Help.
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

I see in the "Virtual LFS Dashboard" it does not do this with the gauges...

Preview Screenshot
Any Help Appriciated
-Tiger
#2 - amp88
What delay between sampling data are you using? E.g. 50ms (20Hz), 5ms (200Hz).
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?
I have the same problem with my vb6 outGauge.

Not entirely sure what causes it, but it seems to be updating the components at different times.

A friend suggested frame buffering might sort it, but I have no idea how do implement it and my research came up with nothing straightforward.

Looks like there's some source code for Virtual LFS Dashboard so I'll have to take a look at some point to see if that's done differently.
Yep, I will look into it because VB6, VB2008 is the only language I know real well that is possible to do it with.

I made my own very simple one, and started on a bigger project but I really need some other way of drawing the gauges..


Download

EDIT: uses port 56551
OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 56551
OutGauge ID 0

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
i like the general design of yours better than the reference one you talked about that i just happened to look at
which one?
I have:

and a newer one im working on which is a representation of a Honda Civic TypeR dashboard


or was it Degats - ?
Quote from David_Tiger :which one?
I have:

and a newer one im working on which is a representation of a Honda Civic TypeR dashboard


or was it Degats - ?

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

http://www.davidtiger.co.uk/lfs/needlegauge.rar

use the following setting for the best usage.

OutGauge Mode 2
OutGauge Delay 2
OutGauge IP 127.0.0.1
OutGauge Port 56551
OutGauge ID 0

Quote from logitekg25 :and no offense degats, but i cant even tell what every gauge does

None taken

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
Quote from Degats :
It was mostly just me playing around with outgauge

how hard is it to make gauges? do you have to be a code expert, or do you just follow the 'on screen instructions' that i hope are there
Quote from logitekg25 :or do you just follow the 'on screen instructions' that i hope are there

ahh, if only it was that simple

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.

Have fun
Quote from Degats :ahh, if only it was that simple

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.

Have fun

where do you go on your computer, just tell me what to google for a tutorial :google: how do you get it to display on the screen
i am such a noob
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

Did anyone happen to download this?

Had HDD Crash and lost a lot of sources for programs

If you have this, could you upload it

OutGauge Help.
(16 posts, started )
FGED GREDG RDFGDR GSFDG