The online racing simulator
Searching in All forums
(173 results)
Rob2003
S3 licensed
Quote from Bizzle :Hey man, this has so many features i was looking for! thank you! I have a couple of questions/suggestions.

The HUD displays KPH is there a way to change it to display MPH? if not is it possible to maybe have a settings toggle to be able to do this?.
...

I'd say the normal D mode is great as is. Again Thank you!!

Hey there, thanks for the feedback. Exactly the kind of feedback i need Wink.

Yes, some of that was already available in earlier versions for testing, some is in development.

All of your suggestions are noted. The only thing I am not sure about is the cruise control limit, as at more than 100mph, the cruise control cant really react to cars anymore. Other than that yeah that will come with the next versions.
Rob2003
S3 licensed
Quote from chucknorris :A minor thing:

It seems like on the MOD selection screen, the UI elements render on top of the chat messages. Which is not the case in all other screens.

Also, if there is a little chance for this, it would be a dream :-)
https://www.lfs.net/forum/thread/102198-Increase-number-of-AxObjects

Actually, there is one more screen where this is the case and thats the main entry screen. Typically you dont have a lot of chat messages when you start the game but if you do, they overlap with the upcoming events. Thought that might be worth mentioning Smile
Rob2003
S3 licensed
Just finished the latest update:

Feel free to try it out:
Video Guide:
https://youtu.be/mCfSat2n2i0

Download Link:
https://drive.google.com/drive/folders/1Byr4onJvHW1MP7zCei0HUgOUG9t5R_Dl?usp=sharing

This thread can be used for help, feedback, and improvement suggestions.

The old thread can be found here:
https://www.lfs.net/forum/thread/92775-The-PACT-Driving-Assistant---DOWNLOAD
New Home for the PACT Driving Assistant
Rob2003
S3 licensed
Since the PACT Driving Assistant actually is an addon, this thread will be discontinued and this
https://www.lfs.net/forum/thread/102281-The-PACT-Driving-Assistant---Driver-Assistance-Addon
is the new thread!
The PACT Driving Assistant - Driver Assistance Addon
Rob2003
S3 licensed
Hey,
The PACT Driving Assistant was made to avoid collisions caused by not paying attention while cruising on TC...
For old stuff, check out this thread: https://www.lfs.net/forum/thread/92775-The-PACT-Driving-Assistant---DOWNLOAD

I need a lot of feedback to improve the just released rewrite. Sooo if you have nothing else to do -
feel free to test Wink



Current Version: PACT Driving Assistant 2 (V13) (mouse, keyboard, and wheel supported)
Download (zip), with installation guide: MAKE SURE TO FOLLOW THE INSTALL GUIDE!
Not all features working perfectly yet:
https://drive.google.com/drive/folders/1Byr4onJvHW1MP7zCei0HUgOUG9t5R_Dl?usp=sharing

Videos/Explanations: https://www.youtube.com/channel/UCBbp3JqEGoq3iNrKcIAOuKw?view_as=subscriber

INSTALL GUIDE AND EXPLANATIONS for V12: https://youtu.be/mCfSat2n2i0

If you have questions, suggestions or trouble installing, just post a reply here or hit me up on discord!
Robert M.#6244

Features:
Collision Warning: (working) Audible and visual warning if a possible collision with a car in front is detected. Autonomous emergency braking available for wheel / keyboard and mouse users.

Bus Routes Support: (working partly) Bus Routes on TC City Driving server can be detected and will be more realistic with announcements and other sound effects.

Blind Spot Warning: (working partly) A little warning will be displayed at the side of the screen if a car is in your blindspot, or approaching fast from behind.

Light Assist: (working) While performing a full emergency stop the car will automatically flash the taillights while braking and activate the hazard lights when stationary to alert the following vehicles.

Yield Warning: (working on Aston, Blackwood, Westhill, soon more) Warnings will be displayed when you are approaching an intersection if you have to give way to other traffic.

