The online racing simulator
Searching in All forums
(63 results)
heawy
S2 licensed
You cant run game on vps, there is no graphic card Big grin
heawy
S2 licensed
Maybe wrong account? Big grin
heawy
S2 licensed
I hope that, this will be the main attraction in s3...
heawy
S2 licensed
It works in MY insim, its not code to be copied and pasted...
heawy
S2 licensed
// MCI Update
private void MCI_Update(int PLID)
{
try
{
#region ' UniqueID Loader '
int IDX = -1;
for (int i = 0; i < Connections.Count; i++)
{
if (Connections[i].PlayerID == PLID)
{
IDX = i;
break;
}
}
if (IDX == -1)
return;

clsConnection Conn = Connections[IDX];
clsConnection ChaseCon = Connections[GetConnIdx(Connections[IDX].Chasee)];
clsConnection TowCon = Connections[GetConnIdx(Connections[IDX].Towee)];
#endregion

#region ' Cruise '

decimal SpeedMS = (decimal)(((Conn.CompCar.Speed / 32768f) * 100f) / 2);
decimal Speed = (decimal)((Conn.CompCar.Speed * (100f / 32768f)) * 3.6f);

Conn.TotalDistance += Convert.ToInt32(SpeedMS);
Conn.TripMeter += Convert.ToInt32(SpeedMS);
Conn.BonusDistance += Convert.ToInt32(SpeedMS);
Conn.HealthDist += Convert.ToInt32(SpeedMS);
Conn.UpgradeLicence += Convert.ToInt32(SpeedMS);

#endregion

#region ' CompCar Details '

var kmh = Conn.CompCar.Speed / 91;
var mph = Conn.CompCar.Speed / 146;
var direction = Conn.CompCar.Direction / 180;

var node = Conn.CompCar.Node;
var pathx = Conn.CompCar.X / 196608;
var pathy = Conn.CompCar.Y / 196608;
var pathz = Conn.CompCar.Z / 98304;
var angle = Conn.CompCar.AngVel / 30;
string Car = Conn.CurrentCar;



#endregion

#region ' Track B '

switch (TrackName)
{
case "BL1":

#region ' Wrong Exit fines '

{
// Pit EXIT
if (pathx >= -27 && pathx <= -24 && pathy >= 65 && pathy <= 67)
{
if (Conn.ExitZone == 0)
{
if ((!Conn.IsOfficer || !Conn.IsCadet) && !Conn.InChaseProgress)
{
if (direction > 330 || direction < 20)
{
MsgAll("^6»^7 " + Conn.NoColPlyName + " was fined ^1€500 ^7for wrong exit");
MsgPly("^6»^7 Next time you'll be kicked!", Conn.UniqueID);
Conn.Cash -= 500;
Conn.WrongWay += 1;
Conn.ExitZone = 2;
}
if (Conn.WrongWay == 2)
{
MsgPly("^6»^1 You are kicked for using WRONG exit!", Conn.UniqueID);
KickID(Conn.Username);
}
}
}
}
else
{
if (Conn.ExitZone == 2)
{
Conn.ExitZone = 0;
}
}

// Pit ENTRY

if (pathx >= -23 && pathx <= -21 && pathy >= -39 && pathy <= -35)
{
if (Conn.ExitZone == 0)
{

if (direction < 100)
{
MsgAll("^6»^7 " + Conn.NoColPlyName + " was spec & fined ^1€500 ^7for wrong entry");
Conn.Cash -= 500;
SpecID(Conn.PlayerName);
SpecID(Conn.Username);
Conn.WrongWay += 1;
Conn.ExitZone = 1;
}
if (Conn.WrongWay == 2)
{
MsgPly("^6»^7 You are kicked for using WRONG entry!", Conn.UniqueID);
KickID(Conn.Username);
}
}
}
else
{
if (Conn.ExitZone == 1)
{
Conn.ExitZone = 0;
}
}
}
#endregion

break;
}
#endregion
}
catch { }
}

For example, used in MCI update void. No need to foreach CompCar and Conn again.
Last edited by heawy, .
heawy
S2 licensed
First service pack soon, everything when released is broken Big grin Look at all new games, lol
heawy
S2 licensed
Updated yesterday and i dont see any problems here but only Pro version is safe, another versions wont give u choice in updates or Microsoft invigilation which is... horrible in 10.

