The online racing simulator
Searching in All forums
(279 results)
Popughini
S3 licensed
Quote from therealilriko :so..... how exactly dio you activate it theres o info on commads

!luz command activate semaphore
Popughini
S3 licensed
When will it be available to purchase hosting in Brazil?
Popughini
S3 licensed
Please add servers in Argentina, latency is very high using America-Asia-Europe servers for drag racing.
Popughini
S3 licensed
Quote from Scawen :The direct answer is... we have put a server in a very good location in the USA. We hope that will give reasonable results for North and South America.

But I can't really answer. The idea of the test patch is for you to test and give us feedback. For example, you can start a server in America, and let us know what sort of ping you are getting. And race with your friends on that server and tell us how it goes. We really want feedback.

I tried the America server and I have from 150 to 300 ping, when with the IP address of my country the maximum I had 20 to 60 maximum...
Popughini
S3 licensed
Quote from Scawen :[EDIT by Scawen: Don't need a quote of the whole long post]

We look forward to hearing your feedback and seeing your mod creations!

How are people from South America Argentina / Chile / Bolivia / Peru, etc. supposed to have a good ping when we don't have servers with our IP address?
Last edited by Scawen, .
Popughini
S3 licensed
It would be great a second version that works with the traffic lights of the track
Popughini
S3 licensed
Quote from andonow :Guys I have the Source Code of ISRM.exe and LfsInSimLib.dll - can anyone make it work on 0.6B? I have uploaded the source code + mod in the attachments. Please reply and help us Smile

The .cs files needed to be edited is ISRM_SourceCode\ISRM\mod_drag.cs (in my opinion), and maybe some variables in LfsInSimLib_SourceCode. But I will left the programmers to find out what is needed to be edited and I hope so they make it work on 0.6B. Thanks

Regards! Andonow.

It is not the true source of ISRM, since compiling it does not work even in the Z28 version of Live For Speed.
Popughini
S3 licensed
Cannot find LFS process.
Popughini
S3 licensed
Error 1 'System.Collections.IEnumerator': the type used in a using statement must be implicitly convertible to 'System.IDisposable' D: \ [LIVE FOR SPEED] \ [ISRM] SOURCE \ ISRM_mod_drag_source \ ISRM_SourceCode \ ISRM.cs 361 21 ISRM

if (message is IS_PLP)
{
IS_PLP is_plp = (IS_PLP) message;
if ((this.Players.ID(is_plp.PLID) != null) && (this.PlayersPits.ID(is_plp.PLID) == null))
{
this.PlayersPits.Add(this.Players.ID(is_plp.PLID));
}
using (enumerator = this.Connections.GetEnumerator())
{
while (enumerator.MoveNext())
{
current = (Connection) enumerator.Current;
current.Players.RemoveID(is_plp.PLID);
}
}
this.Players.RemoveID(is_plp.PLID);
}
Last edited by Popughini, .
Popughini
S3 licensed
Quote from Popughini :How would I have to do to add a random time from one button to another?

else if (C.DragStage == 4)
{
C.DragStage = 5;
InSim.Send_BTN_CreateButton("^3•", Flags.ButtonStyles.ISB_C1, 21, 21, 113, 174, 23, C.UniqueID, 2, false); //LUZ3-IZQUIERDA - GRANDE
InSim.Send_BTN_CreateButton("^3•", Flags.ButtonStyles.ISB_C1, 21, 21, 113, 185, 24, C.UniqueID, 2, false); //LUZ3-DERECHA - GRANDE
}
else if (C.DragStage == 5)
{
C.DragStage = 6;
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 174, 25, C.UniqueID, 2, false); //LUZ4-IZQUIERDA - GRANDE
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 185, 26, C.UniqueID, 2, false); //LUZ4-DERECHA - GRANDE
}

up !
Popughini
S3 licensed
Quote from Bose321 :GTA:Online blocks any form of mods. You might mean FiveM? The 3rd-party multiplayer?

Yeah, FiveM or Grand Theft Auto Multiplayer (MTA:SA)

It is an example, because there are simulators that you can add your own mod and it can be appreciated by other online players.
Skin bug
Popughini
S3 licensed
#Solved
Last edited by Popughini, .
Popughini
S3 licensed
ESP:
Sería genial algo como Grand Theft Auto Online que cada usuario que tenga un VOB mod se le pueda apreciar en linea cuando está en un servidor, todos tendrían su modelo de vehículo.

ENG:
It would be great something like Grand Theft Auto Online that each user who has a VOB mod can be seen online when he is on a server, everyone would have their vehicle model.
Popughini
S3 licensed
Quote from Bose321 :It's better if you make a thread where you ask basic questions of the InSim you downloaded somewhere. This is not relevant to this library.

Sorry I got the code wrong, it was this code.

https://pastebin.com/6HSgNDtD

I need to add a random time on the green light
Popughini
S3 licensed
How can I get the !sem command to be activated when 2 users are in that zone at 0KM/h?

https://pastebin.com/nsyLvQ6d
Popughini
S3 licensed
How would I have to do to add a random time from one button to another?