Cop Mode: (working) The program will not give collision warnings when playing as a cop. The Program will automatically turn on/off the siren if you start/end a chase. The Siren and strobe can also be turned on manually. A tracker displays the suspect's speed as well as

Cross Traffic Warning: (working) Works Up to approx. 110 kph. A warning will be displayed if a possible collision with crossing traffic is detected. If a collision is likely, the car will brake as necessary to avoid the collision.

Head-Up Display: (working) It shows the speed, collision warnings, and current RPM. The head-up display can be turned on or off in the driver assistance menu. The position is adjustable from V11.9.9.1.

PDC (Park Distance Control): (working) Displays the distance to the cars around and beeps, just like you'd expect a PDC to do! Works best with FZ5 and cars of similar size.

PSC (PACT Stability Control): (not that good yet) Uses the brakes of your vehicle to stop the car from spinning for example when evading something.

Gearbox: (working with FZ5 and some mods) Unlike the Live for Speed gearbox, the car will shift like a “normal” car would in real life. When suddenly flooring the throttle, kick down mode will be engaged and the car immediately shifts down into the gear that can deliver the most power at the current speed. Currently only working with Fz5. If turned on, it "replaces" the sequential gearbox. Auto clutch must be active in settings.

Emergency Stop Assist: (working as beta) If you are not attentive, the car will first give a visual, then an audible warning. If you still don't react, the car will automatically come to a stop. With a supported wheel, and when lanes are detected, the car will try to stay within its lane.

Trip Computer (working as beta) When driving supported cars, you can click on the bc icon in the head-up display to view your average or current fuel consumption or your range. Click on the button that displays it to switch modes. Your setting will be stored.

Lane Departure Warning: (working on some tracks) If a road with lane lines is detected (only Westhill and Blackwood, more tracks supported soon), the car will warn you if you are slowly drifting out of the lane. This system might also trigger the Emergency Stop Assist if you do not react. With a later update, a corrective steering input will be applied.
The car will display a green symbol next to the head-up display if lanes are detected.

Traffic-Aware Cruise Control: If engaged, the car will maintain the set speed. If a car in front is detected, the car will automatically slow down accordingly and accelerate back up to the set speed as soon as possible.


Later (V12+):
Lane Keeping Assist: The lane-keeping assist can be activated when traveling below 100 kph and on roads with corners having a maximum angle of 25°. The car will try to travel in the middle of the detected lane. This, however, can only be considered an assistant. The car will require you to put your hands onto your controller after 10 seconds if it doesn't detect your presence. The driver remains in control of the vehicle at all times.

Oncoming Traffic Warning: This warning will be issued if the car detects that you are heading towards oncoming traffic on the same street, for example when not paying attention.

Traffic Jam Assist: When traveling behind another car at speed of up to 40 kph, the car will stay in its lane and keep a safe distance. No driver intervention is required. As soon as a higher speed is reached, the system will prompt you to take over within 5 seconds. If you do not react, the car will come to a complete standstill in its lane.


Changelogs:
V12-> PDA V2 ALPHA(Feb 2024)
- rewrite for improved efficiency
- many new features and improvements
- some features are still missing from the old version!

V11.9.9.5 -> V12.0.1: (May 2023)
- efficiency improvements
- new, much more accurate cross traffic warning
- messages with $ prefix are now commands for the Driving Assistant.

V11.9.9.1 -> V11.9.9.5: (April 2023)
- adjustable HUD position bugs fixed
- The mouse pointer can be hidden when driving with Mouse
- Massive improvements in park assist calculations
- Improvements to forward collision warning
- Improvements to fuel and calculations
- "Town Bus" is now supported for the automatic gearbox.
- Some more cars were added for range support.
- Some more improvements to increase efficiency.

V11.9.9 -> V11.9.9.1: (March 2023)
-adjustable HUD position (adjustable in the in-game-menu, will be saved)
-adjustable units metric/imperial (mph/kph)
-bus routes should work fine again
-minor bug fixes

