The online racing simulator
OutGuage - for T6... comments wanted!
1
(29 posts, closed, started )
OutGuage - for T6... comments wanted!
Right, I've quickly coded up this OutGuage system by duplicating OutSim and changing it. It's needed for anyone who wants to make an external dashboard. I have tried to include all the info you would want on the dash. Please let me know if anything's missing.

It works like OutSim, you can start it with the cfg.txt or by sending an InSim packet. Then the viewed car will send the following information in a UDP packet, at the specified rate.


#define OG_KM 1
#define OG_BAR 2
#define OG_SHIFT 4
#define OG_HANDBRAKE 8
#define OG_TC 16
#define OG_REDLINE 32
#define OG_PITSPEED 64

struct OutGuagePack
{
unsigned Time;

char Car[4]; // Car name
word Flags; // Combination of OG_FLAGS
byte Gear; // Reverse:0, Neutral:1, First:2...
byte SpareB;
float Speed; // M/S
float RPM; // RPM
float Turbo; // BAR
float EngTemp; // C
float Fuel; // 0 to 1
float Spare1;
float Spare2;
float Throttle; // 0 to 1
float Brake; // 0 to 1
float Clutch; // 0 to 1
char Display1[16]; // Usually Fuel
char Display2[16]; // Usually Settings

int ID; // if GameID is specified
};

That is awesome news.
...btw, isn't it "gauge"?

EDIT:
How about adding the tyre condition, temp/suspension damage information?
Not exactly dashboard info but it could be used for some external "pitcrew" like app that gives you damage rep and such instead of having to cycle through the overlays to check things out...

EDIT 2:
Oh yeah - and the pit limiter.
I don't see the direction indicators there...?
:doh:


I'm assuming we'd need a seperate program to take those UDP jobbies and send them to a port in the desired manner

BTW is it too early to ask for an oil pressure guage? it doesn't have to really do anything (yet) but maybee move a little when you rev

good plan tho scawen been waiting for something like this to complicate my cockpit setup


edit: and headlights (all 3 kinds would only be needed once we get real-time lighting)
Ok, indicators, headlights, full beam and oil pressure added to the GAUGE system!

(pit limiter is already there - OG_PITSPEED)
#6 - Si_Si
Sounds very interesting. I'd add instructions tho lol
Quote from Si_Si :Sounds very interesting. I'd add instructions tho lol

Check the docs/Insim.txt file in your LFS installation directory.
#8 - Si_Si
Quote from xaotik :Check the docs/Insim.txt file in your LFS installation directory.

That document means nothing to meillepall lol
IRL when you have problems with your car, you can press in the console of the car on a triangle and then both indicators go on, will that be in the car, and will it flas when it's pressed?
p.s. maybe we need something like windscreenwiper fluid almost empty thing....[it's also a hint for adding wipers] [the previous hint is also a hint for adding rain ]

oh yeah, so if I get it right there will be better lights?
Hazard warning lights
#11 - axus
Awesome - I've been looking forward to this for a while, because it had been mentioned before. One quick question, will there be a way to put it on the car in LFS or will one need an enternal display for the info on this dash?
nice new feature !
Yes hazard warning is included, I will light the L and R indicators.

Axus, this is for external programs, to make external dashes, or anything else they want to do with this info. It's not for LFS internal use. This info is already displayed on the dash inside LFS so I'm not really sure what you mean anyway.

BTW, it is now renamed to "OutGauge". Funny that I've always got that spelling wrong.
Quote from Theafro :Hazard warning lights

yeah, that!
Quote from axus :One quick question, will there be a way to put it on the car in LFS or will one need an enternal display for the info on this dash?

Take it out of LFS just to ... put it back in LFS?
You could do it by hijacking d3d, like Kegetys does his Ghost Car app... but other than an exercise in programming it wouldn't really help much. This is more for a physical cockpit deal (but it can also be used for some realtime basic telemetry from insim apps).
#16 - axus
Quote from xaotik :Take it out of LFS just to ... put it back in LFS?
You could do it by hijacking d3d, like Kegetys does his Ghost Car app... but other than an exercise in programming it wouldn't really help much. This is more for a physical cockpit deal (but it can also be used for some realtime basic telemetry from insim apps).

Well this could allow users to make pretty looking dashes for the GTR cars without it taking as much time for Scawen...
Quote from Scawen :Then the viewed car will send the following information in a UDP packet, at the specified rate. [...]
float Fuel; // 0 to 1
char Display1[16]; // Usually Fuel
char Display2[16]; // Usually Settings[...][/CODE]

Does that mean you can view Fuel from other racers while spectating??
Quote from axus :Well this could allow users to make pretty looking dashes for the GTR cars without it taking as much time for Scawen...

The amount of trouble to do that properly using this is almost more than editing the current models in the game.
Quote from GeForz :Does that mean you can view Fuel from other racers while spectating??

No, the standard rules for displaying values are also applied to the values sent to OutGauge.
I've looked the spec over a couple of times and the only thing that's not in there (and strictly speaking not Guage info anyway) would be the info from F9-F12 with emphasis on F9 and F10. Adding that would be icing on the cake. Either way, that information is going to fantastic. I've got a serial LCD that I've been toying with and I'm also looking into using a WinCE device (way overkill, but it opens up so much). I think outGauge will spawn a lot set of new unofficial add-ons.

Thanks Scawen!
damn...if i only have more time for doing some nice tool...
omg...damn...

(sorry, but i'd love doing some thing with that, but there are so many to do's)

but if i got time, expect something from me
i have an idea already
Quote from sdether :I've looked the spec over a couple of times and the only thing that's not in there (and strictly speaking not Guage info anyway) would be the info from F9-F12 with emphasis on F9 and F10. Adding that would be icing on the cake. Either way, that information is going to fantastic.

Thanks. In fact F11 is there - Display2 - provided you are in a Formula car - because live settings are in real life done on the steering wheel (in some cars). Though F11 is quite lacking in LFS at the moment, needs live diff settings and some other things.

There's a case for F12 on the dash in LFS, though in real life you'd just talk on the radio about pit settings.

F9 and F10 I would suggest as an OutSim extension - as you say they aren't anything to do with guages - they are quite fake really, but as they are car state things they should probably be in an extended OutSim packet - that's debatable anyway - not for version U though.
i see, throttle and brake is also availabe...coOL
so making a screen like in the FIA F1 is now possible...how coOL!

scawen...what shall i say...
don't find words
I see EngTemp in there. What about Tyre temperatures and wear? Altough I guess it should then be renamed to OutTelemetry, and I dont think it is the point of this OutGauge thing

tbh, I think the reason for not putting tyre info in there is the size of the packets 48 tyre-simulationpoints, right?

Edit: maybe I should read the complete topic before frantically rushing for the Post Reply button
Quote from axus :Well this could allow users to make pretty looking dashes for the GTR cars without it taking as much time for Scawen...

I guess waiting just a little bit longer until Eric has done new GTR interiours would be the best option
1
This thread is closed

OutGuage - for T6... comments wanted!
(29 posts, closed, started )
FGED GREDG RDFGDR GSFDG