The online racing simulator
Searching in All forums
(32 results)
1
KuHS
Demo licensed
Anyone?

Sorry for double post, but some one deleted a message lol.
Last edited by KuHS, .
Wrong route fine
KuHS
Demo licensed
Hello how i can remove wrong route fine, i have pit safe or not safe pit system, i added MSO packet if message contains took wrong route, and then get nick from that message it not work, any ideas where to put it and how to do it?
KuHS
Demo licensed
// Detailed car information packet (max 8 per packet)
private void MCI_CarInformation(Packets.IS_MCI MCI)
{
int idx = 0;
for (int i = 0; i < Connections.Count; i++)
{
idx = GetConnIdx2(MCI.Info[i].PLID);
Connections[idx].CompCar.AngVel = MCI.Info[i].AngVel; //They aren't structures so you cant serialize!
Connections[idx].CompCar.Direction = MCI.Info[i].Direction;
Connections[idx].CompCar.Heading = MCI.Info[i].Heading;
Connections[idx].CompCar.Info = MCI.Info[i].Info;
Connections[idx].CompCar.Lap = MCI.Info[i].Lap;
Connections[idx].CompCar.Node = MCI.Info[i].Node;
Connections[idx].CompCar.PLID = MCI.Info[i].PLID;
Connections[idx].CompCar.Position = MCI.Info[i].Position;
Connections[idx].CompCar.Speed = MCI.Info[i].Speed;
Connections[idx].CompCar.X = MCI.Info[i].X;
Connections[idx].CompCar.Y = MCI.Info[i].Y;
Connections[idx].CompCar.Z = MCI.Info[i].Z;
MCI_Update(MCI.Info[i].PLID); //We want everyone to update before checking them.
}
}

This is my MCI packet code, any idea what's wrong and how to fix it?
KuHS
Demo licensed
Quote from the_angry_angel :You don't need to request more MCI packets, it will automatically send as many as needed. You just need to modify your MCI handling code, thats all

Ok, i've got it, but what i would modify?
KuHS
Demo licensed
Quote from DarkTimes :With 14 players it would send one MCI with the first 8 players, then a second MCI with the next 6. For 21 players it would send one MCI with the first 8, a second with the next 8, and then a final one with the last 5.

You can get a better idea for how it works by using InSimSniffer (see sig). Connect to a host and then do Request > TINY_MCI.

Ok thanks, but anyways, how i can request more packets? Sorry, but i don't know, i just need a line of code, like example, thanks for helping but at last i need to know how it would be in C# ://
KuHS
Demo licensed
Quote from the_angry_angel :It would send 1 MCI packet containing a compcar with the first 8 players, and then a second MCI packet with a compcar containing 1 player. You use "NumC" to determine how many are in each.

Or have I misunderstood your question?

Ok but then i get players num, how i can send them more packets? And how much packets will need for 14 players? 5, if players num +8 and for others 1 players will send 1 packet?
KuHS
Demo licensed
How InSim would send 2 or more MCI packets? Thanks for explaining.
Need help, big problem with InSim
KuHS
Demo licensed
Hello i'm using LFS External lib, and i have one really really big problem. Ok, then player connects it's everything ok, then is ~+9 players in the server then appears a lot of problems, no errors is giving, just, you drive atm XFG, you drive 1-2 metres and your cash and licence points is resetting to zero or just then you connected to it... Idk what's the problem the InSim gives no error, just problem with players, btw in my server there's a lot of stuff, like bank, shop, energy, maiby that? And i'm added CompCar to my code, i think it's the problem, but anyways, then in the server is 1-5 people everything is ok, nothing disappears. Anybody knows how to fix this problem?
Is there any connecting packet?
KuHS
Demo licensed
Hello, is there any packet when player connects check him/her info, i would do to check is his/her ip ok. I think ISI packet is right for that? Or there won't any packet? It's just like then connecting, and checks are you banned or not, if you're banned, don't let them connect to the server. Is there? Please, help
KuHS
Demo licensed
It looks nice
Last edited by KuHS, .
KuHS
Demo licensed
Look at form1, use Search CTRL + F.
KuHS
Demo licensed
Good work
KuHS
Demo licensed
You must be officer to use that command, if you aren't it will just write you not authorised.
KuHS
Demo licensed
Ok, you will need to create your self !cophelp, just do like !help command, anyways in basic cruise is !engage !disengage commands, and with XFG, search for NewUser, there's then creating a profile it adds UF1, you can change it to the XFG, XRG or FBM.
KuHS
Demo licensed
Wrong section, and i dont understand, what's wrong with the commands?
KuHS
Demo licensed
Hi, ill try to explain you. First, then player disconnects save his date and then player connects leave the save date, then player disconnects again save his date, so save players date then they're disconnecting. If you want you can save it with days, minutes, seconds, months, years... I think the days is good for time, choose your own:

int year = DateTime.Now.Year * 365;
int month = DateTime.Now.Month * 30;
int day = DateTime.Now.Day;
int Date = year + month + day;

Then just add saving stuff, and here you go you've got have your own timer! You can choose seconds but you will need to convert them into minutes, hours, days, months...
KuHS
Demo licensed
Quote from sun :Hey Kuhs.

It was kind of you to share this. It really got me thinking after a while, Because At the time I wrote my code, Variables, functions Everything was Wizzing around my head, and I couldnt get it Lined Up!

Just try and you will write it up
KuHS
Demo licensed
Here you go my code, simple and working. It's in my updatecheck void:

if ((C.InitialBonus) >= 100) // 100 is the proc, so you can have bars and lines with this
{
C.OLap += 20;
C.OBonus += 2000;
C.InitialBonus = 0;
InSim.Send_MTC_MessageToConnection("^3You've got " + (C.OBonus) + "$ a bonus for " + (C.OLap) + " laps on the track", (C.UniqueID), 0);
C.Cash += (C.OBonus);

if ((C.BDistance) >= 1760) // At 1,76 km you will get +1 bonus proc, you can change it
{
C.BDistance -= 1760;
C.InitialBonus += 1;
}

Conn.BDistance += Convert.ToInt32(SpeedMS); // And dont forget this
}

KuHS
Demo licensed
sinanju, thank you very much
[Request] Colored Button
KuHS
Demo licensed
Hi, is there possible to do Colored button with CreateButton, i really need it, thanks, IF YOU DON'T KNOW JUST DON'T WRITE!
KuHS
Demo licensed
How i can add this thing to my server? It gives me there 12 same errors:

Error 12 Cannot modify the return value of 'LFS_External_Client.clsPlayer.CompCar' because it is not a variable D:\lfs\lfs_external_csf11\Form1.cs 1947 21 lfs_external_csf11

KuHS
Demo licensed
Thanks, how i can use it?
[REQUEST]Is it possible to do?
KuHS
Demo licensed
Hey, i want to know is there possible to do then command is getting playername, like: !givecash playername, you won't need enter colors in chat area, so command will use playername without colors, is that possible?
Thanks.
NPL and NCN (Cruise Server) errors
KuHS
Demo licensed
I've got these errors then i start LFS_External_Client.exe:

NCN - Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
NPL - Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Any ideas how to fix it?

EDIT: Anyways i fixed it self
Last edited by KuHS, .
KuHS
Demo licensed
Thanks a lot for somebody, thanks for bad comment about me too, almost nobody helped me, anyways, i'm going to better coder, i'll self create register/login, and i don't thought about cracked server, i just wanted to code the insim, and play with my friends, i don't need any more comments.
Last edited by KuHS, .
1
FGED GREDG RDFGDR GSFDG