Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeamNG.research Connection problem #28

Closed
autonomobil opened this issue Aug 17, 2019 · 8 comments
Closed

BeamNG.research Connection problem #28

autonomobil opened this issue Aug 17, 2019 · 8 comments

Comments

@autonomobil
Copy link

I just downloaded (via SVN) the BeamNG.research repository.
https://projects.beamng.com/projects/research/files is empty. In a conda enviroment I installed BeamNGpy via pip install beamngpy.

When I try the example code with west_coast_usa, BeamNG starts but after a short time it threws the following error:

055.319|D|GELua.scenario_scenarios.scenarios|should run: false; state: running 055.322|E|GELua.core_levels.levels|info.json missing: /levels/garage/info.json 055.325|E|GELua.core_levels.levels|No entry point for level found: /levels/garage. Ignoring level. 055.442|E|GELua.ResearchCom|Error reading from socket: closed 055.472|E|GELua.core_levels.levels|info.json missing: /levels/garage/info.json 055.473|E|GELua.core_levels.levels|No entry point for level found: /levels/garage. Ignoring level. 055.613|E|libbeamng.lua.V.ResearchCom|Error reading from socket: closed 057.143|I|libbeamng.lua.V.ResearchVE|Trying to connect to: localhost:64257 059.355|I|libbeamng.lua.V.ResearchVE|Could not connect... 060.001|I|GELua.util_researchGE.ResearchGE|Trying to connect to: localhost:64256 062.317|I|GELua.util_researchGE.ResearchGE|Could not connect... 063.386|I|libbeamng.lua.V.ResearchVE|Trying to connect to: localhost:64257 065.533|I|libbeamng.lua.V.ResearchVE|Could not connect... 065.735|I|GELua.util_researchGE.ResearchGE|Trying to connect to: localhost:64256 067.760|I|GELua.util_researchGE.ResearchGE|Could not connect... 074.911|I|GELua.util_researchGE.ResearchGE|Trying to connect to: localhost:64256

What could be the problem?

@alessiogambi
Copy link
Contributor

alessiogambi commented Aug 19, 2019

Hi,

for future reference "https://projects.beamng.com/projects/research/files is empty" has always been the case. The correct files are under: https://projects.beamng.com/projects/research/repository/show/trunk
If BeamNG.research starts, then you have the files that you need.

Regarding "055.442|E|GELua.ResearchCom|Error reading from socket: closed", it's a wild guess but did you check if you have firewall rules which prevent opening sockets from python?

@autonomobil
Copy link
Author

Hey, thanks for the answer

At the bottom of the beamng research homepage under DOWNLOAD it has a link to https://projects.beamng.com/projects/research/files ...so that should maybe be changed

I will check my firewall

@oooooverflow
Copy link

Excuse me. I encountered the same problem, may i ask whether you have solved it?

@oooooverflow
Copy link

oooooverflow commented Oct 22, 2019 via email

@FitashUlHaq
Copy link

I tried
1- turning off firewalls
2- running it as administrator
3- freeing all ports
None of above worked

@FitashUlHaq
Copy link

Hi @oooooverflow and @autonomobil, I solved the problem using the windows powershell. it does not work if you run it from cmd.

If you write the commands on powershell it works perfectly fine!

@vladimirwest
Copy link

The game is running perfectly when python script is executing.
So simplest solution that worked for me is add time.sleep(99999) to the end of the main python script.

@manojhuilgol
Copy link

@vladimirwest Can you please describe where exactly did you add time.sleep() ?
I tried adding it inside def main() function, but still it is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants