The online racing simulator
Searching in All forums
(173 results)
Rob2003
S3 licensed
Quote from Rexo35 :It does help, but the problem is that the "mod" (is that the right word?) I'm making is personal, and not to use in my server but in everyones, without having to know the admin password. That's why i've chosen OutSim instead of InSim. Anyways, i will do it first on InSim and then check if it is doable in OutSim.

I am Not sure If i got you correctly But:

As Long as you want to Use a Program For yourself, you can Use it on all Servers, as you don't manipulate the Game But Just gather Data and process that. Insim hast No limitations there.

Only If you want to do an insim For the entire Server, you will Need to Host one! But as Long as its For you, No Need to worry!
Rob2003
S3 licensed
Quote from Rexo35 :Hi!

Sorry to bother you again xd. I think it will be better atually to use OutSim instead of InSim. I've been seeing the OutSim info and I saw I can get the player's coordinates, is there any way to get other players coordinates from the server in outsim? i dont think so but i dont lose anything xd.

thx <3

Well... I have never used outsim. But... It is very very easy to get everyones coordinates with insim...
Lfs sends the compcar Packets in the mci Packets (max 8 players per Packet). If you Then use a simple For Loop, you can get all the Data from all Cars Wink.

Would Look Something Like that in Python:

For Car in mci.info:
PlayerID = Car.PLID
xCoord = Car.X
yCoord = Car.Y
Speed = Car.Speed

etc...
Then you can For example Store the stuff in an Array or dictionary or smth.

I guess thats the easiest way. Does that Help?
Rob2003
S3 licensed
Quote from Rexo35 :Hi!



I've read the "InSim.txt" in the "LFS/docs" folder and I saw that there is an struct called "CompCar" in the lines 1844-1859 that gives you the coordinates of the car you request (at least is what I interpreted).

Is that usable by some way by PyInSim? Or can you get the coordinates of the cars at all in pyinsim?


Yes, thats easily accessable with pyinsim. Ever used Python before? Then it should be possible quite easily for you. U good at math with vectors? Then it should be also easy For you to calculate the distance in the coordinate system. Look at insim.py and func.py in the insim library, they will Help you!

If you still need Help, reply on this Threads again.
Rob2003
S3 licensed
Quote from LOXISLOXIS :Hey Rob

One annoying thing I noticed is that when you reach the maximum turn of the speed hands the car turns itself off even if I change first and then touch the red cleat!

I missed some chases for this thing.

Well... Thats with fz5, right? I noticed that on my Laptop too - it should be a Rev bouncer, But For some reason it on some PC Just Turns Off the engine...

I will fix it with the next Update. Sorry For the Inconvenience haha Smile
Rob2003
S3 licensed
Quote from LOXISLOXIS :Yes thank you very much rob


but the problem is that if I deactivate the two items, the movement and warning values no longer come out
more than anything else I would not want them to start automatically when I go in pursuit

that's all! Smile

Alright, i cant promise you when the next Update will be releases, But i'll definitily include it
Rob2003
S3 licensed
Quote from LOXISLOXIS :Hi Rob

Is it possible to turn off the strobe when you are a cop?

I mean is it possible to activate the "Aid Cop" function without the "Strobes & Siren" function?
because I use another program for that..
But I'm interested in having the speed, direction and brake warning of suspect functionality!

If you click on the siren / strobe button with your Mouse, the siren can be turned on/Off manually.

I don't think, i implemented any kind of Differentiation between the siren and the other cop functionality.

I will Note it though, and maybe implemented it with the next Update

Does that Help you?
Rob2003
S3 licensed
Quote from gumis0517 :I have the same issue. Is there a fix for this yet? Thank you.

Not exactly sure If that fixes your issue, But there is a newer Version Out. Try this one... You find it in the First Post with the Download link
Rob2003
S3 licensed
For all that were wondering. Scawen has answered this question on a newer thread...
https://www.lfs.net/forum/thread/99037-Graphics-update-progress-%40Scawen
Rob2003
S3 licensed
Quote from superlame :dang it sounds cool can you show pics how it will look

