The online racing simulator
Searching in All forums
(75 results)
ab12
Demo licensed
I don't want to send Message To Connection, i want to send this for all users, like in chat
How to connect insim to game ?
ab12
Demo licensed
I want to connect the insim using "/insim 29999"
I need to use in insim settings and admin password ?
ab12
Demo licensed
Thank you man Smile
ab12
Demo licensed
Like in iC Source


void MsgBox(string MsgStr)
{
try
{
textBox1.Text += " [" + System.DateTime.Now.Hour + ":" + System.DateTime.Now.Minute + "] " + MsgStr + "\r\n";
}
catch { }
}
string Msg = MSO.Msg.Substring(MSO.TextStart, (MSO.Msg.Length - MSO.TextStart));
string[] StrMsg = Msg.Split(' ');

#region ' Box Remove Colors String '
string boxy;
boxy = MSO.Msg;
if (boxy.Contains("^0"))
{
boxy = boxy.Replace("^0", "");
}
if (boxy.Contains("^1"))
{
boxy = boxy.Replace("^1", "");
}
if (boxy.Contains("^2"))
{
boxy = boxy.Replace("^2", "");
}
if (boxy.Contains("^3"))
{
boxy = boxy.Replace("^3", "");
}
if (boxy.Contains("^4"))
{
boxy = boxy.Replace("^4", "");
}
if (boxy.Contains("^5"))
{
boxy = boxy.Replace("^5", "");
}
if (boxy.Contains("^6"))
{
boxy = boxy.Replace("^6", "");
}
if (boxy.Contains("^7"))
{
boxy = boxy.Replace("^7", "");
}
if (boxy.Contains("^8"))
{
boxy = boxy.Replace("^8", "");
}
if (boxy.Contains("| "))
{
boxy = boxy.Replace("| ", "");
}
MsgBox(boxy);
#endregion

I can't see the messages
Last edited by ab12, .
ab12
Demo licensed
I printed the car's X and Y was big numbers lol, but i solved the problem Smile
Thank you guys !
ab12
Demo licensed
Quote from cargame.nl :
I don't know if print(""); is the correct command by the way. Just an assumption, I code in PHP.

Is Console.WriteLine("");
I saw in console "hey, car is driving slower then 4mph" but when i go to InPlace1Dist.. nothing :| Fap
ab12
Demo licensed
Quote from cargame.nl :First debug your speed detection, if this works debug your location detection.

What you mean ?
I don't understand
ab12
Demo licensed
Hello guys, i don't understand why the code don't work Fap Confused

clsConn Conn = new clsConn();
var mph = car.Speed / 146;

Conn.InPlace1Dist = ((int)Math.Sqrt(Math.Pow(car.X - (- 102 * 196608), 2) + Math.Pow(car.Y - (-42 * 196608), 2)) / 65536);
if (Conn.InPlace1Dist <= 4 && (mph <= 4))
{
insim.Send(new IS_BTN {Text = "^7Welcome", BStyle = ButtonStyles.ISB_DARK, H = 15, W = 109, T = 55, L = 46, ClickID = 10, UCID = 0, ReqI = 10});
}

clsConn is a list from iC source, I have this source for documentation.
Can anyone help me please ? Frown
ab12
Demo licensed
Quote from DarkKostas :
Replace | with &&

Ok work Smile but when i go to X and Y insim don't send "Hello" :|
ab12
Demo licensed
Hello, please help me a little.
So i have this code but don't work:

foreach (CompCar car in MCI.Info)
{
if(car.X == -102 | car.Y == -42)
{
insim.Send("/msg Hello");
}
}

ab12
Demo licensed
using System.Diagnostics;

Process.Start("link");

ab12
Demo licensed
Quote from DarkKostas :
You need to use your "players" table instead of connections. It's PLID instead of UID Wink

Thank you Smile
ab12
Demo licensed
Nobody ?
ab12
Demo licensed
Button does not want to appear :/
ab12
Demo licensed
Hello, I did this button but don't work

private void ButtonClicked(InSim insim, IS_BTC BTC)
{
try
{
insim.Send(new IS_BTC { Text = "Test", BStyle = ButtonStyles.ISB_CLICK | ButtonStyles.ISB_LIGHT, UCID = 0, H = 6, W = 30, T = 30, L = 80, ClickID = 6, ReqI = 6});
if(BTC.ClickID == 6)
{
insim.Send(UCID, 0, "abc123");
}
}
catch { }
}

Does anyone know why ? :|
Last edited by ab12, .
ab12
Demo licensed
Hey if i want to create an windows form using InSim.NET how i can see all messages ?
With console is easy because is Console.WriteLine(mso.Msg); but i can't do it with textboxes :|
ab12
Demo licensed
Quote from Lexanom :
private void MessageToUCID(byte UniqueID, string Text)
{
insim.Send(new IS_MTC { UCID = UniqueID, Msg = Text});
}


And if i want to use that but with username or player name ? Big grin
ab12
Demo licensed
Thank you Smile
ab12
Demo licensed
Hey, I have a little confusion.. so if i want insim to send am message to one person(i mean UniqueID like LFS_External) what i need to do ?
ab12
Demo licensed
http://postimg.org/image/9g92j9w1j/

Does anyone know what is the problem ? I have never seen that..
ab12
Demo licensed
Quote from Popughini :
Could you please send it to me? : s

Sure .. Send me a Private Message and i will send you Big grin
ab12
Demo licensed
Quote from alpiso10 :Someone tried to make a drag system for 0.6j in BL1? : s

Yes Smile
ab12
Demo licensed
Quote from Flame CZE :You can read the basics of using InSim.NET in the documentation.

Thank you Smile
ab12
Demo licensed
I know something about coding but i want to create something based on InSim.NET
My InSim
ab12
Demo licensed
Hello, I saw several cruise insim servers and I want to create my own insim me, I did some research and found out that better InSim.NET is the best but I do not know what to do. Can you help me?
FGED GREDG RDFGDR GSFDG