The online racing simulator
Searching in All forums
(12 results)
LFS - OverStreet Club Promo
X-Team szluga
S3 licensed
So i guess i have another try to make something what i dont usally make.. But i try, so here is results. I was recording materials about 30min and edit took from me 3h. It's not nothing epic, just video. I hope you like it! Smile
LFS I wanna old times
X-Team szluga
S3 licensed


Im still on editing bad, but i hope you enjoyed
X-Team szluga
S3 licensed
Quote from sinanju :What is an "InSim"?

"InSim" is a protocol that allows an external program to communicate with Live for Speed. It allows you to create a socket connection with the game and to send and receive packets of data. These packets can be used to control LFS, send various commands, and request information.

Lapper is an InSim, as is Airio, Prism, etc.

If you're actually asking how to get the drift scoreboard to work with your copy of lapper, then read this post HERE.

I mean something diferent. In Live For Speed Is lapper, and insim for drift.. I drift insim works better and faster than lapper.. Its my opotion.. Sry for my language! I already have Drift insim but with my code is something wrong. One guy told me when i need to calculate angle between 2 vectors, and i dont know how. So im asking if i can turn drift lapper to drift insim..
X-Team szluga
S3 licensed
Drift Lapper To insim??
X-Team szluga
S3 licensed
Hello all racers, i have Drift Lapper, and i wanna know if i can make it to the Insim? If this is possible? And how? :/
Someone Can help?
X-Team szluga
S3 licensed
Hello, maybe someone can help me with insim, please write pm who can. About that i will pay somthing, Insim just have little problem with angles and i don't know how to fix it! Thanks Smile

Im using this code. Whats the problem??
if (C.CompCar.AngVel / 45 < 10)
{
C.NewScore = 0;
}
else if (C.CompCar.Speed / 91 < 30)
{
C.NewScore = 0;
}
else if (C.CompCar.Speed / 91 > 30 && C.CompCar.AngVel / 45 > 10)
{
if (C.CompCar.AngVel / 45 < 10)
{
C.NewScore2 += Convert.ToInt32(C.CompCar.AngVel / 360.0d);
}
C.NewScore = Convert.ToInt32(0 + (C.CompCar.AngVel / 360.0d * C.CompCar.Speed / 91) / 20);

}

C.TotalScore = 0 + (C.TotalScore + C.NewScore);
if (C.CompCar.Speed / 91 < 30 && C.CompCar.AngVel / 45 < 10)
{
C.TotalScore = 0;
C.NewScore = 0;
}
#endregion

Last edited by X-Team szluga, .
X-Team szluga
S3 licensed
Quote from Bose321 :Show us some code so we can have a look. There's no way we can help. Do you mean C++, or maybe C#?

