Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to remove the fog of war? #36

Closed
sijiaxu opened this issue Jan 10, 2019 · 8 comments
Closed

how to remove the fog of war? #36

sijiaxu opened this issue Jan 10, 2019 · 8 comments

Comments

@sijiaxu
Copy link

sijiaxu commented Jan 10, 2019

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...

@Nostrademous
Copy link
Collaborator

Console command: ‘jointeam spec’

@sijiaxu
Copy link
Author

sijiaxu commented Jan 11, 2019

Thanks!

@sijiaxu sijiaxu closed this as completed Jan 11, 2019
@sijiaxu
Copy link
Author

sijiaxu commented Jan 11, 2019

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()

@sijiaxu sijiaxu reopened this Jan 11, 2019
@TimZaman
Copy link
Owner

TimZaman commented Jan 11, 2019 via email

@sijiaxu
Copy link
Author

sijiaxu commented Jan 11, 2019

ok, it doesn't matter.

@sijiaxu sijiaxu closed this as completed Jan 11, 2019
@RylanSchaeffer
Copy link

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

@TimZaman
Copy link
Owner

TimZaman commented May 25, 2019 via email

@RylanSchaeffer
Copy link

RylanSchaeffer commented May 25, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants