GithubHelp home page GithubHelp logo

ets2la / euro-truck-simulator-2-lane-assist Goto Github PK

View Code? Open in Web Editor NEW
162.0 7.0 17.0 479.3 MB

Plugin based interface program for ETS2/ATS.

Home Page: http://wiki.ets2la.com/

License: MIT License

Python 92.15% HTML 0.06% CSS 0.02% JavaScript 0.30% Tcl 4.22% GDScript 0.33% Batchfile 0.04% Mako 2.88%
american-truck-simulator euro-truck-simulator-2 ats ets2 self-driving

euro-truck-simulator-2-lane-assist's Introduction

ETS2LA

Lane assist and plugin based interface program for SCS truck simulators.

SourceForge Downloads

GitHub Downloads

GitHub commits

GitHub stars

Discord

SourceForge Rising Star

SourceForge Users Love Us

Links

Discord: https://discord.gg/ets2la

Youtube: https://www.youtube.com/@tumppi066

Wiki: https://wiki.ets2la.com/

Documentation (VERY WIP & AUTOGENERATED): https://docs.tumppi066.fi

Help needed

This app has matured enough that we will need a name change soon... you can submit any ideas to me on discord 👍 You can see the candidates so far on my kanboard page.

About

What is this app?

  1. It's a lane assist software for ETS2 and ATS. I am also working on making it fully (well almost) autonomous.
  2. Along the way I developed it to a complete plugin based application for sending information to and from ETS2 and ATS.
    • This means that you can create your own plugins for the app, even if they are not related to driving.

What does it look like in action?

Check the demonstration video.

How do I install it?

You can watch the latest installation video. Downloading and installing takes about 20 minutes. And then another 10 to tune in your own values. Alternatively you can also follow the written instructions on the wiki. Keep in mind that both the video and the wiki might not be up to date!

How to update?

You can run the menu.bat script and click "Update" or go into app/ and run git pull. The app will also automatically give a prompt when an update is available.

How to contribute?

You can contribute by creating plugins for the app, in addition to editing already existing ones. Those not familiar with github should do as follows:

  1. Fork the repository
  2. Make your changes in your fork
  3. Make a pull request to merge the changes to the public version.

The plugin infrastructure has documentation on the wiki.

I have issues / suggestions.

Please join the discord or make an issue here. Keep in mind that I am more active on the discord, and the issue you face might already have an answer there.

I want to support you.

I want to use your app in my own app.

The license does indeed allow you to do that. As long as you keep all the copyright notices in place. Despite this I would appreciate if you did at least tell me about it. I'm eager to help anyone wanting to use my code and I will share my knowledge.

In addition it would be beneficial if you made a plugin instead of just copying the code. This way you can update the plugin without having to update the whole app. To add to this I will try and implement all the additional backend features you want (for example more UI shortcuts etc...).

euro-truck-simulator-2-lane-assist's People

Contributors

cloud-121 avatar dtheicydragon avatar dyldevs avatar glas42 avatar jaheay avatar romansonnik avatar tumppi066 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

euro-truck-simulator-2-lane-assist's Issues

Software crashes upon pressing "settings"

I followed the installation video, step by step and got the software installed. Upon launch, I press settings where the whole software crashes. I get the message "NameError: name 'wheel' is not defined.
Screenshot_1

ModuleNotFoundError: No module named 'vdf'

Hi, is it just me or for some reason ETS2 Lane Assist doesn't work when I launch it
I tried doing pip install vdf but nothing worked.

OS: Windows 11 22H2 Build 22621.2715
ETS2 Version: 1.49
Lane Assist Version: 1.6.0 7983911

If anyone knows how to fix this and get it working, it would be greatly appreciated. 😄

image

ModuleNotFoundError: No module named 'scipy'

Once I have installed ETS2 Lane assist using this video: https://youtu.be/Ssw2JlbthHw
I ran start.bat, and it opened cmd and gave me this:

You can now view your Streamlit app in your browser.

Local URL: (Hidden for privacy reasons)
Network URL: (Hidden for privacy reasons)

