The online racing simulator
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
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.
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!
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.
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.
New Update 11.9.2
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
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
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
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
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?
Quote from Rob2003 :Aight. Noted and I'll look into it. When did that happen? Just when you launched the program?

Happends when i join [TC], and the user it makes me spec when i join has other car than base Cars
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.
Attached images
Screenshot 2023-01-21 194948.png
wooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooow
Can you make the PACT not working when we are alt-tab from LFS.exe?

Right now, when you have auto-hold on and alt-tab from LFS you get constantly spammed with SPACE ( or whatever the handbrake bind is )

Also the other thing. Can you make the Auto-hold and auto-start engine optional as well?

Thanks, waiting for the ACC and PDC update
New Home for the PACT Driving Assistant

FGED GREDG RDFGDR GSFDG