The online racing simulator
Searching in All forums
(699 results)
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
kristofferandersen
S3 licensed
The training is just training, it doesn't grant you any licensed content. As mentioned above, you need to purchase a license if you wish to get access to more cars and tracks.
kristofferandersen
S3 licensed
I'm one of the few that never really had any interest for the GTA games. Although, i was impressed when GTA V was released with the huge jump in physics and graphics.

I'm interested to see what they're gonna do differently in GTA VI. Rockstar should've considered one of the bigger modded communities out there and grab some content from there, i.e. FiveM
kristofferandersen
S3 licensed
Quote from cuni :Also, is there a way to edit the position of the edit window? gets in the way....

Yes, you can click on Customize UI in that menu and then that same button will change the text to [click to edit], click it once and you will be able to change the position.
kristofferandersen
S3 licensed
I set up that same version on my end to test the updating process and everything appears to be working just fine here. It did successfully update to 4.4.5 without any issues.

Could you try and right click on the LFS Companion.exe and run as administrator and then try the updating process again?

Worst case scenario - you could keep the insim closed and click on the AutoUpdate.exe in the same directory, which will attempt to force-update the insim.
kristofferandersen
S3 licensed
Quote from cuni :Whilst auto updating, got the access to the path error. Ran with admin rights, still the same.
The lfs interface to accept update works good

*sigh* Dead banana

Could you check if it has generated an error message in the logs?
<companion_directory>/Logs/error.txt

kristofferandersen
S3 licensed
Quote from seksen :Will the average fuel consumption feature be added in the future?

Yes
FGED GREDG RDFGDR GSFDG