Edit(25.7.23) : V1.0 now released -> ruclips.net/video/ILLqHix_D8o/видео.html EDIT (20.6.23) : I NOW HAVE A DISCORD, FOR ANY QUESTIONS GO THERE : discord.gg/DpJpkNpqwD Also there is a new one click installer here : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip Also also v2 is coming end of summer (july) IMPORTANT : It seems that python 3.10 and 11 fail to install the dependencies correctly, to use the app please download python 3.9. IMPORTANT : For people getting a cv2.error, please reinstall cv2 manually (in cmd -> pip uninstall opencv-python -> pip install opencv-python) IMPORTANT : If you have an error with "setting an array element with a sequence" then please reinstall numpy with (pip install numpy==1.21.6) Edit : The part from 5:40 to 7:05 is now obsolete (hopefully) Edit : If you are facing issues with your controls not transferring to the virtual controller then please update ViGEmBus here : github.com/ViGEm/ViGEmBus/releases So the new version is finally done. I fully expect it to have many issues and will try my best to fix all of them as quick as possible. Also at 4:18 it should say 5:20
This what have you created is ground breaking I'm suppressed that "ets2 media" is not talking about this ets community have to hear about it awesome 👏 👏👏
You don't realize how much I appreciate the positive feedback. I did post about this on Reddit, and it got some recognition but recently the algorithm had been on my side and giving me some help xD
Thank you for the nice words! I am developing an update that will hopefully drastically lower the pc requirements, though it might be a week off, or half a year off. Right now I have so much school work to do it is taking most of my time.
@@Tumppi066 ok ok, no problem! I need the lane assistant too! I want the sightseeing in game. it would be enough ( on-off, lane assist). in complicated city road, I'll turn off. only in cruising highway, I need it. cheer up! I like it
When the player directly manipulates the steering wheel, does the system intervene, but gives priority to the player's manipulation, and when the player's steering wheel manipulation is not detected, does the system operate the steering wheel by itself? If you look at my first video, in a real car, the system gives some help even when the driver directly manipulates the steering wheel, but when the driver does not operate it, it drives alone and gives a warning. Even if there is no separate warning, is it made to resemble reality? even if not, it's a very useful system. thank you :)
The output to the game is (playerInput + appOutput): This means that when the player moves the wheel the app does indeed respond to those movements first. Then because there is some smoothening to the app output it means that even when not turning off the lane assist while changing lanes it is possible to "force" the lane assist to move lanes, effectively giving "priority" to the player input.
@@Tumppi066 Oh thank you! Used with Adaptive Cruise Control, it will be the perfect HDA(Highway Driving Assistance) system! You did a great job making it.
I struggled to the end and was able to figure out that I must have a steering wheel or a gamepad, since it doesn't work without them, you could have written it at the beginning or in the title of the video. Edit: i'm playing with mouse + keyboard..
Hi, I've tried the main and experimental branch and they both only spam '("name 'lane_detector' is not defined",)' when trying to enable them. Any solution?
Do you have a lane detection model installed (tusimple or culane). If not then can you contact me on discord (Tumppi066#2874) and we will get this sorted out once I get out of school.
I really wanted this to work but I was getting control error in main version so I tried Experimental it worked and axes were showing in CMD and after enabling it and driving in ATS, lane detection is not doing anything I tried windowed mode and full screen with 16:9 1920x1080. i am using cheap controller which is working in ats but i cant get steam emulated option in ats I don't know how to do borderless also but I also don't know what's wrong
The controller is usually not named steam emulated controller. That is just my steam messing things up. Usually it will be called along the lines of "Xbox 360 Controller". I should have clarified this in the video though :)
I would assume that you didn't install using the new installer, it can be found here: github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip For further assistance you should probably contact me on discord either through dms @tumppi066 or my channel discord.gg/yBSBHNbW
For sure, it will be easier if you contact me on discord. TLDR for everyone; - The current main (and experimental) version is extremely old - There is a newer version available with a simple installer. - github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip edit: Tumppi066#2874
When I want to open the .bat file it opens and then it immediately closes. Also when I look where streamlit is downloaded I cant find in anywhere. How do I fix this?
You can get it to stay open by running it from a terminal, click the address bar in file explorer and type cmd.exe. Then type start.bat. I'm currently moving away from using streamlit as it's causing many issues for some people, but contact me on discord so we can get I it sorted out. (I won't be able to respond for the next 8 or so hours, since I am just heading to bed.)
@@Tumppi066 yeah in my scripts folder from python isn't there any streamlit files. So I think it can't run without streamlit. But I don't know how to get streamlit. I'm also heading to bed. Have a great night!
@@binhpas Hmm, yup try and run it so that it stays open (you can then see the error), If it indeed is streamlit caused then just reinstall it with -> pip uninstall streamlit -> pip install streamlit. If this does not work then contact me on discord @ Tumppi066#2874, or make an issue on github.
Full Error: Successfully loaded all settings Exception in thread Thread-3 (MainFileThread): Traceback (most recent call last): File "C:\Users om7m\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users om7m\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Users om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread import MainFile File "C:\Users om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 49, in import ets2LaneDetection as LaneDetection File "C:\Users om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\ets2LaneDetection.py", line 123, in camera = dxcam.create(region=monitor, output_color="BGR") File "C:\Users om7m\Downloads\DXcam-main\dxcam\__init__.py", line 112, in create return __factory.create( File "C:\Users om7m\Downloads\DXcam-main\dxcam\__init__.py", line 71, in create camera = DXCamera( File "C:\Users om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 33, in __init__ self._duplicator: Duplicator = Duplicator( File "", line 6, in __init__ File "C:\Users om7m\Downloads\DXcam-main\dxcam\core\duplicator.py", line 19, in __post_init__ output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator)) _ctypes.COMError: (-2005270524, 'Указанный интерфейс устройства или уровень компонента не поддерживается в данной системе.', (None, None, None, 0, None)) Exception ignored in: Traceback (most recent call last): File "C:\Users om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 243, in __del__ self.release() File "C:\Users om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 238, in release self.stop() File "C:\Users om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 138, in stop if self.is_capturing: AttributeError: 'DXCamera' object has no attribute 'is_capturing'
I have multiple issues with the installation of the program: "metadata generation failed", "subprocess exited with error" x2, "failed building wheel for pyarrow" "could not build wheels for pyarrow" , "could not find a version that satisfies the requirement torch (from versions: none)" and "No matching distribution found for torch" please help me
Hello, your mod looks great, but whenever I try to start it through the UI I get the following message in the cmd "("name 'lane_detector' is not defined",)" and nothing happens, I tested it with 4 models, with the game in windowed mode/ full screen...
@@Tumppi066 Hi again, I managed to solve it myself, it was about the python version, as your pinned comment suggests it needs version 3.10 or 3.9, however the pytorch download page mentions that it only works on versions 3.7 - 3.9 and after installing the version 3.9 everything worked fine.
hi nice tutorial, but i have a problem, my UI wont open for some reason, first it was scipy i installed it, now: AttributeError: 'DXCamera' object has no attribute 'is_capturing' what am i doing wrong, i followed every step you did.....
Sorry for this EXTRMELY late reply... RUclips didn't give me a notification of this comment... Anyway usually that is caused if a) you have a laptop / PC with integrated graphics in addition to the GPU b) Your capture area is outside of the display. If you tell me the answer to 'a' I can help you further :)
I don't understand the controller mapping. the steering axis is automatically detected, the slider is moving. But what are the numbers next to the other buttons? changing them does nothing. no matter what number i type there RB toggles the assist and the LB toggles the indicator. the rest of the buttons on my controller dont do anything
It's not actually named that way, steam just messed it up some for some reason. It should say Xbox 360 controller, I really should have put this in the video :)
@@Tumppi066 Oh okay, I have 2 options for Xbox 30 Controller and I've tried both of them and wasn't able to get it to work, I also noticed that the program would run at like 5-7 fps. I have both an amd gpu and cpu. I've also made sure that I've installed everything correctly.
@@toopsisdfg6339 Ok, go to a website that shows your controller ( example gamepad-tester.com/ ) and see if both of the controllers work, on is your controller the other is the app controller. Your controller should obviously just work, the app controller should only move the left stick x axis. If this doesn't happen then update your ViGEm bus here ( github.com/ViGEm/ViGEmBus/releases ), and try again, if it still doesn't work then please contact me on discord or make a GitHub issue for more assistance :)
Hey, im trying this but its not working. When its enabled it say's "('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.',)" over and over again and not doing anything. Also im a little confused about the screen capture settings and what values i should use. I hope you can help me!
Sorry for the late reply, I have been ill these past few days. You should probably send me a message on discord, since that is an error I have yet to encounter.
Hey there, love the work you put in this! Unfortunately, I keep running into an issue which is; whenever I start/enable the lane assist the terminal keeps spamming something along the lines of "name: lane_detector" is invalid (sorry not at my PC to get the correct error atm). I've tried reinstalling, using multiple models and different python versions but nothing seems to be working. Any ideas? Edit: full error message: ("name 'lane_detector' is not defined",)'
Hmm it seems that either pytorch is broken or the model is not for some reason working... Do this : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/issues/22#issuecomment-1501191815 And if it doesn't fix it then contact me on discord and we will get this sorted out!
Hey, spend whole day trying but, every time i tab into the game i get 1-2 frames per sec, it doesnt matter if do i include gpu or not, tried loading cpu profile etc, even experimental version and main, seems the same, while software is running still i get in game 260 frames per sec, my cpu is ryzen 7 5800x and gpu 1050 ti, cannot get it to more than 3-6 frames.. At least i tried..
Hmm, yup I think that GPU is the weak link here. Someone else made it run at around 10fps on a 1050 with the CuLane 18 model. But if it's not working well then I unfortunately can't make it better, since I did not develop the models (would require 20 000+ hours of ets2).
Hello. As I understand it, according to the video, this autopilot cannot slow itself down. If so, I'm wondering what's stopping you from doing it. It would be very cool. But even without this, I like the idea and most likely I will try to install this autopilot. I wish you success in development.
This is on my roadmap (you can find a link in the description), first I have to get some type of depth prediction implemented, and so far all my tries have run at like 7 fps. In any case it's not that high up on my priorities since the game already has an emergency brake and acc system.
@@Tumppi066 The new adaptive cruise control update fixes this!
2 года назад+1
I have a question for you. When you installed the "vJoy Device" there, did something happen on your computer, so is there a virus? I'm wondering if you say you don't have a saddle, can you make a video using it or can you share the link if you have it?
2 года назад+1
I saw a program like you showed when we install it, "vJoy Device" comes instead of "controls" that's why I asked
That was the windows yes/no prompt, due to some security measures obs can't capture the screen and it goes to black. Edit : Also I'm not sure what you mean by "saddle", so please correct me if you meant something else. Just be assured that no part of the app or any of the requirements are viruses :)
Hello i get in cmd spam ('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.',) this message when I turn on lane assist
Yup take a look here : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/issues/19 It is a known bug but I have so much schoolwork I can't get to fixing it now. Rest assured though that it will get fixed... eventually :)
Seems that the installer did not install all the requirements correctly. You should open a command prompt in the app folder (shift+right click the folder -> open in powershell/cmd) and run pip install requirements.txt if that doesn't work then you can install any module manually by doing pip install {list of modules} for example pip install scipy If it still doesn't help you then contact me on discord here : Tumppi066#2874
Hmm, I'm quite busy today so I will most likely get back to you more tomorrow at around the same time. For now, have you downloaded a lane detection model, if so then please re-select it in the settings and "load model".
@@Tumppi066 after that i get this Loaded model of size : 101 ('Torch not compiled with CUDA enabled',) also when i enable the auto pilot the preview just freezes
@@motorz999 Contact me on discord then, I am currently at my father so I don't have access to my pc but I will try and help you anyways. Tumppi066#2874
Recently I got some help and he implemented automatic (not adaptive) cruise control. It does change speed automatically to the road speed, but it does not take into account other cars or trucks.
My problem is something like this. When i go into the controls tab in control panel i cant change controler. ValueError: None is not in list Traceback: File "C:\Users\karol\AppData\Roaming\Python\Python310\site-packages\streamlit untime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "C:\Users\karol\OneDrive\Pulpit\Nowy folder\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 239, in UpdateSettings("controlSettings", "defaultControllerIndex", data["controllers"].index(controller))
@@kabum7477 That's incredibly weird then, well I'm glad it works on the experimental branch, is there any reason you want main to work, since experimental is better? If so can you contact me on discord and I will look into it.
0; although I recommend downloading the experimental version instead, it has a better UI in addition to sound FX etc... I have not had the time to perfect it yet though, so it's not on the main branch yet. If you decide to try the experimental version out and have problems then please contact me on discord, I will gladly help :)
It won't unfortunately, the in game controller setting has to be set to wheel, and this means when you try and turn it will throw the steering to the extremes. I could technically support them, but it won't be fun for the user :)
Also if you haven't already then you can try this one, it is a bit more limited but from what I'm told it's working, also the developer is really nice, he contacted me for assistance one day :) ruclips.net/video/_UHNavRGav4/видео.html
@@aviationmemes3868 I will try and get it in an update today (it won't be too difficult to do) but as I said be prepared :D Also if you can I HIGHLY suggest getting a controller for ets2 it will make it so much more enjoyable even without the lane assist, you can find something like a xbox 360 controller or ps3 controller for extremely cheap (
Contact me on Discord : Tumppi066#2874 Or make a github issue RUclips comments are bad for trying to help, since you cannot paste images in them. I am currently in school and will get out at 15,00 (you can see my local time on my github profile github.com/Tumppi066 )
If you installed it before I added the updater then you will need to download the new installer. As for the installer download that can be found in the projects github releases or with this link : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/releases It's the file called "DOWNLOAD_THIS.zip"
Seems I've been lacking on answering youtube comments :) There is a new version that runs better on CPU. The old one needed an NVIDIA GPU to run smoothly. github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip
@@david1311-c3f Nice! That's the same one I have, must have been something with my installer not installing torch / nvidia correct. If you want to then I do need people to test the new 2.0. It's now at the point where it "works", but not quite as well as the old experimental version. If you are interested in testing then use the discord link in the pinned message :D
Did you get any errors when starting the app, the steering device is named Xbox 360 controller steam just messed up my naming. Otherwise update ViGEmBus here : github.com/ViGEm/ViGEmBus/releases If these do not work then contact me on discord Tumppi066#2874 :D (alternatively github issues also work)
@@gustav3443 Run the app through a console, the app is crashing and closing, when you open it through a console it won't close and you can tell me the error. You can do this by shift right clicking the folder the app is installed in and running streamlit run AppUI.py
This is possible. When you launch the app it will automatically take your system language and start translating. If it doesn't work then you can manually change the language in the settings.
Hello, I keep on getting an error that I don´t know how to fix. Here´s the error code. Exception in thread Thread-3 (MainFileThread): Traceback (most recent call last): File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "C:\Program Files\Python311\Lib\threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread import MainFile File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 39, in from PIL import Image, ImageTkde ImportError: cannot import name 'ImageTkde' from 'PIL' (C:\Users\alexe\AppData\Roaming\Python\Python311\site-packages\PIL\__init__.py)
@@Tumppi066 I´m still getting an Error. Now it´s: Exception in thread Thread-3 (MainFileThread): Traceback (most recent call last): File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "C:\Program Files\Python311\Lib\threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread import MainFile File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 40, in from torch import true_divide ModuleNotFoundError: No module named 'torch'
@@alexejbilozir3804 It seems that it did not download all the requirements, to fix it you can run : pip install -r requirements.txt If it still says the same then run : pip install torch (or any other package that is not found) Also I highly recommend downloading the experimental version rn. It has many extremely important updates that make the app easier to use. If you still need help after this then please contact me on discord. edit : formatting as I made this comment on my phone, it was not a good idea.
Edit(25.7.23) : V1.0 now released -> ruclips.net/video/ILLqHix_D8o/видео.html
EDIT (20.6.23) : I NOW HAVE A DISCORD, FOR ANY QUESTIONS GO THERE : discord.gg/DpJpkNpqwD
Also there is a new one click installer here : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip
Also also v2 is coming end of summer (july)
IMPORTANT : It seems that python 3.10 and 11 fail to install the dependencies correctly, to use the app please download python 3.9.
IMPORTANT : For people getting a cv2.error, please reinstall cv2 manually (in cmd -> pip uninstall opencv-python -> pip install opencv-python)
IMPORTANT : If you have an error with "setting an array element with a sequence" then please reinstall numpy with (pip install numpy==1.21.6)
Edit : The part from 5:40 to 7:05 is now obsolete (hopefully)
Edit : If you are facing issues with your controls not transferring to the virtual controller then please update ViGEmBus here : github.com/ViGEm/ViGEmBus/releases
So the new version is finally done.
I fully expect it to have many issues and will try my best to fix all of them as quick as possible.
Also at 4:18 it should say 5:20
This what have you created is ground breaking I'm suppressed that "ets2 media" is not talking about this ets community have to hear about it awesome 👏 👏👏
You don't realize how much I appreciate the positive feedback. I did post about this on Reddit, and it got some recognition but recently the algorithm had been on my side and giving me some help xD
wonderful! very interesting but my pc has not enough to run. there are some issues in cities but it fits on the highway well.
Thank you for the nice words!
I am developing an update that will hopefully drastically lower the pc requirements, though it might be a week off, or half a year off. Right now I have so much school work to do it is taking most of my time.
@@Tumppi066 ok ok, no problem!
I need the lane assistant too! I want the sightseeing in game. it would be enough ( on-off, lane assist). in complicated city road, I'll turn off. only in cruising highway, I need it.
cheer up! I like it
When the player directly manipulates the steering wheel, does the system intervene, but gives priority to the player's manipulation, and when the player's steering wheel manipulation is not detected, does the system operate the steering wheel by itself?
If you look at my first video, in a real car, the system gives some help even when the driver directly manipulates the steering wheel, but when the driver does not operate it, it drives alone and gives a warning.
Even if there is no separate warning, is it made to resemble reality? even if not, it's a very useful system. thank you :)
The output to the game is (playerInput + appOutput):
This means that when the player moves the wheel the app does indeed respond to those movements first. Then because there is some smoothening to the app output it means that even when not turning off the lane assist while changing lanes it is possible to "force" the lane assist to move lanes, effectively giving "priority" to the player input.
@@Tumppi066 Oh thank you! Used with Adaptive Cruise Control, it will be the perfect HDA(Highway Driving Assistance) system! You did a great job making it.
I struggled to the end and was able to figure out that I must have a steering wheel or a gamepad, since it doesn't work without them, you could have written it at the beginning or in the title of the video. Edit: i'm playing with mouse + keyboard..
Ah sorry... seems I forgot to add that. It is in the github page however :)
thanks a lot,Appreciate it
After an hour I finally got everything working, brother thank you for your dedication, it was amazing!
Hi, I've tried the main and experimental branch and they both only spam '("name 'lane_detector' is not defined",)' when trying to enable them. Any solution?
Do you have a lane detection model installed (tusimple or culane).
If not then can you contact me on discord (Tumppi066#2874) and we will get this sorted out once I get out of school.
@@Tumppi066 I had tusimple34 installed. Eventually got it to work by reinstalling pytorch. Not sure why it worked but it worked.
I really wanted this to work but I was getting control error in main version so I tried Experimental it worked and axes were showing in CMD and after enabling it and driving in ATS, lane detection is not doing anything I tried windowed mode and full screen with 16:9 1920x1080. i am using cheap controller which is working in ats but i cant get steam emulated option in ats I don't know how to do borderless also but I also don't know what's wrong
The controller is usually not named steam emulated controller. That is just my steam messing things up. Usually it will be called along the lines of "Xbox 360 Controller". I should have clarified this in the video though :)
What does the "ModuleNotFoundError: No module named 'scipy' " Mean?
I would assume that you didn't install using the new installer, it can be found here:
github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip
For further assistance you should probably contact me on discord either through dms @tumppi066 or my channel discord.gg/yBSBHNbW
hey, i need help i do everything right, but when i refresh UI it doesn't open the view. can you help?
For sure, it will be easier if you contact me on discord.
TLDR for everyone;
- The current main (and experimental) version is extremely old
- There is a newer version available with a simple installer.
- github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip
edit: Tumppi066#2874
When I want to open the .bat file it opens and then it immediately closes. Also when I look where streamlit is downloaded I cant find in anywhere. How do I fix this?
You can get it to stay open by running it from a terminal, click the address bar in file explorer and type cmd.exe. Then type start.bat. I'm currently moving away from using streamlit as it's causing many issues for some people, but contact me on discord so we can get I it sorted out. (I won't be able to respond for the next 8 or so hours, since I am just heading to bed.)
@@Tumppi066 yeah in my scripts folder from python isn't there any streamlit files. So I think it can't run without streamlit. But I don't know how to get streamlit. I'm also heading to bed. Have a great night!
@@binhpas Hmm, yup try and run it so that it stays open (you can then see the error), If it indeed is streamlit caused then just reinstall it with -> pip uninstall streamlit -> pip install streamlit.
If this does not work then contact me on discord @ Tumppi066#2874, or make an issue on github.
AttributeError: 'DXCamera' object has no attribute 'is_capturing'
Full Error:
Successfully loaded all settings
Exception in thread Thread-3 (MainFileThread):
Traceback (most recent call last):
File "C:\Users
om7m\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users
om7m\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users
om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread
import MainFile
File "C:\Users
om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 49, in
import ets2LaneDetection as LaneDetection
File "C:\Users
om7m\Downloads\Euro-Truck-Simulator-2-Lane-Assist-main\ets2LaneDetection.py", line 123, in
camera = dxcam.create(region=monitor, output_color="BGR")
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\__init__.py", line 112, in create
return __factory.create(
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\__init__.py", line 71, in create
camera = DXCamera(
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 33, in __init__
self._duplicator: Duplicator = Duplicator(
File "", line 6, in __init__
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\core\duplicator.py", line 19, in __post_init__
output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator))
_ctypes.COMError: (-2005270524, 'Указанный интерфейс устройства или уровень компонента не поддерживается в данной системе.', (None, None, None, 0, None))
Exception ignored in:
Traceback (most recent call last):
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 243, in __del__
self.release()
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users
om7m\Downloads\DXcam-main\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'
I have multiple issues with the installation of the program: "metadata generation failed", "subprocess exited with error" x2, "failed building wheel for pyarrow" "could not build wheels for pyarrow" , "could not find a version that satisfies the requirement torch (from versions: none)" and "No matching distribution found for torch"
please help me
It's easier if you contact me on discord @ Tumppi066#2874
Hello, your mod looks great, but whenever I try to start it through the UI I get the following message in the cmd "("name 'lane_detector' is not defined",)" and nothing happens, I tested it with 4 models, with the game in windowed mode/ full screen...
Hmm, I recommend changing to the experimental version, and contacting me on discord, I will be able to better assist you there @ Tumppi066#2874
@@Tumppi066 Hi again, I managed to solve it myself, it was about the python version, as your pinned comment suggests it needs version 3.10 or 3.9, however the pytorch download page mentions that it only works on versions 3.7 - 3.9 and after installing the version 3.9 everything worked fine.
@@Moura2002 Ah ok, thanks for bringing that to my attention! I will update the download page now and remove 3.10.
It doesn't seem as though there's any release for me when I go to the github page? Is there something I'm doing wrong or what?
Hmm, try this direct link:
github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/releases
@@Tumppi066 That helps, thank you!
@@octavius7438 No worries be sure to contact me if you have more problems!
hi nice tutorial, but i have a problem, my UI wont open for some reason, first it was scipy i installed it, now: AttributeError: 'DXCamera' object has no attribute 'is_capturing'
what am i doing wrong, i followed every step you did.....
Sorry for this EXTRMELY late reply... RUclips didn't give me a notification of this comment...
Anyway usually that is caused if
a) you have a laptop / PC with integrated graphics in addition to the GPU
b) Your capture area is outside of the display.
If you tell me the answer to 'a' I can help you further :)
I don't understand the controller mapping. the steering axis is automatically detected, the slider is moving. But what are the numbers next to the other buttons? changing them does nothing. no matter what number i type there RB toggles the assist and the LB toggles the indicator. the rest of the buttons on my controller dont do anything
Hmm those should be the button indexes starting from 0. The indexes this website shows should (roughly) equal the ones in the app. gamepad-tester.com/
How do I get the steam emulated controller option in controls?
It's not actually named that way, steam just messed it up some for some reason. It should say Xbox 360 controller, I really should have put this in the video :)
@@Tumppi066 Oh okay, I have 2 options for Xbox 30 Controller and I've tried both of them and wasn't able to get it to work, I also noticed that the program would run at like 5-7 fps. I have both an amd gpu and cpu. I've also made sure that I've installed everything correctly.
@@toopsisdfg6339 Ok, go to a website that shows your controller ( example gamepad-tester.com/ ) and see if both of the controllers work, on is your controller the other is the app controller. Your controller should obviously just work, the app controller should only move the left stick x axis.
If this doesn't happen then update your ViGEm bus here ( github.com/ViGEm/ViGEmBus/releases ), and try again, if it still doesn't work then please contact me on discord or make a GitHub issue for more assistance :)
Hey, im trying this but its not working. When its enabled it say's "('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.',)" over and over again and not doing anything. Also im a little confused about the screen capture settings and what values i should use. I hope you can help me!
Oh i forgot to mention that i am using the experimental version
Sorry for the late reply, I have been ill these past few days.
You should probably send me a message on discord, since that is an error I have yet to encounter.
Hey there, love the work you put in this! Unfortunately, I keep running into an issue which is; whenever I start/enable the lane assist the terminal keeps spamming something along the lines of "name: lane_detector" is invalid (sorry not at my PC to get the correct error atm). I've tried reinstalling, using multiple models and different python versions but nothing seems to be working. Any ideas?
Edit: full error message:
("name 'lane_detector' is not defined",)'
Hmm it seems that either pytorch is broken or the model is not for some reason working...
Do this : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/issues/22#issuecomment-1501191815
And if it doesn't fix it then contact me on discord and we will get this sorted out!
Hey, spend whole day trying but, every time i tab into the game i get 1-2 frames per sec, it doesnt matter if do i include gpu or not, tried loading cpu profile etc, even experimental version and main, seems the same, while software is running still i get in game 260 frames per sec, my cpu is ryzen 7 5800x and gpu 1050 ti, cannot get it to more than 3-6 frames.. At least i tried..
Hmm, yup I think that GPU is the weak link here. Someone else made it run at around 10fps on a 1050 with the CuLane 18 model.
But if it's not working well then I unfortunately can't make it better, since I did not develop the models (would require 20 000+ hours of ets2).
Hello. As I understand it, according to the video, this autopilot cannot slow itself down. If so, I'm wondering what's stopping you from doing it. It would be very cool. But even without this, I like the idea and most likely I will try to install this autopilot. I wish you success in development.
This is on my roadmap (you can find a link in the description), first I have to get some type of depth prediction implemented, and so far all my tries have run at like 7 fps.
In any case it's not that high up on my priorities since the game already has an emergency brake and acc system.
@@Tumppi066 The new adaptive cruise control update fixes this!
I have a question for you. When you installed the "vJoy Device" there, did something happen on your computer, so is there a virus? I'm wondering if you say you don't have a saddle, can you make a video using it or can you share the link if you have it?
I saw a program like you showed when we install it, "vJoy Device" comes instead of "controls" that's why I asked
That was the windows yes/no prompt, due to some security measures obs can't capture the screen and it goes to black.
Edit : Also I'm not sure what you mean by "saddle", so please correct me if you meant something else. Just be assured that no part of the app or any of the requirements are viruses :)
Genius!
Hello
i get in cmd spam ('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.',) this message when I turn on lane assist
Yup take a look here :
github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/issues/19
It is a known bug but I have so much schoolwork I can't get to fixing it now.
Rest assured though that it will get fixed... eventually :)
do i need controller? can i just play with keyboard and mouse but still have land assist
For now you will need some kind of controller. You don't have to use it... but a controller is necessary for the app to work.
@@Tumppi066 so i can just plug in a controller and just play with my keyboard
@@thisisquack Yes that should work, if you run into issues then contact me on discord and I will help.
Nice
For me it says "no module named scipy" when hitting refresh
Seems that the installer did not install all the requirements correctly.
You should open a command prompt in the app folder (shift+right click the folder -> open in powershell/cmd) and run
pip install requirements.txt
if that doesn't work then you can install any module manually by doing
pip install {list of modules}
for example
pip install scipy
If it still doesn't help you then contact me on discord here : Tumppi066#2874
@@Tumppi066 Thanks! This worked
Nice video
i have a error ("name 'lane_detector' is not defined",)
Hmm, I'm quite busy today so I will most likely get back to you more tomorrow at around the same time. For now, have you downloaded a lane detection model, if so then please re-select it in the settings and "load model".
@@Tumppi066 after that i get this Loaded model of size : 101
('Torch not compiled with CUDA enabled',) also when i enable the auto pilot the preview just freezes
I have reinstalled pip and it didn't fix the problem so now I don't know what to do 😕
@@motorz999 Contact me on discord then, I am currently at my father so I don't have access to my pc but I will try and help you anyways. Tumppi066#2874
the discord link dont work anymore can i get a new link?
Just fixed it!
Do you have to brake and accelerate or does it do that for you?
Recently I got some help and he implemented automatic (not adaptive) cruise control. It does change speed automatically to the road speed, but it does not take into account other cars or trucks.
My problem is something like this. When i go into the controls tab in control panel i cant change controler.
ValueError: None is not in list
Traceback:
File "C:\Users\karol\AppData\Roaming\Python\Python310\site-packages\streamlit
untime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "C:\Users\karol\OneDrive\Pulpit\Nowy folder\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 239, in
UpdateSettings("controlSettings", "defaultControllerIndex", data["controllers"].index(controller))
That error would mean that no controllers are connected, do you have one?
@@Tumppi066 I do have one it works fine with experimental but dont read on main branch.
@@kabum7477 That's incredibly weird then, well I'm glad it works on the experimental branch, is there any reason you want main to work, since experimental is better? If so can you contact me on discord and I will look into it.
I cant install a CUDA for some reason
I did reinstall and restart but....
What GPU do you have?
@@Tumppi066 2060
@@ろいど-u5l Hmm, it should be working, contact me on discord, I really dislike youtube comments :)
Tumppi066#2874
@@Tumppi066 I send it!
Im ちゃーはん
no, I'm チャーハン
What was the number for the ui refreshers?
0; although I recommend downloading the experimental version instead, it has a better UI in addition to sound FX etc... I have not had the time to perfect it yet though, so it's not on the main branch yet.
If you decide to try the experimental version out and have problems then please contact me on discord, I will gladly help :)
@@Tumppi066 ok thanks your help
will this work with a keyboard pls tell and also how to i set the enable and disable keys on a keyboard. thanks
It won't unfortunately, the in game controller setting has to be set to wheel, and this means when you try and turn it will throw the steering to the extremes.
I could technically support them, but it won't be fun for the user :)
Also if you haven't already then you can try this one, it is a bit more limited but from what I'm told it's working, also the developer is really nice, he contacted me for assistance one day :)
ruclips.net/video/_UHNavRGav4/видео.html
if you can, pls add keyboard support its maybe worth a try to get it working :) thank you so much too. its amazing what youve created
@@aviationmemes3868 I will try and get it in an update today (it won't be too difficult to do) but as I said be prepared :D
Also if you can I HIGHLY suggest getting a controller for ets2 it will make it so much more enjoyable even without the lane assist, you can find something like a xbox 360 controller or ps3 controller for extremely cheap (
@@Tumppi066 thanks so much!
it days there is not a requirements.txt
Contact me on Discord : Tumppi066#2874
Or make a github issue
RUclips comments are bad for trying to help, since you cannot paste images in them.
I am currently in school and will get out at 15,00 (you can see my local time on my github profile github.com/Tumppi066 )
ModuleNotFoundError: No module named 'torch' help
Seems I've been lacking on answering youtube comments, message me on discord @tumppi066 and we'll get this fixed!
I can't find the updater file
If you installed it before I added the updater then you will need to download the new installer.
As for the installer download that can be found in the projects github releases or with this link : github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/releases
It's the file called "DOWNLOAD_THIS.zip"
@@Tumppi066 I downloaded the archive and unpacked it. What's next?
@@Valery1964
Just watch the new install video :
open the installer.bat file
So I got the preview and all working.. but it runs at 6 fps... how do i change that.. :(
Are you running on CPU or GPU? I am using a Ryzen 9 7900 12 Core, and it runs at 6-7 FPS.
@@XORA-CODEYX I guess it only runs on cpu then. Im running AMD ryzen 7 5700X 8Core
Seems I've been lacking on answering youtube comments :)
There is a new version that runs better on CPU. The old one needed an NVIDIA GPU to run smoothly.
github.com/Tumppi066/Euro-Truck-Simulator-2-Lane-Assist/archive/refs/heads/anaconda-updater.zip
@@Tumppi066 Thanks for the reply.. I have an NVIDIA Gpu though.. RTX3080.. But still thank you for the help! I will try the new version soon! :D
@@david1311-c3f Nice! That's the same one I have, must have been something with my installer not installing torch / nvidia correct.
If you want to then I do need people to test the new 2.0. It's now at the point where it "works", but not quite as well as the old experimental version. If you are interested in testing then use the discord link in the pinned message :D
didn´t see the Steering Axis at the CMD and dont have the input device in the game :(
Did you get any errors when starting the app, the steering device is named Xbox 360 controller steam just messed up my naming.
Otherwise update ViGEmBus here : github.com/ViGEm/ViGEmBus/releases
If these do not work then contact me on discord Tumppi066#2874 :D
(alternatively github issues also work)
It doesnt want to turn on the preview
Seems I've been lacking on answering youtube comments, message me on discord @tumppi066 and we'll get this fixed!
I can't get the preview up even thought I follow the tutorial
Seems I've been lacking on answering youtube comments, message me on discord @tumppi066 and we'll get this fixed!
Does this only work with windows 11?
Yes this video was made on windows 11 :D
No sorry I understood the question wrong, it works with Linux, Mac, or any windows over 7.
@@Tumppi066 Ok, thank you
@@Tumppi066 Now I'm stuck at the part when you are supposed to run the start.bat file it opens for a millisecond then closes again
@@gustav3443
Run the app through a console, the app is crashing and closing, when you open it through a console it won't close and you can tell me the error.
You can do this by shift right clicking the folder the app is installed in and running
streamlit run AppUI.py
it wont show preview
Seems I've been lacking on answering youtube comments, message me on discord @tumppi066 and we'll get this fixed!
Translate into Russian, please
This is possible. When you launch the app it will automatically take your system language and start translating. If it doesn't work then you can manually change the language in the settings.
Hello, I keep on getting an error that I don´t know how to fix. Here´s the error code.
Exception in thread Thread-3 (MainFileThread):
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Program Files\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread
import MainFile
File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 39, in
from PIL import Image, ImageTkde
ImportError: cannot import name 'ImageTkde' from 'PIL' (C:\Users\alexe\AppData\Roaming\Python\Python311\site-packages\PIL\__init__.py)
Hmm, it seems that the file has a typo. Open mainfile.py and change it from ImageTkde to ImageTk (line 39)
@@Tumppi066 I´m still getting an Error. Now it´s:
Exception in thread Thread-3 (MainFileThread):
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Program Files\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread
import MainFile
File "C:\Users\alexe\Desktop\Neuer Ordner (4)\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 40, in
from torch import true_divide
ModuleNotFoundError: No module named 'torch'
@@alexejbilozir3804
It seems that it did not download all the requirements, to fix it you can run :
pip install -r requirements.txt
If it still says the same then run :
pip install torch (or any other package that is not found)
Also I highly recommend downloading the experimental version rn.
It has many extremely important updates that make the app easier to use.
If you still need help after this then please contact me on discord.
edit : formatting as I made this comment on my phone, it was not a good idea.