V11.9.4 -> V11.9.9: (January 2023)
- PDC System now also works for most layout objects
- Many many bugfixes
- New ACC for wheel users
- One known issue is that bus routes might not be detected (fix next version).

V11.9.1 -> V11.9.4: (January 2023)
- PDC System Bugfixes
- Fuel consumption and range monitor bug fixes
- New way the collision warning calculates the emergency braking threshold.
- Emergency braking comes to a complete stop now, which it sometimes couldnt do before
- Improvements to the collision warning when the car has no abs
- LFS now doesnt have to be running to start the PDA. It will automatically wait for LFS to start first.

V11.9.1 -> V11.9.2: (December 2022)
- Reimplemented the entire PDC system, now much more accurate
- Fuel consumption and range can now be displayed for supported cars

V11.9 -> V11.9.1: (November 2022)
- Added indicator sounds
- Added new warning sounds
- Many bugfixes
- Added PSC Beta
- New Menu and Settings
- Gearbox working for some other cars
- Added warning distances for several mods
- New .exe logic, now only one file again
- other minor fixes/changes

V11.8.7 -> V11.9:
- Auto-indicators and Auto-Sirens can be turned off separately.
- HUD now includes images for the forward collision warning.
- Rev-bouncer is gone, caused too many issues.

V11.8.6 -> V11.8.7:
- error in bus routes fixed that would only detect one route and then no route again before a restart of the program.

V11.8.5 -> V11.8.6 (May 2022):
- Westhill bus routes
- Westhill yield warnings
- Indicator turn off and light assistance are individual settings now
- Once again new logic for forward collision warning distances, recalibration only needed for weird setups
- known bug, that it sends the car name to the console, just ignore that haha
- bus route detection also works with non-ASCII characters like Chinese now
- some more bugfixes

V11.8.4 -> V11.8.5:
- EV support (Low Battery instead of low fuel and no anti-stall and auto engine start anymore)

V11.8.3 -> V11.8.4:
- Minor bug fixes
- Yield warning on some intersections on Blackwood

V11.8.2 -> V11.8.3:
- "Connection to LFS successful" message only if it actually is successful.
- New script comes with the program now. Put it in LFS->script folder to automatically set /insim 29999 on startup.

V11.8 -> V11.8.2 (April 2022):
- Bus routes error fixed
- Bus routes on Aston, Blackwood, South City, and Kyoto are finished now. Fern Bay is almost there, 60% of routes already working.
- Yield warnings on Aston are working now.

V11.7.4 -> V11.8:
- Bus route errors fixed
- New logic for emergency braking distances
- minor other bugfixes

V11.7 -> V11.7.4:
-Fixed cop assistance errors
-Fixed chase tracker issue
-Bus support for fern bay from east station
-many bugfixes

V11.7 -> V11.7.2:
-Error in Lane departure warning fixed.
-known issue with cop tracker found, will be fixed next version

V11.6 -> V11.7 (March 2022):
-Blackwood lane departure warnings
-Bus support (announcements on south city and kyoto)
-Many Bugfixes
-Collision warning distance depending on the vehicle (many mods now supported)

V11.5 -> V11.6 (Feb 2022):
-Westhill lane departure warning on western highway, paddock, and some other roads
-Lane departure warning settings early, medium and reduced


V11.3 -> V11.5 (Feb 2022):
-emergency assist working when not paying attention
-PDC buttons should not be in conflict with Lazy buttons anymore.

V11.2 -> V11.3:
-fixed another error in gearbox
-fixed another error in message handling
-preparations for emergency assist
-exe now in a folder, not a single file anymore due to a python 3 bug with the c runtime. A shortcut is in the PACT Driving Assistant folder, so for you nothing really changes, its just in the background.
-port to python 3 finally fully completed
-started to work on a message handling bug, should be fixed in 11.4
-lazy support in 11.4 or 11.6

