The online racing simulator
Searching in All forums
(716 results)
Packet to get /showfuel upon connecting
kristofferandersen
S3 licensed
Greetings programmers.

I've stumbled upon a bit of an issue.
I have a button that displays the remaining fuel of the player. But some servers have disabled /showfuel and I can get this information from various packets, like the NPL.

The problem with this is that if a player connects and doesn't join the track, the insim can't tell if /showfuel is enabled or disabled on the server.

byte Fuel; // /showfuel yes: fuel percent / no: 255

Perhaps the code above should be included in either IS_STA or IS_NCN.
For other programmers that stumbled upon this issue, did you find a workaround? Looking for pointers at the moment.
kristofferandersen
S3 licensed
I've never had that.

But can you confirm that you are actually running on 165hz? Sometimes windows sets you back on 60hz for some reason.

I would also lock the fps in LFS to a minimum of 165, possibly 180.
kristofferandersen
S3 licensed
Hello Racers. I have a new version with mostly bugfixes and a couple of new features.

v3.7:
- Logging for insim_messages have been rewritten.
- Logging for chat_messages have been rewritten.
- Added current car button to ui.
- Implemented mods api to display mod names.
- Added car names for original lfs cars.
- Improved customize-ui move and resize controls.
- Set name of application to LFS Companion.
- Improved input handlers.
- Arrow functions for customize_ui have been improved.
- Reworked the lapping system.
- Json will now automatically update if there are new json entries.
- Added distance tracking for session.
- Added distance tracking button is now customizable.

Download LFS Companion 3.7
kristofferandersen
S3 licensed
Hello.

I've been bugfixing the last couple of days. Enjoy!

v3.6:
- Revamped autoupdater module.
- Various bug fixes.
- Improved RC Helper input handler.
- RC Helper will always be displayed if menu displays are set to always.
- Improved application UI elements.
- Incorrect color mapping for fuel setting.
- Fuel button can now be clicked to output the remaining fuel.
- Reworked the strobe.
- Improved error handling.
- Strobe button in options can be right clicked to toggle siren.
- Fixed shift+u bug.
- Timers are stopped automatically when an error has occured.

Download Companion 3.6

I have reworked the autoupdate class, so if you're a version earlier than this one its not going to check for updates.
kristofferandersen
S3 licensed
You might want to check your car setup if it is restricted there. Also make sure its set to 900 in settings > controls
kristofferandersen
S3 licensed
Quote from ntelas :This app got a lot better since I first tried it. Now it's a must have I'd say.
  • Shift + U hides the UI, but it never comes back unless I do Shift + U again.
  • The application crashes frequently, without any apparent reason. I'll try to note the next crash and type it here.
  • When the app starts, it says "Permission denied, Password". Worth noting that for it to run properly, I run as Administrator.
  • Strobe doesn't seem to work. It would be nice to have "TC Lights" functionality built into the same app.
  • File -> Preferences does nothing for me.
My suggestion is that there needs to be clear distinction between own chat messages, others and tags.
Maybe adding a filter that lets us disable certain messages like connections and pits, a way of decluttering the window.
Right now it's hard to read the chat window because it doesn't even have any color distinctions.

Save previous chat log.
When the game is minimized, a sound notification that alerts when someone tags you in the chat or crashes into you (this would be helpful to prevent possible blockage of roads).

A minor suggestion is to improve the app's icon. Make it transparent and add some shadow if needed.


That's it for now. If I notice-come up with anything, I'll let you know.

Added some bugs noticed and a suggestion

I've been quite busy the last year. But I've noted all of your bugs and suggestion(s) in my Trello. Perhaps I'll get back to this app and make it stable enough so that it can be used without crashes. Thanks for letting me know!
kristofferandersen
S3 licensed
I tried this mod for the first time the other day and had a blast.

Good job!
kristofferandersen
S3 licensed
Quote from By Hizli :I have the information of those who attack the server, those who play the game, and children who think making ddos ​​from ready-made sites a hacker. I reported this to the authorities, they did not take action, there is nothing to do, a router or firewall is required for the server
Smile

I have been down that road, sadly there is nothing that can be done by the authorities if the attackers are from a foreign country. The authorities of for example Norway don't have the power to investigate cases outside of Norway. Governments will need to co-operate in order for ddos cases to be resolved.

I found a related case where this had to be done. The FBI teamed up with law inforcement and worked the case.
kristofferandersen
S3 licensed
These samples are nuts! Thanks for sharing. I am in love with them.

and the fact that this is also open source is unreal.
kristofferandersen
S3 licensed
Looks very promising as always Scawen, I'm looking forward to a test patch.

