neuralmmo / client Goto Github PK
View Code? Open in Web Editor NEW3D Client for https://github.com/neuralmmo/environment
Home Page: https://neuralmmo.github.io/client/
License: MIT License
3D Client for https://github.com/neuralmmo/environment
Home Page: https://neuralmmo.github.io/client/
License: MIT License
Maybe I set up the environments wrongly. But when I browse http://localhost:8080/forge/embyr/ I always run into a gray page with a big title and a brief help with controls, like this:
I have followed the instructions in https://github.com/openai/neural-mmo, and
python Forge.py --render
appears to be running smoothly:
Uptime: 388.8 , Tick: 648 Uptime: 389.4 , Tick: 649 Uptime: 390.0 , Tick: 650 Uptime: 390.6 , Tick: 651
I'm on macOS Mojave, with python 3.5 and the following packages:
Package Version
----------------- -----------
astroid 2.1.0
atomicwrites 1.3.0
attrs 19.1.0
autobahn 19.2.1
Automat 0.7.0
Click 7.0
colorama 0.4.1
constantly 15.1.0
cycler 0.10.0
Django 2.1.7
filelock 3.0.10
flatbuffers 1.10
funcsigs 1.0.2
hyperlink 18.0.0
idna 2.8
image 1.5.27
incremental 17.5.0
isort 4.3.4
kiwisolver 1.0.1
lazy-object-proxy 1.3.1
matplotlib 3.0.3
mccabe 0.6.1
more-itertools 6.0.0
numpy 1.16.2
opensimplex 0.2
pathlib2 2.3.3
Pillow 5.4.1
pip 18.1
pluggy 0.9.0
psutil 5.5.1
py 1.8.0
pygame 1.9.4
PyHamcrest 1.9.0
pylint 2.2.2
pyparsing 2.3.1
pytest 4.3.0
python-dateutil 2.8.0
PyTMX 3.21.7
pytz 2018.9
PyYAML 3.13
ray 0.6.3
redis 3.2.0
scipy 1.2.1
setproctitle 1.1.10
setuptools 28.8.0
six 1.12.0
torch 1.0.1.post2
torchvision 0.2.2.post3
Twisted 18.9.0
txaio 18.8.1
typed-ast 1.2.0
virtualenv 16.2.0
wheel 0.32.3
wrapt 1.11.1
zope.interface 4.6.0
I have so many questions. in the official website https://github.com/openai/neural-mmo
I can not correctly render the program. And I used this version, but still problems.
I fix some run
python3 Forge.py --render
and then run
./client.sh
and I can not establish the connection always!!for your version , this problem is :
**2020-02-17 16:26:06+0800 [-] Uptime: 17.4 , Tick: 29
2020-02-17 16:26:06+0800 [-] Uptime: 18.0 , Tick: 30
2020-02-17 16:26:06+0800 [-] Created a server
2020-02-17 16:26:06+0800 [-] WebSocket connection request: {"extensions": [], "protocols": [], "version": 13, "path": "/ws", "host": "localhost", "headers": {"user-agent": "websocket-sharp/1.0", "sec-websocket-key": "uR6Ibp92jIOZrK87bgtu1A==", "sec-websocket-version": "13", "connection": "Upgrade", "host": "localhost:8080", "upgrade": "websocket"}, "origin": "", "params": {}, "peer": "tcp4:127.0.0.1:43820"}
2020-02-17 16:26:06+0800 [-] Unexpected exception in onConnect ['Attempt to send on a closed protocol']
2020-02-17 16:26:06+0800 [-] Traceback (most recent call last):
File "/home/dm/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 1206, in _dataReceived
self.consumeData()
File "/home/dm/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 1235, in consumeData
self.processHandshake()
File "/home/dm/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 2821, in processHandshake
f = txaio.as_future(self.onConnect, request)
File "/home/dm/.local/lib/python3.5/site-packages/txaio/tx.py", line 430, in as_future
return maybeDeferred(fun, *args, **kwargs)
--- ---
File "/home/dm/.local/lib/python3.5/site-packages/twisted/internet/defer.py", line 151, in maybeDeferred
result = f(*args, **kw)
File "/home/dm/openai/Neural_MMO/projekt/neural-mmo/forge/embyr/twistedserver.py", line 71, in onConnect
self.sendUpdate()
File "/home/dm/openai/Neural_MMO/projekt/neural-mmo/forge/embyr/twistedserver.py", line 100, in sendUpdate
self.sendMessage(packet, False)
File "/home/dm/.local/lib/python3.5/site-packages/autobahn/websocket/protocol.py", line 2190, in sendMessage
raise Disconnected("Attempt to send on a closed protocol")
autobahn.exception.Disconnected: Attempt to send on a closed protocol
2020-02-17 16:26:06+0800 [-] failing WebSocket opening handshake ('Internal server error: Attempt to send on a closed protocol')
2020-02-17 16:26:06+0800 [-] dropping connection to peer tcp4:127.0.0.1:43820 with abort=False: Internal server error: Attempt to send on a closed protocol**
And the official version still have problems when connection to websocket. And when using the webclient not unityclient, this problem still exists. I doubt why no one ask this question.
My system is ubuntu 16.04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.