The online racing simulator
Here is my code from MCI packet

Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].PlayerName

Example with username auto-clearing PIT Penalty @ PLA Packet

private void PLA_PitLaneChanged(Packets.IS_PLA PLA)
{
if (PLA.Fact == 0)
{
InSim.Send_MST_Message("/p_clear " + Connections[GetConnIdx(Players[GetPlyIdx(PLA.PLID)].UniqueID)].Username);
}
}

I updated the LFS_External example program to better reflect how I believe .NET programs should be written.

I uploaded the project to the library post. It requires VS2010 (express or better) to run it.
Hey , me and kamijou have been editing the

1.1.1.7 source

and have added the new packets from lfs

but constantly getting this error code from insim

[6/14/2011 3:49:54 PM] - AdminCmd - The output byte buffer is too small to contain the encoded data, encoding 'US-ASCII' fallback 'System.Text.EncoderReplacementFallback'.
Parameter name: bytes

it only does it if you type i think more than 6characters

any ideas?
Quote from Beaver08 :Hey , me and kamijou have been editing the

1.1.1.7 source

and have added the new packets from lfs

but constantly getting this error code from insim

[6/14/2011 3:49:54 PM] - AdminCmd - The output byte buffer is too small to contain the encoded data, encoding 'US-ASCII' fallback 'System.Text.EncoderReplacementFallback'.
Parameter name: bytes

it only does it if you type i think more than 6characters

any ideas?

the packet i added is IS_ACR


<?php 
        
[StructLayout(LayoutKind.Sequential)]
        public 
struct IS_ACR // Admin Command Report - any user typed an admin command
        
{
            
internal byte Size;        // 72
            
internal byte Type;        // ISP_ACR
            
public byte ReqI;        // 0
            
internal byte Zero;

            public 
byte UCID;        // connection's unique id (0 = host)
            
public byte Admin;        // set if user is an admin
            
public byte Result;        // 1 - processed / 2 - rejected / 3 - unknown command
            
internal byte Sp3;
            [
MarshalAs(UnmanagedType.ByValTStrSizeConst 64)]
            public 
string Text;
        }
?>

is there any problems regarding about this?

E: I fixed the problem
Quote from skywatcher122 :E: I fixed the problem

How?

You can't just request help and retreat as soon as your question has been resolved. And if you have replaced the problematic code with the new one - note it somewhere.
LFS External_csf11
where do i set what cars i want
depends on wat you mean by set the cars..

you can set the servers cars by using the /car command within the setup.cfg

or you can program it within the NPL packet and file saving to check and add which vehicles they have.

i'm not at home so i cannot show you an example of what i mean but i hope it helps
first of all sorry for double post and completly off-topic

but there is a guy calls himself Captain Slow (Username: pro_drift_93)

he is going around claiming ownership of LFS_External and the copyright of the whole programme he tried threatning with courts and legal stuff aswell.

These are his claims.


Jul 05 17:55:25 Captain Slow : the fact of me making this insim makes me think i need to know
Jul 05 17:55:29 Captain Slow : could take it down
Jul 05 17:55:47 Captain Slow : and beav in court for copyright infringement
Jul 05 17:56:31 Captain Slow : okay il get on the phone to my solicitor
Jul 05 17:56:36 Captain Slow : find out the ip this is hosted on
Jul 05 17:57:35 Captain Slow : its okay
Jul 05 17:57:38 Captain Slow : kick or whatever
Jul 05 17:57:45 Captain Slow : emailing devs now
Jul 05 17:58:02 Captain Slow : to have the server removed
Jul 05 17:58:07 Captain Slow : for breach of copyrtight laws
Jul 05 17:58:21 Captain Slow : as i own half the coding on this insim
Jul 05 17:58:27 Captain Slow : all in copyright

i thought you guys should see that this person is believing that he created the LFS_External and how stupid he has made himself look.
Well, as the guy who 'owns' this program, he clearly hasn't read the license it's released under.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

This is why I release all of my stuff under the MIT license.
insims
looking for someone who no how to code insims im starting a team and ive got my own dedi box
Do you know what coordinates Pit EXIT and Pit ENTRY AS1Y track?

AS5Y track

<?php 
// Pit EXIT
                            
if (((MCI.Info[i].196608) <= -203) && ((MCI.Info[i].196608) >= -65) && ((MCI.Info[i].196608) <= -45) && (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone == 0))
                            {
                                if (((
MCI.Info[i].Direction 180) < 80) || ((MCI.Info[i].Direction 180) > 280))
                                {
                                    
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone 1;
                                  
                                    
InSim.Send_MST_Message("/spec " Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username);
                                }
                            }
                            if (((
MCI.Info[i].196608) < -65) || ((MCI.Info[i].196608) > -45))
                            {
                                
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone 0;
                            }

                            
// Pit ENTRY
                            
if (((MCI.Info[i].196608) <= -203) && ((MCI.Info[i].196608) >= -158) && ((MCI.Info[i].196608) <= -145) && (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone2 == 0))
                            {
                                if (((
MCI.Info[i].Direction 180) < 80) || ((MCI.Info[i].Direction 180) > 280))
                                {
                                    
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone2 1;
                                   
                                    
InSim.Send_MST_Message("/spec " Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username);
                                }
                            }
                            if (((
MCI.Info[i].196608) < -158) || ((MCI.Info[i].196608) > -145))
                            {
                                
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].IsInPitZone2 0;
                            }
?>

How to make it work and AS1Y on track?
#488 - kdo
use the X-Y-Node of the incim by add that for the location:

case "yourtrack":
for (int i = 0; i < Players.Count; i++)
{
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username == "yourusername")
{
InSim.Send_BTN_CreateButton("^1X: " + MCI.Info[i].X / 196608 + " ^2Y: " + MCI.Info[i].Y / 196608, Flags.ButtonStyles.ISB_DARK, 5, 15, 6, 90, 6, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^3Node: " + MCI.Info[i].Node, Flags.ButtonStyles.ISB_DARK, 5, 15, 12, 90, 170, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false); // Spare Button
}

this will say to you the location
But I do not go exactly does that do good work. Can you help?
Quote from DarkKostas :Demo user. Hmm?

No. It does not have a large bearing on the answer.
Can anyone help? In addition to these issues.
Can someone please help me with a link to LFS external 1.1.1.4 ? Can't find it and links from 1st post are dead.
-
(tigsimulator) DELETED by tigsimulator : no error
Hi,
i looked for every insim packet but couldn't find a way to get wheel temps,damage info like we see with F9-F10.
How can we get this type of car info?
Damage, no. Temperature, not "live". Closest would probably be "Air temperature" in "Dynamic Wheel Info" in a RAF. http://www.lfs.net/?page=RAF
Does anyone have the 1.1.1.4 version ?
Why do you need this specific version? Considering I don't think that one is compatible with the latest InSim API.

It's probably best to have newest.
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
Are you actually recompiling the InSim with the different library, or are you just replacing the DLL? I'd imagine it would require a recompile in Visual Studio with the new DLL added to "Resources".
I clicked add reference , browsed to the new dll and then released again the solution

I am doing something wrong ?

.NET - LFS External (InSim/OutSim/OutGauge SDK Library)
(538 posts, started )
FGED GREDG RDFGDR GSFDG