The online racing simulator
Searching in All forums
(94 results)
ADr3nAl1n
Demo licensed
Quote from Kyle-Caz :But How Do I Make Shops With That?

:something Really if you don't know how to make buttons then don't bother
ADr3nAl1n
Demo licensed
That means if a player with the username "skywatcher122" connects to the server the Buttons will appear on his screen so just enter your username there and connect to the server to see your XY position
ADr3nAl1n
Demo licensed
It has already ... search entire solution for "XY Postion" and put your username there
ADr3nAl1n
Demo licensed
Quote from Kyle-Caz :Hey
I Need Some Help On A Title Of This Insim Because It Says ^7Welcome to the ^1[^4RF^1]^1 Server!

ehm .... CTRL+F and search for ^4RF ?
ADr3nAl1n
Demo licensed
Is this the only InSim.NET based out there?
ADr3nAl1n
Demo licensed
Sorry i forgot the id

InSim.Send_MTC_MessageToConnection("I don't believe in trees",MSO.UCID); -wrong

InSim.Send_MTC_MessageToConnection("I don't believe in trees",MSO.UCID, 0); - correct



Also don't use police system in this open source , its broken especially with lfs external 1.1.1.7 . If you do, the player list will get broken somehow and after ~one hour people will connect with someone else's stats
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
I would be happy to help you out but you're always offline on skype :P
ADr3nAl1n
Demo licensed
Microsoft Visual Studio 2010

And you need the source files of the project not only the insim release
ADr3nAl1n
Demo licensed
I love the documentation <3
ADr3nAl1n
Demo licensed
I just noticed Insim.NET is kind of hallow , It doesn't contain send buttons , send messages . Or I am missing something ?

