Compatibility with steam BeamNG.drive
See original GitHub issueHi,
I have the Steam version of BeamNG.drive (currently 0.23.1.0) and am wondering if I am able to use BeamNGpy with just this?
I see the readme mentions that the Steam version should be compatible, however I’m not able to follow the setup instructions.
If I try and do the workspace set up, I hit an issue with it not finding a license file (?):
(beamng-env) >beamngpy setup-workspace C:\beamng_workspace_0.23
Could not set up workspace at <C:\beamng_workspace_0.23>.Note that this step is only neccessary for BeamNG.tech version 0.22 and above.
And if I continue with the example python code I get a connection error after calling BeamNGpy.open()
. The game does launch, but it doesn’t connect to the server.
from beamngpy import BeamNGpy, Scenario, Vehicle
# Instantiate BeamNGpy instance running the simulator from the given path,
# communicating over localhost:64256
bng = BeamNGpy('localhost', 64256, home="S:/SteamLibrary/steamapps/common/BeamNG.drive", user="C:/beamng_workspace_0.23")
# Launch BeamNG.tech
bng.open()
No workspace set up at userpath: <C:\beamng_workspace_0.23>
Setup is required prior to mod deployment.
ERROR:root:Error connecting to BeamNG.tech. 25 tries left.
ERROR:root:[WinError 10061] No connection could be made because the target machine actively refused it
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\beamng-env\lib\site-packages\beamngpy\beamng.py", line 512, in connect
self.skt.connect((self.host, self.port))
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
... [repeats for 25 tries]
Looking at the code, BeamNGpy.read_effective_userpath(userpath)
always returns None as it can’t find researchHelper.txt
, presumably because the workspace isn’t set up.
Am I missing something in the setup or is more required than just the Steam version to use BeamNGpy?
Thank you.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top GitHub Comments
Can I close this issue?
yes, the researchhelper.txt is supposed to contain this string “c:\beamng_workspace_0.23\0.23\” and is supposed to be placed into the <c:\beamng_workspace_0.23> Path 😄