# Beta 1

Published 2024-03-03

# Introduction to V2.0

This is a complete rewrite of the entire app framework. Basically anything and everything has changed. This is a list of the main changes so far.

  • Each plugin is now running in it's own process.
  • The frontend is now a website running NextJS and react.
  • Some stuff that was previously a "plugin" is now a "module".
    • For example the screencapture is now a module. This means it will run as the plugin needs, lowering the time from capture to the plugin getting the image.

# Step 1: Download the requirements.

You can download Node.js from here. Node is used to run the frontend and install NextJS later on.

You can download Git from here. Git is used to clone and update the app.

You can download Python from here. Python is the main backend language.

# Step 2: Clone the repository.

This can for example be C:\LaneAssist

  • On windows you can just shift + right click and select Open in Terminal.
  • Another way is to type "cmd" in the address bar and press enter.
  • Third way that works on all systems is to open the terminal and type cd and the path of the folder, ex. cd C:\LaneAssist.
git clone https://github.com/ETS2LA/Euro-Truck-Simulator-2-Lane-Assist.git .
git checkout rewrite

# Step 3: Install the dependencies.

Assuming you have Node installed and you have a console open in the root folder, run the following commands.

cd frontend
npm install

Assuming you have Python installed and you have a console open in the root folder, run the following commands.

pip install -r requirements.txt

# Step 4: Start the app.

Assuming you are in the root folder run the following command.

python main.py

This will start the backend and fronted and pop out a new window.

  1. Create a new file in the root folder and name it start.bat.
  2. Open the file with a text editor and paste the following code.
@echo off
python main.py
  1. Save the file and double click it to start the app.

# Step 5: Additional tips.

Just click the update available button on the top right of the UI once it lights up.

  1. Make sure your phone is connected to the same network as your PC.
  2. Get your PC's local IP address. This can be found in the console log, for example:
    [17:46:01] [INF] webserver.py Webserver started on http://192.168.1.135:37520 (& localhost:37520)
    -> 192.168.1.135 is the IP address.
  3. Navigate your phone browser to http://<your-ip>:3000 (ex. http://192.168.1.135:3000).
  4. Type the IP once more into the input field and press connect.