The online racing simulator
Searching in All forums
(70 results)
LFS Marius LFS
Demo licensed
Thank you but i solved the probelm. I just downloaded another Dx9 for x64 bit Smile
Can't run LFS :/
LFS Marius LFS
Demo licensed
Hello, last week I installed again windows 7 ultimate on my PC (I had x32 and now I have x64 bit).
When I started lfs O forgot to install DirectX9 Big grin



After downloading Dx9 from lfs site when I try to install I get an error Frown Shrug




I don't know how to solve that Frown Help me please!
LFS Marius LFS
Demo licensed
Hello, what are you using goys to create the dashboards?
I want to create my own dash but in photoshop is hard with layers.
LFS Marius LFS
Demo licensed
Can i have this file please? I want more documentation Omg omg omg
How to show how much time you did from 0 to 100 km/h ?
LFS Marius LFS
Demo licensed
Good morning! Smile
It is someone here who has an idea how to do that?
Thanks Smile
LFS Marius LFS
Demo licensed
Good morning. Is possible to know what skin is using a player(skin name) via command(!skin username) ?
LFS Marius LFS
Demo licensed
Nice Big grin Thumbs up
LFS Marius LFS
Demo licensed
Of course. Smile
LFS Marius LFS
Demo licensed
You mean to use InSim packet IS_NPL to receive informations at OutGauge ?
Sorry for my bad english...
LFS Marius LFS
Demo licensed
I solved the problem, thank you guys Smile
I have one more question...how to know if abs is on or is switched off ?
LFS Marius LFS
Demo licensed
Quote from Eclipsed :The skin of your interest is for XFR - an S2 car,which is not legally accessible for a demo racer.

Yes I know but with few changes, can be used for XFG Smile
LFS Marius LFS
Demo licensed
Quote from psamaniacs :Hey I hope you like my new skin.
Peugeot 308 Racing Cup Smile

Can you post the skin here please ? Omg omg omg Rofl
LFS Marius LFS
Demo licensed
That's what I'm looking but I never worked with OutGauge.
I must connect to game like InSim ?
Car gear
LFS Marius LFS
Demo licensed
Hey, is there any way to know in which gear is the car ? (gear n / gear 1 / gear r)

Thank you Thumbs up
LFS Marius LFS
Demo licensed
Quote from DarkTimes :The IS_CON packet doesn't contain the player name, you need to watch for the IS_CPR (Connection / Player Rename) packet and then update the player's name in your list of active players.

Really I do not know how to do that. You could give an example, please?
LFS Marius LFS
Demo licensed
How to update player name in IS_CON packet if he change his name ?
In my insim if he change the name and hit/crash someone the name is same.
LFS Marius LFS
Demo licensed
Well, now insim show me car contacts but after 5- 10 minutes after insim start. And when a player change the name insim don't update the name, just keep same name.
Any help please ? Does anyone have this problem too, or something like that ?
LFS Marius LFS
Demo licensed
Hello guys, early i saw here a photo with XRG(i think) when the player was out of car. Does anyone know in what page is that photo ?
LFS Marius LFS
Demo licensed
I don't know why don't work, this code work very nice when i connect insim to server
LFS Marius LFS
Demo licensed
I renamed var PlayerA = _players[CON.A.PLID].PName; and var PlayerB = _players[CON.B.PLID].PName; to var PlayerA = _players[CON.A.PLID]; and var PlayerB = _players[CON.B.PLID]; to see what returns but insim don't send the message
LFS Marius LFS
Demo licensed
And how to do that ? I don't know all about programing :|
Last edited by LFS Marius LFS, .
...
LFS Marius LFS
Demo licensed
Quote from Gutholz :; not , ?

after
Flags = InSimFlags.ISF_MSO_COLS | InSimFlags.ISF_CON | InSimFlags.ISF_LOCAL | InSimFlags.ISF_OBH,

is another code like IName = ""
Winter Poems
LFS Marius LFS
Demo licensed
Does anyone know some winter poems? I really need that for school Big grin
Any response would be appreciated Smile
LFS Marius LFS
Demo licensed
Quote from DarkKostas :The code is ultra NOT optimised. The "MCI_Update(MCI.Info[i].PLID);" should be into the first loop, and actually the whole function would be better to be moved at your MCI packet cause now most of your code is dublicated.

But what i need to remove to not be duplicated ?
LFS Marius LFS
Demo licensed
Good morning... i have this code but i have some errors:



private void MCI_CarInformation(InSim insim, IS_MCI MCI)
{
try
{
int idx = 0;
for (int i = 0; i < MCI.NumC; i++)
{
idx = GetConnIdx2(MCI.Info[i].PLID); //They aren't structures so you cant serialize!
Connections[idx].compcar.AngVel = MCI.Info[i].AngVel;
Connections[idx].compcar.Direction = MCI.Info[i].Direction;
Connections[idx].compcar.Heading = MCI.Info[i].Heading;
Connections[idx].compcar.Info = MCI.Info[i].Info;
Connections[idx].compcar.Lap = MCI.Info[i].Lap;
Connections[idx].compcar.Node = MCI.Info[i].Node;
Connections[idx].compcar.PLID = MCI.Info[i].PLID;
Connections[idx].compcar.Position = MCI.Info[i].Position;
Connections[idx].compcar.Speed = MCI.Info[i].Speed;
Connections[idx].compcar.X = MCI.Info[i].X;
Connections[idx].compcar.Y = MCI.Info[i].Y;
Connections[idx].compcar.Z = MCI.Info[i].Z;
}
for (int i = 0; i < MCI.NumC; i++) //We want everyone to update before checking them.
{
MCI_Update(MCI.Info[i].PLID);
}
}
catch { }
}


This "MCI_Update(MCI.Info[i].PLID);" is for using heawy's reply (https://www.lfs.net/forum/thread/88537) but i have 5 errors at Direction, Heading, Lap, Node and Speed :|
The error is: Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)
I tried to rename ushort to int (0 errors but the code don't work)

EDIT: here is compcar
public struct CarPack
{
public short AngVel;
public ushort Direction;
public ushort Heading;
public CompCarFlags Info;
public ushort Lap;
public ushort Node;
public ushort Speed;
public byte PLID;
public byte Position;
public int X;
public int Y;
public int Z;
}

public CarPack compcar = new CarPack();

Last edited by LFS Marius LFS, .
FGED GREDG RDFGDR GSFDG