PDA

View Full Version : Repertoire of Useful Console Commands



ElementUser
02-07-2012, 02:21 PM
Repertoire of Useful Console Commands

- Open up the game console by pressing Ctrl+F8.


Quickstart Practice Game Enable in the UI (extremely helpful for people who love Practice Mode)


SetSave "ui_showQuickStart" "true"



Practice Game Helpful when unable to login

startgame practice GameName map:caldavar allheroes:true devheroes:true nostats:true



Area Affectors

d_drawareaaffectors true



Host Timescale:

host_timescale 1.5
The number can be changed from a value from 0 to 99



Draw Selected Path:

cg_drawSelectedPath true



Dynamic File Update Helps when bugfixing/editing heroes

host_dynamicResReload true



Navgrid

cg_drawNavGrid true



Show FPS

host_drawFPS true



Taunt Unlock Local only

g_perks true



Day/Night

g_dayStartTime #
Number is 225000 to shift to day, 675000 to shift to night



Unknown

g_drawSelectedInventory true



Ready. Set. Go! You can change the green color, to what you desire.

Bind F4 "SpawnHero Hero_Flux; SelectAvatar Alt; Ready"


Select avatar in pick screen Useful for testing hero voice

SpawnHero Hero_<Entity Type>; SelectAvatar Alt


Console Transparency Value between 0 and 1 (0-100%)

con_alpha



Console Height Value between 0 and 1 (0-100%)

con_height



Rebind Refresh You can change the green color, to what you desire.

SetSave bind Y "Refresh #GetSelectedEntity()#"



Fog of War Darkness Value between 0 and 1 (0-100%)

cg_fogofwarDarkness


Spawn Unit Command (especially useful for Alt Avatars)

StartCmdClickPos SpawnUnit2 <Entity Type>.<Alt> 0 1 1
Grey is optional, # can be 0 for Controllable, 1 for Uncontrollable, # is the faction the unit belongs to: 0 for Passive, 1 for Legion, 2 for Hellbourne, 3 for Neutral. # can be 0 for No-Precache, 1 for Precache



Connecting Chat Connects to the chat-server. Good for those harsh DDoS times.

ChatConnect



Disconnecting Chat Disconnects the chat-server. Good for ... when you don't want to be disturbed?

ChatDisconnect



Joining Directly An alternative way to join games, if you know the IP.

Connect 83.89.75.43



Force Update Useful for reverting to older versions temporarily

ForceUpdate <Version #> http://patch1.hon.s2games.com/ 1

http://dl.heroesofnewerth.com/ as substitute for website


Max Camera Distance Only works in Practice Mode or replay viewing

g_camDistanceMax 2200


8-Bit mode (first line turns 8-bit mode on, second line turns 8-bit mode off)


exec 8bit

exec non8bit



- Credits to Norroar and Deejay for helping me with this!

MacroHard
02-07-2012, 02:49 PM
This is exactly what I have been looking for for the past month or so. Apparently you are still the greatest forum member we have.

Nytemair
02-07-2012, 09:32 PM
Apparently you are still the greatest forum member except Nytemair we have.

Fixed, also thanks eleeeee :> good to see you're still actively using the forums.

Blaity
03-22-2012, 03:42 AM
cool thanks I was looking for this recently!

ElementUser
06-02-2012, 12:03 PM
Bump for easy access ^.^

RyogaHibiki
08-29-2012, 11:26 PM
Ive been messing up with fog and I dont know now which is the default value. Is it 0.5 ?? can u help me?

Thanx!

Malkeur
10-09-2012, 12:55 AM
default is .6

ElementUser
02-06-2013, 03:13 PM
Bump again for reference

VolkoCorp
02-13-2013, 02:02 PM
Need some clarification with the startgame command, could we have all the options ?

So far, I've got :

Startgame Argument1 Argument2 Argument 3

Argument1 : where the map will be run

PraticeOffline mode



Local_AutomaticUsed for LAN and Custom map



Argument2 : the game name that will appear when joining game

"Whatever you want" Quotes (") are mandatory if you put space or special character in your game name.



Argument 3 : all the other arguments, put a space between them, and a quote before the first one and the last one.

map:Caldavar The map used. For other maps, just go to the maps\ directory and put the name of the .s2z map you want to play.



spectator:10 Put 10 spectator slots. 0 minimum, 10 max. Default : 0



referees:2 Put 2 referee slots. 0 minimum, 2 max. Default : 0



teamsize:5 Make the game 5v5. 1 minimum, 5 max. Default : 5



norespawntimer:true Remove the respawn timer. Default : false



mode:banningdraft Change the mode. Modes : banningdraft, allpick, banningpick, singledraft, etc... Default : AllPick



hardcore:true Put hardcore option on. Default : false




Exemples :
I want to run a WTF game on my dedicated server, 5v5, banning draft, 12 spects, no respawn timer :

startgame local_automatic "Volko's Game : WTF!" "map:caldavarwtf spectators:10 referees:2 teamsize:5 norespawntimer:true mode:banningdraft"



I want to play a Nightmarish game offline :

startgame pratice "Volko's Game : Nightmarish!" "map:nightmarish_003 teamsize:1 hardcore:true"



Need to be completed though ! :)

Jonathan
02-13-2013, 03:28 PM
startgame game_type game_name game_options
game_type can be either local_automatic, practice, or remote_automatic
game_name
game_options are map:map_name mode:game_mode teamsize:5 spectators:10 referees:2 tier:1 noleaver:false
game_mode can be: normal, nm, randomdraft, rd, singledraft, sd, banningdraft, bd, banningpick, bp, lockpick, lp, allrandom, ar, blindban, bb, botmatch, bm, deathmatch (deathmatch needs to be enabled in the map's worldconfig as it is disabled by default)

true/false game options
private
noleaver
nostats
allheroes
alternatepicks
norepick
noswap
noagility
nointelligence
nostrength
norespawntimer
dropitems
nopowerups
easymode
allowduplicate
reverseselect
notop
nomiddle
nobottom
allowveto
shuffleteams
autobalance
devheroes
cheats

VolkoCorp
02-13-2013, 04:27 PM
Thanks mate. You're everywhere. :D

ElementUser
02-14-2013, 07:57 PM
Added my best friend for Practice Mode:


SetSave "ui_showQuickStart" "true"

Syth`
02-18-2013, 04:56 AM
Added my best friend for Practice Mode:

I LOVE YOU
caps

ElementUser
04-06-2013, 02:20 PM
Added 8-bit on & off commands:


exec 8bit
exec non8bit

Frosty_Skull
04-17-2013, 04:33 PM
setsave cg_usenewshop2 false

ElementUser
04-19-2013, 12:56 PM
Well, I don't particularly like that one...:P

Volko_Biatch
04-19-2013, 06:38 PM
Old school rules :p

domacvv
04-22-2013, 09:00 AM
Is there a possibility to start multiple bot games via console (cli would be preferable). I'm working currently on my thesis and wanted to collect data from ingame for an imitation + reinforcement learning algorithm which should improve the bot from game to game. I'd also like to ask if there is a way to crawl replay files for ingame data?
Thanks for your help!
Cheers

Unrelated
05-08-2013, 01:55 PM
Hey, are there commands for binding stuff from the new "Ping menu"?