Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

Is there a way to run dota 2 without GUI ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to run dota 2 without GUI ?

    I want to run dota2 without GUI for increasing speed of command "host_timescale xx". In GUI ,it isn't differentiation speed when value of host_timescale morethan 10.
    I guess this problem was caused by using GUI.

    I found the Steamcmd for create server with cmd , but i cann't find the srcds.exe when download game with command app_update 570.
    This link about Steamcmd for dota2
    https://forums.alliedmods.net/showthread.php?p=2110203
    https://www.vultr.com/docs/setting-u...ver-on-windows


    Do you know how to run dota 2 without GUI in any way or fix the srcds.exe problem ?

    Thank you very much!!

  • #2
    i want to know that as well, simulator(not VM) is another way.
    https://github.com/lenLRX/Dota2_DPPO_bots ----My ML bot work in progress

    Comment


    • #3
      Originally posted by jack05 View Post
      I want to run dota2 without GUI for increasing speed of command "host_timescale xx". In GUI ,it isn't differentiation speed when value of host_timescale morethan 10.
      I guess this problem was caused by using GUI.

      I found the Steamcmd for create server with cmd , but i cann't find the srcds.exe when download game with command app_update 570.
      This link about Steamcmd for dota2
      https://forums.alliedmods.net/showthread.php?p=2110203
      https://www.vultr.com/docs/setting-u...ver-on-windows


      Do you know how to run dota 2 without GUI in any way or fix the srcds.exe problem ?

      Thank you very much!!
      That thread is for Source 1 Dota 2. To run a dedicated server in Reborn, just run dota (in game/ folder) with -dedicated -maxplayers 10 -game dota +map dota

      I have *no* idea how to add bots to it though.
      dota2_nn - deep supervised learning bots

      Comment


      • #4
        WARNING * untested
        • dota_spawn_creeps: spawn lane creeps
        • dota_spawn_neutrals: spawn jungle creeps
        • dota_spawn_rune: spawn runes
        • dota_start_game: sets the game state to "game in progress", sets timer to 0, spawns neutrals and rune
        • dota_create_unit npc_dota_hero_lina: spawns lina
        • dota_create_unit npc_dota_hero_lina enemy: spawns lina on the enemy team
        • dota_bot_give_item item_boots: give boots to all bots


        But you guys prolly want to start an actual bot game. A long time ago, before bot lobbies and offline botmatches were added, these were the steps:
        • dota_start_ai_game 1
        • map dota


        So I guess the second part is what you actually need. But even if it works, I don't know how to tell the game to use script X and not Y or use the local script and on which team

        It might use the last script that you selected, but it's a guess.
        Explanations on the normal, high and very high brackets in replays: here, here & here
        Why maphacks won't work in D2: here

        Comment


        • #5
          Originally posted by axetion View Post
          I have *no* idea how to add bots to it though.
          try -fill_with_bots

          http://dev.dota2.com/showthread.php?t=276005

          Comment


          • #6
            Damn, I missed that. How can you specify the script to load? Any ideas?
            Explanations on the normal, high and very high brackets in replays: here, here & here
            Why maphacks won't work in D2: here

            Comment


            • #7
              dedicate_server.png

              game does not start, maybe we should specify players and game modes, but how?
              https://github.com/lenLRX/Dota2_DPPO_bots ----My ML bot work in progress

              Comment


              • #8
                Thank you all of you for information.

                I can create lobby with local dev script bot by console command in this below. It can work in dota 2 with GUI.

                Code:
                dota_start_ai_game 1  (Start ai)
                dota_bot_practice_start 1  (Start bot practice script)
                dota_bot_practice_script 0 (Select bot script.The number is bot script id. the 0 is meaning local devscript.You can use 855965029 for "Ranked Matchmaking Bot A.I script" )
                map dota

                I try to use -dedicated in launch option command and use these code. It seem to work but I can't get respond in print console command(can't debug) and I can't send any HTTP request
                to server.

                I am not sure in detail about -dedicated command.I can't find a document for this.
                Do you have more information about this?


                I have some out of bounds question. In many time when I post or reply in this forum, the server send error page to me. Do you ever found this problem?

                Comment


                • #9
                  delete me
                  Last edited by The Nomad; 10-24-2017, 02:23 AM. Reason: oops
                  Explanations on the normal, high and very high brackets in replays: here, here & here
                  Why maphacks won't work in D2: here

                  Comment


                  • #10
                    Hi, did anyone figure out how to start a match with bots without GUI? I tried following jack05 and Nomad's instructions but the game is always stuck at DOTA_GAMERULES_STATE_INIT with 0 bots / 0 max. Any help is appreciated!

                    Comment


                    • #11
                      The following works for me on Windows. A slight mod also works to get it to work on Linux/OSX

                      Code:
                      >>> import subprocess
                      >>>
                      >>> p = subprocess.Popen('"C:\\Program Files (x86)\\Steam\\steamapps\\common\\dota 2 beta\\game\\bin\\win64\\dota2.exe" -con_logfile scripts/vscripts/bots/console.log -con_timestamp -console -dev -insecure -noip -nowatchdog +clientport 27006 +dota_1v1_skip_strategy 1 +dota_surrender_on_disconnect 0 +host_timescale 1 +hostname dotaservice +sv_cheats 1 +sv_hibernate_when_empty 0 +tv_delay 0 +tv_enable 1 +tv_title 0895d28a-a8d5-11e9-b052-c86000c96ae6 +tv_autorecord 1 +tv_transmitall 1 -fill_with_bots +map start gamemode 6 +sv_lan 1')
                      Note, that if you intend to pull the protobufs frame dumps in another server you will need to also add these options:
                      Code:
                              if not self.offline:
                                  args.extend([
                                      '-botworldstatesocket_threaded',
                                      '-botworldstatetosocket_frames {}'.format(self.ticks_per_observation),
                                      '-botworldstatetosocket_radiant {}'.format(self.PORT_WORLDSTATES[TEAM_RADIANT]),
                                      '-botworldstatetosocket_dire {}'.format(self.PORT_WORLDSTATES[TEAM_DIRE]),
                                  ])
                      Also, if you want to run headless you can add the dedicated flag
                      Code:
                              if self.host_mode == HOST_MODE_DEDICATED:
                                  args.append('-dedicated')
                      Finally, if you intend to play with real-players joining the bots you need to change the 'sv_lan 1' to 'sv_lan 0' to allow others to join.

                      In the top-most example of python code note I use some auto-generated values (like the tv_title which is a uuid I generate). Change as you will.
                      Last edited by nostrademous; 07-17-2019, 03:59 PM.

                      Comment

                      Working...
                      X