Giter Club home page Giter Club logo

Comments (8)

Nostrademous avatar Nostrademous commented on June 23, 2024

Console command: ‘jointeam spec’

from dotaservice.

sijiaxu avatar sijiaxu commented on June 23, 2024

Thanks!

from dotaservice.

sijiaxu avatar sijiaxu commented on June 23, 2024

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

from dotaservice.

TimZaman avatar TimZaman commented on June 23, 2024

from dotaservice.

sijiaxu avatar sijiaxu commented on June 23, 2024

ok, it doesn't matter.

from dotaservice.

RylanSchaeffer avatar RylanSchaeffer commented on June 23, 2024

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

from dotaservice.

TimZaman avatar TimZaman commented on June 23, 2024

from dotaservice.

RylanSchaeffer avatar RylanSchaeffer commented on June 23, 2024

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?

from dotaservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.