These are some "sketches" and ideas i had. The first one would be whats show, while you are moving the hud around, the second one a cross traffic warning. These are not necessarily final or something, but I liked the idea to use native lfs vehicles for warnings. FXO and RB4 look quite good for that i think.
Rob2003
S3 licensed
FYI: Working on a Head-Up-Display that can display actual images, and not only lfs buttons. Let me know if you have any thoughts, suggestions Smile
Rob2003
S3 licensed
Quote from Elochai :Great! I've seen so many things that I didn't even know about and I play this game 11 years ago...!

Glad to hear that Wink
Rob2003
S3 licensed
Quote from Rexo35 :Hi!

I'm kinda new in all of this related with programing. I know c++ and bit of python and I have proposed to do an LFS mod even though that I may never publish it.

... of the cases) but i can't understand how to use the program. I mean, I dont know how to use it in the game. I know is TCP or UDP related but I don't know how does it works.

Any advice not only with that but also with beginning on this?

Thx Big grin.

Hey.

My suggestion is python and the pyinsim library to get startet. https://github.com/alexmcbride/pyinsim/tree/port-to-python3

If you need any help getting started with it, answer to this post, and ill give u a few examples.

My own program is completely based on that. LFS Thread:
https://www.lfs.net/forum/thread/92775-The-PACT-Driving-Assistant---DOWNLOAD

Oh and if you mean vehicle mods, there is a vehicle editor available for free, though I am not good at using it haha. https://www.lfs.net/downloads
Rob2003
S3 licensed
Quote from Scawen :I've said before but will explain again as I know not everyone would know this:

The old tyre physics does not exist in the new version of LFS. Too many things were changed - the way the
...
graphical progress report at this time. My focus is the tyre physics and that's all really.

As I opened this thread I feel obligated to comment now as well Big grin:

Exactly what i was talking about! Thank you so much for the update Scawen. That makes waiting a lot easier as we now know whats happening behind the scenes Wink.

Keep up the awesome work, and as the others said, we know its not easy but you'll keep this game just as awesome as it's always been - or even more...

Thanks again
Robert
Graphics update progress @Scawen
Rob2003
S3 licensed
Hey Everyone, Hey Scawen.

I know you have to see lots of messages like that. But I really think it would be great if you can keep us up to date with your progress on the graphics update. It's been so many years now that we are waiting for the update and at least a little note á la "Next progress report will be out in within two months" or "graphics update test patch will be the next available update this year" would make a huge difference to our patience Wink.

I know, that you probably are not able to tell us an exact date or even months when it will be finished, but if possibly in any way, please keep us updated and tell us whats left before you can publish the first beta. I know so many active players that don't even believe you are still working on it - and thats so sad because i think it will be awesome when you release the new graphics.

Thank you for the work you put into this game - especially how you listened to your community concerning the mods update and the bugfixing afterwards. I think most users really really appreciate that!

Let us get a little more involved and keep the hype up Wink.

Best wishes
Robert
Rob2003
S3 licensed
Quote from superlame :Do you plan making the gearbox working on mods too? Also when I triede it in FZ it felt weird. Like when I do kickdown it goes 1-2-3-6 gears and doesnt go above 80 kmh. Also it doesn't shift when the pedal is under 50%
it stays on low gear and high rpm

Hey, yes i definitly want to make it available For every car. And yes, i want to make sure it works better Then it does now.

I dont exactly know when i will do so, But yeah i will eventually Smile
Rob2003
S3 licensed
Quote from KingOfIce :Hello,
You can have a look on mine if you want : https://github.com/KingOfIce77/pyinsim9

As far as I can tell, byte objects are still needed in your version, or am I wrong?
Rob2003
S3 licensed
Quote from KingOfIce :Hello,
You can have a look on mine if you want : https://github.com/KingOfIce77/pyinsim9

Oh nice, you did an updated version of pyinsim?

