ETS2Autopilot icon indicating copy to clipboard operation
ETS2Autopilot copied to clipboard

TypeError: an integer is required (got type NoneType)

Open Bluscream opened this issue 6 years ago • 12 comments

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...

Bluscream avatar Nov 24 '17 02:11 Bluscream

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

BrunoTh avatar Nov 24 '17 07:11 BrunoTh

which file is the settings?

Bluscream avatar Nov 24 '17 13:11 Bluscream

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.

BrunoTh avatar Nov 24 '17 13:11 BrunoTh

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

Bluscream avatar Nov 24 '17 13:11 Bluscream

Have you solved it at last?@BrunoTh

xmy0916 avatar Jul 11 '20 06:07 xmy0916

Nope, i never got a response

Bluscream avatar Jul 11 '20 14:07 Bluscream

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

xmy0916 avatar Jul 12 '20 02:07 xmy0916

same

Bluscream avatar Jul 12 '20 14:07 Bluscream

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

xmy0916 avatar Aug 26 '20 10:08 xmy0916

Is there a non-chinese version available?

Bluscream avatar Aug 26 '20 11:08 Bluscream

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

xmy0916 avatar Sep 06 '20 16:09 xmy0916

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

I found it, File > Settings

davidjaksa avatar Mar 17 '21 16:03 davidjaksa