Open nathanyi96 opened 2 months ago
Since I've never done any development on Windows OS, I spent a lot of time on the Env setup on Windows powershell/cmd, wsl setup problems, such as how to run gamecore on windows, how can WSL communicate with the gamecore server running on Windows port 23432.....
It would be very helpful if you guys can post a tutorial video about how to setup the env and show developer how to successfully run the test_env.py
Hello ,I have the same problem with you.How to solve it?Do you have any idea?
Hello ,I have the same problem with you.How to solve it?Do you have any idea?
Not yet... 😭
I have the same problem,too. I think the cause is that gamecore fails to send response to WSL2 test bench.Have you already solved this problem?
I have the same problem,too. I think the cause is that gamecore fails to send response to WSL2 test bench.Have you already solved this problem?
Oh I figure it out.The code in test_env.py
:
for i in range(AGENT_NUM):
addrs.append("tcp://0.0.0.0:{}".format(35150 + i))
But docs give:
docker run -it -p 35300-35400:35300-35400 tencentailab/hok_env:cpu_v2.0.1 bash
It is obvious that agent port range is out of mapping range.I change the command to it:
docker run -it -p 35000-35400:35000-35400 --rm tencentailab/hok_env
And it works.
Here I give all the sequence of the processes:
gamecore-server.exe server --server-address :23432
docker run -it -p 35000-35400:35000-35400 --rm tencentailab/hok_env
cd hok_env/hok/hok1v1/unit_test
export GAMECORE_SERVER_ADDR="host.docker.internal:23432"
python test_env.py
Then I get what README.md shows. Anyone who comes across this problem can try my method.
I launched the GameCore from win11 cmd:
Then I did
But I keep getting this error:
This is my server config in my WSL2
~/.bashrc
: