The online racing simulator
Searching in All forums
(934 results)
Racon
S3 licensed
Online in LFS
I had forgotten about this thread... if not the maths in it. (Ty again rane, most helpful! Ended up with using dot and cross products to make nodelines and calculate the ratio between them)

I have gotten a prototype up and running since my last post here (link), but it is still funky in that the timings, while self-consistent, are adrift from LFS timings by a variable amount. I'm using CompCar data from MCI and I think that's where the problem lies - timing info is not available there so I'm using the time of packet receipt. Obviously there's going to be a little lag like that, but I didn't think it would amount to this much. Oh well.

I plan to switch it to using OutSim data instead and I think that'll tighten it up.

Another problem is the layout names not being present in AXI: There is no way for a client side InSim to know the name of a layout, and this makes any client system dependent on user-input for changing to anything other than an 'official' track. It's blocking this and other projects, so I've made it an Improvement Suggestion.
Layout name in all AXI packets
Racon
S3 licensed
Online in LFS
char LName[32]; // the name of the layout last loaded (if loaded locally)

The AXI packet has the LName field for specifying the name of the layout loaded, but this name is only provided at certain times. In the case of a player using shift-U mode and the "load layout" button on a server, this field is blank.

(IIRC correctly, you have said before that this is because the client doesn't load a layout the same way as a host does - that the host does the proper AXI method but the client fakes it by reading the file and sending the objects through AXMs.)

I don't know how much work it is to change this, but wanted to point out how important this one is for anyone who uses tracks other than the official tracks.

Currently no client-side program can trust enough to distinguish between layouts - they can tell the difference between say BL1 and BL2, but any of the 100s of layouts I have on BL4X for instance will all report to a local InSim that they are BL4X. A server-side program is only safe if people use the axload command on the server.

For myself, this problem is holding back a few projects - I don't want to leave the track selection in the hands of the user because it's too easy to destroy data with a small mistake and it's a PITA to remember to do. I've explored a few object-based workarounds, but they're... "not good".
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 19/3
Racon
S3 licensed
Online in LFS



**PiranMOTO Open DD - Season 19 Event 4**
**Friday 12th September** at **19:00 UTC**

Live stats at https://piranmoto.uk/events/275
Tracks highlighted in **!vote** menu
PiranMOTO Discord https://discord.gg/Yj3B5TS
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 19/2
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
Racon
S3 licensed
Online in LFS
It's one unlock per machine you install it on - when you start the game again after having unlocked it previously, it should still be unlocked.

Have you installed it inside window's "program files" directory? that can cause this issue, it's best to give LFS its own directory like "C:/LFS".
Racon
S3 licensed
Online in LFS
Quote from Racon :LFSW name: racon
In-game name: [PM] Jam 616
Full team name: PiranMOTO
Nation: United Kingdom

Reactivate
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 19/1
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
PiranMOTO Delta (prototype)
Racon
S3 licensed
Online in LFS


PiranMOTO Delta - a simple tracker for delta time and speed compared to your best lap. Time on the left, speed on the right.

Currently a prototype to be used as a session tracker (ie, this version doesn't save lap data!). Best laps will be reset on changing car or track, all lap data is lost when closing the program.

edit:
bugs:
- dividebyzero error sometimes triggered (when changing car & track together?)
- I'm seeing some drift in timings happen sometimes - up to .2 seconds out compared to LFS timings, but self-consistent. Noted, looking for a cause.
- Cause found, I think, refactoring soon Wink
Last edited by Racon, .
Racon
S3 licensed
Online in LFS
No problem, it would be good to see it working in LFS Thumbs up

It's a PIE script, so you'll need PIE to run it, and you'll need to configure OutGauge if you haven't already in your LFS/cfg.txt file (I used Mode 2; Delay 10; IP 127.0.0.1; Port 49999 for testing).

I've set it to use RearFog for Throttle, FrontFog for Clutch and Extra for Handbrake, but you can swap those around in the script if that's not convenient. I've also set the 2 pedals to have a threshold for triggering, set to 0.1 initially, but you might want to tune that.

Good luck!
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 18/8 Truckin' Special
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
Racon
S3 licensed
Online in LFS
So you would have the fog and extra light mappings set on your indicator lights in LFS Editor.

We can use OutGauge in a local InSim to monitor Throttle/Brake/Clutch values directly, but there isn't one for Handbrake. There's the dashboard handbrake indicator though, we could use that light for our check if it triggers quickly enough

Once we know that, we can set fog and extra lights locally with a SMALL_LCS packet, and LFS will replicate the lights to other clients so everyone see it.

I can knock up a test version in PIE if you need Thumbs up
Racon
S3 licensed
Online in LFS
I don't think you can do it directly for anything but brake, but if you used frontfog, rearfog and the extra light to make handbrake, throttle and clutch indicators, then it's possible to use a local insim to toggle those on and off from outsim data. They'd only be binary, but maybe that's enough?
Racon
S3 licensed
Online in LFS
I've got script somewhere that will convert old BL3 to new BL4 (https://www.lfs.net/forum/thread/90875) but I'm away from home at the moment, so I can't do it till next week.

In the meantime, there is an app I made that can move groups of layout objects manually (https://www.lfs.net/forum/thread/103154)
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 18/7
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
Racon
S3 licensed
Online in LFS
When installing LFS there is an option to set up file associations (meaning that you can click on an LFS file or click a link that starts "lfs://" and your computer will know to use LFS to deal with it)

If you didn't do that at the time, you can do it with the "associations tool" on the downloads page
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 18/6
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
Racon
S3 licensed
Online in LFS


Antiaris Serious Racing - Round 2
Racon
S3 licensed
Online in LFS


PiranMOTODestructionDerby 18/5
Racon
S3 licensed
Online in LFS
Last edited by Racon, .
FGED GREDG RDFGDR GSFDG