V11.1 -> V11.2:
-fixed error in gearbox
-fixed error in message handling

V11 -> V11.1:
-port to python 3 finished
-new logic for stall detection/anti-stall and auto-engine start, because of issues caused by pygame with python 3, that would disable force feedback by the wheel.

V10.8 -> V11:
-Changed from Python 2.7 to python 3. Which was overdue. By an insane amout of time. But hey, i made it finally.

V10.5 -> V10.8: (Jan 2022)
-Preparations for semi-autonomous driving support
-Preparation for lane-departure warning
-Settings for Handbrake, Brake, Acceleration, Shift and Ignition Keys.
-Gearbox support when in "sequential" gearbox mode
-Updated Gear indicators on HUD
-Autobrake fix for keyboard
-Preparations for install-guide

V10.4 -> V10.5:
-Wheel support for autobraking
-Mouse and Keyboard support for autobraking
-Error in collision warning fixed, when multiple cars are in front
-Fixed error in player handling from version 10.2

V10.3 -> V10.4:
-Some small things, like auto-hold and auto-engine start for wheel users.
-Mouse and Keyboard are now supported, though, there is no automatic braking for any type of controller yet.

V10.2 -> V10.3:
-Many Bugfixes, settings are saved now

V10.1 -> V10.2: (Nov 2021)
-Program understands whether the car is on track, or the user is in the menu

V10 -> V10.1:
-New OutGauge logic

V9 -> V10:
-Entirely new logic for how the car can perceive the world around itself.
-Entirely new project structure
-Rewrite of most of the program
-A much better structure of the main features

V8.2->V9: (Aug 2020)
-Rewrite of some functions that were using a lot of memory

V8.1->V8.2:
-Mayor Bugfixes
-New Light Assist now with automatic indicator turnoff.
-New Advanced Cop Aid System.

V8->V8.1: (Jan 2020)
-Minor Bugfixes
-New Siren button when playing as a cop. No need for TC Lights anymore Smile.

V7.5->V8:
-New warning distances
-Overhauled cross-traffic warning
-Added Lane Departure Warning
-Added Emergency Stop Assist
-Some changes to wheel support

V7.2->V7.5:
-The preliminary warning will now precondition the brakes for a possible full emergency stop.
-The brakes can be applied autonomously, even when using a wheel as a controller.
-Warning distance when the car in front is braking is now much more accurate.

V7.0->V7.2:
-Visual warnings look much better now
-The warning distance is now even more math, but you gut much less unnecessary warnings
-You can actually start the program together with lfs, you don't have to wait until your on track anymore: The program will restart automatically if the connection to lfs is lost; problem solved Smile

V6.0->V7.0: (Dez 2019)
-Basically everything is a little better now.
-New warnings sounds, that aren't so annoying. (Old ones can still be used)
-New acute blind-spot warning, with a warning sound when you are steering towards a car in your blind spot and a collision is very likely.
-PDC is much better now.

V5.2->V6.0:
-Added a tutorial at first start.
-Literally completely overhauled the collision warning.
-Some settings are now customizable via set.txt file.

V5.0 -> V5.2:
-Fixed an issue with the collision warning in V5.0
-You can now activate and deactivate the assistance systems via an assistance menu.

V4.0 -> V5.0:
-The System needs fewer data to determine if warnings are needed now. It's much more stable.
-Many fixes concerning the collision and cross-traffic warning.
-Beta PDC (Park distance control)

V3.5 -> V4.0:
-Many bugfixes and a more accurate collision warning
-New auto-gearbox with two shifting modes!

V3.2 -> V3.5:
-Added a preliminary warning. This is helpful to optimize your reaction time.
-The program now works much better on low-end PC's, because it needs much less data than before.

V3.1 -> V3.2:
-New Cop Mode, the car will now try to determine whether you are a cop and not give you collision warnings as a cop. All other warnings work as usual.

