Here You Go
Attached images
LFSInsimMPH.JPG
-
(MariusMM) DELETED by MariusMM
Quote from binladens :Im still having problems with mci.... can any1 tell me how to use that MCI handling patch thats in this forum im sorta lost in the code

Priekš kam tev vajag demo cruise serveri? :|
Quote from Shadowww :Priekš kam tev vajag demo cruise serveri? :|

1st: If you respect everybody in the forums you would say that in english.
2nd: As far as I understand you are asking something that would offend demo users and/or cruisers.

From these 2 I'd like to tell you 2 things:
1: Have some more respect and courage and write that in english.
2: If you don't want everybody to soon start thinking you are a hypocrite then stop offending cruise servers.

Let me give you one example:
Quote from Shadowww :But PLEASE, do not allow demoers to be cadets/cops.

Whining about who is cop/cadet in a cruise server....
Quote from Shadowww :What he said.

If you want to make just another crapuise server, learn to code. [...]

After which this is how you call cruising.
Quote from broken :2nd: As far as I understand you are asking something that would offend demo users and/or cruisers.

You, Sir, fail at understanding other languages.
Quote from Shadowww :You, Sir, fail at understanding other languages.

Yep, especially at languages I've never heard.
I Was wondering if it would be possible to add a command that will swap the speed shown for users e.g !mph would change it to mp/h and vice versa.

Anyone have any idea on how to do this? I know I don't :P
Quote from binladens :Whell what he said was " Why Do i need Demo cruise server"

To be honest demo is a start to s2.... now with the crisis bla bla bla.... just sorta dont have the spare money to buy the license and make the goddamn s2 server...

Im just testing this cruise for the moment and got stuck with 8 players limit started searching and the author of this program... wrote to me about the mci limit and explained how it works and then i understoood....

As i said to him... i may understand the most basic things about programming some basic languages not visual c# or insim...... as ive never tried to "remake any visual c# or insim " before this program im learning whats what yet

Shadoww as i see ur kinda respected man here sort of...

So can any1 help me with the mci handling "patch" ish.. and a small explain whats what would be very thankful

If you have xfire, add me - ga3ar43. I will help you out with the MCI limit.
If you don't have xfire and you want to get it(it's the only messanger I use) you can download it from http://xfire.com
Anyone have any idea what could be causing this problem.

Thanks for the help
Attached images
Problem1.JPG
Ah ok, that'll be why, thanks
-
(Azzano62) DELETED by Azzano62 : think it isnt needed
I've found a problem in this (might just be mine i dno) but when there is no-one on track and someone joins, that user can use ANY car they want even if they don't own it, and it only seems to pick it up once one user is on the track :S I must of done something wrong, but I dno what.

Or how to fix it, Any one have any idea about how to fix this?

Thanks in advance
Just tried it on mine, and it didnt do it ?

If i repitted a few times i could drive out of pits, but then it specced me ?

Mick
no he means you can become like the host with a bit of cheating well sorta cheating some things you have to do to be able to become host anyone can do it as long as they do it in a certain way

if you want to know how to do it and fix it add my msn [email protected]
Need help with some coding
Hey, i have made a towtruck group, but there's a problem..

here is what i think is wrong:

static public byte GetUserTow(string Username)
{
StreamReader Sr = new StreamReader(UserInfo + "\\groups\\tow.txt");

string line = null;
while ((line = Sr.ReadLine()) != null)
{
if (line.Substring(0, 7) == "TowTruck")
{
string[] Msg = line.Split('=');
if (Msg[1].Trim() == Username)
{
Sr.Close();
return 1;
}
}
}
Sr.Close();
return 0;
}

and this is the error messages i get when starting the insim:

All Transelated from Norwegian, so not so good, but u get the clue**

Quote :NCN Index and length must refer to a location in the string.
Parameter Name: Lengt

Quote :NCN Can not write data to transport connection: An established connection was aborted by the software on the host.

Quote :NPL - The index was outside the area. It must be non-negative and less than the size of the collection.
Parameter name: index

i hope someone bother to help me
maby i can return you a favour, and host a lfs server
here is what i think is wrong:

static public byte GetUserTow(string Username)
{
StreamReader Sr = new StreamReader(UserInfo + "\\groups\\tow.txt");

string line = null;
while ((line = Sr.ReadLine()) != null)
{
if (line.Substring(0, 7) == "TowTruck")
{
string[] Msg = line.Split('=');
if (Msg[1].Trim() == Username)
{
Sr.Close();
return 1;
}
}
}
Sr.Close();
return 0;
}

ok first of all you have if (line.Substring(0, 7) == "TowTruck") well its supposed to be 8 so it should be this if (line.Substring(0, 8) == "TowTruck")
Quote from Azzano62 :here is what i think is wrong:

ok first of all you have if (line.Substring(0, 7) == "TowTruck") well its supposed to be 8 so it should be this if (line.Substring(0, 8) == "TowTruck")

thanks, that worked
need help with code
now i can't go ON DUTY or OFF DUTY towtruck..

Here's the ClsConnections.cs coding:
/// <summary>Holds information of a connected client to the lfs server</summary>
public class clsConnection
{
//stripped un-needed code

protected byte _canbetow;

//stripped un-needed code

// Tow Bits
protected byte _isTow;



/// <summary>Connection Unique ID</summary>
public byte UniqueID
{
get { return _uniqueid; }
set { _uniqueid = value; }
}

/// <summary>
/// Connections username
/// </summary>
public string Username
{
get { return _username; }
set { _username = value; }
}

/// <summary>
/// Connections player name
/// </summary>
public string PlayerName
{
get { return _playername; }
set { _playername = value; }
}

/// <summary>
/// Connection is admin
/// </summary>
public byte IsAdmin
{
get { return _isadmin; }
set { _isadmin = value; }
}

/// <summary>
/// Bit 2 : remote
/// </summary>
//stripped un-needed code
}
public byte CanBeTow
{
get { return _canbetow; }
set { _canbetow = value; }
}
public byte isTow
{
get { return _isTow; }
set { _isTow = value; }
}
//stripped un-needed code

}

here's the NewConn in form1.cs

// Assign values of new connnnection.
clsConnection NewConn = new clsConnection();
NewConn.CanBeTow = FileInfo.GetUserTow(NCN.UName);

//stripped un-needed code


// Tow Bits
NewConn.isTow = 0;

Connections.Add(NewConn);
}

Here's the !towon command for on/off duty in form1.cs:
case "!towon":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].CanBeTow == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].isTow == 0)
{
Connections[GetConnIdx(MSO.UCID)].isTow = 1; // 1 = Tow
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " is now ^1ON-DUTY ^7Towtruck");
}
else
{
Connections[GetConnIdx(MSO.UCID)].isTow = 0; // 1 = Tow
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " is now ^2OFF-DUTY ^7Towtruck");
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Not Authorised!", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;

hope you or someone else could help me, since i came this long
Quote from jto93 :now i can't go ON DUTY or OFF DUTY towtruck..

Here's the ClsConnections.cs coding:
/// <summary>Holds information of a connected client to the lfs server</summary>
public class clsConnection
{
//stripped un-needed code

protected byte _canbetow;

//stripped un-needed code

// Tow Bits
protected byte _isTow;



/// <summary>Connection Unique ID</summary>
public byte UniqueID
{
get { return _uniqueid; }
set { _uniqueid = value; }
}

/// <summary>
/// Connections username
/// </summary>
public string Username
{
get { return _username; }
set { _username = value; }
}

/// <summary>
/// Connections player name
/// </summary>
public string PlayerName
{
get { return _playername; }
set { _playername = value; }
}

/// <summary>
/// Connection is admin
/// </summary>
public byte IsAdmin
{
get { return _isadmin; }
set { _isadmin = value; }
}

/// <summary>
/// Bit 2 : remote
/// </summary>
//stripped un-needed code
}
public byte CanBeTow
{
get { return _canbetow; }
set { _canbetow = value; }
}
public byte isTow
{
get { return _isTow; }
set { _isTow = value; }
}
//stripped un-needed code

}

here's the NewConn in form1.cs

// Assign values of new connnnection.
clsConnection NewConn = new clsConnection();
NewConn.CanBeTow = FileInfo.GetUserTow(NCN.UName);

//stripped un-needed code


// Tow Bits
NewConn.isTow = 0;

Connections.Add(NewConn);
}

