The online racing simulator
Searching in All forums
(10 results)
marius.a99
S3 licensed
Well, I found solution for my problem and I solved it but there is still a problem with direction.
How direction works in LFS? If I wait a little my direction goes to 0 every time
IS_MCI packet
marius.a99
S3 licensed
Hello everyone! I started a little project and I got stuck at MCI packet. I used from iCS Source position/location for pit exit(wrong exit) for BL1 map but i'm not sure it works fine because insim send the message before passing the line from pit exit
// Pit EXIT
if (pathx >= -27 && pathx <= -24 && pathy >= 65 && pathy <= 67)
{
if (Conn.ExitZone == 0)
{
if (direction > 330 || direction < 20)
{
MsgAll("^7>> " + Conn.NoColPlyName + " - ^7wrong exit");
Conn.ExitZone = 1;
}
}
}

Or maybe my code from binded event isn't good? It's the same from iCS too.
How do you use/code this packet?
marius.a99
S3 licensed
Quote from LakynVonLegendaus :So you cannot get Product info of other players.

I don't want to do that. I'm using product info to see if the user was on demo, s1, s2 or s3 server. That's all!

Thank you guys, but I solved my little problem! Thumbs up
marius.a99
S3 licensed
It's an local app and I need that because I want to know when I saw specific user last time and where
Problem with saving data
marius.a99
S3 licensed
[EDIT]: I don't want to promote TC server, I remember only this server
Hello everyone!
I won't post all code because is useless.
My problem is when someone disconnect or anything else, the program sometimes save info as I want and sometimes doesn't work.
When it works, the written line is: [TC] Cruise Server, S2 server, 20.01.2023 - 14:37
and when doesn't work, the written line is just: ^7, ^6 server^7, 20.01.2023 - 14:37
So sometimes my program doesn't write host name and game version


public string Database = @"Database";
public string Players = @"Players";
public string HostName;
public string GameVersion;

private void ClientLeavesHost(InSim insim_var, IS_CNL CNL)
{
try
{
clsConnection Conn = Connections[GetConnIdx(CNL.UCID)];

switch (CNL.Reason)
{
case "LEAVR_KICKED": // User Kicked
case "LEAVR_BANNED": // User Banned
case "LEAVR_CPW": // Cheat protection wrong.
case "LEAVR_LOSTCONN": // Lost Connection
case "LEAVR_TIMEOUT": // Timed out
case "LEAVR_DISCO": // Disconnected
case "LEAVR_SECURITY": // Out-of-sync (OOS) or cheat protection
case "LEAVR_OOS": // Out of sync with host
case "LEAVR_JOOS": // Join OOS (initial sync failed)
case "LEAVR_HACK": // Invalid packet

StreamWriter Sw = new StreamWriter(Database + "\\" + Players + "\\" + Conn.Username + ".txt");

Sw.WriteLine(Conn.HostName + "^7, ^6" + Conn.GameVersion + " server^7, " + System.DateTime.Now.ToString("dd/MM/yyyy - HH:mm"));
Sw.Flush();
Sw.Close();

break;

}
}
catch(Exception ex)
{
insim.Send(new IS_MSL { Msg = "^1CNL - " + ex.Message});
}
}

private void InSimVersion(InSim insim_var, IS_VER VER)
{
try
{
foreach (clsConnection Conn in Connections)
{
Conn.GameVersion = VER.Product.ToString();
}

catch(Exception ex)
{
insim.Send(new IS_MSL { Msg = "^1VER - " + ex.Message});
}
}

marius.a99
S3 licensed
Quote from bmw318ise30 :i know c# and i have insims

Do you want to share something with me please?
First C# insim
marius.a99
S3 licensed
Hello everyone!
Does anyone want to share his first c# insim? (I already saw iC Insim and others...)
I want to learn more about insim and coding because I want to open my cruise server.
marius.a99
S3 licensed
Is this library up to date?
marius.a99
S3 licensed
Ok, I understand now! Thank you guys! (:
New with S3 licence
marius.a99
S3 licensed
Hello! I just bought my S3 licence and I want to ask you about something.
When i go to Account Status it says: "Number of available unlocks : 3".
I unlocked LFS and now I have 2 unlocks left.
What's this? Isn't for life this S3 licence? When I have 0 unlocks left I have to buy S3 again or what?
Please explain me and sorry for my bad english!
Thanks! (:

`Marius
FGED GREDG RDFGDR GSFDG