Closed yuanjianrui closed 1 year ago
Do the servers running on port 35300 and 35301 work correctly?
Do the servers running on port 35300 and 35301 work correctly?
It's not. It didn't work not only on 35300 and 35301, and also on many other ports when I changed the configure file .\sgame_simulator.conf.
You seem to misunderstand my point.
Before configuring the sgame_simulator.conf
and running the sgame_simulator_remote.exe
, you also need to start the servers working on the corresponding ports to process the game request from the simulator
.
Have you started the servers? And all the servers work correctly?
Every time the server receives a request, a reply message is required to send back to the simulator even if it is an empty message.
Please show how you start the servers and simulators to reproduce the problem.
Besides, the begin_ret:0
shows that the license.dat
worked.
I had the same problem .I run ".\sgame_simulator_remote_zmq.exe "2022" .\sgame_simulator.conf" in the powershell locally and get "recv failed2: -1". How to solve this problem
I am having the same problem here and I would suggest an updated README.md, which would be a great help. Further to @hongyangqin 's reply, I wonder where do I start the mentioned
simulator
?
I had the same problem .I run ".\sgame_simulator_remote_zmq.exe "2022" .\sgame_simulator.conf" in the powershell locally and get "recv failed2: -1",and I have copyed licence.dat to hok_env_gamecore/gamecore/core_assets, Then I add the folder " hok_env_gamecore/gamecore/core_assets" to the system environment variable "PATH" .the begin_ret:0 shows that the license.dat worked.I would like to ask for your help in solving this problem,You can also suggest some suggestions that might work。Thank you for your help on hok-env. My input command line is shown below
PlayerNum:2 AbsPath:./1V1.abs PlayerInfo [CampID:0][HeroID:146][Skill:80121][AutoAi:0][AiServer:127.0.0.1:35300:1000] [Symbol 0 0 0] [Request:-1] PlayerInfo [CampID:1][HeroID:146][Skill:80121][AutoAi:0][AiServer:127.0.0.1:35301:1000] [Symbol 0 0 0] [Request:-1] SGame Simulator Begin init_ret:0 seed: 3417 Symbols: inHeroId: 146 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 inHeroId: 146 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 start_ret:0 Hero[0] inHeroId:146; outPlayerId:148 Hero[1] inHeroId:146; outPlayerId:149 frame no:0 begin_ret:0 [Hero Info] [HeroID:146] [RuntimeID:8] client_id:0.0.0.0_1859_0_20221003174931_148 [Hero Info] [HeroID:146] [RuntimeID:9] client_id:0.0.0.0_1859_0_20221003174931_149 zmq socket init success addr: tcp://127.0.0.1:35300 zmq socket connect success recv failed2: -1 (My system version:WIN11 Pro version 21H2)
I am having the same problem here and I would suggest an updated README.md, which would be a great help. Further to @hongyangqin 's reply, I wonder where do I start the mentioned
simulator
?
I have the same problem..... Sorry for not knowing what's the mentioned simulator
. @hongyangqin
We commit a fix this week, please retry.
We commit a fix this week, please retry.
The recent updates seemingly only involve updates in README.md
. Retrying according to new instructions does not help. It still yields outputs including recv failed2: -1
as this issue's original poster reports.
Recalling previous replies in this thread, @hongyangqin mentioned something called simulator
. My appreciation if maintainers could elaborate more over this matter. Like, Is simulator
openly available? It is no where to be found in this repo at the moment.
We commit a fix this week, please retry.
yeah same issue here. Tried with the latest gamecore downloaded from https://aiarena.tencent.com/aiarena/en/open-gamecore. But still getting recv failed2: -1
Mark+1. I find that when I choose the "sgame_simulator_common.conf", it can work successfully.
@liyuxuan-academic @TownYan
Please download the gamecore first and you can find the simulator at gamecore\bin
@hongyangqin
We commit a fix this week, please retry. Sorry, I still met this issue: _Read Conf file Error: .\sgamesimulator.common.conf Error,Parse Simulator Conf -2 BTW, please @hongyangqin update the README (there no folder named ai_simulator_remote, maybe named gamecore ???) Thank you so much.
@Amberjay18 Yes, It is the gamecore
. We provide the gamecore-server
after this commit.
@Amberjay18 Yes, It is the
gamecore
. We provide thegamecore-server
after this commit.
hi, @hongyangqin I have resolved this problem!!!thank you so much. BTW, how am I resolved it as below.
Maybe this solution not suit for everyone, but you can try.
@L3Y1Q2 Maybe you can try this on linux: https://github.com/tencent-ailab/hok_env/blob/master/docs/run_windows_gamecore_on_linux.md
I have copyed licence.dat to hok_env_gamecore/gamecore/core_assets, thanks for your kindly help on that. Then I add the folder " hok_env_gamecore/gamecore/core_assets" to the system environment variable "PATH" as some dll files needed by sgame_simulator_remote_zmq.exe are stored in the folder core_assets.
There is no directory named _ai_simulatorremote in hok_env_gamecore folder. I do nothing here.
Then I start the gamecore by first "cd hok_env_gamecore/gamecore", and then ".\sgame_simulator_remote_zmq.exe "2022" .\sgame_simulator.conf"
I get the following output on my screen:
The zmq socket for the second hero failed to start. Then I changed the port 35301 written in .\sgame_simulator.conf to some other ports (in order to avoiding port confliction), the gamecore still print the same error messages.
Do you know what is wrong here, and how can we fix the above issue?