The online racing simulator
Searching in All forums
(314 results)
DarkKostas
S3 licensed
Quote from kristofferandersen :Thank you for the update Kostas!

I've been wanting for a while to auto-start both LFSLazy and LFSDiscord when LFS is started. At first i made an app that launched LFS, then Lazy and then LFSDiscord. But was getting an error saying "invalid command line". Even tried setting the directory as work directory.

Seems like its not working with the LFS scripts either. So I've made a script with AHK. Same error though, LFSDiscord does give the error and does actually work even though the error shows.

How about an autostart feature? Cool

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"
DarkKostas
S3 licensed
Updated with mod names support instead of their "hex skin ids". Also finally had time to fix the annoying bug with the files being loaded from LFS' folder. No more need to have dublicate files in both program's folder and LFS'.
DarkKostas
S3 licensed
Quote from xspeedasx :Here's a code example to get List of all mod vehicles:

Just a note on this. I had to add this line
Quote :
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var client = new HttpClient();

or else i was getting an error about TLS. Same as you too i had to also add the redirect link to lfs.net and now it works as expected!
DarkKostas
S3 licensed
Quote from Flotch :if the central and front diff are open, isn't the car behaving like a rwd ?

Front yes, but the central has to be locked and set as much as possible on the rear (which is 5% front, 95% rear). Then you just put an LSD to the rear and boom Big grin Even with 30 degrees FXR is quite fun, but of course ain't competitive against the other 2.
DarkKostas
S3 licensed
Quote from Scawen :I've kept FWD and AWD tyre sizes the same at front and rear as this seems to be the usual thing.

This patch obviously does not allow all possible configurations. It enables a lot of new possibilities for drifting, rallycross and hard track racing.

I was thinking the same. Now the patch opens so many possibilities, but why not use lock upgrades on the AWD as well? By making them RWD (5% on the diff setting), they're turning into very nice real wheel driving machines, both RB4 and FXR. Lock is the only thing they're missing to slide them properly.
DarkKostas
S3 licensed
Thanks for the updates. The "new" cars are really fun to slide now. To be honest i had more fun in the LX4 and 6 than the GTRs. Is there any specific reason with RB4 and FXR staying stock lock? Making the diff 5% F/R, converts them to nice driftable vehicles so only the lock is missing to become fun as well. We have find the perfect balance to have both working(powerful) e-brake and normal brakes but except that everything is awesome! If you can add 45 lock to RB4 and 60 to FXR as well it'll be perfect.

Also despite the fact that FXR/XRR is sequential and we're force to use it instead of H pattern, i'm more annoyed that once you select upshift as gear 4th(same applies to downshift and 3rd), it removes the H-pattern's 3rd button, so i have to constantly change the controls whenever i swap cars.
DarkKostas
S3 licensed
Quote from MacedoSTI :about drifting with GTR, isnt better make a "D1GP" version from XR?

you will can fit tyres, steerlock, a huge engine everything you said on first post, Scawen

