BrunoTh / ETS2Autopilot

Autopilot for Euro Truck Simulator 2 using TensorFlow (OBSOLETE)
https://www.ets2autopilot.com/
MIT License
89 stars 15 forks source link

TypeError: an integer is required (got type NoneType) #7

Open Bluscream opened 6 years ago

Bluscream commented 6 years ago
C:\Users\blusc\Downloads\ETS2Autopilot-master>python\python.exe start_gui.py
Loading...
Done!
Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 914, in _bootstrap_inner
  File "C:\Users\blusc\Downloads\ETS2Autopilot-master\thread_controller.py", line 30, in run
    joystick = pygame.joystick.Joystick(self.controller)
TypeError: an integer is required (got type NoneType)

Traceback (most recent call last):
  File "C:\Users\blusc\Downloads\ETS2Autopilot-master\UI\main.py", line 163, in enter_mode
    self.thread_autopilot = AutopilotThread(self.ui.statusbar, self.thread_controller, self.ui.steering_wheel, self.ui.image_front)
  File "C:\Users\blusc\Downloads\ETS2Autopilot-master\thread_autopilot.py", line 38, in __init__
    self.joystick = pygame.joystick.Joystick(Settings().get_value(Settings.CONTROLLER))
TypeError: an integer is required (got type NoneType)

Press Enter or Esc to close console...

BrunoTh commented 6 years ago

You have to open the settings and set everything up first. The first error message can be ignored.

Bluscream commented 6 years ago

which file is the settings?

BrunoTh commented 6 years ago

You don't have to edit files. The settings are done in the GUI. You can open the settings windows in the menu File > Settings.

Bluscream commented 6 years ago

And how am i supposed to know what to enter there? It doesnt even have tooltips >.<

xmy0916 commented 4 years ago

Have you solved it at last?@BrunoTh

Bluscream commented 4 years ago

Nope, i never got a response

xmy0916 commented 4 years ago

I tried this project, but I didn't run it successfully. If there was a picture and text tutorial, it would be great @Bluscream

Bluscream commented 4 years ago

same

xmy0916 commented 4 years ago

@Bluscream I use paddlepaddle deep learning framework to achieve driverless driving in this game. It may help you~ https://github.com/xmy0916/EuroTruckSelfDriver

Bluscream commented 4 years ago

Is there a non-chinese version available?

xmy0916 commented 4 years ago

When I have finished the whole project, I will write a detailed English description. @Bluscream

davidjaksa commented 3 years ago

And how am i supposed to know what to enter there? It doesnt even have tooltips >.<

I found it, File > Settings