dotaservice icon indicating copy to clipboard operation
dotaservice copied to clipboard

Time sync of radiant/dire teams upon reset not stable.

Open TimZaman opened this issue 7 years ago • 10 comments

Ex (0.3.2):

ValueError: dota_time discrepancy in depleting initial worldstate queue.
at reset (/root/dotaservice/dotaservice/dotaservice.py:439)
at request_handler (/root/.local/lib/python3.7/site-packages/grpclib/server.py:327)

TimZaman avatar Jan 06 '19 21:01 TimZaman

I also keep getting this error when launch the game. but, when I disable this part of code and use the GUI host mode, I stuck at the map loading screen and can not enter the game. Does this discrepancy in the two teams observation queue has any bad consequence, like this stuck problem?

sijiaxu avatar Jan 07 '19 09:01 sijiaxu

Yeah that's exactly the problem.

TimZaman avatar Jan 07 '19 16:01 TimZaman

Problem comes from what's explained in the last paragraph: https://github.com/TimZaman/dotaservice/blob/master/NOTES.md

TimZaman avatar Jan 07 '19 16:01 TimZaman

Thanks, but it seems cannot causing the stuck problem, I can not receive any normal observation(status='ok') in my client after launching the game.

sijiaxu avatar Jan 08 '19 07:01 sijiaxu

Yep but that's because of this issue. Will try to solve tomorrow or something

On Mon, Jan 7, 2019, 23:11 sijia xu <[email protected] wrote:

Thanks, but it seems cannot causing the stuck problem, I can not receive any normal observation(status='ok') in my client after launching the game.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TimZaman/dotaservice/issues/33#issuecomment-452197417, or mute the thread https://github.com/notifications/unsubscribe-auth/AHXSRC5dAUt-qexTz5NNQls4jzpgr7rrks5vBESsgaJpZM4ZyniI .

TimZaman avatar Jan 08 '19 07:01 TimZaman

another question, you mention set the render to true in order to see the GUI, is that referring to use the HOST_MODE_GUI mode?

sijiaxu avatar Jan 08 '19 08:01 sijiaxu

I made the worldstate to be pushed threaded now, can you check if this solves the time discrepancy?

TimZaman avatar Jan 09 '19 06:01 TimZaman

yes, the time discrepancy error has gone, but I still stuck at the 'DOTA_GAMERULES_STATE_PRE_GAME' state, I cannot receive the world state message after that, detail log can be seen here https://github.com/TimZaman/dotaservice/issues/35

I go through the console log, there are some errors, the lack of libtensorflow.so and some .vhcg files, but it seems not the big problems after google. so how can I debug my problems like debug option and tools? I doubt there are some problems in the dota's configure, causing game freeze and no world state sended out.

sijiaxu avatar Jan 09 '19 07:01 sijiaxu

still an issue for me sporadically even with threaded.

TimZaman avatar Jan 17 '19 08:01 TimZaman

when i set ticks_per_observation to 1, i got ValueError: dota_time discrepancy in depleting initial worldstate queue.

when i set it to 2, i got assert queue.qsize() == 0 in observe()

It seems sync between two team caused a lot trouble. But I wonder whether it is neccesery to keep sync. For me, i don't think so, i just want get the latest tick and it is ok to drop any data that i missed.

lenLRX avatar Jul 26 '19 16:07 lenLRX