The online racing simulator
Searching in All forums
(59 results)
stuntguy3000
S2 licensed
Quote from imthebestracerthereis :Have you searched? Took me 3 seconds.

I did find that link

And its not what i want. I want one WITHOUT the splits
Open Configuration Track Maps
stuntguy3000
S2 licensed
Hello,

I was wondering if anyone has made or knows about LFS Open Configuration Track Maps. I would like a clear one (South City Open Configuration Track Map)without splits or anything like that.

Thanks

stuntguy300
stuntguy3000
S2 licensed
Quote from Mauni :You won't master any programming language in case you're not willing to put some work to it. Dygear posted a very good starting point for you:



1. Use some sort of loop to go through each packet
2. From the packet, extract coordinates
3. Compare the coordinates of a player to your start/finish line

The points need more iteration to work, but basic idea is there. Now go and write the code . People are more willing to help, if you actually come back with some code. No matter if it works or not...

The thing is that I only just know what you mean. I wana know how can you Can learn InSim. Is their a bunch of tutorials? If their isn't It would be cool if someone went to the huge effort and made a whole bunch of tutorials for like YouTube for example.
stuntguy3000
S2 licensed
Quote from Dygear :I think stuntguy thinks that using a microwave makes you a chef.

Stuntguy, cycle through the MCI packets and find the closest X,Y position to the one your looking for.

Long Reply From Me.

Anyway.

Please would you (Or someone else) pls show me the code of what you are trying to tell me.

The thing is that I am trying to learn C# InSim Coding and I am grateful everytime someone helps me out. Once I have pretty much mastered InSim Coding I will teach and help others out.
:d :) :d
stuntguy3000
S2 licensed
Quote from tbofram :i like that idea. hard work though depending on what it should do. i think it should have lfs remote sort of built in (make use of that nice new screen on iphone 4). if the devs could do it then mybee even a mobile version of lfs. like you can play lfs but on the iphone. means you cant play agianst people on pcs cause of different graphics and stuff like that. i bet people would even pay for apps like the two ideas above. BTW Second idea just came as i typed so it is a bit ???????????????????????????????????????????????????

I am aware of a iPod Touch/iPhone that their is a Out-Dated Third-Party LFS Remote kind of thing that
(A) ITS SO OLD...
(B) Isn't Free (only $1.19 i think)
(C) The Website NOR the iPod Touch/iPhone App Doesn't Even Exist!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
iPod Touch/iPhone App
stuntguy3000
S2 licensed
Who thinks their should be a LFS App for iPod Touch/iPhone. If it ever gets made i think it should be free BUT to use you need a PAID lfs account something like that
Last edited by stuntguy3000, .
stuntguy3000
S2 licensed
Quote from mariuba2 :you mean edit? cause making and editing is two different things, making is like making your own source, for instance your insim is based on Lc and LsC codes that means editing, if your going to make a insim you have to start from 0 which you can't do only expert's make insim.

yes

also i forgot to add that i am using LFS_External
stuntguy3000
S2 licensed
Quote from NotAnIllusion :*twitch*

You need to identify the set of path nodes that describe the start area, then you need to get the current path node of the relevant car(s) and compare them. Path node is included in for example, the IS_NLP packet. Then you can send, say, an IS_MTC packet to display the value.

i have no idea what you are on about
stuntguy3000
S2 licensed
Quote from morpha :docs/InSim.txt

Read it and solve these simple issues yourself. Surely you must be able to, your signature reads "Insim Developer" after all.

i barley get anything out of that document. And by Insim Developer it doesn't mean i am a expert. It means i make insims.
Indentifing a User at a X: Y: Location
stuntguy3000
S2 licensed
I am Wanting to make a Drag Mode for my insim an i don't have any idea how the insim could identify a user at the drag starting point. How could i do it? Well i could set it as a variable (etc Connkjfndhkjgndsfhkkh.DragSlot1Username == Conkjdbhfje,hdfhkuj.Username)

If i could do that how could i share the information with everyone (so the insim displays that information? )
Dedicated Server Hosting
stuntguy3000
S2 licensed
Here we Go...

I am trying to host the LFS server [DcS] Dutch Cruise Server but when i try to connect (i am using the dedi) i get this message:
Connect Timed Out

My chosen port is 50000 (don't know why )
i have forwarded it TCP/UCP to my Ip

HELP!!!!!
stuntguy3000
S2 licensed
Quote from skywatcher122 :i think ur upload speed beats you

You could be onto something...
LFS Lag
stuntguy3000
S2 licensed
Hello,

My internet is preety good (enough so i don't lag)



Is something wrong with my LFS?

Shoudl i re-install it?
stuntguy3000
S2 licensed
Quote from joordy599 :i can chance something only

Hey, Do you know any coding language yet?
stuntguy3000
S2 licensed
Quote from bunder9999 :i see.

well, another thing i was thinking of...

if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Chase == 1)

what sets that to 1? it could also be possible that ".Stat" isn't being reset to 0 at some point.

i think you might need to show us more code.

if (Connections[GetConnIdx(CPR.UCID)].Stat == 2)
{
InSim.Send_MTC_MessageToConnection("^2•^7 You are a On-Duty cop so FOLLOW THE RULES!", CPR.UCID, 0);
Connections[GetConnIdx(CPR.UCID)].IsOfficer = 1;
//ChaserUCID = Connections[GetConnIdx(CPR.UCID)].Username;
}

thats in the code you both must of missed it lol
stuntguy3000
S2 licensed
Quote from bunder9999 :
if (Connections[GetConnIdx(CPR.UCID)].PlayerName.StartsWith("^0[^1COP^0]"))

that looks bad... i'd suggest using user name instead of racer name...

So your saying that if you are a cop their is no tag or something?
Cop Insim Mayhem
stuntguy3000
S2 licensed
Hello,

For my insim when someone renames:
if (Connections[GetConnIdx(CPR.UCID)].PlayerName.StartsWith("^0[^1COP^0]"))
{
if (Connections[GetConnIdx(CPR.UCID)].Stat == 2)
{
InSim.Send_MTC_MessageToConnection("^2•^7 You are a On-Duty cop so FOLLOW THE RULES!", CPR.UCID, 0);
Connections[GetConnIdx(CPR.UCID)].IsOfficer = 1;
//ChaserUCID = Connections[GetConnIdx(CPR.UCID)].Username;
}
else
{
InSim.Send_MST_Message("/spec " + Connections[GetConnIdx(CPR.UCID)].Username);
InSim.Send_MTC_MessageToConnection("^1You are Not a Officer!", CPR.UCID, 0);
Connections[GetConnIdx(CPR.UCID)].IsOfficer = 0;
}
}
else
{
Connections[GetConnIdx(CPR.UCID)].IsOfficer = 0;
}

if (Connections[GetConnIdx(CPR.UCID)].PlayerName.StartsWith("^0[^2COP^0]"))
{
if (Connections[GetConnIdx(CPR.UCID)].Stat == 2)
{
InSim.Send_MTC_MessageToConnection("^2•^7 You are a On-Duty cop so FOLLOW THE RULES!", CPR.UCID, 0);
Connections[GetConnIdx(CPR.UCID)].IsCadet = 1;
}
else
{
InSim.Send_MST_Message("/spec " + Connections[GetConnIdx(CPR.UCID)].Username);
InSim.Send_MTC_MessageToConnection("^1You are Not a Cadet!", CPR.UCID, 0);
Connections[GetConnIdx(CPR.UCID)].IsCadet = 0;
}
}
else
{
Connections[GetConnIdx(CPR.UCID)].IsCadet = 0;
}

As a Cop This Popup Comes Up:

CODE FOR IT:
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Chase == 1)
{
InSim.Send_BTN_CreateButton("^7Suspect: " + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Chase_Username, Flags.ButtonStyles.ISB_LIGHT, 5, 25, 7, 148, 22, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Condition
InSim.Send_BTN_CreateButton("^7Condition: " + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Chase_Condition, Flags.ButtonStyles.ISB_CLICK | Flags.ButtonStyles.ISB_LIGHT, 5, 25, 12, 148, 23, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Meters Away from Suspect
InSim.Send_BTN_CreateButton("^7Meters Away: " + Connections[GetConnIdx(Players[GetPlyIdx(ChaseeUCID)].UniqueID)].DistanceFromOfficer, Flags.ButtonStyles.ISB_LIGHT, 5, 25, 7, 173, 24, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Speed
InSim.Send_BTN_CreateButton("^7Suspects Speed: 0KMH", Flags.ButtonStyles.ISB_LIGHT, 5, 25, 12, 173, 25, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
else
{
//Suspect
InSim.Send_BTN_CreateButton("^7Suspect: None", Flags.ButtonStyles.ISB_LIGHT, 5, 25, 7, 148, 22, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Condition
InSim.Send_BTN_CreateButton("^7Condition: None", Flags.ButtonStyles.ISB_LIGHT, 5, 25, 12, 148, 23, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Meters Away from Suspect
InSim.Send_BTN_CreateButton("^7Meters Away: None", Flags.ButtonStyles.ISB_LIGHT, 5, 25, 7, 173, 24, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
//Condition
InSim.Send_BTN_CreateButton("^7Suspects Speed: None", Flags.ButtonStyles.ISB_LIGHT, 5, 25, 12, 173, 25, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}

If you Ask the suspects speed,distance from officer don't really work.

ANYWAY

when I remove my cop tag and someone else puts a cop tag on I see the Start/End Chase Button but not the rest. The other player sees it all but not the start/stop chase button.
I have NO idea why it does that. Thanks

[DcS] stuntguy3000
stuntguy3000
S2 licensed
Quote from mariuba2 :
void Siren_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
{
if (C.Siren != 0)
{
if (C.Siren == 1)
{
InSim.Send_BTN_CreateButton("^4(((((^7SIREN^4)))))", Flags.ButtonStyles.ISB_C1, 15, 74, 60, 63, 151, C.UniqueID, 2, false);
C.Siren = 10;
}
else if (C.Siren > 9)
{
if (C.Siren > 14)
C.Siren = 10;
InSim.Send_BTN_CreateButton("^4" + "((((".Insert((C.Siren % 10), "^1(^4") + "^7" + "SIREN" + "^4" + "))))".Insert(4 - (C.Siren % 10), "^1)^4"), Flags.ButtonStyles.ISB_C1, 15, 74, 60, 63, 151, C.UniqueID, 2, false);
C.Siren++;
}
else if (C.Siren == 3)
{
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 151, C.UniqueID);
C.Siren = 0;
}
}
}
}

idk if thats wat you tlking =)

Thats what i ment. thx

OTHER POSTS:

I an a new insim dev and just want to know how to code a GREAT insim.
stuntguy3000
S2 licensed
Quote from PoVo :The RC app uses ^8 and C1 button style

thanks
Basic Tow System?
stuntguy3000
S2 licensed
Hello,

I need some help with a basic tow system - when someone gets lets say 500m within the tow truck their is a Caution kinda thing popup

could someone help

LFS_External

Thanks
Me ([DcS] stutnguy)
stuntguy3000
S2 licensed
Quote from Dygear :I would think so yes. The colors you posted are what Scawen used from the ECMA-48 standard. The other colors your talking about are from buttons, where use use the lowest three bits from BTN's BStyle to select the color you want (A number 1 - 7, 0 for none).

for none you don't need the ^0
Text Colours?
stuntguy3000
S2 licensed
Hello All.

I am a Insim Developer. What are ALL the color codes?

I know

^0 = Black
^1 = Red
^2 = Green
^3 = Yellow
^4 = Blue
^5 = Pink
^6 = Light Blue ish...
^7 = White
^8 = Default

What about the OTHER colors as seen on Reality Cruise's Menu Thing?
stuntguy3000
S2 licensed
Quote from broken :Ok, you've got the solution, but let's resolve the problem too. Why are the Toy variables integers?

When you are passing them to the function, do you know what types of variables they are? I guess that you haven't checked that. I want you to understand this, so you can avoid the same mistakes in the future.

i did make them int's for a reason: i just did lol

I will get another prob into this

case 164:
//Item 1
foreach (clsConnection C in Connections)
{
if (C.InToy == 1)
{
InSim.Send_MST_Message("/msg ^2•^7 " + C.PlayerName + " ^7Bought a Toy Dog!");
C.ToyDogs += 1;
C.Cash -= 100;
}
if (C.JobToBank == 1 || C.JobToMarket == 1)
{
InSim.Send_MTC_MessageToConnection("^1 You can only do 1 Job at a time!", C.UniqueID, 0);
}
else if (C.InJob == 1)
{
InSim.Send_MST_Message("/msg ^2•^7 " + C.PlayerName + " ^7 Accepted a Job!");
C.JobToMarket = 1;
}


}
break;

why won't it say You can only do 1 Job at a time! when you click the click button more than once? idk why its not stopping it.

TOTAL DUMBNESS FAIL!

The whole time that was working but i has a different code on my insim from whats posted lol

THREAD CLOSED
Last edited by stuntguy3000, .
stuntguy3000
S2 licensed
Quote from skywatcher122 :AFAIK the longest on the fileinfo is the 0-8 letters

and I'd rather use
static public void UpdateUserLeave(clsConnection C)
{
StreamWriter Sw = new StreamWriter(UserInfo + "\\" + C.Username + ".txt");
Sw.WriteLine("Cash = " + C.Cash);
Sw.WriteLine("BBal = " + C.BankBalance);
Sw.WriteLine("Cars = " + C.Cars);
Sw.WriteLine("Distance = " + C.TotalDistance);
Sw.WriteLine("Health = " + C.Health);
Sw.WriteLine("Stat = " + C.Stat);
Sw.WriteLine("ToyDogs = " + C.ToyDogs);
Sw.WriteLine("ToyTrains = " + C.ToyTrains);
Sw.WriteLine("ToyMonkeys = " + C.ToyMonkeys);
Sw.Flush();
Sw.Close();
}

OMG THANK YOU SO MUCH LOLAGE THANKS SO MUCH!!!!!!!!!! YOU ROCK.

btw... thanks
stuntguy3000
S2 licensed
Quote from stuntguy3000 :this is mine:
static public void UpdateUserLeave(string Username, long Cash, long BankBalance, string Cars, Int32 Distance, int Health, byte Stat, int ToyDogs, int ToyTrains, int ToyMonkeys)
{
StreamWriter Sw = new StreamWriter(UserInfo + "\\" + Username + ".txt");
Sw.WriteLine("Cash = " + Cash);
Sw.WriteLine("BBal = " + BankBalance);
Sw.WriteLine("Cars = " + Cars);
Sw.WriteLine("Distance = " + Distance);
Sw.WriteLine("Health = " + Health);
Sw.WriteLine("Stat = " + Stat);
Sw.WriteLine("ToyDogs = " + ToyDogs);
Sw.WriteLine("ToyTrains = " + ToyTrains);
Sw.WriteLine("ToyMonkeys = " + ToyMonkeys);
Sw.Flush();
Sw.Close();
}


i changed it to what you said i should have. i get these errors

The name 'C' does not exist in the current context. HELP!!!!!!
FGED GREDG RDFGDR GSFDG