question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with steam BeamNG.drive

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pascale-commitscommented, Jul 16, 2021

Can I close this issue?

1reaction
pascale-commitscommented, Jul 8, 2021

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 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

System Requirements - BeamNG Documentation
Recommended Requirements ; OS: Windows 10 64-Bit ; CPU: AMD Ryzen 7 1700 3.0Ghz / Intel Core i7-6700 3.4Ghz (or better) ; RAM:...
Read more >
running in x86 compatibility mode right now. :: BeamNG.drive ...
Steam just launches the game in compatibility mode ( or the 86x exe ). When i'm launching BeamNG through 64 bit exe it...
Read more >
Game Details for BeamNG.drive - ProtonDB
Having any AI vehicles causes FPS to drop to less than 10. Listing this as "playable" and "enjoyable" is putting it incredibly nicely....
Read more >
BeamNG on the Steam Deck is going to be interesting. - Reddit
Even if BeamNG is officially supporting Windows 10 only, it works fine with Proton. I never had issues with BeamNG and my Linux...
Read more >
BeamNG.drive - PCGamingWiki PCGW
Can be played without Steam running. Windows. Game data • Link. Configuration file ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found