summaryrefslogtreecommitdiff
path: root/console_cmds.c
AgeCommit message (Collapse)Author
2005-05-12(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), ↵Darkvater
CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame(). - CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands. - CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP. - CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
2005-05-11(svn r2292) - Fix (regression): make error message more general for console ↵Darkvater
errors. Dedicated servers are properly filtered out when requesting player-password.
2005-05-04(svn r2266) - Feature: it is now possible to start a dedicated server on ↵Darkvater
Win98/95, for the few sadistic geeks that really want to do this (thanks for testing Hackykid). Also fix up another glitch in console output
2005-05-04(svn r2265) - Fix: some more useful help messages and consistent errors for ↵Darkvater
failed console-cmds. Make command 'clients' only available in network mode
2005-05-03(svn r2259) - Fix (regression): remove a warning and make the help for ↵Darkvater
variables behave the same as for commands
2005-05-02(svn r2254) - Fix: using 'ls' or 'dir' in the console always shows loadable ↵Darkvater
savegames and does not depend on the whim of the currently open saveload dialog
2005-05-02(svn r2247) - Fix (regression): executing scripts now works (remove newline ↵Darkvater
character(s)). - Fix: getting help for an alias works - Fix: '|' is an unprintable character, replace it with '\'
2005-05-02(svn r2244) - Fix: 'scrollto' is not debug only..sorry :)Darkvater
2005-05-02(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help ↵Darkvater
about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'. - Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-03-29(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more ↵truelight
stable -Add: added 'pause_on_join' and 'max_join_time' for MP games, where you can auto-pause the game when a client wants to join the game. This to avoid connection losses because of big maps (200+ trains). (with tnx to #openttdcoop for the ideas and testing)
2005-03-28(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch ↵darkvater
[1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. Tron + glx (and me)
2005-03-27(svn r2085) Improve browsing via console:tron
- change directory/load map via filename (number is also possible) - add command "pwd" to Print the current Working Directory - rename "list_files" to "ls" (and add alias "dir") - rename "goto_dir" to "cd" - loading of TTD maps via "load" is now possible - switching of drives via "cd" (only applies to systems which have a drive concept) is now possible - "scan_files" is now obsolete and was removed This is still far from perfect, mostly because the way OTTD handles files is Broken By Design(tm), but should make file navigation via console a bit easier
2005-03-25(svn r2071) - Feature: [ 1168743 ] save command for console: "save ↵Darkvater
<filename>" to save a game (pkirchhofer)
2005-03-25(svn r2069) - Feature: [ 1168743 ] save command for console (pkirchhofer)Darkvater
2005-02-22(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head ↵Darkvater
into the wall
2005-02-22(svn r1897) - Fix: [ 1120424 ] Set name overwrites same name. Renamings ↵Darkvater
because your name is in use are virtual though so if name "b" is in use your name will become "b #1", renaming yourself again to "b" will become "b #2", and will toggle between these two.
2005-02-18(svn r1887) Stylistic change of ConExec()tron
2005-02-18(svn r1886) Correctly process the last line of a script, even if it's not ↵tron
newline terminated. Also print an error message if something goes wrong while reading from the script file
2005-02-17(svn r1883) -Fix: [1109400] Better test if a string actually contains any ↵tron
console command
2005-02-06(svn r1833) byte -> char transition: the resttron
2005-02-06(svn r1821) Move generic string handling functions to string.[ch] and ↵tron
introduce stre{cpy,cat}, see string.h for their semantics
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-01-24(svn r1648) -Fix: server can now pause and unpause a game through the ↵darkvater
console. Use 'pause' and 'unpause'
2005-01-24(svn r1639) Fixed spelling: Wrong command in error for goto_dirdominik
2005-01-23(svn r1631) A couple of fixes for the signed/unsigned warnings. Only ↵dominik
train_cmd.c remains to need fixing...
2005-01-22(svn r1596) Add some more staticstron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-22(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server ↵darkvater
cannot ban itself :)
2005-01-16(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), ↵darkvater
is now functioning correctly. There is no other way but to create a new thread, but that's only MS braindeadness -Fix: [1103113] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts -Fix: [1103069] console backspace key with ded server; fixed due to normal console handling -Fix: [1101963] console in dedicated server; see above -Fix: dedicated server also writes to log file if active
2005-01-15(svn r1527) -Add: RCon (Remote Connection). A server can set:truelight
'set rcon_pw <password>' Which enables rcon. A client can now do: 'rcon <password> "<command>"' The command will be executed on the server. (guru3) -Fix: 'kick 1' did crash dedicated servers -Fix: server password is now correctly saved !!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-15(svn r1524) -"Feature": when windows exception tracker is enabled (release ↵darkvater
builds) and the game crashes for any reason any active log file is closed first. This ensures the log file and ingame debug messages can be used to debug a problem. Any *nix versions are welcome
2005-01-15(svn r1520) Trim 134 (!) lines with trailing whitespace ):tron
2005-01-08(svn r1422) Fixed linux compiling, that was broken in r1420dominik
2005-01-08(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)darkvater
2005-01-04(svn r1373) -Fix: compilation fix for windowsdarkvater
2005-01-04(svn r1370) -Add: added console support for loading maps. Use 'load', ↵truelight
'list_files' and 'goto_dir' to navigate and load games.
2005-01-02(svn r1322) -Add: banning system (mostly tnx to guru3)truelight
A server can ban people via ClientList Both server and dedicated can do it via console: 'ban', 'unban', 'banlist'.
2004-12-23(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the ↵truelight
date for in which year the server must restart hisself. (0 = disabled, default value)
2004-12-23(svn r1251) -Fix: [Console] The alias 'clean_company' is now working correctlytruelight
2004-12-23(svn r1250) -Fix: a dedicated server could not kick user number 1truelight
2004-12-23(svn r1244) -Fix: no longer show the current password when 'set company_pw' ↵truelight
is called without parameters (technical not possible, sorry DV)
2004-12-22(svn r1239) -Feature: Added gui option of setting company password. It can ↵darkvater
be found in the 'company information' window -Spiced up 'set company_pw' a bit, where if no pw is typed, it shows the current one. -Added a space between company name and player; looks better
2004-12-22(svn r1231) -Fix: missing header file for console_cmds.ctruelight
2004-12-22(svn r1228) -Add: [Network] When a server normally shuts down, it removed ↵truelight
itself from the server-list
2004-12-19(svn r1174) -Fix: [Network] All strings can now be translated (no more ↵truelight
hardcoded strings)
2004-12-19(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const' truelight
and 'void' where needed, prefixed all functions, typedefs and global vars with 'Network' and organized all externals nicely.
2004-12-16(svn r1137) -Fix: [Network] Replaces all strncpy with ttd_strlcpy.. windows ↵truelight
really does not like strncpy for some silly reason.
2004-12-16(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set ↵truelight
autoclean_companies on/off'). When enabled, empty companies (companies with no active clients) with no password are declared bankrupt after 1 year of emptyness. For empty companies with password, the password is removed after 3 years of emptyness. The delay of removing company/password can be configured via: - 'set autoclean_protected <months>' - 'set autoclean_unprotected <months>'
2004-12-16(svn r1129) -Add: [Network] Added 'reset_company <company-id>'. If a company is truelight
empty (no clients logged on to it), a server can delete a company via this command in the console.
2004-12-15(svn r1116) -Add: [Console] With 'set server_advertise on/off' you can put ↵truelight
server advertise on/off via console (requested by imachine)