V2.5 -> V3.1: (Feb 2019)
-The program is now a .exe, not a .py anymore!

V2.4 -> V2.5:
-Fixed an issue with the indicators, causing them to not turn off after the rear-end collision prevention was triggered.
-Minor changes to the warning distance.

V2.3 -> 2.4:
-Fixed issues with the indicators.
-Fixed issues with false warnings for cars on bridges.
-Improvements to the rear end thing were made.
-Added the cross-traffic warning.
-Minor improvements to the blind spot warning were made.

V2 -> V2.3:
-Added the Rear-End Collision Prevention
-The program now considers the heading for the collision warning which means you don't get false warnings for oncoming traffic now anymore.
-Many false warnings caused by considering the false car were being fixed now.

V1 -> V2: (November 2018)
-Added the Blind Spot Warning.
-The program now considers more than one car for the warning
-Mayor improvements too the Collision warning were made.
-Several new warning sounds were added.
Last edited by Rob2003, .
Rob2003
S3 licensed
Currently testing two new features:

PDC for all layout objects and smooth adaptive cruise control for wheel users.

Both will be part of the next beta update Smile.
Rob2003
S3 licensed
Uploading new version with several bugfixes now. As always, please tell me if u find more bugs haha.

Unfortunately I didnt implement everything from my todo list yet, but were getting there.

Download here:
https://drive.google.com/drive/folders/1Byr4onJvHW1MP7zCei0HUgOUG9t5R_Dl?usp=share_link
Rob2003
S3 licensed
Quote from vladisim1711 :why cannot i find the car that i buy

Hey there, if you bought a car on TC City Driving, it can be found in your garage.

Top left "Home" button -> Garage.

If you want to use it, just go to pits and select the car, just like you would in singleplayer.

Best regards
Rob2003
S3 licensed
Quote from Menticek :Hi Rob2003, another error i encountered on [TC] is this:
pygame 2.1.2 (SDL 2.0.18, Python 3.10.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Vjoy path loaded successfully
Error loading vjoy-path. Wheel Support not possible.
PACT DRIVING ASSISTANT VERSION 11.9.2
Starting.
[====================] 100%
Start successful
Trying to connect to Live for Speed
Loading settings
Settings loaded successfully
Controls loaded successfully
In case you need help, hit me up on Discord: Robert M.#6244
Connection to LFS sucessful!
Traceback (most recent call last):
File "asyncore.py", line 90, in read
File "asyncore.py", line 427, in handle_read_event
File "pyinsim\core.py", line 328, in handle_read
File "pyinsim\core.py", line 535, in _handle_tcp_read
File "pyinsim\core.py", line 566, in _handle_insim_packet
File "pyinsim\core.py", line 566, in <listcomp>
File "PACT_Driving_Assist.py", line 796, in get_car_data
ValueError: not enough values to unpack (expected 3, got 2)
b'\xdf\x99"'

No idea why is it doing this

Aight. Noted and I'll look into it. When did that happen? Just when you launched the program?
Rob2003
S3 licensed
Quote from Menticek :Hi, trying once again PACT Assistant, and i got this error on Windows 11:
Traceback (most recent call last):
File "asyncore.py", line 90, in read
File "asyncore.py", line 427, in handle_read_event
File "pyinsim\core.py", line 328, in handle_read
File "pyinsim\core.py", line 535, in _handle_tcp_read
File "pyinsim\core.py", line 566, in _handle_insim_packet
File "pyinsim\core.py", line 566, in <listcomp>
File "PACT_Driving_Assist.py", line 732, in get_car_data
File "PACT_Driving_Assist.py", line 1425, in start_park_assistance
File "park_assist.py", line 145, in makesound
RuntimeError: Failed to beep

someone help me? Big grin

That's weird. Seems like your version of windows can't make the beep sound (which is usually included by default in windows).

I'll add that to the next version (handle the error when it occurs and just not make it beep, so that it doesn't crash at least).

