The online racing simulator
Searching in All forums
(180 results)
riskredruM
S2 licensed

[SIZE=2][COLOR=#0000ff]Imports[/COLOR][/SIZE][SIZE=2] FullMotion.LiveForSpeed.InSim.Enums[/SIZE]
[SIZE=2][COLOR=#0000ff]Module[/COLOR][/SIZE][SIZE=2] Module1[/SIZE]

[SIZE=2][COLOR=#0000ff]Public[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]WithEvents[/COLOR][/SIZE][SIZE=2] InSimHandler [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] InSim.InSimHandler[/SIZE]

[SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] Main()[/SIZE]
[SIZE=2]ConnectToLFS([/SIZE][SIZE=2][COLOR=#a31515]"127.0.0.1"[/COLOR][/SIZE][SIZE=2], 29999)[/SIZE]
[SIZE=2]Console.WriteLine([/SIZE][SIZE=2][COLOR=#a31515]"Press Enter to Exit"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]Console.ReadLine()[/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]

[SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] ConnectToLFS([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] IP [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]String[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] Port [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2][COLOR=#0000ff]Try[/COLOR][/SIZE]
[SIZE=2]InSimHandler.Configuration.LFSHost = IP[/SIZE]
[SIZE=2]InSimHandler.Configuration.LFSHostPort = Port[/SIZE]
[SIZE=2]InSimHandler.Configuration.UseTCP = [/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE]
[SIZE=2]InSimHandler.Configuration.ReplyPort = 30000[/SIZE]
[SIZE=2]InSimHandler.Configuration.Local = [/SIZE][SIZE=2][COLOR=#0000ff]True [/COLOR][/SIZE]
[SIZE=2]InSimHandler.Configuration.ProgramName = [/SIZE][SIZE=2][COLOR=#a31515]"InGame"[/COLOR][/SIZE]
[SIZE=2]Console.WriteLine([/SIZE][SIZE=2][COLOR=#a31515]"Try to connect"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]InSimHandler.Initialize(3)[/SIZE]
[SIZE=2]Console.WriteLine([/SIZE][SIZE=2][COLOR=#a31515]"Connected"[/COLOR][/SIZE][SIZE=2])[/SIZE]
[SIZE=2]InSimHandler.RequestState()[/SIZE]
[SIZE=2][COLOR=#0000ff]Catch[/COLOR][/SIZE][SIZE=2] ex [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Exception[/SIZE]
[SIZE=2]InSimHandler = [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE]
[SIZE=2]Console.WriteLine([/SIZE][SIZE=2][COLOR=#a31515]"Failed to connect "[/COLOR][/SIZE][SIZE=2] & vbCrLf & ex.Message)[/SIZE]
[SIZE=2][COLOR=#0000ff]Return[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Try[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]

[SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] InSimHandler_Updated([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] InS [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] FullMotion.LiveForSpeed.InSim.Events.State) [/SIZE][SIZE=2][COLOR=#0000ff]Handles[/COLOR][/SIZE][SIZE=2] InSimHandler.[B][COLOR=red]LFSState[/COLOR][/B][/SIZE]
[SIZE=2]Console.WriteLine(InS.Weather)[/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Module[/COLOR][/SIZE]

I know you are not very familiar with vb Syntax.
But do you know why i get an error at the Handles InSimHandler.LFSState ?
With the old LFSLib it worked.

I get the error

"Fehler 1 Die Methode "Private Sub InSimHandler_Updated(InS As FullMotion.LiveForSpeed.InSim.Events.State)" kann das Ereignis "Public Event LFSState(sender As FullMotion.LiveForSpeed.InSim.InSimHandler, e As FullMotion.LiveForSpeed.InSim.Events.State)" nicht behandeln, da sie nicht die gleiche Signatur haben."

"Not the same signatur"

riskredruM
S2 licensed
Quote from Gai-Luron :I saw that you use also c#, what do you think about add your inGame in LFSRelax? Look at my source and say me what do you think about the possibility to add your prog. If you want!!

reguards

Gai-Luron

Nice idea, but it´s written with vb2005.
Only the AnalogGauges are written in c++. Normaly I´m forced to use vb.

greets.
riskredruM
S2 licensed
Nice to have my spotter again.
And it works fine with other apps that use the same port.


Quote from FL!P :I'd like the ability to display extra information, like InGame does, and being able to show/hide this information via hotkey(s) (I'd love InGame if it wasn't that buggy, but unfortunately it looks like it's been dropped)

It´s not dropped, it´s paused. But now that AnalogGauges are ready to release as 1.0 i will go on with InGame.
Last edited by riskredruM, .
riskredruM
S2 licensed
Quote from Dudles :.... BTW : The position saving stuff isn't working here... the dials go back to the original position... what's happening ?

Do you have the last d3d8.dll ?
Please test this one if it works.

http://www.lfsforum.net/showthread.php?p=486748#post486748

In one version there was this bug. But I don´t know in which.

I will release version 1.0 soon.
riskredruM
S2 licensed
I made 2 gauges. I choose the slowest and fastest car.

UF1
BF1

Just unpack to your LFS\gauges Folder. If necessary make a backup of existing gauges.
riskredruM
S2 licensed
Quote from screama :im workin on gauges for every car with correct rpm/speed

Great. When they are finished, may I can release them with the d3d8.dll ??
riskredruM
S2 licensed
Quote from sosna :I firstly tried using pitspotter with 0.5 X version but it said connection timeout even though i did what i was supposed to do.

Yes i overwrote the old .dll with the new one and now no crashing there,but still no visible gauges.I dont want to be a pain in the ass so i can understand if u give up helping.I too am feed up with it!I still can use succesfully the drift gauge which is something.Could u please post your cfg so i could notice any values that are different in mine.Maybe i made changes that blocks the thing of working.I want to really thank you for all the help no matter of the result!

You can´t change anything in cfg.txt that blocks this app. Try to start LFS with the command line. Something like this ""C:\Spiele\LFS X\LFS.exe" /insim=29999" -- then you connect to LFS over TCP. Look if you get the starting text in LFS. "Welcome to ...blabla."
If so, you have connection. Then look if all gauges folders are there.

LFS
--Gauges
----GaugesFXR
----GaugesUFR
...

and if each Gauges Folder contains the gauges.ini.

If you get in the car there have to be a line put out like this "Loaded Values for Car"
riskredruM
S2 licensed
Quote from steve :Hey thanks, but it only seems to make the gaueqs show in a res over 1280x960 even if I try to move them and the gauges still don't cycle

But they move to the right normally now? lol

I'll wait for an update perhaps thanks sir.

Unpack this in your LFS Folder and you can cycle between the gauges with strg + PageUP - PageDown.
Even if your reolution is smaller you can adjust the gauges by moving and save them with strg+pos1 (home). But only the gauges that are stored for your actual Car. If the Gauges are to big. Try to change the Width_Scale and Height_Scale to -1 or lower than 1.
riskredruM
S2 licensed
Quote from sosna :Everything done but,now when i launch LFS it crashes ,before even the opening screen.If i put the values to what they where before its all ok.Also insim port doesnt seem to work.I m saying this because the pit spotter that needed the insim port also it didnt work so i guess i do something wrong.Im a newbie here so sorry for the silly questions and a big thanks for your help!

When you are using Pitspotter with success you are running LFS V (??)
Have you installed the last d3d8.dll (0.17) ? It won´t crash anymore.
riskredruM
S2 licensed
Quote from steve :I cant seem to get the gauges to cycle with ALT and this is what happen when I try to move the gauges to the right how can I cycle the other gauges? thanks

Please try the newest d3d8.dll to move the gauges correctly. It´s 0.17.
I have to add the ALT Feature again.....sorry.
riskredruM
S2 licensed
Quote from Dudles :in S2k gauges, there's a progress bar that comes up... i was going to make a needle and put a hole in the background... so it would appear just where iot should be... it isn't rounded... so it's impossible to set um the needle without messing everything up... unless i could put the bkg in front of the needles... gonna think about it here...

pic of the S2k Cluster :





see ? a lot complicated to do but some nice gauges to have...

Perhaps this could help you, if yes i have to do some more work.

Attention. In the zip is the gaugesFXR Folder. Remember to make Backup if necessary.

Good night folks.
riskredruM
S2 licensed
Quote from sosna :Until now i used drift gauge.The thing is i tried all suggested but still not working.I already have a .dll from the drift gauge should i overwhite it?This is my cfg

If you want to use this gauges you have to overwrite it. But you can make a backup by renaming the existing dll. (d3d8_drift.dll f.e.)

No need to change cfg.txt if you start LFS with the parameter "/insim=29999" (see first post).

If you don´t want to you have to change some lines in your cfg.txt.

OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 30000
OutGauge ID 0
riskredruM
S2 licensed
Quote from Dudles :in S2k gauges, there's a progress bar that comes up... i was going to make a needle and put a hole in the background... so it would appear just where iot should be... it isn't rounded... so it's impossible to set um the needle without messing everything up... unless i could put the bkg in front of the needles... gonna think about it here...

pic of the S2k Cluster :





see ? a lot complicated to do but some nice gauges to have...

Ok...I see.... they are realy nice

Maybe i can set a parameter if Backround is in front of all gauges. If it helps you.
riskredruM
S2 licensed
Quote from Dudles :could you do something that allow us to choose the order of the gauges ? Like in the gauges.ini if the background is first, everything else appears "over" it... because to make S2k gauges, i would need the needles to appear behind the background... so it could be shown as a progress bar, just like in the S2k gauges...

Sorry, but no. The order is set in the code. First comes -- first draw.

Did you try to make a black needle that covers the lights.



Update .... see first post.
riskredruM
S2 licensed
Yes.....sorry guys. I am realy sick at the moment so i could not work on it.

Last thing I included was displaying the values digital (Numbers).
Then there is the posibility to let the gauges change there dimension depending on values to make "digital" Gauges. I think i will release next version this evening when I manage to get out of bed.

Sorry ....
riskredruM
S2 licensed
@Screama.......meintest du das so in der PM ??
riskredruM
S2 licensed
Update, see first post. It might be not the font you want. But now you can set value for font.
Added also Gear text. Same procedure. Look at example in Download 0.16.
riskredruM
S2 licensed
Quote from Dudles :It's gonna be very good if someone finds a font that is just like the watches' numbers... like the gear in your gauges... to be just like in the real car...

Like this ??

Will release it this evening.
riskredruM
S2 licensed
Quote from screama :Just redid my BF1-Gauges.... really nice imo

neeext car

And where is the Download ??
riskredruM
S2 licensed
Quote from [RCG]Boosted :crashed right at the start.
but doesnt matter anymore as 0.15 works

just gotta fix the stuff since i only have a round gear square floating in the left of my screen

*edit* after 1 start the 0.15 didnt work anymore, but the 0.14 does now

no problems now but a bit strange

If 0.15 works and 0.14 not there are mistakes in the gauges.ini. If you had started 0.15 and change car the values were saved and are right now.

If LFS crashed at start there must be mistakes in gauges.ini for UF1.

Please check if there are no "," set for "." and if all values are given.

f.e i post my gauges.ini for UF1.
riskredruM
S2 licensed
Quote from riskredruM :Did LFS crashes at the start or later ?
Could you post your gauges.ini for UF1 Car please.

Test the 0.15 please if LFS crahes ??
riskredruM
S2 licensed
Quote from [RCG]Boosted :of course i did.
extracted 0.12 first, then overwrote the existing dll with the one from the 0.14 package.

the folders for each car are there.

Did LFS crashes at the start or later ?
Could you post your gauges.ini for UF1 Car please.
riskredruM
S2 licensed
Quote from riskredruM :
*To Start*
- if you are new to this tool first download ver 0.12 and then the 0.14.
- if you just have 0.12 you only have to download 0.14.

Did you Read this ??

There have to be a gauges Folder with a Folder for each car within.
riskredruM
S2 licensed
Quote from BranislavS :OutGauge Mode 2 <=================
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 30000
OutGauge ID 0

That´s one way. The other way is to start LFS with /insim=29999 parameter.
for example "c:\games\LFS\LFS.exe" /insim=29999


Port 29999 is the TCP Port.
Port 30000 is the UDP Port (where the speed and RPM)
riskredruM
S2 licensed
Quote from Dudles :Can you make a way for us to have a Digital Speedo ? is it possible to pot a "refresh value" just like normal cars, like a delay ? ( the speedo refreshes every 1 second for example ). because I want to make S2000 gauge cluster but it has only a digital speedo... and with yours it's impossible to make it. Thanks and sorry to bother again.

I have implement it for next Update. It works but i have to do the gauges.ini stuff. There will be the speedneedle_direction=2 value which set speedo to digital. If speedneedle_direction is 2 you have to set values for position, font, Height, color. If speedneedle_direction is set to 0 or 1 no Font Value is needed. I did that for not changing the gauges.ini format again.

I will release it tomorrow evening. Now i am to :sleep2::insane:

Once more. If you have gauges that works fine. Please send it to my e-mail. With planed carname. [email protected]

Cause i think we are not far away from release 1.0. And i want to have a complete Pack with gauges for each car.
FGED GREDG RDFGDR GSFDG