Best of luck!
kristofferandersen
S3 licensed
Quote from RC-Maus :Perfect program thanx Thumbs up

But is there also anyone that got discord overlay working?
I like to see who is talking. And I don't have 2 monitors.

Yeah. It works fine for me. You may need to add your game manually if it doesn't automatically appear in the list of games for the discord overlay.

I believe its called Registered Games these days.

Quote from DarkKostas :You shouldn't have any issues with the last version. Make sure you use the right quotes and the path is correct. As i'm saying in a few comments above at the autoexec script you should use /exec "C:\YOUR_ROUTE\LFS Discord\LFS Discord.exe"

Alright thanks!
kristofferandersen
S3 licensed
Quote from DGCNYO :And the steering angle may be to big?

You can adjust the steering angle in the setup Tongue
imo i think its fine.
kristofferandersen
S3 licensed
Quote from superlame :Yes. Still not working.

Are you using a VPN by any chance? or proxy? Any sort of tunnel that could be blocking/blacklisting i3d?
kristofferandersen
S3 licensed
That's the greatest LFS trailer I've seen so far, well done.
kristofferandersen
S3 licensed
Additionally, if you want to use the skin online you'll need to upload the skin to lfs.net.

See https://www.lfs.net/account/skins
kristofferandersen
S3 licensed
Have you tried using the download link directly from the test patch thread?

https://www.lfs.net/forum/thread/97772-Test-Patch-B2-(now-B10)
kristofferandersen
S3 licensed
LFS doesn't have dedicated servers anymore.

You can still host servers by renting directly from LFS services.
https://www.lfs.net/hosting/create
kristofferandersen
S3 licensed
There are the default cars (SHIFT+P > Cars), and then there are car mods (SHIFT+P > Mods). Make sure you display all cars, including tweak mods. Also make sure to display all mods and all classes.

That will be displaying all public mods for you.
Hope this helps.
kristofferandersen
S3 licensed
Wouldn't it be easier to use some of the existing mods out there? There are many realistic one's out there.

If cars' engines are too powerful, you could enforce voluntary intake restriction with the help of InSim.
kristofferandersen
S3 licensed
Quote from Scawen :Do you not like this 'steerer' thing which is specially designed for that?

I'm sorry, no. Maybe if it was more in the center, it would work to see where the mouse was positioned at. But that would just make it more in the way of other things.

I've personally looked for ways to get rid of that thing Shrug
kristofferandersen
S3 licensed
Quote from detail :I think this happens when you drive with some InSim buttons shown, that force mouse cursor to be visible too.

Mouse cursor can be hidden with Shift+Z, but I don't know if it will hide with InSim buttons on.

I purposely drive with mouse cursor enabled. That way i can still steer the car in 3rd person.
kristofferandersen
S3 licensed
Scawen,

Since you are working on smaller issues, that are not related to Vehicle Mods:
I'd like to just mention an issue I've had for so many years in LFS.

Some context first, I am a mouse driver. I steer left/right with the mouse, accelerate on LMB and brake on RMB. Whenever i do a u-turn and accelerate - the mouse cursor is top right of the screen, around where the map is. The issue here is if the cursor is on another player and i accelerate (left click), I'll be spectating someone else.

Perhaps you could make an improvement? I have a couple of suggestions:
- Make an option so players can choose whether or not to have the players on the map clickable.
- Players on the map are no longer clickable.
- Players on the map are only clickable below a certain speed.

I'm used to just pressing HOME button (move view back to myself), but I'm sure other mouse drivers have this issue as well.

Thanks!
kristofferandersen
S3 licensed
Quote from Scawen :Just for your info, that has always been the case, it's nothing new.
...
So it's pretty hard to change without some quite extensive changes which there is no chance I'll be getting into at this point. Anyway no-one complained about the 49.7 day limit for the last 20 years so I guess we're OK for now. Big grin

And to be clear, the server doesn't have to actually be restarted, it only has to be empty at some point within 49.7 days. Tilt ...

Thank you for clearing that up. If that always has been a thing for all that time I've been very lucky to not be experiencing it until now. I just assumed it had something to do with the recent updates (0.7A/B). Nothing to worry about then, and good luck with the future updates!
kristofferandersen
S3 licensed
Quote from Scawen :With my fix this problem should not arise, although I think that LFS will go wrong if it is in-game for more than 49.7 days (double the 24.8 days figure above). I don't know what will actually happen at that point.

Seems only cruise servers will be having this problem. They always have people online, and if they're asleep irl they'll be parked up in some carpark. Tbh, i don't think 50 days is enough since cruise servers don't restart unless they really have to. I'm sure this fix is more than enough, thanks!
FGED GREDG RDFGDR GSFDG