I'll have a look at it. Thank you so much!
Working with Layouts w python3
Rob2003
S3 licensed
Quote from DarkTimes :So I started porting it to Python 3, at least a bit. I made a new branch and got it basically running with packets being both received and sent. There are some issues to work out, specifically

...

https://github.com/alexmcbride/pyinsim/tree/port-to-python3

Hey everyone. Stupid question from someone who has not a particularly high amount of skill in programming:
I am trying to figure out how to send autocross objects to LFS with python 3. I got everything else to work with byte stuff (car data, message handling, and so on), but I cannot figure out how to send autocross objects.

I've done basically everything but working with layouts so far, so I looked at the old examples, but I have no idea how that would work with the python 3 branch.

Firstly, ObjectInfo takes only two arguments, data and index, which is not a big deal I think i can figure that one out, but if I try to make that work I get this error:

self.X, self.Y, self.Zbyte, self.Flags, self.Index, self.Heading = self.pack_s.unpack(data[index:index+8])
TypeError: a bytes-like object is required, not 'tuple'

And I have no idea how to make a tuple a byte thingy Frown.

Obviously only if anyone is bored enough haha, but it would be awesome if somebody could provide me with a newer little example with python 3.

Thank you Smile

PS: Thank you for creating pyinsim in the first place, it was a huge help getting into programming with LFS and I was able to realize really cool projects.
Last edited by Rob2003, .
Rob2003
S3 licensed
Quote from KR4D3C7F2 :Would you mind message me in discord so we can fix it? KeepTryin#9114
Everything works from the App but it doesn't prevent crashes without vJoy

Hey. Yes i can do that. I'll Not make it today, But i'll send you a Message.
Rob2003
S3 licensed
Quote from KR4D3C7F2 :Hi! I've just installed PACT Driving Assistant and when i installed vJoy my wheel locked at 200degree any solution?

Hey! I do not know what may cause that. Vjoy is not a program by me. Maybe your wheel driver is somehow not compatible. If nothing helps, maybe consider un/reinstalling vjoy or your wheel driver Wink.
Rob2003
S3 licensed
Quote from ntelas :Few things to mention now that I tested it properly.

1: Disable auto ignition (or change how it detects when the car is off) for electric cars and bikes. It turns the car off!
2: While I was braking, it engaged an emergency stop and actually what it did was to release the brakes and cause a crash.
3: If you could, bind keys for the emergency stop and alerts so they can be easily disabled when drag racing and such.

Alright, thanks for the feedback.
Ill note everything and it'll be part of one of the next updates.
Rob2003
S3 licensed
Quote from ntelas :Hey, I just found what was the cause! I moved the entire game folder to C:\ and now it works! It looks like I have some issues with my program files folders and permissions. Anyway, finally I got it working!

Alright, good to know!

Hope you'll like it! Next updates will bring lots of improvements
Rob2003
S3 licensed
Quote from ntelas :It's ok. Maybe I'll figure something out and make it work. I'll let you know.

Thank you!
Rob2003
S3 licensed
Quote from superlame :I love it! Works very nice! But can you please make when I turn off "Light Assist" the "comfort blinkers" to work too. ( Blinkrs to turn off automatically)? Or an option for them to be separately or the comfort blinkers to be always on. When I brake with mouse my headlights blink always because the brake is pressed at 100%.

Next update will contain separate options for that! Smile
Rob2003
S3 licensed
Quote from ntelas :As I said, I see the emergency brake text. Auto-hold doesn't work either. This is an indication that mouse controls are not applied to the game.

Inputs such as turning on the lights are working fine. Does this use the number 3, or some other command?

When I tried to run the app as admin, it throws an error that it can't find the app files under /system32. The way you have the app configured, it runs via cmd. Running CMD as admin doesn't properly locate the origin of the app's shortcut. So it just tries to find the app files under the original CMD location, which is /system32.

Honestly, I have to say I am sorry then, but I cant think of why its not working for you.

All buttons, where it is possible use "/press [Button]" in LFS chat, like lights.

All other controls are done via directInput. I have never seen this not working before. Sorry :/
FGED GREDG RDFGDR GSFDG