IConsoleHelp("Reset NewGRF allocations of engine slots. This will remove invalid engine definitions, and might make default engines available again.");
IConsolePrint(CC_HELP,"Reset NewGRF allocations of engine slots. This will remove invalid engine definitions, and might make default engines available again.");
IConsoleHelp("Remote control the server from another client. Usage: 'rcon <password> <command>'");
IConsoleHelp("Remember to enclose the command in quotes, otherwise only the first parameter is sent");
IConsolePrint(CC_HELP,"Remote control the server from another client. Usage: 'rcon <password> <command>'.");
IConsolePrint(CC_HELP,"Remember to enclose the command in quotes, otherwise only the first parameter is sent.");
returntrue;
}
@ -695,7 +686,7 @@ DEF_CONSOLE_CMD(ConRcon)
DEF_CONSOLE_CMD(ConStatus)
{
if(argc==0){
IConsoleHelp("List the status of all clients connected to the server. Usage 'status'");
IConsolePrint(CC_HELP,"List the status of all clients connected to the server. Usage 'status'.");
returntrue;
}
@ -706,8 +697,8 @@ DEF_CONSOLE_CMD(ConStatus)
DEF_CONSOLE_CMD(ConServerInfo)
{
if(argc==0){
IConsoleHelp("List current and maximum client/company limits. Usage 'server_info'");
IConsoleHelp("You can change these values by modifying settings 'network.max_clients', 'network.max_companies' and 'network.max_spectators'");
IConsolePrint(CC_HELP,"List current and maximum client/company limits. Usage 'server_info'.");
IConsolePrint(CC_HELP,"You can change these values by modifying settings 'network.max_clients', 'network.max_companies' and 'network.max_spectators'.");
returntrue;
}
@ -721,8 +712,8 @@ DEF_CONSOLE_CMD(ConServerInfo)
DEF_CONSOLE_CMD(ConClientNickChange)
{
if(argc!=3){
IConsoleHelp("Change the nickname of a connected client. Usage: 'client_name <client-id> <new-name>'");
IConsoleHelp("For client-id's, see the command 'clients'");
IConsolePrint(CC_HELP,"Change the nickname of a connected client. Usage: 'client_name <client-id> <new-name>'.");
IConsolePrint(CC_HELP,"For client-id's, see the command 'clients'.");
IConsoleHelp("Execute a local script file. Usage: 'exec <script> <?>'");
IConsolePrint(CC_HELP,"Execute a local script file. Usage: 'exec <script> <?>'.");
returntrue;
}
@ -997,7 +988,7 @@ DEF_CONSOLE_CMD(ConExec)
DEF_CONSOLE_CMD(ConReturn)
{
if(argc==0){
IConsoleHelp("Stop executing a running script. Usage: 'return'");
IConsolePrint(CC_HELP,"Stop executing a running script. Usage: 'return'.");
returntrue;
}
@ -1015,8 +1006,8 @@ DEF_CONSOLE_CMD(ConScript)
externFILE*_iconsole_output_file;
if(argc==0){
IConsoleHelp("Start or stop logging console output to a file. Usage: 'script <filename>'");
IConsoleHelp("If filename is omitted, a running log is stopped if it is active");
IConsolePrint(CC_HELP,"Start or stop logging console output to a file. Usage: 'script <filename>'.");
IConsolePrint(CC_HELP,"If filename is omitted, a running log is stopped if it is active.");
returntrue;
}
@ -1038,7 +1029,7 @@ DEF_CONSOLE_CMD(ConScript)
DEF_CONSOLE_CMD(ConEcho)
{
if(argc==0){
IConsoleHelp("Print back the first argument to the console. Usage: 'echo <arg>'");
IConsolePrint(CC_HELP,"Print back the first argument to the console. Usage: 'echo <arg>'.");
returntrue;
}
@ -1050,7 +1041,7 @@ DEF_CONSOLE_CMD(ConEcho)
DEF_CONSOLE_CMD(ConEchoC)
{
if(argc==0){
IConsoleHelp("Print back the first argument to the console in a given colour. Usage: 'echoc <colour> <arg2>'");
IConsolePrint(CC_HELP,"Print back the first argument to the console in a given colour. Usage: 'echoc <colour> <arg2>'.");
returntrue;
}
@ -1062,8 +1053,8 @@ DEF_CONSOLE_CMD(ConEchoC)
DEF_CONSOLE_CMD(ConNewGame)
{
if(argc==0){
IConsoleHelp("Start a new game. Usage: 'newgame [seed]'");
IConsoleHelp("The server can force a new game using 'newgame'; any client joined will rejoin after the server is done generating the new game.");
IConsolePrint(CC_HELP,"Start a new game. Usage: 'newgame [seed]'.");
IConsolePrint(CC_HELP,"The server can force a new game using 'newgame'; any client joined will rejoin after the server is done generating the new game.");
IConsoleHelp("Restarts a game. It tries to reproduce the exact same map as the game started with.");
IConsoleHelp("However:");
IConsoleHelp(" * restarting games started in another version might create another map due to difference in map generation");
IConsoleHelp(" * restarting games based on scenarios, loaded games or heightmaps will start a new game based on the settings stored in the scenario/savegame");
IConsolePrint(CC_HELP,"Restarts a game. It tries to reproduce the exact same map as the game started with.");
IConsolePrint(CC_HELP,"However:");
IConsolePrint(CC_HELP," * restarting games started in another version might create another map due to difference in map generation.");
IConsolePrint(CC_HELP," * restarting games based on scenarios, loaded games or heightmaps will start a new game based on the settings stored in the scenario/savegame.");
IConsolePrint(CC_HELP," * if you started from a savegame / scenario / heightmap, that exact same savegame / scenario / heightmap will be loaded.");
IConsolePrint(CC_HELP," * if you started from a new game, this acts the same as 'restart'.");
returntrue;
}
@ -1167,9 +1158,9 @@ DEF_CONSOLE_CMD(ConListGame)
DEF_CONSOLE_CMD(ConStartAI)
{
if(argc==0||argc>3){
IConsoleHelp("Start a new AI. Usage: 'start_ai [<AI>] [<settings>]'");
IConsoleHelp("Start a new AI. If <AI> is given, it starts that specific AI (if found).");
IConsoleHelp("If <settings> is given, it is parsed and the AI settings are set to that.");
IConsolePrint(CC_HELP,"Start a new AI. Usage: 'start_ai [<AI>] [<settings>]'.");
IConsolePrint(CC_HELP,"Start a new AI. If <AI> is given, it starts that specific AI (if found).");
IConsolePrint(CC_HELP,"If <settings> is given, it is parsed and the AI settings are set to that.");
returntrue;
}
@ -1241,8 +1232,8 @@ DEF_CONSOLE_CMD(ConStartAI)
DEF_CONSOLE_CMD(ConReloadAI)
{
if(argc!=2){
IConsoleHelp("Reload an AI. Usage: 'reload_ai <company-id>'");
IConsoleHelp("Reload the AI with the given company id. For company-id's, see the list of companies from the dropdown menu. Company 1 is 1, etc.");
IConsolePrint(CC_HELP,"Reload an AI. Usage: 'reload_ai <company-id>'.");
IConsolePrint(CC_HELP,"Reload the AI with the given company id. For company-id's, see the list of companies from the dropdown menu. Company 1 is 1, etc.");
returntrue;
}
@ -1279,8 +1270,8 @@ DEF_CONSOLE_CMD(ConReloadAI)
DEF_CONSOLE_CMD(ConStopAI)
{
if(argc!=2){
IConsoleHelp("Stop an AI. Usage: 'stop_ai <company-id>'");
IConsoleHelp("Stop the AI with the given company id. For company-id's, see the list of companies from the dropdown menu. Company 1 is 1, etc.");
IConsolePrint(CC_HELP,"Stop an AI. Usage: 'stop_ai <company-id>'.");
IConsolePrint(CC_HELP,"Stop the AI with the given company id. For company-id's, see the list of companies from the dropdown menu. Company 1 is 1, etc.");
returntrue;
}
@ -1316,7 +1307,7 @@ DEF_CONSOLE_CMD(ConStopAI)
DEF_CONSOLE_CMD(ConRescanAI)
{
if(argc==0){
IConsoleHelp("Rescan the AI dir for scripts. Usage: 'rescan_ai'");
IConsolePrint(CC_HELP,"Rescan the AI dir for scripts. Usage: 'rescan_ai'.");
returntrue;
}
@ -1333,7 +1324,7 @@ DEF_CONSOLE_CMD(ConRescanAI)
DEF_CONSOLE_CMD(ConRescanGame)
{
if(argc==0){
IConsoleHelp("Rescan the Game Script dir for scripts. Usage: 'rescan_game'");
IConsolePrint(CC_HELP,"Rescan the Game Script dir for scripts. Usage: 'rescan_game'.");
IConsoleHelp("Returns the seed used to create this game. Usage: 'getseed'");
IConsoleHelp("The seed can be used to reproduce the exact same map as the game started with.");
IConsolePrint(CC_HELP,"Returns the seed used to create this game. Usage: 'getseed'.");
IConsolePrint(CC_HELP,"The seed can be used to reproduce the exact same map as the game started with.");
returntrue;
}
@ -1376,7 +1367,7 @@ DEF_CONSOLE_CMD(ConGetSeed)
DEF_CONSOLE_CMD(ConGetDate)
{
if(argc==0){
IConsoleHelp("Returns the current date (year-month-day) of the game. Usage: 'getdate'");
IConsolePrint(CC_HELP,"Returns the current date (year-month-day) of the game. Usage: 'getdate'.");
returntrue;
}
@ -1389,7 +1380,7 @@ DEF_CONSOLE_CMD(ConGetDate)
DEF_CONSOLE_CMD(ConGetSysDate)
{
if(argc==0){
IConsoleHelp("Returns the current date (year-month-day) of your system. Usage: 'getsysdate'");
IConsolePrint(CC_HELP,"Returns the current date (year-month-day) of your system. Usage: 'getsysdate'.");
returntrue;
}
@ -1405,7 +1396,7 @@ DEF_CONSOLE_CMD(ConAlias)
IConsoleAlias*alias;
if(argc==0){
IConsoleHelp("Add a new alias, or redefine the behaviour of an existing alias . Usage: 'alias <name> <command>'");
IConsolePrint(CC_HELP,"Add a new alias, or redefine the behaviour of an existing alias . Usage: 'alias <name> <command>'.");
returntrue;
}
@ -1423,15 +1414,15 @@ DEF_CONSOLE_CMD(ConAlias)
DEF_CONSOLE_CMD(ConScreenShot)
{
if(argc==0){
IConsoleHelp("Create a screenshot of the game. Usage: 'screenshot [viewport | normal | big | giant | heightmap | minimap] [no_con] [size <width> <height>] [<filename>]'");
IConsoleHelp("'viewport' (default) makes a screenshot of the current viewport (including menus, windows, ..), "
"'normal' makes a screenshot of the visible area, "
"'big' makes a zoomed-in screenshot of the visible area, "
"'giant' makes a screenshot of the whole map, "
"'heightmap' makes a heightmap screenshot of the map that can be loaded in as heightmap, "
"'minimap' makes a top-viewed minimap screenshot of the whole world which represents one tile by one pixel."
"'no_con' hides the console to create the screenshot (only useful in combination with 'viewport')."
"'size' sets the width and height of the viewport to make a screenshot of (only useful in combination with 'normal' or 'big').");
IConsolePrint(CC_HELP,"Create a screenshot of the game. Usage: 'screenshot [viewport | normal | big | giant | heightmap | minimap] [no_con] [size <width> <height>] [<filename>]'.");
IConsolePrint(CC_HELP," 'viewport' (default) makes a screenshot of the current viewport (including menus, windows).");
IConsolePrint(CC_HELP," 'normal' makes a screenshot of the visible area.");
IConsolePrint(CC_HELP," 'big' makes a zoomed-in screenshot of the visible area.");
IConsolePrint(CC_HELP," 'giant' makes a screenshot of the whole map.");
IConsolePrint(CC_HELP," 'heightmap' makes a heightmap screenshot of the map that can be loaded in as heightmap.");
IConsolePrint(CC_HELP,"'minimap' makes a top-viewed minimap screenshot of the whole world which represents one tile by one pixel.");
IConsolePrint(CC_HELP,"'no_con' hides the console to create the screenshot (only useful in combination with 'viewport').");
IConsolePrint(CC_HELP,"'size' sets the width and height of the viewport to make a screenshot of (only useful in combination with 'normal' or 'big').");
IConsoleHelp("Reloads all active NewGRFs from disk. Equivalent to reapplying NewGRFs via the settings, but without asking for confirmation. This might crash OpenTTD!");
IConsolePrint(CC_HELP,"Reloads all active NewGRFs from disk. Equivalent to reapplying NewGRFs via the settings, but without asking for confirmation. This might crash OpenTTD!");
IConsoleHelp(" Unselect one or more GRFs from profiling. Use the keyword \"all\" instead of a GRF number to unselect all. Removing an active profiler aborts data collection.");
IConsolePrint(CC_HELP," Unselect one or more GRFs from profiling. Use the keyword \"all\" instead of a GRF number to unselect all. Removing an active profiler aborts data collection.");