The online racing simulator
Searching in All forums
(662 results)
kristofferandersen
S3 licensed
Have you done /insim 55340 in lfs?
Either way, your application failed to connect to LFS.
Hard to say what it is without seeing a code snippet.
kristofferandersen
S3 licensed
There are several ways to play LFS on linux, regardless of distribution.
For reference, I am using Zorin OS 17.1 which is based on ubuntu 22.04.

There are several ways to play LFS. But i'll just list the two that give the most performance.
  1. Lutris
  2. Steam Proton
Lutris
I can't be bothered to open a VM for this, but you basically just add a game and it lets you search for one. Then you just search for Live For Speed and it will install the latest version. When updates get released you just install them through the auto-updater in the game.

Steam Proton
Proton is a compability layer which allows linux users to run windows applications, games specifically. Never fails to impress me. To use it for steam games you right click a game > Properties > Compability and enable Steam Play. Select a proton version below that.

Steam Proton (non-steam game)
Games (top-left) > Add a non-steam game to my library > and select LFS.exe. If you don't have LFS installed you can select the self-extract archive. Run the game.

Personally, i prefer lutris due to the jerky setup with LFS and Proton.
Before proton i used to run LFS through wine, but it is simply not worth it. Lutris or proton ftw!

Best of luck.
kristofferandersen
S3 licensed
Quote from Joe mama1256 :Cant wait to run over a deer

Or through? Wink
kristofferandersen
S3 licensed
Quote from RacingSOUL :Thank you for the detailed reply. In this case, it is impossible to block the...

There's one way, and probably the most optimal solution.
You could just change the insim port to a port number that is not in use:
/insim 29995

That'll stop your insim program from sending/fetching data Omg omg omg


When you get back to your computer ready to play LFS, you do the same command but specify the correct port number
/insim 29999

kristofferandersen
S3 licensed
Hiding GUI elements are only limiting the burn-in's in those areas, but you'll still get a burn-in on your monitor if you're looking at your own parked car. Also, the chat isn't going to give you any kind of burn marks. In the case that no one is speaking, the chat will fade away and be gone at some point.

The best possible solution i have for you is to have this video running in fullscreen.

The video can also be used to fix severe burnmarks.
I had a 6 year old monitor that had a huge burnmark in the middle of the screen, i had that video running every night for 3 days and eventually the burnmark was gone.
kristofferandersen
S3 licensed
I wouldn't mind seeing custom tracks in the game sometime in the future. Although i think it may need a different approach than what was done with car mods. I think only well-known modders with good reviews on car mods should be able to create and publish custom tracks.

That way we know that its not going to be a track ripped off from another game. Anyway, there's no need to brainstorm this yet as Scawen is already in the middle of something completely different.
kristofferandersen
S3 licensed
G'day racers.

Its likely I'll return to this project on a later date. For now it'll be open source under the MIT license.

https://gitlab.com/kriss0706/lfs-companion
kristofferandersen
S3 licensed
Quote from Racon :Radar:

This one is a Work In Progress! ....

I wasn't able to get this script to work.

Error message
Quote :PHP Warning: socket_write(): unable to write to socket [10053]: En etablert tilkobling ble avbrutt av programvaren p� vertsmaskinen.
in decoded on line 328
Failed TINY (3) (1-3-104-3 (h)): En etablert tilkobling ble avbrutt av programvaren p� vertsmaskinen.

Translated to "An established connection was terminated by the software on the host machine."
I don't know about the possibilities with PHP, but perhaps the error message should be displayed in english?

Another thought is the php version, i believe it said in the PIE post that it was for PHP7 - but my computer had 8.2.0 installed.
Last edited by kristofferandersen, .
kristofferandersen
S3 licensed
Quote from RealistAdam :Thank you. Is there a shorter way to do this? I will always have to open it when I enter the server. How can we add this to the lapper to save some time? Can we sync this with LFS Lapper?

Yeah that can be done with a .bat script.

All you have to do is edit the file with the correct path to your pie directory.
kristofferandersen
S3 licensed
Quote from RealistAdam :pie? Can you make a video on how to do this? I did not understand anything.

I decided to give it a try, and it is explained relatively well in another post
https://www.lfs.net/forum/thread/98929-PHP7-Win---PIE-%28PHP%3B-InSim%3B-Easy%29---Windows-EXE-running-a-PHP-InSim-framewor

You basically download the PIEvX.X.X.zip. Open a command line from that folder, and type .\PIE.exe radar.php and it'll connect.

EDIT: You will of course need to have the radar.php file in the same directory as PIE.exe Big grin
Last edited by kristofferandersen, . Reason : fixed typo
kristofferandersen
S3 licensed
Happy new years!

I have a new version ready, with a primary focus on racing.

v4.5.5 (19/01/2024)

Features (6 additions)
- Add: Button to view splits during a race
- Add: Button to view laptime during a race
- Add: Laptimes panel to browse through all racing data, accessible through the side panel.
- Add: Sorting options to the laptimes panel
- Add: Paginator to browse through all the race results
- Add: Laptimes panel supports full mod names

Improvements (3 changes)
- Change: Optimized laptime fetching and comparison
- Change: Setting named 'Laptime messages' has been renamed to 'Racing messages'
- Change: Database migration. The laptime table should automatically generate.