I was using this one from lfs page, but still not working
internal void Update(Driver car)
{
if(!isOn)
return;

packetReceive++;
double speedKhm = car.GetSpeedKmh();
double angleTotraj = car.GetShorterAngleToReachTraj();
if (!started)
{
if(speedKhm > MIN_SPEED)
{
if (angleTotraj > START_ANGLE && angleTotraj < START_MAX_ANGLE)
Start(car);
}
}
else
{
//Player is Too Slow End without Score
if (speedKhm < MIN_SPEED || isLostControl)
{
End(car);
return;
}
//This will occur when orientation change is direction
//Into a perfect drift this happen only at the complete end and not much.
double oriSpeed = car.GetOrientationSpeed();
if(clockWise != (oriSpeed>0))
{
if(Math.Abs(oriSpeed) > MIN_COUNTER_ANGLE_SPEED)
{//he apply correction
counterCorrection++;
if (Math.Abs(oriSpeed) > MAX_COUNTER_ANGLE_SPEED)
{//This should mean a lost control, since is doing "S"
End(car);
return;
}
}
}

//Record Max Angle
if (maxAngleDiff < angleTotraj)
maxAngleDiff = angleTotraj;

//Process Score
ComputeScore(car);

//Find END
if (angleTotraj < STOP_ANGLE)
{
if (score > 0 && scoreTick > (MIN_DRIFT_TIME_MS / SCORE_TICK_TIME_MS))
Sucess(car);
else
End(car);
}
}
}
private void Start(Driver driver)
{
started = true;
startTime = DateTime.Now;
clockWise = (driver.GetOrientationSpeed() > 0 ? true : false);
maxAngleDiff = 0.0d;
scoreAngle = 0.0d;
startSpeed = driver.GetSpeedKmh();
scoreSpeed = 0;
score = 0;
scoreTick = 0;
counterCorrection = 0;
packetReceive = 0;
/*if(driver.IsAdmin)
{
driver.SendUpdateButton((ushort)Button_Entry.INFO_1, "^2Drift Start "+(clockWise?"":"^7-"));
driver.SendUpdateButton((ushort)Button_Entry.INFO_2, "^7Score ^3" + score);
}*/
}
private void End(Driver driver)
{
started = false;
/*if(driver.IsAdmin)
{
driver.SendUpdateButton((ushort)Button_Entry.INFO_1, "^1Drift End");
}*/
}
private void Sucess(Driver driver)
{
if (maxAngleDiff >= BONUS_ANGLE)
score *= BONUS_ANGLE_SCORE_RATIO;

Log.feature(((IDriver)driver).DriverName + ", Done Drift Score: " + (uint)score + ".\r\n");
End(driver);

//Debug think
/*if(((Driver)driver).IsAdmin)
{
((IButton)driver).SendUpdateButton((ushort)Button_Entry.INFO_2, "^7Score ^2" + score);
}*/
((Driver)driver).driftScoreByTime += (uint)score;
if (((Driver)driver).ISession.Script.CarDriftScoring((ICar)driver, (uint)score))
return;
}
private void ComputeScore(Driver driver)
{
//Scoring calculation occur only at all SCORE_TICK_TIME_MS diff.
TimeSpan timeDiff = DateTime.Now - startTime;
if (timeDiff.TotalMilliseconds / SCORE_TICK_TIME_MS < scoreTick)
return;

//How many time we calculated the score
scoreTick++;

//Calculate correction ratio
double correctionRatio = (100.0d-(counterCorrection * 100.0d/packetReceive))/100.0d;

//Gave point for Angle
double angleToReach = driver.GetAngleToReachTraj(clockWise);
scoreAngle += (360.0d - angleToReach) * SCORE_ANGLE_RATIO;

//If player goes faster then start speed WOW, if not loose a little each time
double _scoreSpeed = ((driver.GetSpeedKmh() * 100.0d / startSpeed) - 100.0d) * SCORE_SPEED_RATIO;
if(_scoreSpeed <0.0d)
_scoreSpeed += (startSpeed / 35.0d) * (double)scoreTick;
scoreSpeed += _scoreSpeed;

//All By Correction %, Can only Lower Score
score = ((scoreAngle + scoreSpeed) * correctionRatio) - ((correctionRatio-1.0d)*40.0d);

//Only for debug purpose
/*if(((Driver)car).IsAdmin)
{
((IButton)car).SendUpdateButton((ushort)Button_Entry.INFO_2, "^7Score ^3"+score);
((IButton)car).SendUpdateButton((ushort)Button_Entry.INFO_3, "^3SA ^7" + scoreAngle);
((IButton)car).SendUpdateButton((ushort)Button_Entry.INFO_4, "^3SS ^7" + scoreSpeed);
((IButton)car).SendUpdateButton((ushort)Button_Entry.INFO_5, "^3CR ^7" + correctionRatio);
}*/
}
public bool IsOn
{
get { return isOn; }
set
{
isOn = value;
started = false;
}
}
}

X-Team szluga
S3 licensed
Quote from Bose321 :How on earth should we know? Is it a self-made application, or is it something you downloaded, like a plug-in for LFSLapper?

It's not lfs lapper, it's made in C+, and my friend give his old project with this problem!
Drift insim problem
X-Team szluga
S3 licensed
Hello, i have one problem with my insim, when im drifting its working only on one side. What can be the problem?
X-Team szluga
S3 licensed
LFS - Later On (Enb test plus bad edit)
X-Team szluga
S3 licensed
X-Team szluga
S3 licensed
FGED GREDG RDFGDR GSFDG