The online racing simulator
Ability to simulate key press of ignition
I am currently making a two-step rev limiter for the XRT using outgauge. THe current way I do it is by reversing the throttle axis. It would be so much better if I could simulate pressing "i". However, when I use the SendKeys function in python, nothing happens in LFS when I Send the "i" key. I would like to be able to cut the ignition this way. It would make launch control like this easier to do.
#2 - ajp71
Quote from wheel4hummer :It would make launch control like this easier to do.

Erm.. using launch control isn't cheating?
#3 - herki
Quote from ajp71 :Erm.. using launch control isn't cheating?

Just a little rule-bending
It isn't really cheating in my opinion. It only makes a difference for drag racing. You have to let off at the start of a race anyway, because of people who sleep at the lights.
#5 - ajp71
^^It still give your car an unfair advantage though and would inevitably end up in inappropriate use (unless it causes online mismatches).
#6 - herki
That somehow like saying a better setup gives you an unfair advantage
Quote from herki :That somehow like saying a better setup gives you an unfair advantage

It's like having a script do all the driving for you - IMO it's cheating.
Quote from duke_toaster :It's like having a script do all the driving for you - IMO it's cheating.

Then you should also consider 90% of all lfs drivers cheaters as they use a mix of throttle blip/cut, throttle help/brake help and auto gears.

imo it's valid to use launch control or traction control seeing as no one made any rules about them. So if you really dont want to see apps like that, make a rule book.
But there's a difference between using built-in helps and coding helps that were not intended to exist/be used yourself.
You should beable to send the key event using the Windows API, but this should also work, and across hosts. And it's already available in Insim v4 (and v3).

struct IS_SCH // Single CHaracter - send to simulate single character
{
byte Size; // 8
byte Type; // ISP_SCH
byte ReqI; // 0
byte Zero;

byte CharB; // key to press
byte Flags; // bit 0 : SHIFT / bit 1 : CTRL
byte Spare2;
byte Spare3;
};

Quote from the_angry_angel :You should beable to send the key event using the Windows API, but this should also work, and across hosts. And it's already available in Insim v4 (and v3).

I didn't know that packet existed! Thx! In C, windows.h wouldn't work for the "i" key inside of LFS.

FGED GREDG RDFGDR GSFDG