Also what is the InSimDotNet.pdb ? On Build > properties i found the advanced button on bottom that links to the old one
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
Quote from chrizza132 :Yeap tottaly agree there, ive tried insim.NET also, i just cant get the hang of it im so used to LFS_External lol, but aye i LFS_External still works for the most part, just a few little things that need to be fixed in the base for the person willing to do it (i don't think there is anyone lol), i have one of my mates that's going through it to see if he can fix the MSO bug ill let you guys know if he succeeds.

I noticed if you have the foreach (clsConn i for example and under it you have a playername like message + bla bla + i.PlayerName then the command fails showing the msg and reading the code under it, but if you use i.UserName and not requesting the player name colors then it works.

What kind of sorcery is this >:[
ADr3nAl1n
Demo licensed
Sadly this library is indeed too outdated to be used , the errors are always different.
ADr3nAl1n
Demo licensed
I noticed the problem is the GetConnIdx1 and 2 ... Well sometimes they work sometimes they don't thats the main problem since 1.1.1.7


public int GetConnIdx(int UNID)
{
for (int i = 0; i < Connections.Count; i++)
{
if (Connections[i].UniqueID == UNID) { return i; }
}
return 0;
}
public int GetConnIdx2(int PLID)
{
for (int i = 0; i < Connections.Count; i++)
{
if (Connections[i].PlayerId == PLID) { return i; }
}
return 0;
}

Every code that uses Connections[GetConnIdx(MSO.UCID)].blabla has this problem

I kept trying to start a new project with .NET - InSim.NET but it was never really my thing..
ADr3nAl1n
Demo licensed
I clicked add reference , browsed to the new dll and then released again the solution

I am doing something wrong ?
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
Well the insim i have is pretty old ... and I don't know why the unchase command for the officer doesn't work ...

The player gets chased , but the insim says that he is not chased



So at the unchase command it can get past green but not over red

if ([COLOR="Green"]Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet == 1[/COLOR])
{

if ([COLOR="Red"]Connections[GetConnIdx(MSO.UCID)].ChaseCondition != 0[/COLOR])
{
bla bla bla *code * msg player ends chase on player , chase condition = 0 is being chased = 0 bla bla
}
}

The green one and red one works on the officer
But on the cruiser side it says IsBeingChased = 0 and ChaseCondition = 0
So the insim on 0.6e is always crashing with lfs external 1.1.0.0 , 1.1.1.0 , 1.1.1.5 and on 1.1.1.7 is stable but ... this thingy doesnt work

Sorry for the bad explanation I don't know if you understood the problem
ADr3nAl1n
Demo licensed
Does anyone have the 1.1.1.4 version ?
ADr3nAl1n
Demo licensed
I don't know how it is on LsC Insim I never had that. I can't just guess
ADr3nAl1n
Demo licensed
Does anyone have the 1.1.1.4 version ?
ADr3nAl1n
Demo licensed
I managed to use the 1.1.1.7 version and now it works fine. I still get would block but no more insim timeouts or limit and It can now go for hours . Thanks
ADr3nAl1n
Demo licensed
I don't know for sure , or how to find out but I know its pretty old ...
I think its lfs external 1.1.0.0 by Ron Gahler
What Insim library would be the best?
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
He means you need to open the project file of the insim with Microsoft Visual.

Dygear , How can I limit them ?

I tried organizing the codes so it doesn't send so many in one "private void" But I there is no improvement so far...
Should I keep trying?
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
I didn't find any solution to this ... Everyone is having this problem.
ADr3nAl1n
Demo licensed
What insim base are you working on ?

Here is an example that you can add in chatcommands
Its a simple !pm username message

[Command("pm", "pm <username> <message>")]
public void pm(string Msg, string[] StrMsg, Packets.IS_MSO MSO)
{
if (StrMsg.Length > 2)
{
if (Connections[GetConnIdx(MSO.UCID)].Username == StrMsg[1] && StrMsg[1].Length > 1)
{
InSim.Send_MTC_MessageToConnection("^1)^7 You can't send PM to yourself!", MSO.UCID, 0);
}
else
{
clsConnection Conn = Connections[GetConnIdx(MSO.UCID)];
bool PMUserFound = false;
foreach (clsConnection C in Connections)
{
string Message = Msg.Remove(0, C.Username.Length + 5);

if (C.Username == StrMsg[1] && StrMsg[1].Length > 1)
{
PMUserFound = true;

InSim.Send_MTC_MessageToConnection("^6)^7 Message Sent To: ^7" + C.PlayerName + " [" + C.Username + "]", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^6)^7 Msg: ^7" + Message, MSO.UCID, 0);



InSim.Send_MTC_MessageToConnection("^6)^7 PM From: ^7" + Conn.PlayerName + " [" + Conn.Username + "]", C.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^6)^7 Msg: ^7" + Message, C.UniqueID, 0);


foreach (clsConnection F in Connections)
{
if ((F.IsAdmin == 1 && F.UniqueID != MSO.UCID))
{
InSim.Send_MTC_MessageToConnection("^1)^7 PM From: ^7" + Conn.PlayerName + " to " + C.PlayerName, F.UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1)^2 Msg: ^7" + Message, F.UniqueID, 0);
}
}
}
}
if (PMUserFound == false)
{
InSim.Send_MTC_MessageToConnection("^1)^7 Username not found.", MSO.UCID, 0);
}

}

}
else
{
InSim.Send_MTC_MessageToConnection("^1)^7 Invalid Command.", MSO.UCID, 0);
}
}

If you have any questions feel free to ask
ADr3nAl1n
Demo licensed
Why I don't see anymore the
TCP : Cleared emergency store after getting TCP ERROR : WOULDBLOCK ?

Also not to mention the TCP ERROR INSIM LIMIT Spam messages ... But they seem to appear only before someone gets timeout , after that it stops .. for a short period of time , and second time the Insim crashes
Last edited by ADr3nAl1n, .
ADr3nAl1n
Demo licensed
I already saw a guy driving XFG in 6th gear in 0.6E at [AA]Blackwood GTI

If they can do that already imagine what will happen in a couple of months
FGED GREDG RDFGDR GSFDG