The online racing simulator
Searching in All forums
(385 results)
kyler
S2 licensed
But it was hilarious!
kyler
S2 licensed
Lol. By the way thats not me in the video its my werid friend... I thought it was funny.
Epic Drift Skills
kyler
S2 licensed
http://www.youtube.com/watch?v=Y1tAOXj9xa0 this is not me its just a video friend sent me to waste 10 secs of my life so i thought i'd give yall something to laugh at too. His lfs name is DrftrBoy and his username is goodboy735.
kyler
S2 licensed
Have you tried adjusting the focus on the projector lens?
kyler
S2 licensed
Got a tutorial on how to convert this from console to an app. ?

Thanks, Kyler
kyler
S2 licensed
Quote from DarkTimes :I don't have a VB version, but here is a simple C# example of how to receive OutGauge packets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;

namespace OutGauge
{
class Program
{
const int BufferSize = 1024;
const string Host = "127.0.0.1";
const ushort Port = 30000;

static void Main()
{
// Create UDP socket.
Socket socket = new Socket(
AddressFamily.InterNetwork,
SocketType.Dgram,
ProtocolType.Udp);
byte[] buffer = new byte[BufferSize];

try
{
// Create EndPoint for LFS and bind the socket to it.
IPEndPoint endPoint = new IPEndPoint(
IPAddress.Parse(Host),
Port);
socket.Bind(endPoint);

while (true)
{
// Receive packet data.
int received = socket.Receive(buffer);
if (received > 0)
{
// Copy data from buffer into correctly sized array.
byte[] data = new byte[received];
Buffer.BlockCopy(buffer, 0, data, 0, received);

// Packet received...
OutGaugePack packet = new OutGaugePack(data);
OutGaugePacketReceived(packet);
}
else
{
Console.WriteLine("Lost connection to OutGauge");
break;
}
}
}
catch (SocketException ex)
{
Console.WriteLine("Socket Error: {0}", ex.Message);
}
}

static void OutGaugePacketReceived(OutGaugePack packet)
{
// Do stuff with packet etc..

Console.WriteLine(packet.RPM);

if (packet.DashLights.HasFlag(DashLightFlags.DL_SHIFT))
{
Console.WriteLine("Shift-light on!");
}
}

class OutGaugePack
{
public TimeSpan Time { get; private set; }
public string Car { get; private set; }
public OutGaugeFlags Flags { get; private set; }
public int Gear { get; private set; }
public int SpareB { get; private set; }
public float Speed { get; private set; }
public float RPM { get; private set; }
public float Turbo { get; private set; }
public float EngTemp { get; private set; }
public float Fuel { get; private set; }
public float OilPressure { get; private set; }
public float OilTemp { get; private set; }
public DashLightFlags DashLights { get; private set; }
public DashLightFlags ShowLights { get; private set; }
public float Throttle { get; private set; }
public float Brake { get; private set; }
public float Clutch { get; private set; }
public string Display1 { get; private set; }
public string Display2 { get; private set; }
public int ID { get; private set; }

public OutGaugePack(byte[] data)
{
Time = TimeSpan.FromMilliseconds(BitConverter.ToUInt32(data, 0));
Car = ASCIIEncoding.ASCII.GetString(data, 4, 4).TrimEnd(char.MinValue);
Flags = (OutGaugeFlags)BitConverter.ToUInt16(data, 8);
Gear = data[10];
SpareB = data[11];
Speed = BitConverter.ToSingle(data, 12);
RPM = BitConverter.ToSingle(data, 16);
Turbo = BitConverter.ToSingle(data, 20);
EngTemp = BitConverter.ToSingle(data, 24);
Fuel = BitConverter.ToSingle(data, 28);
OilPressure = BitConverter.ToSingle(data, 32);
OilTemp = BitConverter.ToSingle(data, 36);
DashLights = (DashLightFlags)BitConverter.ToUInt32(data, 40);
ShowLights = (DashLightFlags)BitConverter.ToUInt32(data, 44);
Throttle = BitConverter.ToSingle(data, 48);
Brake = BitConverter.ToSingle(data, 52);
Clutch = BitConverter.ToSingle(data, 56);
Display1 = ASCIIEncoding.ASCII.GetString(data, 60, 16).TrimEnd(char.MinValue);
Display2 = ASCIIEncoding.ASCII.GetString(data, 76, 16).TrimEnd(char.MinValue);

if (data.Length == 96)
{
ID = BitConverter.ToInt32(data, 92);
}
}
}

[Flags]
enum OutGaugeFlags
{
OG_TURBO = 8192,
OG_KM = 16384,
OG_BAR = 32768,
}

[Flags]
enum DashLightFlags
{
DL_SHIFT = 1,
DL_FULLBEAM = 2,
DL_HANDBRAKE = 4,
DL_PITSPEED = 8,
DL_TC = 16,
DL_SIGNAL_L = 32,
DL_SIGNAL_R = 64,
DL_SIGNAL_ANY = 128,
DL_OILWARN = 256,
DL_BATTERY = 512,
DL_ABS = 1024,
DL_SPARE = 2048,
}
}
}