Maybe I'll figure something else out for the beeping in the next days.

In the meantime, if you turn off the parking aid in the menu, you should be good to go.
Best regards
New Update 11.9.2
Rob2003
S3 licensed
Hey there,

finally managed to finish up the update.

The new parking sensors (PDC) are working now. They now understand other cars and your own vehicle better to provide more accurate distance to others (only working on supported cars).

There is also a fuel consumption/range viewer that can be turned on/off depending on whether you want to see that. Also, only works on supported cars (due to different fuel tank capacities on every car)

Some other bug fixes are included as well.

Download from here:

https://drive.google.com/drive/folders/1Byr4onJvHW1MP7zCei0HUgOUG9t5R_Dl?usp=share_link

If you have any suggestions or find bugs, feel free to report them here. You can also wish for specific cars to be supported Smile.

Best wishes
Robert
Rob2003
S3 licensed
FYI: PDC Update finished, I'm now testing.
I'll add a range and fuel consumption and if I make it in time the additional settings for mouse drivers that use keyboard buttons to drive as requested.
Rob2003
S3 licensed
Quote from oliwier3 :Hey, I'm getting an error when starting your program -
File "PACT_Driving_Assist.py", line 478, in <module>
File "pyinsim\core.py", line 213, in outgauge
File "pyinsim\core.py", line 587, in _connect
File "asyncore.py", line 333, in bind
OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
[4908] Failed to execute script 'PACT_Driving_Assist' due to unhandled exception!

Well. I am not exactly sure what caused that - as I am not sitting on your PC lol.

It means that one program is already using the socket address that the PACT Driving Assist is trying to use. Typically, other insim programs can cause that, or if you already have an instance of the PDA running.

It is also possible, that this port (30000) is blocked by your Firewall or some third party program on your pc Smile.

I hope that helps Smile.
Rob2003
S3 licensed
Quote from superlame :I don't have wheel, but I can control the car in "wheel / joystick" mode with axis with the mouse.

Question is. How should I setup the vjoy thing so it can be compatible with the PSC and gearbox

Hey,

Well the problem with the gearbox is that it is dependent on the amount of acceleration you put in. So you have to use an acceleration axis and not buttons. So it probably won't work with combined axis for throttle and brake. If you do so, it should work:
1. Install vjoy
2. Adjust your controls.txt to match the lfs settings
3. Set gearbox to sequential
4. Activate automatic clutch in lfs settings
5. Activate autogearbox in menu

Then everything should work. You don't really have to set anything up with vjoy. Just put the axis that are displayed in lfs in the right place in the controls.txt file and you should be fine.

I hope that helps. If you need more help, just reply here.
New Stable Version
Rob2003
S3 licensed
Hello Everyone,

it's been too long since there has been a stable version: So here it is!

There are many improvements, one very obvious one being the simpler file structure. You now only have one file and not the huge folder from before for the program itself.

There is still stuff that need to be addressed, but I think this version is ready to be released to the public.

IMPORTANT: THERE ARE NEW SETTINGS. YOU CANNOT OVERRIDE THE NEW SETTINGS FILE WITH YOUR OLD SETTINGS. PLEASE CHANGE THE NEW SETTINGS MANUALLY TO MATCH YOUR OLD ONES!

If something doesn't work, or if you notice a bug, please tell me here Wink!

Link:
https://drive.google.com/drive/folders/1Byr4onJvHW1MP7zCei0HUgOUG9t5R_Dl?usp=sharing

A known issue with the gearbox is that you have to re-activate it if you change your car :/.

PS.: I know, I said this update will contain the new mouse/keyboard logic, but I didn't make it. Though I felt like I can publish the rest of the update already. I'll update that in the next few days, so dont worry, I didn't forget about it.

