The online racing simulator
Searching in All forums
(135 results)
Kyle-Caz
S3 licensed
Brilliant - thanks Chuck! Wink
Kyle-Caz
S3 licensed
Nice work! Big grin
Kyle-Caz
S3 licensed
Okay, so I've used LsGO InSim as a guide and I've nearly got it - however when I go to add the data, the output in the list is instead:

Connection list:
ServerSideInSim.clsConnection

The code I am using is:

clsConnection NewConn = new clsConnection();

NewConn.UniqueID = NCN.UCID;
NewConn.Username = NCN.UName;
NewConn.PlayerName = NCN.PName;
NewConn.IsAdmin = NCN.Admin;

Console.WriteLine(NewConn.UniqueID);
Connections.Add(NewConn);

Hope someone can help me! Big grin
Kyle-Caz
S3 licensed
Ah, okay. No worries bud - thanks for explaining about the PLID/UCIDs Smile
Kyle-Caz
S3 licensed
Ah okay, that makes sense now.
Do you know how I would go about storing these lists in C#?
Kyle-Caz
S3 licensed
Reinstall your LFS to a different folder and set the game to always run as admin - might workk, then
Holding connected player's information
Kyle-Caz
S3 licensed
Hi all,
What is the best way to hold information of multiple players connected to a server with InSim?

E.G.
  • username
  • nickname
  • plid
  • ucid
  • car
etc.

I'm using C# with InSimDotNet :-) Any help is much appreciated
Kyle-Caz
S3 licensed
Try making the LFS directory in it's own folder on the root of C:\ (e.g. "C:\LFS" and "C:\LFS 0.6S" for example. As Rosewood said, check it's not read-only.

Also you can contact the devs and explain to them what happened and they should grant you a couple more unlocks (checking the time this was posted though, you probably have 2 unlocks anyway)
LFS Shop returning HTTP Error 500
Kyle-Caz
S3 licensed
Can't seem to get to the basket when buying something on the shop without an HTTP 500 error


Kyle-Caz
S3 licensed
Something so obvious lol! Wink That worked, cheers Smile
Weird issue with IS_JRR packets
Kyle-Caz
S3 licensed
Hey,
I'm trying to make an InSim spawn point but my code does nothing. I've added ISF_REQ_JOIN to my IS_ISI flags and I've binded the event but nothing's happening? It works just fine if I add it to a command, though.

insim.Bind<IS_JRR>(JoinRequest);


Flags = InSimFlags.ISF_MCI | InSimFlags.ISF_MSO_COLS | InSimFlags.ISF_REQ_JOIN,


static void JoinRequest(InSim insim, IS_JRR jrr)
{
insim.Send(new IS_JRR
{
ReqI = 0,
JRRAction = JrrAction.JRR_SPAWN,
PLID = jrr.PLID,
UCID = jrr.UCID,
StartPos = { Heading = 255, X = -1644, Y = -2259, Zbyte = 17, Index = 0, Flags = 0x80 }
});
insim.Send("/msg Join request approved.");
}

I must be missing something?
Kyle-Caz
S3 licensed
Do what Abone said and uninstall any drivers you have already installed on your PC.

Then install profiler from the following link and then you can access the wheel settings from there and have your settings exactly as they were Smile

http://www.logitech.com/pub/techsupport/joystick/lgs510_x64.exe
Kyle-Caz
S3 licensed
LFS usernames can have spaces. Nevertheless, I adapted the code for usernames and it worked Smile Cheers for your help
Kyle-Caz
S3 licensed
Just a question. If I made a !kick <username> command, how would I go about this, as some users have spaces in their names, so how would I get InSim to handle everything after !kick as a username, instead of individual words?
Kyle-Caz
S3 licensed
Works a charm! Thanks for your help
Kyle-Caz
S3 licensed
Okay, cheers for replying :-) I'll try it when I'm back at home.
Help with ! commands
Kyle-Caz
S3 licensed
Hey,
I'm quite new to InSim programming, and I was wondering if anyone could help with ! commands with InSim?

I'm using DarkTime's InSimDotNet library and I'm coding in C#. I'm not sure if I'd do a "switch" case, or what I do.

Help would be appreciated Smile
Kyle-Caz
S3 licensed
Quote from EfsaneTosun :translate sorry Big grin


while(LightSequenceID1 == true)
{
insim.Send(new IS_OCO
{
ReqI = 0, // Request ID
OCOAction = OCOAction.OCO_LIGHTS_SET, // Tells the lights to be set
Index = OCOIndex.AXO_START_LIGHTS, // Selects temporary lights
Identifier = 1, // Traffuc light Identifier set in SHIFT + U
Data = BulbInfo.Red1 | BulbInfo.Red2
});
}


Thanks, it worked Smile
Kyle-Caz
S3 licensed
Quote from EfsaneTosun :No & yes | Smile

true BulbInfo.Red1 | BulbInfo.Red2

Hi,
I've just tried that, but I get this error?



I'm probably missing something so simple, but I've put my code below (in plain text) if it helps?

while(LightSequenceID1 == true)
{
insim.Send(new IS_OCO
{
ReqI = 0, // Request ID
OCOAction = OCOAction.OCO_LIGHTS_SET, // Tells the lights to be set
Index = OCOIndex.AXO_START_LIGHTS, // Selects temporary lights
Identifier = 1, // Traffuc light Identifier set in SHIFT + U
Data = true, BulbInfo.Red1 | BulbInfo.Red2
});
}

IS_OCO help with setting 2 bulbs
Kyle-Caz
S3 licensed
Hey,
I'm trying to add a packet to set a traffic light to red1 + red2. When I do this though, I get this error:




Is there a way around this?
Kyle-Caz
S3 licensed
Thanks :-)
Help with clickable buttons
Kyle-Caz
S3 licensed
Hello,
I've added a button on an InSim I'm making in C#, but I have no clue how you make it actually do something? I've put down this for the button:

SendBtn(10, 4, 4, 45, 45, "^8Stream", ButtonStyles.ISB_DARK | ButtonStyles.ISB_CLICK);

I'm guessing I need to reference this to a case, but how would I go about doing that?
Kyle-Caz
S3 licensed
I'm having an issue with the delayed command, in the fact that it isn't executing it. Here's what I put if it helps:


Sub LightsOn($userName)
cmdLFS("/press 3");
DelayedCommand(1, LightsFlashToOff);
EndSub

Sub LightsFlashToOff($userName)
cmdLFS("/press 3");
DelayedCommand(1, LightsOn);
EndSub

Kyle-Caz
S3 licensed
Quote from Yisc[NL] :Sure, you can do such thing with Lapper.
You will need to make a command like:

CASE "!siren"

So if someone types '!horn' in chat a sub event is executed.
In that sub event you need to send a command to LFS, like:

cmdLFS("/siren fast");

Okay, thanks :-)
Controlling siren, horn and lights in LFSLapper
Kyle-Caz
S3 licensed
Hi there,
Is it possible for LFSLapper to be able to control the local player's headlights, horn and siren? I'm making a script which I would like this to be able to do.
Last edited by Bass-Driver, .
FGED GREDG RDFGDR GSFDG