The online racing simulator
Searching in All forums
(11 results)
Arkanon
Demo licensed
Hi yisc, thank you for the help, il look into this solution and see if it fits my needs, thank you!
Arkanon
Demo licensed
Hi Yisc, thank you for taking the time to respond.

I need to have the server setup without direct human interraction. Which is why im trying to set it up with insim (through code is also acceptable, im working in c# but cant figure out any other way then to simulate clicking in specific screen coordinates, which isint exactly a great idea.
Arkanon
Demo licensed
Hi Cargame,

Thank you for the reply, but this is for creating a multiplayer game, im looking for a way to do this directly with insim, without the need to setup manualy. For clarity, to start a singleplayer game, you can send a number of comands "/sp" and select the tracs and such with similar comands as seen here: http://en.lfsmanual.net/wiki/Keys
Is there a way to do this with insim?
How to create a local multiplayer game with Insim
Arkanon
Demo licensed
Hi guys,

How do you create a multiplayer local game, not join one?

The command /mp IP seems to be meant to exclusivly join an multiplayer game but im looking to create one and allow players to join it (must be local).

Can anyone point me to a tutorial or something? Thanks Smile
Arkanon
Demo licensed
Hello Daniel.

Im trying to simplfy it for a project, i understand it would of been better to use another game or even a game dev engine but alas this is the boat im in now. Do you know how to do any of the things i requested?
Respawn in spite of yellow flags/ autofix damage
Arkanon
Demo licensed
Is there a way to do this? I have my custom auto respawn system in place but to many times its stopped by potential yellow flags. I have not seen a way to disable yellow flags.

Id also like to disable damage or ad least auto fix it as im trying to simplify the driving system as much as possible.
Arkanon
Demo licensed
Solved: use the sendkeys function as indicated in the following video: https://www.youtube.com/watch?v=f_ZBFJMlhYQ (its not in english but still helps)
Arkanon
Demo licensed
i have used SendKeys to do this. However i have the same problem as insim: i cant sent control comands.

What i am trying to do is have the vehicle automatically shift gears, which happens, but for some reason at the beggining of the race, the car starts in a turned off state and you have to manually shift to first gear
Gear shift with inSim
Arkanon
Demo licensed
i guys, im trying to simulate a button press, specificaly the s key, which should change gears.
i use the "/press s" command and send it via a IS_MST message with no success.

After reading through the forumas i found this:
https://www.lfs.net/forum/thread/55528

It seems that changing gears (which is what im attempting to do, my gear starts in zero and requiers manual input to change to first gear, then the gears are automatic afterwards) is not possible through simulation of button preses.
How do i start the car in gear 1? am i overlooking a method to simulate button presses? i also attempted using IS_SCH, this didnt work either.
my code:


public void sendmsg(string cmd, int wait) {

insim.Send(new IS_MST()
{
Msg=cmd
});
System.Threading.Thread.Sleep(new TimeSpan(0, 0, wait));
}


void restartListen(InSim insim, IS_RST rst)
{
}
Arkanon
Demo licensed
also im using inSim to do this
Trying to simulate button press, please help
Arkanon
Demo licensed
Hi guys, im trying to simulate a button press, specificaly the s key, which should change gears.
i use the "/press s" command and send it via a IS_MST message with no success.

After reading through the forumas i found this:
https://www.lfs.net/forum/thread/55528

It seems that changing gears (which is what im attempting to do, my gear starts in zero and requiers manual input to change to first gear, then the gears are automatic afterwards) is not possible through simulation of button preses.
How do i start the car in gear 1? am i overlooking a method to simulate button presses? i also attempted using IS_SCH, this didnt work either.
my code:


public void sendmsg(string cmd, int wait) {

insim.Send(new IS_MST()
{
Msg=cmd
});
System.Threading.Thread.Sleep(new TimeSpan(0, 0, wait));
}


void restartListen(InSim insim, IS_RST rst)
{
}
FGED GREDG RDFGDR GSFDG