No need to make a new car. We already have a few. The problem is that only XRT and "FZ5" are the actually acceptable for drifting. RB4 lacks lock(and has a bit slower steering wheel, but that's ok), LX lacks lock and are not really made for drifting even with a very well balanced setup, also LACKS LOCK! And of course GTRs don't have lock either, nor tyres. If lock goes to like 55 for all of them and GTRs get "street" tyres we get way more options to have some fun.
DarkKostas
S3 licensed
That's some great news you're into making a small update. As i've been drifting in LFS for way too many years and it's the mean thing that learnt me what i know in real life, i'd really love to see the changes you're talking about. Steering lock doesn't really have to be 65 as you said. Especially for road cars. 45 is kinda enough(especially when tires are cold), as the car hasn't enough horsepower and push and use that lock. 55 would be ideal. Just these 10 more degrees to the XRT(and the rest road cars so we can use RB4 for example as well). I really wonder how XRR/FZR will handle with road tyres, but i'm sure it'll be lots of fun. I'm really into it and would love to give it a try!
DarkKostas
S3 licensed
I'm so happy for this. Looks fun driving it. I'd suggest you to change to these though
STEER_LOCK=360
STEER_RATIO=8.8

so the car uses LFS' actual 720 degrees instead of 500(?) or whatever it was.
DarkKostas
S3 licensed
Gotta admit when we used a vpn to play LFS with 12 pps, the game looked unbelievably smooth. Not sure how it'll look on a big server and how more demanding it'll be for the rest of the players too, but you can definitely see and feel the difference.
DarkKostas
S3 licensed
Quote from gu3st :Honestly I don't think it makes much sense for Scawen to implement a third party service like that, given the privacy concerns. Plus it's just work to undo if Discord dies at some point (whcih given LFS' longevity so far, it seems more likely that LFS will last longer than Discord).

I like Discord, but I think third party clients is the right thing for that kind of integration.

It's less than 30 minutes of work to implement it. More time to learn how to use the api than actually the whole process. It's always better to have native support than external programs that do extra stuff. Btw thanks for mentioning my little program. I almost forgot about it! It's nice to have it cause i know a lot of people are looking at what you're playing, so i made it to help others see me and maybe motivate them to join as well and that's exactly the reason i'd love to see it native.
DarkKostas
S3 licensed
Must be dreaming or seeing a very well done photoshop. Can't believe finally LFS goes into that direction!
DarkKostas
S3 licensed
This certainly looks like a lot stuff has been changed. Love it how natural it looks now and the new lighting, oh gosh amazing.
DarkKostas
S3 licensed
players[pll.PLID].PName
Of course you'll have to use it before the "players.Remove"
DarkKostas
S3 licensed
Everyone is talking about the LX8 and i'm just here enjoying RB4 and FXR(damn slicks) with 45 steering lock and fully rwd. It's so fun drifting them properly <3 Now this makes me really wish it could be transferred in the current version.
DarkKostas
S3 licensed
Quote from THE WIZARD DK :i get really laggy online. so much i cant steer nor drive. if someone logs into a server. it halt my game completely. not found skins do too. (R12)



must be my prob then

You said that yesterday and i was wondering how nobody got it before, and after i left my player all night AFK, tried to play today and noticed that i couldn't change name nor move my car. Exited the server, but now it still says my username is online... Not sure if it was something CLC created as an issue, or if it was client side.
DarkKostas
S3 licensed
Scawen i'll just need just 1 more letter for "3h_comfreev". Last word is "προβολή" and the limit spots it at "προβόλ" (for greek translation)
DarkKostas
S3 licensed
Quote from MandulAA :Oh I didn't really notice that there's an update for your program. Just as I thought the discord app should start silent (without messages), I see you already updated it. It's now working flawlessly, as you say! Thanks for your work! Smile

Now that it starts without any messages, the only thing that I don't like is that need of the "files" folder inside the LFS directory. It makes a mess. Frown Is it possible to somehow code it to check for insim.ini inside its own "LFS Discord" directory (I have no idea how to do that as I have no experience in programming Smile)? If it's not really possible, it would be great to have "files" renamed something like "files_discord" or "discord_files" so it's not that confusing - you know, 'files' can almost relate to everything (LFS itself, Discord extension, other apps).

Thanks for reading my suggestion(s). Also, we "advertised" your program on the LFS Discord, so more players get to know about it!

(EDIT: for even less confusion, insim.ini, which contains all the needed config parameters for Discord app to work, should be smth like config_discord.ini Smile )

Hello! Thanks for the share. Unfortunately, i think i can't fix the issue with the files folder, as the .exe is being executed by LFS.exe(so i guess C# gets the folder through that .exe, instead of the actual program....) What i can do is as you said rename the folder to something more specific. insim.ini is called like that because it contains mostly insim settings on how to connect with LFS, and nothing else(except the new variable to skip the messages). The ideal thing would be to make it identify properly the folder through and not touch other stuff.
DarkKostas
S3 licensed
Thanks everyone for testing it!

Quote from MandulAA :It's great, I like it, well done! It would be great if we had this integrated into LFS natively, so there's no need for an extra program running. Smile
https://discordapp.com/developers/docs/rich-presence/how-to

That would be nice too, till then i decided to do it myself as we don't know if Scawen is interested in this(and of course when the new update will be released). Until then though, you can open "LFS Folder/data/scripts/autoexec.lfs" and add these 2 lines
/insim 29999
/exec "C:\YOUR_ROUTE\LFS Discord\LFS Discord.exe"


WARNING: You'll have to move insim.ini at your LFS folder/files, as the program will try to find the file through LFS.exe's route instead of LFS Discord's route. Just create a sub folder into your LFS folder called "files" and copy-paste "insim.ini" there Wink

EDIT: Updated version and added "SkipMessages = true" at insim.ini, which skips Connect and Disconnect message. You can use the method above and it will feel like it's built-in into LFS now. Enjoy! Don't forget to copy the new insim.ini at your LFS's/files folder or else the file won't be found by the program.

EDIT2: Fixed a bug that when you were connecting from menu into a server, the UCID and PLID would be wrong so it wouldn't show correct Car and State. Redownload Wink Seems like now it works flowless automatically from startup without touching it.
Last edited by DarkKostas, .
LFS Discord's Rich Presence
DarkKostas
S3 licensed
LFS Discord's Rich Presence
NOW SUPPORTS MOD NAMES!


-Pictures
Singleplayer support

Hovering over track to show its name

Hovering over server name will show it's complete one(if it doesn't fit)

Updated mod name support


-Usage
It's a program that shows your playing status on Discord


-Installation
Make sure you edit insim.ini to match your settings. Admin Password can be found when you go to the server host screen(you don't need the password from the server you will join).
After that you can simply type "/insim 29999" in-game/menu and run the program to connect.

If you want the program to start automatically each time LFS starts,
open "LFS Folder/data/scripts/autoexec.lfs" with notepad or any text editor and add these 2 lines
/insim 29999
/exec "C:\YOUR_ROUTE\LFS Discord\LFS Discord.exe"


-Files
insim.ini has everything you want to set it up
If you get any error it will be at the logs folder. Program is really easy to use so there shouldn't be any bugs or problems in the meanwhile. If something goes wrong, take a look at the logs folder and you should figure it out


-Download Link
https://drive.google.com/file/ ... WrFmUky8/view?usp=sharing


This program doesn't require a setup, it is portable and it's free!
Last edited by DarkKostas, .
DarkKostas
S3 licensed
This is the code i'm using. Little modified for you.

//Convert Function
CarFlags CarToPLC(string CarName)//Add the rest
{
switch (CarName.ToUpper())
{
case "XRG": return CarFlags.XRG;
case "LX4": return CarFlags.LX4;
case "LX6": return CarFlags.LX6;
case "RB4": return CarFlags.RB4;
case "FXO": return CarFlags.FXO;
case "XRT": return CarFlags.XRT;
case "RAC": return CarFlags.RAC;
case "FZ5": return CarFlags.FZ5;
}
return CarFlags.None;
}

//Checking
CarFlags AvailableCars = CarFlags.None;
string AllCars = Conn.Cars;//You will probably have to "split" this, depending how you store them. Like "string[] AllCars = Conn.Cars.Split(' ');"

foreach (string ThisCar in AllCars)
{
AvailableCars |= CarToPLC(ThisCar);
}
insim.Send(new IS_PLC { UCID = UCID, Cars = AvailableCars });

Last edited by DarkKostas, .
DarkKostas
S3 licensed
As the new lock requires an incompatible patch, do you guys(everyone) think that concrete objects should have a little more grip? I don't know, maybe like 10% or something? They're quite slippery compared to normal road and people use these objects to "simulate" new road layouts. So i think it would be useful if rest people agree as well.
DarkKostas
S3 licensed
Quote from Shikari_San :The GTR's/XRR does not get used for drifting because of the low steering lock and the slicks, it may get used more if it is given road normals and more lock.

That's exactly the reason. There's so little lock that with slicks once you lose the grip you especially spin out.

As i've said in my first post, which i doubt anyone seen it.. XRT and FZ5 as they're the most common cars a simple increase to 45 would be perfect. RB4 as a street car is the only which has the least lock being 30 instead of 36 as all the others. So if these 3 get increased i believe it will be ok for a quick change and no need of new car.

Having now a new XR D(rift) would be obviously too much for you, so these 2 (or 3 with the RB4 to 36 or 45 as well) will be enough!
DarkKostas
S3 licensed
Thanks for your interest in steering lock Scawen. XRT and FZ5 are the most common drift cars due to their power and caster/overall feel they have(especially XRT).

Their lock now is 36. I believe we would all be greatful if it goes to 45. Could be more, but i don't think it's really that useful as we don't have the horsepower to keep the angle in that big lock. So, 45 should be enough.

Also RB4 has 30, can this be increased as well? At least 36 as all the other cars.

If people have more into that, we can create a new topic to discuss this. Even though, at least in my opinion, that's all we need. 45 for XRT/FZ5/RB4. RAC and the 2 LXs are used as well, but the other 3 are the most common.
DarkKostas
S3 licensed
Quote from jujek :Hey Scawen there is a problem with one option called "Input when window is inactive" all is good when i have it OFF but when i change this to ON force fedback change to very stiff and have weird feel when i turned it off is like normal soft. I'm on logitech DFGT but as i know g25/7 also have this bug and this come when You add this option i don't really know why this change force fedback.

Your wheel probably changes from per-profile setting, to global settings. Try to match these 2
FGED GREDG RDFGDR GSFDG