Don't mix the PB with the lfsworld PB, the current PB is stored locally.
There's still a bunch of stuff i could see being added here in terms of racing, but I'm also open to suggestions as I'm not an experienced racer Big grin

If you're like me and prefer to see splits/laptimes via insim instead of RCM message, you can turn off the RCM message like so:
Last edited by kristofferandersen, .
kristofferandersen
S3 licensed
Quote from xolan1993 :If it is a local InSim application you could remove the text in your Live for Speed options menu and if needed then using either IS_BTN packets or by hooking D3D9::Present draw the message back at a more convenient place.

LFSLazy does it by hooking D3D9::Present.

If it isnt a local application there is no way to enforce this doe. You could print the RCM messages with IS_BTN(or IS_MTC) packets but it is immposible to enforce if the client disables the RCM messages or not.

Yeah i found out right after this post that i just remove it in-game options. Although, i would much rather have that done programmatically, for the convenience of the insim usage.

For now I'll just turn off that setting, thanks!
Removing RCM via InSim
kristofferandersen
S3 licensed
Has anyone been able to get rid of the big race control message that shows up in the middle of the screen when you've completed a lap or passed a split?

The text is just in the way at this point.
kristofferandersen
S3 licensed
Discussions about bringing more content to demo players keep coming up from time to time, and honestly nothing else is worth allowing demo players to use unless its something game-changing (i.e. new graphics).

The intention of demo is for players to try the demo version before deciding whether or not to purchase the game. I have seen demo players that registered in 2016 and are still playing Schwitz
kristofferandersen
S3 licensed
just so you know:
That image is so small, no one is gonna be able to find `BlockLine_01`
kristofferandersen
S3 licensed
What's the point of creating a feature that already exists? Looking

I haven't made one myself but i believe its a combination of heading and distance to the cars ahead of you.

Heading is used to define the x axis.
Distance is used to define the y axis.
kristofferandersen
S3 licensed
You can use any image editor that is able to export to .jpg. I use Affinity Designer. Here's a short list of applications you can use:

- GIMP
- Photoshop
- Canva
- Pixlr
kristofferandersen
S3 licensed
To save yourself from some pain and headache in the long run. You should use multiple classes (instead of one class for everything) following SRP (Single Responsibility Principle)

Regarding managing connections, you should look into LFSServerRuleEnforcer github repository. It was developed by xspeedasx.

InSim.txt is valuable as well for packet documentation.
Last edited by kristofferandersen, .
kristofferandersen
S3 licensed
I spent a couple of hours when i ran into this exact issue. Long story short - After updating drivers/firmware for my devices and restarted my pc, it was all working again.

I did also try a seperate LFS installation, but same result. LFS is not to blame here.

After all that, I'm still not sure if it was a driver issue or windows 11 issue.
kristofferandersen
S3 licensed
Quote from X1R30 :How i can play online

1) Download and install the game
2) Open game
3) Click unlock buttom right and enter your username and game-password.
4) Find a server and connect.
kristofferandersen
S3 licensed
Quote from Rob2003 :Yeah, I am aware of that, but since other commands support "up", "down", "left", "right", my best guess was that it would be the same for the /key command, which either it isn't, or I am just not clever enough to figure it out haha.

I've been playing around with it and i haven't been able to figure it out either.
Its likely that there was just never implemented any support for it.

Even after reading through the entire documentation for LFS Commands (host and local), there are no indications that it is possible.

It even says at the bottom of the page of LFS Manual:

Quote :Parameters for the key commands (press / shift / ctrl / alt)

Letters A to Z
Numbers 0 to 9
F1 to F12
up, down, left, right
space, enter, esc, tab
less, more, minus, plus

Is there a reason why you specifically need to use the arrow keys? Isn't there another way around it?
Command /m hosts (S3 hosts are missing)
kristofferandersen
S3 licensed
I was browsing the list of commands in LFS Manual and stumbled upon a command that lists how many hosts there are for each license type (s1,s2 etc.).

I believe the command just hasn't been updated when S3 was added to the game.

Command:
/m hosts

Output:
Hosts : DEMO 54 - S1 14 - S2 36 - TOTAL 104

Expected output:
Hosts : DEMO 54 - S1 14 - S2 36 - S3 75 - TOTAL 179

Its nothing major, but should still be updated Thumbs up
EDIT: For context - i am using D58
Last edited by kristofferandersen, . Reason : Improved title clarity
kristofferandersen
S3 licensed
I'm not entire sure what you're trying to say here.

If you have a graphics card you want to install on your motherboard, but is not able to - you should post in
https://www.lfs.net/forum/84-Video-cards

If you already have it installed on your motherboard, you could go into LFS Options > Graphics, at the bottom you can change the adapter (graphics card) you want to use. Or post here: https://www.lfs.net/forum/5-Technical-Assistance
(don't forget to keep your drivers up-to-date Omg omg omg)

Or if you think this is a bug, you should post here: https://www.lfs.net/forum/10-Bugs---Program
kristofferandersen
S3 licensed
There was a discussion about it recently, you just need to update LFS to D50 (or later)

https://www.lfs.net/forum/thread/106088-how-to-update-version-to-0-7d50-plz%3F
FGED GREDG RDFGDR GSFDG