The online racing simulator
Searching in All forums
(94 results)
ADr3nAl1n
Demo licensed
I could help you with minor stuff
ADr3nAl1n
Demo licensed
BTC is button click and BTT is button text , probably you're inserting the case under BTC instead of BTT
ADr3nAl1n
Demo licensed
Try to change /ip=xxx.xxx.xxx.xxx or whatever you have to /ip=%myip%
ADr3nAl1n
Demo licensed
This is in the wrong section. And it was asked before ... use the search button but I doubt there is such thing
Cars on track? C#
ADr3nAl1n
Demo licensed
Is there any way to see how many cars are on the track?
Instead of adding or subtracting from a variable each time a player enters track/pits.

Any ideas would be appreciated (its not for cruise insim)

edit: I was thinking at something like substracting the amount of players with PlayerID != 0 from Connections.Count ? hmm
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
I don't think you need all these complicated things above...

Can you get the 1st , 2nd and 3rd Username ?
ADr3nAl1n
Demo licensed
Quote from Witchys :Drift Battle Do you have ?

So you want a InSim which will keep track of drifting score?

Use lfslapper
ADr3nAl1n
Demo licensed
You have to be kidding me ... :tired:
ADr3nAl1n
Demo licensed
There is none.
You can only take the open source and add it yourself if you know how to do it.
I remember I tried once but I got stuck at some point
ADr3nAl1n
Demo licensed
Quote from kristofferandersen :I want to know how i could do that the tab with the cars, total money and all that stuff. That tab, i want to get it to the middle. I tried. but it didnt work

Could someone help me?

Did you get a software which allows you to edit(C#) and rebuild the release ?
ADr3nAl1n
Demo licensed
Quote from kristofferandersen :I've configurated the insim perfect

Sure you did :tired:

In the first pictures the insim is trying to kick the host , no problem there
When you connect its kicking you because you're username is not written in users/groups/Superadmins.txt
ADr3nAl1n
Demo licensed
I'm sure everyone that knew anything about this saw it and didn't say anything because its not fair to show their work to the public like that. No one is obligated to answer. So you don't have to bump this post. And they mostly explained to you how you should do it.
ADr3nAl1n
Demo licensed
Unless they replace FBM with a fighter aircraft
ADr3nAl1n
Demo licensed
Quote from Impresora96 :Hello,

Thanks for not help !
I was searching something on insim, and found it my self !

Thank you for nothing guys, you all the best

Thank you for nothing ? You mean you didn't search good enough and now its someone else's fault but not yours ?

Good one
ADr3nAl1n
Demo licensed
Quote from i-love-cruise :Hello,

I have a question.
How do I let people pay if they speed in the pits is too fast?

Greets, i-love-cruise

PS: I am not so good in English, sorry.
I hope that you all can understand me.

go to Form1 at ' Packet receive events '

// Player chat and system messages.
private void MSO_MessageOut

and add:


case "!penalty":
InSim.Send_MST_Message("/p_clear " + Connections[GetConnIdx(MSO.UCID)].Username);
Connections[GetConnIdx(MSO.UCID)].Cash -= 500;

break;

EDIT: It has !penalty command already ._.
You didn't even look into it before asking
ADr3nAl1n
Demo licensed
Conn.InBankDist = ((int)Math.Sqrt(Math.Pow(Conn.CompCar.X - (37 * 196608), 2) + Math.Pow(Conn.CompCar.Y - (-192 * 196608), 2)) / 65536);
if (Conn.InBankDist <= 4 && (mph <= 4))
{

The only thing to do is to re-check them ..

You sure you set x= 34 and y= -192 ?

Also don't forget this is only for Blackwood GP (bl1)
ADr3nAl1n
Demo licensed
I'm trying to hold my words...

But seriously find them yourself ... how is anyone supposed to know what exactly are you searching for

Button clicks are in ButtonClicks.cs ...
Parts of hud are in Eventtimers ... because it needs to update probably , look in the checkuser at 2000ms

EDIT:

Line 1529 in eventtimers
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
Hello I'm goofing around lfs_external and PLC player cars packet


[StructLayout(LayoutKind.Sequential)]
public struct IS_PLC
{

public byte Size;
public Enums.Packets Type;
public byte ReqI;
public byte Zero;
public byte UCID;
public byte Sp1;
public byte Sp2;
public byte Sp3;

[COLOR="Red"] public uint Cars;[/COLOR]

}

And I don't know what to put on "unsigned Cars" to bind it to the carflags

public static byte[] ISP_PLC(byte UniqueID, LFS_External.InSim.Flags.CarFlags Flags)
{
LFS_External.Packets.IS_PLC sourceStruct = new LFS_External.Packets.IS_PLC();
sourceStruct.Size = 12;
sourceStruct.Type = Enums.Packets.ISP_PLC;
sourceStruct.ReqI = 0;
sourceStruct.Zero = 0;
sourceStruct.UCID = UniqueID;
sourceStruct.Sp1 = 0;
sourceStruct.Sp2 = 0;
sourceStruct.Sp3 = 0;
[COLOR="red"] sourceStruct.Cars = LFS_External.InSim.Flags.CarFlags;[/COLOR]
return Util.PacketToData(sourceStruct);
}

Can someone give me a hand please ?
ADr3nAl1n
Demo licensed
As far as I know the last one got the the version number 1.1.1.7 with the help of DarkTimes

The only missing packets are

ISP_OBH : contact car + object (collision report)
ISP_HLV : report incidents that would violate HLVC
ISP_PLC : player cars
ISP_AXM : autocross multiple objects
ISP_ACR : admin command report

I tried adding PLC myself ... But I could not make it work.
Here is the Link and the open source
https://www.lfsforum.net/showt ... php?p=1589388#post1589388

Maybe someone more experienced could do it and save lfs_external because Its the easiest library I came across ... not the best but still :3
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
Quote from dawesdust_12 :Unlikely unless the developer of LFS External releases the source code, and there's an interested party willing to extend LFS External.

The open source of LFS_External is public ...
ADr3nAl1n
Demo licensed
Look in Form for Insim settings , search ISF_MCI or something and add there ISF_CON
ADr3nAl1n
Demo licensed
Quote from jobans :Thanks, finally I can try to make something, but got problem, again

// Car Contact
private void CON_CarContact(Packets.IS_CON CON)
{
try
{

if (Connections[GetConnIdx2(CON.A.PLID)].Cash > 0)
{
MsgAll("^6»^7 Contact detected");



}
}


catch { }
}

I put this code but when I do 2 car contact I dont get that message, Im using these variables only for testing, Can anyone tell whats the problem?

Cash ? you mean Crash ?
Remove if (Connections[GetConnIdx2(CON.A.PLID)].Cash > 0) statement

If its not working after you remove the statement then you didn't add the flag correctly
ADr3nAl1n
Demo licensed
go to setup.cfg and change to /ip=%myip%
ADr3nAl1n
Demo licensed
LFS_External 1.1.1.7 has IS_CON I just got it working :3

HINT: use Connections[GetConnIdx2(CON.A.PLID)].
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
If I remember correctly lfs_external does not have that packet , But I am not sure
FGED GREDG RDFGDR GSFDG