The online racing simulator
InSim Question
2
(38 posts, started )
If there are other cars in the race that you know will actually start, you can use InSim's IS_CSC packet, which is sent when a car starts moving; you could then have your app send the command to shift up with either /press or using the IS_SCH packet to send the key corresponding to shift up (but you should check they are in neutral before doing that, which you can do using OutGauge or OutSim).
This assumes your customers are actually pressing the right pedal at least, even if they forget to shift up Big grin with this at least, they would start moving shortly after any car does - which means someone who jump starts will cause everyone else to do so as well, if they're not holding the clutch.
Ok, that's promising, soi theory it could be done?
Why not just set up a text box saying to shift up and hold the clutch for the start?
Quote from Bokujishin :If there are other cars in the race that you know will actually start, you can...

Unfortunately there are no other cars except the Ai:s and the one player car.....
Well, I would say AI are pretty reliable when it comes to starting driving at the green lights Big grin so my point still stands - and it actually removes the risk of a single player jump-starting and causing everyone else to do so as well (which could actually be avoided by checking for 2 or 3 cars instead of a single one).
Quote from Meseplayer :Ok, that's promising, soi theory it could be done?

Seems to be possible if you're definitely going to have at least one AI starting, I will do a test later Thumbs up
Ok, I have at least 6 AI drivers in every race,
Yeah, that works! Text comes out after about a second from the green light
Attached images
autostart.jpg
Attached files
autostart.zip - 513 B - 60 views
Hi again.

Now, this will of course work on every track at any time, start, restart etc.,?
For a noob on InSim, what should I do to get it to work, should the InSim "run" all the time etc...

By the way, I actually did manage to make a version of my own (not InSim) that automatically kicks in a gear when the lights go green. All seems to work perfectly, you newer miss a start. It could be categorized as a cheat, so I'm not gonna put it up here. I'm not driving any online races anymore so it's not for that purpose at all, just to make it easy for the costumers who don't understand the shifting paddles.
If your non-InSim version involves reading game memory or some kind of image detection (or anything external to the normal use of the game), then yes it would be considered a cheat (even some InSim usage can also be considered cheating, depending on the situation). From InSim though, it is perfectly possible to do (within the limits stated before, that is having at least one other car that does start on the green light, and accepting that your forgot-to-shift-up customers will start after said car(s)), you can have a variable set on race start (using the IS_RST packet), which allows you to disable the auto-shift once it has triggered.
Ok, I think I only need to use this a first race start, and I think it's possible to switch off auto gears as soon as the costumers touch any of the paddles, assuming he then understand whats the meaning of the paddles😀
Quote from Meseplayer :Now, this will of course work on every track at any time, start, restart etc.,?
For a noob on InSim, what should I do to get it to work, should the InSim "run" all the time etc...

Yeah, so that one is a PIE script just because that's quickest/easiest for me to write. (PIE's a commandline executable that uses PHP, instructions here. If it needs to be a different language, you can still use the logic as a base).

It connects to the LFS client, so you need one copy of it running for each player that you want to automate.

It will stay connected but will only fire once per race start, then will reset itself when the next race starts.
OK, I´ll give it a try, thanks!

By the way, there´s a BIG help out there in the Ai thing.

If you have some issues with any kind of InSim or other programming, just log in to Gemini Ai and ask for help. It´s just amazing!

Meseplayer
2

InSim Question
(38 posts, started )
FGED GREDG RDFGDR GSFDG