I meant this all (https://imgur.com/iHge6RJ) is possible to turn off only in Pro versions.
heawy
S2 licensed
What is dirt3? You mean game Dirt 3?
heawy
S2 licensed
Dirt3?
heawy
S2 licensed
@przemek21061995 just phone as monitor
heawy
S2 licensed
You have to calibrate all axis, in your wheel profiler or/and in lfs options.
heawy
S2 licensed
Not normal, my old laptop with Dual Core 2ghz(!) with some intel HD gives me 60-100fps in all tracks, expect westhill ofc. Same is on my i3.


EDIT: full hd
Last edited by heawy, .
heawy
S2 licensed
Man, both use same language. Say where you have problem first, insim loader or events?
heawy
S2 licensed
I'm using big TV for lfs and I have same problem when resolution is wrong, with some of them it works but with few won't. I hope you understand my English maybe in resolution is your problem Big grin
heawy
S2 licensed
var Conn = Connections[GetConnIdx(MSO.UCID)];
{
if (Conn.IsAdmin == 1 || Conn.IsSuperAdmin == 1)
{
string Announce = Msg.Remove(0, +5);
InSim.Send_BTN_CreateButton("^1Admin Announcement:", Flags.ButtonStyles.ISB_DARK, 20, 50, 50, 75, 190, 255, 2, false);
InSim.Send_BTN_CreateButton("^1" + Announce, Flags.ButtonStyles.ISB_DARK, 11, 150, 70, 25, 192, 255, 2, false);
}
}

or you can use C here as other connections than admin if you want later to send it for specific player too.


var Conn = Connections[GetConnIdx(MSO.UCID)];
if (StrMsg.Length > 1)
{
if (Conn.Username.ToLower() == "heawy" || Conn.IsSuperAdmin == 1)
{
string Message = Msg.Remove(0, 4);

foreach (clsConnection C in Connections)
{
InSim.Send_BTN_CreateButton(Message, Flags.ButtonStyles.ISB_DARK, 15, 109, 55, 46, 10, C.UniqueID, 2, true);
InSim.Send_MST_Message("/rcm ^1 Admin Announcement:");
InSim.Send_MST_Message("/rcm_all");


}
}
else
{
MsgPly("^7Not Authorized", (MSO.UCID));
}
}
else
{
MsgPly("^7Invalid Command.", (MSO.UCID));
}

Last edited by heawy, .
heawy
S2 licensed
If ure looking for clear races try cargame.nl (here you have to earn points to get better cars too, mixed races are good. Elimination of bad drivers in GTR's. This does not mean that you have to lose. You have to win in your class.) and XFG/XRG S2 - Racing.
I dont see other servers where you can join to random race without calling friends.
Last edited by heawy, .
heawy
S2 licensed
Shift + z (i think) or there is still some ISB_CLICK. Click all buttons on screen and u will hear which one.
heawy
S2 licensed
You have to add close button? :o Other cruise in demo coming i see, next server for one week...
heawy
S2 licensed
Really, u cant code this? :| Will be better for you if i dont give.
heawy
S2 licensed
/cv
heawy
S2 licensed
*WE ARE WORKING WITH SAME PROGRAM*

Hello

I have a problem with my InSim, viz it confuses users. For example, the bonus is moving for a person who is in spectators, some user use !showoff command and insim is showing other user stats, when hes connecting insim says other user name "*playername* connected" etc. It does not take someone else's stats. In database it looks like always, nothing changed for both users, not copying stats to other.

Its like one user take other specific user (not random one) and uses his ID?

*Edit: This one user who "take other user acc" is not updated in database, like not online on server right now, there is time from last "working" connect.*

Where may be problem and which part of code You want to see?
heawy
S2 licensed
Anyone please? Or its too wierd fou you too? Big grin
I think it may be continuation of first question from this thread (same insim).

https://www.lfs.net/forum/thread/87280-I-have-3-problems-in-my-insim%2C-and-i-hope-someone-helps-%3B%29
heawy
S2 licensed
if (Conn.IsAdmin == 1 && Conn.IsSuperAdmin == 1 || Conn.IsModerator == 1 || Conn.Username == "Andi1999")
[dotNet][C#]InSim confuses users.
heawy
S2 licensed
Hello

I have a problem with my InSim, viz it confuses users. For example, the bonus is moving for a person who is in spectators, some user use !showoff command and insim is showing other user stats, when hes connecting insim says other user name "*playername* connected" etc. It does not take someone else's stats. In database it looks like always, nothing changed for both users, not copying stats to other.

Its like one user take other specific user (not random one) and uses his ID?

*Edit: This one user who "take other user acc" is not updated in database, like not online on server right now, there is time from last "working" connect.*

Where may be problem and which part of code You want to see?

Regards, Heawy


Posted by Google Translate Big grin
Last edited by heawy, .
heawy
S2 licensed
Haha, no u didnt code anything. Probably u have wrong copy of UCIS which one u cant debug, or it was VS version problem, i dont remember.
FGED GREDG RDFGDR GSFDG