Is there a way to convert this from a Console to Windows App?

I'm new to programing sorry for all the questions. I'm slowly learning =)

Thanks, Kyler
kyler
S2 licensed
Does anyone have a tutorial on how to update this or does someone have a tutorial on how to make a UDP socket and receive the packets? Thanks.
kyler
S2 licensed
Very nice downloading now can't wait to try it.
kyler
S2 licensed
Quote from Fire_optikz001 :Hello Everyone,
Me and a few friends of mine have started a hosting company we are selling 47 slot servers for $3.76. we have a test server up the name is "SuperServerz" please fell free to check it out

Our site is SuperServerz.tk (will be up asap)

Our server is located on east coast of USA

Server Specs:
Windows Server 2003
1.5GB RAM
Intel Xeon 2.0 ghz processor
1GBPS connection

might be a few lag issues the first couple days while we get the small things set up we only expect a small lag bump

http://superserverz.tk/

Thanks,
SuperServerz

1GBPS? didn't know that was possable...
kyler
S2 licensed
Hey sorry for the bump but i'm having trouble with the Distance from officer. is there anyway i can make it update so i can do Distance: distance from officer? Well heres my code. Thanks for the help.
//chase button
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsOfficerORCadet == 1)
{
InSim.Send_BTN_CreateButton("^1Condition: " + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].ChaseCondition), Flags.ButtonStyles.ISB_DARK, 5, 41, 18, 116, 153, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsBeingChased == 1)
{
InSim.Send_BTN_CreateButton("^1Distance: " + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].DistanceFromOfficer), Flags.ButtonStyles.ISB_DARK, 5, 41, 18, 116, 153, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsBeingChased == 0)
{
InSim.Send_BTN_CreateButton("^2Not Being Chased!", Flags.ButtonStyles.ISB_DARK, 5, 41, 18, 116, 153, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
}

kyler
S2 licensed
I know. i was just asking if he knew kinda like when. a eta.
kyler
S2 licensed
Any news when the release is coming of the new update?
kyler
S2 licensed
Any new? when to expect a release?
kyler
S2 licensed
Thanks dude that will be really cool! i cant wait i have some BIG! plans but thanks for letting us know hope it comes soon
kyler
S2 licensed
yeah because atm the DLL is only set for getting OG_Headlights, OG_Flashers (just examples) so u would need to redo the dll to read the DL_Headlights and stuff...
kyler
S2 licensed
Anyone? Please help me.
kyler
S2 licensed
I'm using VB 2008 u have any suggestion? on doing that?
kyler
S2 licensed
Does anyone know how i can make the LFS_External.dll accept the new outgauge flags? or is there a LFS_External.dll for z25?
Last edited by kyler, .
kyler
S2 licensed
You might just need to make a username file. Make a list of usernames that members from past experience if u just use [SC] then if anyone came into the server and added [SC] to there name they could wipe the server. But then again idk about lapper so it might have a protection. Just a tip
kyler
S2 licensed
Quote from Flame CZE :Oh, there was a discussion about this long time ago. I can't see a problem with it and I'd say - it doesn't show the whole car body, axles, suspensions, why should it show the brakes?

It showed it before they updated the rims
kyler
S2 licensed
Im not sure if someone has posted this before but on the custom view where i just shows the wheels the inner part of the wheels are not shown anymore. Like the brake disc, padz and the back side of the rim isnt show or drawing what ever you call it. Just thought id let you know. Post if u need to know more info. This is in patch z22
kyler
S2 licensed
Quote from Weeksy :when I open it I get "Compenent "isAnalogLibrary.ocx" or one of its dependencies not correctly registered: a file is missing or invalid."

Search... Just scroll up to my other post u can dl the file...
kyler
S2 licensed
I have LFS external and LFSLib but with LFSLib i can get it to do out gauge... but LFS external i can get the flags sorted...
Outgauge Libs
kyler
S2 licensed
Can someone post links to outgauge libs? please thanks
kyler
S2 licensed
u can do it with lapper Easyly
FGED GREDG RDFGDR GSFDG