TimZaman / dotaservice

DotaService is a service to play Dota 2 through gRPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to remove the fog of war?

sijiaxu opened this issue · comments

I use 'HOST_MODE_GUI' to launch dota, everything goes fine except I can't see the hero, it seems the fog of war cover the map.
I have tried add launch option '-render True' or '-allvision', but not work...

Console command: ‘jointeam spec’

Thanks!

I notice in the previous version there is a function adding jointeam spec , it is much more convenient than typing in the game console, so why delete this?

async def record_replay(self, process):
"""Starts the stdin command.
"""
print('@record_replay')
await asyncio.sleep(5) # TODO(tzaman): just invoke after LUARDY signal?
process.stdin.write(b"tv_record scripts/vscripts/bots/replay\n")
if self.render:
# If we want to render, let the 'render player' join the spectator team.
# TODO(tzaman): does this work at all?
await asyncio.sleep(20) # TODO(tzaman): come up with something smart.
process.stdin.write(b"jointeam spec\n")
await process.stdin.drain()

ok, it doesn't matter.

Did you (or anyone) figure out how to submit Dota 2 console commands (e.g. spec_track) via process.stdin.write() or via terminal when launching Dota 2? I'm trying to automate changing the spectator mode, but none of the following worked when appended to the end of my terminal command:

+dota_spectator_mode 3
-dota_spectator_mode 3
dota_spectator_mode 3

What about the second part of the question? Why do some console commands not work when Dota is launched from terminal and the console commands are appended to the end of the terminal command? For instance, +dota_spectator_increasereplayspeed works, but dota_spectator_mode 3 does not?