Here's the !towon command for on/off duty in form1.cs:
case "!towon":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].CanBeTow == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].isTow == 0)
{
Connections[GetConnIdx(MSO.UCID)].isTow = 1; // 1 = Tow
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " is now ^1ON-DUTY ^7Towtruck");
}
else
{
Connections[GetConnIdx(MSO.UCID)].isTow = 0; // 1 = Tow
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " is now ^2OFF-DUTY ^7Towtruck");
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Not Authorised!", MSO.UCID, 0);
}
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;

hope you or someone else could help me, since i came this long

ok /* Tow Bits*/ NewConn.isTow = 0; cant be done as you havent added it to the clsplayer you added it to the clsconnection and you dont need NewConn.isTow = 0; at all

you need something like this Connections[GetConnIdx(MSO.UCID)].isTow = 0; instead of NewConn.isTow = 0;
Quote from Azzano62 :ok /* Tow Bits*/ NewConn.isTow = 0; cant be done as you havent added it to the clsplayer you added it to the clsconnection and you dont need NewConn.isTow = 0; at all

you need something like this Connections[GetConnIdx(MSO.UCID)].isTow = 0; instead of NewConn.isTow = 0;

that was'nt the problem, but i got it right thanks for the help
Does anyone know a way to fix the cop system,

If 1 cop starts !chase it is fine, it another chase starts it messes up ?

Mick
hi there i downloaded this insim yesterday but i cant get it too work with the admin password. when i run the insim it runs perfectly but if i set my custon admin password it will say this "index and lengh must refer to a location within the string. Parameter name: lengh". i was wondering if you could help me with this. the insim is good man keep it up.
i got it all setup,, when i put the port in it comes up with " insim tcp blind failed " when i try and upload the insim it just comes up with can't connect to the insim host. any help ?
-
(MariusMM) DELETED by MariusMM
// Example host configuration file
// How to use: LFS /cfg=setup.cfg
// Lines starting with // are ignored
// host name
/host=Testing !
// optional: password
//pass=password
// optional: admin password
//admin=xxxxxx
// optional: InSim port
//insim=29969
// optional: local specified ip address
//ip=92.236.69.245
// a high number below 65536
/port=63392
// demo/s1/s2
/mode=s2
// no/yes/hidden
/usemaster=yes
// BL1/BL1R/BL2, SO1/SO1R/SO2, etc
/track=AS5
// weather
/weather=1
// cars allowed - see README.txt
/cars=ALL
// max guests that can join host
/maxguests=1
// slots reserved for admins (0 to 8)
/adminslots=1
// max cars in a race
/carsmax=5
// max cars (real+ai) on host pc
/carshost=1
// max cars (real+ai) per guest pc
/carsguest=1
// smoothness (3-6) number of car updates per second
/pps=4
// qualifying minutes, 0 for no qualifying
/qual=0
// number of laps, 0 for practice
/laps=0
// if laps not specified: hours
//hours=24
// 0=no/1=low/2=high
/wind=1
// nogfx/invisible
/dedicated=nogfx
// no/yes: can guests vote to kick or ban
/vote=no
// no/yes: can guests select track
/select=no
// no/kick/ban/spec: wrong way drivers
/autokick=no
// no restart within X seconds of race start
/rstmin=60
// no restart within X seconds of race finish
/rstend=30
// no/yes: allow join during race
/midrace=yes
// no/yes: pit stop required
/mustpit=yes
// no/yes: allow car reset
/canreset=no
// no/yes: force cockpit view
/fcv=no
// no/yes: allow wrong way driving
/cruise=yes
// fixed/finish/reverse/random: race start order
/start=finish
// optional: welcome message up to 200 chars
//welcome=Welcomeeeeeee
// optional: text file listing allowed tracks
//tracks=Welcome "TEST"
// optional: message log file
//log=deb.log
// no/yes: network debug
/ndebug=no
// MPR autosave (0=off / 1=manual / 2=auto)
/autosave=2
// MPR folder
/mprdir=mpr
// LYT folder
/lytdir=layout
-
(MariusMM) DELETED by MariusMM
I had this problem aswell, really annoying. I solved it by restarting lfs...
have restarted the whole pc=P
-
(MariusMM) DELETED by MariusMM

FGED GREDG RDFGDR GSFDG