Changelogs (according to my commit messages, It's probably even more haha):
- New PSC (Pact Stability Control, not working perfectly yet)

- Added car specific assistance (gearbox, braking distance, PSC (not for all))
Bumer 7
N.400s
Faik Topo
Luxury Sedan
Karobus
UF Pickup Truck
some other specific assistances for other cars

- New settings for the Image-HUD
- New, better gearbox logic
- New warnings sounds
- New menu options that are stored in settings.txt
- Bugfixes
- Emergency assist related crash fixed
- .exe file simplified
Last edited by Rob2003, .
Rob2003
S3 licensed
Quote from Cetink. :Hello Rob Smile
Are you going to make mouse steering + keyboard throttle and brake support?

Hey. Well you mean that in the settings you have "mouse" selected, but you use keyboard buttons to brake and accelerate right?

I didn't think of that possiblity yet haha. Sure it will be part of the next update.
Probably before next week. I try my best haha.
Rob2003
S3 licensed
Quote from superlame :Mentioning PDC - Will it be possible the PDC to beep when we are close to an layout object? If I remember correctly, the current method of the Lane assist is made by manually written by you coordinates or something, so it won't work in the case of PDC with layout objects. Maybe if we put the .lyt file in some type of folder or drag it to the .exe so it can read it?

Yes that's definitely possible. But not with the layout file, but insim offers a way to get all autocross objects. I've tried it before but then stopped, because I got so many errors, i just didn't feel like continuing. but yeah it should be possible and I'll look into it, probably not with this update though.
Rob2003
S3 licensed
Quote from superlame :And when does the ACC ( Adaptive Cruise Control ) come? E38 has this feature too Tongue

Probably one of the next features. I want to make the program a bit more stable first and maybe make the PDC more accurate for mods. Then I'll start working on that, probably first only for wheel users, as that is a lot simpler with following another cars speed.
But it will be there eventually, can't tell an exact date though.
Rob2003
S3 licensed
Quote from superlame :Is my BUMER 7 in that list of "few mods"? Big grin

Yes, it is. It is not implemented yet, but it is the next car on my list.

Smile
My goal is to support all allowed mods on TC.
Rob2003
S3 licensed
Hello Guys,

in the past few days, I've started to clean up the code a bit and to make "beta features" work properly. The proper automatic gearbox (previously only fz5, now also works for a few other cars, including a few mods.) I'll continue working on it.

The emergency braking distance is now adjusted to a few mods. Many bugs have been fixed and there are many more options in the settings now so that you can turn on / off whatever you like to use.

You can now adjust your screen resolution, so that the "Image HUD", which is actually displaying images, not LFS buttons, can now be adjusted to be exactly above the "normal HUD", even with other screen resolutions than 1920x1080. Also, you can turn that on/off if you don't like it.

There is a stability control again, though that doesn't work perfectly yet.

Indicator sounds are also back. And the collision warning sounds can be changed in the menu, as of now, there are five sounds available, you should find something you like.

I hope, I will be able to finish what I am working on right now within two weeks, so there should be a stable version with all the current features - and even more Wink out soon.

Feel free to suggest anything that should be included in the update.
Rob2003
S3 licensed
Quote from Menticek :Hi, when i again tried to run PACT, this time the 11.9 beta, this happens...
Any help? (Using Windows 10)

Traceback (most recent call last):
File "asyncore.py", line 83, in read
File "asyncore.py", line 420, in handle_read_event
File "pyinsim\core.py", line 328, in handle_read
File "pyinsim\core.py", line 535, in _handle_tcp_read
File "pyinsim\core.py", line 566, in _handle_insim_packet
File "pyinsim\core.py", line 566, in <listcomp>
File "PACT_Driving_Assist.py", line 688, in get_car_data
File "PACT_Driving_Assist.py", line 1348, in start_park_assistance
File "park_assist.py", line 113, in makesound
RuntimeError: Failed to beep


Hey there,
Well that is weird. It uses a built-in windows function to beep for the park distance control and that seems to not work. I suppose it crashed when you were slow and close to someone else? Maybe just disable the PDC in the settings Wink.
Not sure where the issue lies there.

Hope that helps Smile
Rob2003
S3 licensed
Hey guys. As I want all users of the PACT Driving Assistant involved as much as possible in the development process, I would like to tell you my current plan: As the new graphics, maps and physics update seems to be getting a little closer (lets hope in a year or so), i will not add an infinite amount of new features to the current version, as that would require me to scan current tracks etc, and if they change in the next time, that would be more or less wasted time.

I will start fixing all bugs, rewriting parts of the program and making it look nicer so that, when the new version comes out within a month or so, a big update for the PACT Driving Assistant can be expected as well.

In the meantime, i will still be here to fix bugs in the current version, so if you find something, or have suggestions for the big update, let me know Wink.

Have a nice week
Rob
Rob2003
S3 licensed
I've just finished the new beta. I'll upload it now, hopefully, everything will work just fine, but if there are bugs, please let me know.

I've fixed these suggestions from you guys.

- Auto-indicators and Auto-Sirens can be turned off separately.
- HUD now includes images for the forward collision warning.
- Rev-bouncer is gone, caused too many issues.


AS THIS IS A BETA, these things are not final yet, but will be fixed as soon as possible:

- Auto-indicator and auto-siren settings are not saved after closing the program yet, you'll have to disable these after startup if you want to.

- The HUD images may have a few black pixels right next to the cars, that's due to how I made them transparent on top of lfs, ill try to make that look a little better.

- The HUD images work only with a 1920x1080 screen yet, otherwise, they are not in the correct position.

- The console prints "^2" or "^1"... a lot... that'll be gone soon.

Feedback is always appreciated as usual. I'll upload it now, it'll probably be available within the next hour.

NOTE: Remember to copy your controls and settings file from the old version to keep your settings.
Last edited by Rob2003, .
Rob2003
S3 licensed
Quote from superlame :I don't remember if I have asked about this, so I am going to ask again Big grin.

Is it possible to make the PDC like in real life? To beep if you are getting close to concrete or wall or fence.. you get the point.

If yes, do you plan to make it like that?

Thanks.

Hey, well yeah, i get the point. And I've thought about that many times.
Here's the deal: I plan on doing that, but no very soon:

The problem is that insim doesn't provide track data. That would mean I would need to basically scan all tracks - and load the layouts (which is possible with insim tho) - just to get a pdc for all objects. And to scan the entire track would be a lot of work, since I've already started to do that shit for the lane departure warning haha.

So yeah, that's the biggest issue there, but at some point, I'd like to do that, yes. I am pretty under water with my "normal" work right now though. I hope i can release a beta of the new head up display with images this months, thats my priority now.
Rob2003
S3 licensed
Quote from Rexo35 :Yes, you got me xd. I was wrong.

btw, when i try to use the function "pyinsim.IS_MCI.unpack()", python asks for 2 arguments, but in the definition there is only one argument "data" (also "self", but as far as I know you dont have to give "self" a value xd).

This is my line:
mci = pyinsim.IS_MCI.unpack(data)

thx <3 xd

Right... So I've been at your point in 2018. Imma just gonna briefly explain to you whats missing there. Don't take this word by word, I am not really a pro, but this works.
I tried to make it as clear as possible with comments in the code. If you are not that comfortable with python yet, maybe sentdex on youtube is helpful there as well (helped me get started a lot):

https://pythonprogramming.net/
https://www.youtube.com/watch?v=eXBD2bB9-RA&list=PLQVvvaa0QuDeAams7fkdcwOGBpGdHpXln
https://www.youtube.com/watch?v=YSe9Tu_iNQQ&list=PLQVvvaa0QuDfju7ADVp5W1GF9jVhjbX-_

In python 3 it would look like that:

see attachment. .py files are not allowed on the forum, so its a .txt Smile
Last edited by Rob2003, . Reason : copying code didnt really work
FGED GREDG RDFGDR GSFDG