else if (C.DragStage == 4)
{
C.DragStage = 5;
InSim.Send_BTN_CreateButton("^3•", Flags.ButtonStyles.ISB_C1, 21, 21, 113, 174, 23, C.UniqueID, 2, false); //LUZ3-IZQUIERDA - GRANDE
InSim.Send_BTN_CreateButton("^3•", Flags.ButtonStyles.ISB_C1, 21, 21, 113, 185, 24, C.UniqueID, 2, false); //LUZ3-DERECHA - GRANDE
}
else if (C.DragStage == 5)
{
C.DragStage = 6;
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 174, 25, C.UniqueID, 2, false); //LUZ4-IZQUIERDA - GRANDE
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 185, 26, C.UniqueID, 2, false); //LUZ4-DERECHA - GRANDE
}
Popughini
S3 licensed
Quote from Bose321 :What does that have to do with this library? Just google how to get a random number with C#.

I looked it up but it didn't work for me and I thought they could help me here since I haven't been using visual studio for a long time.
Popughini
S3 licensed
How would I have to put to have a random number?

int numero_alea(int de, int ate)
{
//número aléatorio para semáforo en verde
int random;
ate -= de;
random = rand() % (ate + 1) + de;
return random;
}

I want to put a random number where that button appears

{
C.DragStage = 6;
int alea;
alea = numero_alea(1, 20);
if (C.Counter == 5 + alea)
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 174, 25, C.UniqueID, 2, false); //LUZ4-IZQUIERDA - GRANDE
InSim.Send_BTN_CreateButton("^2•", Flags.ButtonStyles.ISB_C1, 21, 21, 123, 185, 26, C.UniqueID, 2, false); //LUZ4-DERECHA - GRANDE
}
Last edited by Popughini, .
Popughini
S3 licensed
Quote from kristofferandersen :Just think of where you could grab such value. The IS_NCN packet should do the trick, grab the PName value and save it somewhere easily accessible.

eg: Have a dictionary of connections, and a dictionary of players. Save the value to the connections dictionary, that way you can have a list of vars you can use at any time by calling connections.variable.

For the players, you can add a player when they leave the pits and remove one when they spectate or leave. If you count the players dictionary, you can see how many players are on the track.

That should cover most of it, good luck.

Thanks, I have another problem ... I would like that when a user enters node 56 of the Blacwood BL2 track he is sent to the pits, I do not understand what is wrong with my code.

void MCI_Handler(Packets.IS_MCI MCI)
{
for (int n = 0; n < MCI.NumC; n++)
{
if (MCI.Info[n].Node == 56)
{
foreach (clsPlayer Player in Players)
{
if (Player.PlayerID == MCI.Info[n].PLID)
{
foreach (clsConnection C in Connections)
InSim.Send_MST_Message("/pitlane " + C.Username + "");
}
}
}
}
}

Popughini
S3 licensed
Quote from THE WIZARD DK :maybe try to explain what the problem is in more detail ?

ADD nickname to MSG

Functions.MsgToCnx("^3Bienvenido " + Conn.Username + " al servidor.", mso.UCID);

MsgToCnx function:

public static void MsgToCnx(string Message, byte ConnectionID)
{
Program.insim.Send(new IS_MTC{ Msg = Message, UCID = ConnectionID, ReqI = 255 });
}
[Dcon] Lag with error
Popughini
S3 licensed
Good, when opening a server with LFS Dcon it shows me the following error and the server uploads the ping

IMAGE: https://www.lfs.net/attachment/209400
Popughini
S3 licensed
Are you on vacation or are you working on "LFSPro"?
Popughini
S3 licensed
Quote from Skinzinho :I'm not sure the language this script uses. I just came to the last page to see the last post, to be honest.

To calculate user acceleration, you need to know the time between 0 and 100 (obvious =)).

Below I will give you an example about how I calculate it:


if (C.PosSpeed > 1 && C.OutPits == 1)
{
C.AccTimer += 100;
}

if (C.PosSpeed >= 100 && C.AccStage == 0)
{
C.AccStage = 1;
double Aceleracao = ((C.AccTimer * 100.0) / C.PosSpeed) / 1000;
InSim.Send_MTC_MessageToConnection("^3› ^7Aceleração 0-100: ^3" + Math.Round(Aceleracao, 1) + "^7 segundos", C.UniqueID, 0);
}



Explanation:

This script is inside a 100ms timer. So, every 100ms, it add 100 to a specific player's variable (AccTimer += 100).

Then, when the player reaches 100Km/H (PosSpeed >= 100), it calculates the time player took to reach 100, considering actual speed (because the speed can be 105 for example on the actual scan).

For example, on the actual scan, the user speed is 110 Km/H and the AccTimer is 600.

So, it means the user reach 110 in 600ms. On the proportion: ((600 * 100) / 110) / 1000 = 0,54545454...

Finally, I do a math.round to remove digits after the coma. The result in the case above will be 0,5 seconds.

I tried to explain everything, and it may be useful for other players. But I hope I answered your question Wink

Thanks for the help, but it did not work for me. :/
Popughini
S3 licensed
Yo aveces abro servidores de drag, ahora no está en línea por qué estoy corrigiendo algunas fallas que tienen los sistemas pero te dejo la página de Facebook y foro para que estés atento a cuando están en línea nuevamente.

Facebook: https://www.facebook.com/RedexxTeam1/

Foro: http://redexxteam.hol.es/board/

PD: Los servidores están disponibles en la versión 0.6R
Popughini
S3 licensed
To me one of the things that has increased me the fps was to turn off the mirrors, I increased a total of 60 fps

You go to options, view and turn off the mirrors
FGED GREDG RDFGDR GSFDG