pygame 2.3.0 (SDL 2.24.2, Python 3.10.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Exception in thread Thread-3 (MainFileThread):
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Program Files\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\Dylan\Documents\ETS Lane Assist\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread
import MainFile
File "C:\Users\Dylan\Documents\ETS Lane Assist\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 49, in
import ets2LaneDetection as LaneDetection
File "C:\Users\Dylan\Documents\ETS Lane Assist\Euro-Truck-Simulator-2-Lane-Assist-main\ets2LaneDetection.py", line 17, in
from ultrafastLaneDetector import UltrafastLaneDetector, ModelType
File "C:\Users\Dylan\Documents\ETS Lane Assist\Euro-Truck-Simulator-2-Lane-Assist-main\ultrafastLaneDetector_init
.py", line 1, in
from ultrafastLaneDetector.ultrafastLaneDetector import UltrafastLaneDetector, ModelType
File "C:\Users\Dylan\Documents\ETS Lane Assist\Euro-Truck-Simulator-2-Lane-Assist-main\ultrafastLaneDetector\ultrafastLaneDetector.py", line 3, in
import scipy.special
ModuleNotFoundError: No module named 'scipy'

Any help to fix this issue would be appreciated, Thank you.

Python error on 1.10 installer.exe

I installed Python 3.11.8 manually on another drive because my C drive is too full. Then I ran the 1.10 installer.exe and it finds this Python from my system but it still tries to run the Python installer that complains that I don't have the correct version (probably because it can't find it on my C drive).

Installer cannot find file specified.

.\installer.exe
Checking for winget...
Opening winget install page...
Traceback (most recent call last):
File "installer.py", line 146, in
File "installer.py", line 48, in InstallWinget
File "subprocess.py", line 505, in run
File "subprocess.py", line 951, in init
File "subprocess.py", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
[38212] Failed to execute script 'installer' due to unhandled exception!

Missing The 'linux/input.h' - Windows

I'm trying to run the newest v2.0-rewrite on Windows and apparently evdev requires linux/input.h

      The 'linux/input.h' and 'linux/input-event-codes.h' include files
      are missing. You will have to install the kernel header files in
      order to continue:

I cant Open because of python even if i have the correct version

C:\ETS2lane>python installer.py
C:\ETS2lane\installer.py:480: SyntaxWarning: invalid escape sequence '.'
os.system("rmdir /s /q app.git")
This app requires a Python version above 3.9.x and below 3.12.x to create the correct virtual environment.
Please install another version and run the installer again.

[Bug]: This is a buig

Description

I hate bugs

App Version

1.2.3

Python Version

Python 1.2.3

Confirmation

  • I accept

ctypes.COMError

Please how could i solve this problem?

DirectX 版本: DirectX 12

pygame 2.1.2 (SDL 2.0.18, Python 3.8.15)
Hello from the pygame community. https://www.pygame.org/contribute.html
Successfully loaded all settings
Exception in thread Thread-3:
Traceback (most recent call last):
File "D:\Files\miniconda\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "D:\Files\miniconda\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "C:\Users\LeonH\Documents\Euro Truck Simulator 2\Euro-Truck-Simulator-2-Lane-Assist-main\AppUI.py", line 27, in MainFileThread
import MainFile
File "C:\Users\LeonH\Documents\Euro Truck Simulator 2\Euro-Truck-Simulator-2-Lane-Assist-main\MainFile.py", line 49, in
import ets2LaneDetection as LaneDetection
File "C:\Users\LeonH\Documents\Euro Truck Simulator 2\Euro-Truck-Simulator-2-Lane-Assist-main\ets2LaneDetection.py", line 123, in
camera = dxcam.create(region=monitor, output_color="BGR")
File "D:\Files\miniconda\lib\site-packages\dxcam_init
.py", line 112, in create
return _factory.create(
File "D:\Files\miniconda\lib\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "D:\Files\miniconda\lib\site-packages\dxcam\dxcam.py", line 33, in init
self._duplicator: Duplicator = Duplicator(
File "", line 6, in init
File "D:\Files\miniconda\lib\site-packages\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: <function DXCamera.del at 0x0000020CD5E329D0>
Traceback (most recent call last):
File "D:\Files\miniconda\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "D:\Files\miniconda\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "D:\Files\miniconda\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

Powershell script says winget is unavailable, even if installed

Windows 10
winget version v1.7.10582

{
"type": "Debug",
"logs": "No log file found",
"settings": "No settings file found.",
"additional": "OS: Windows \nOS Version: 10.0.19045 \n\nApp version: App version not found. \nPython Version: 3.11.7 \nGit Version: git version 2.43.0.windows.1\n \nDlls installed: \nInput_semantical: False \nScs-telemetry: False \n\nCPU: Name \n\n11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz \n\n\n\nGPU: Caption \n\nNVIDIA GeForce RTX 3060 Ti \n\n\n\n"
}

Installer never works. The first winget command will always mention (though exists very fast so I had to record just to get the error) this.

You do not have winget available on your system, This is most likely because your on a windows version older then 2004. Please update your windows install and try again.

Also, the winget from Microsoft Store gives the same error.

PC Specs

I made This Post a while back. It was closed with PC Specs not being high enough to run this program.

I have been thinking about building a PC with these specs:

> Intel Core i5 6500
> NVIDIA GTX 970
> 16GB RAM

Would this be enough to run this?

[Bug]: Regarding the Issue of Spiral Overlapping Routes

Description

In the navigation map, there are spiral overlapping routes, and the directions can lead to errors. How should this be resolved? For instance, in the image below, when driving to the intersection, vehicles will turn left or right instead of continuing straight ahead.
image

App Version

0

Python Version

3.12

Confirmation

  • I accept

session_start(): Failed to decode session object

The sessions are working properly, readable and writeable.

When I first hit index.php - it creates session file under /tmp with this content:
PMA_token | HMAC_secret |errors|

When I hit login, it deletes the session file and throws this error:

phpMyAdmin - Error
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
session_start(): Failed to decode session object. Session has been destroyed

phpMyAdmin 5.2.1
php83-8.3.0.a2
mysql80-server-8.0.32_3

No other errors are posted.

steering not working

when the lane assist isnt started the capture is clean and running good but when im starting it it only is at 3 fps i have a i7 8700k and a gtx 1080!

"Use GPU" not functioning properly

Hi there,
I believe that "Use GPU" isn't working properly,
I'm running Python 3.8.5 & OpenCV compiled with CUDA enabled as well as the Drivers and Toolkits needed.

Clicking "Use GPU" does not save the checkmark (is that intended?), and the FPS remains the same, so I believe that it has no effect.

Any tips to get it running with the GPU? It's unusable with 1.6 FPS so I'd love to get this working at a higher frame rate, thank you!

PS: My GPU is a RTX 2060 so it should fit the specs.

Language settings other than English result in program loading time being too long and unresponsive(Ustawienia języka inne niż angielski powodują, że czas ładowania programu jest zbyt długi i nie reaguje)

Non English language settings are slow to load and can easily cause processes to freeze and become unresponsive. It is recommended to add language packs to the program instead of calling Google Translate's API for on-site translation

Muiden kuin englanninkielisten asetusten lataaminen on hidasta, ja prosessit voivat helposti jäädyttää ja lopettaa vastaamisen. On suositeltavaa lisätä kielipaketteja ohjelmaan sen sijaan, että soittaisit Google Translaten API:lle paikan päällä tapahtuvaa kääntämistä varten.

Error during start

I'm getting this error

image

When I click OK, then I'm getting this:

RuntimeError: D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:124 onnxruntime::CudaCall D:\a\_work\1\s\onnxruntime\core\providers\cuda\cuda_call.cc:117 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=48 ; hostname=ALEX-PC ; expr=cudaSetDevice(info_.device_id);

I don't have NVIDIA and want to use CPU only.

Logitech SDK support

Hey there, a long time ago I was working on a similar project to this myself. However, I was seriously struggling with any progress with the Logitech SDK. Would you please be able to give me any insight as to how you were able to get it to work with Python?
P.S. Yes, I am aware that it doesn't work in this project due to issues with program handles.

New installer breaks with usernames that contain spaces

Output from menu.bat

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>winget --version   1>nul 2>&1  || (color 4   & echo WARNING, You do not have winget avialble on your system, This is most likely because your on a windows version older then 2004. Please update your windows install and try again.
 pause
 exit 0 )

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>git --version   1>nul 2>&1  || (color 6   & echo Installing git, Please read and accept the windows smart screen prompt
 winget install Git.Git
 echo git is now installed )

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>python --version   1>nul 2>&1  || (color 6   & echo Installing python, Please read and accept the windows smart screen prompt
 winget install -e --id Python.Python.3.11
 echo Python is now installed )

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>python --version   1>nul 2>&1  || (color 2   & echo Successfully install all requirements please re run installer.bat
 pause
 exit 0 )

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>python C:\Users\My Name\AppData\Local\Temp\ScriptOutput\installer.py
python: can't open file 'C:\\Users\\My': [Errno 2] No such file or directory

C:\Users\My Name\AppData\Local\Temp\ScriptOutput>pause
Press any key to continue . . .

Temporary work around, change the tempdir line in installer.ps1 to: $tempDir = New-Item -ItemType Directory -Path "\ScriptOutput" -Force (for any user reading this, ScriptOutput will be in C:\ScriptOutput if you would like to clean it up later)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.