tron
2c62dcef61
(svn r2941) -Feature: Implement the console command rm to remove savegames
19 years ago
tron
f02b1f2967
(svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code
19 years ago
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
19 years ago
tron
a4ec4da221
(svn r2672) Move saving/loading related declarations to saveload.h
19 years ago
Darkvater
cda6efd919
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
19 years ago
tron
1307f90b5e
(svn r2535) Tabs
19 years ago
tron
b39195ddfa
(svn r2498) -Fix: [1230241] The console variable autoclean_unprotected was linked to the variable _network_autoclean_protected
19 years ago
celestar
354058341b
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
20 years ago
matthijs
948d9f518f
(svn r2449) * Added an extra warning to the stopall command, "For debugging only!".
20 years ago
matthijs
a4550b02b0
(svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging).
20 years ago
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago
Darkvater
aa3fbc8763
(svn r2375) - CodeChange: add the newly added 'all' of server_ip to it's helptext.
20 years ago
Darkvater
249a0b6fda
(svn r2374) - CodeChange: giving server_ip a value of 'all' will make the server listen on any interface (0.0.0.0); also fix a typo in one of the script example files: s/ports/interfaces
20 years ago
Darkvater
ad30c7a2c1
(svn r2372) - Fix (console): update the example scripts in the scripts/ directory to reflect the new console functionality
...
- Fix (console): any line starting with a '#' is a comment so ignore it
- Fix (console): The special variables whose value can only be set by a custom process should, also print out their newly set value there, instead of relying on the default printout which is slightly confusing. Eg after you change the value it still printed out 'current value for...' instead of 'XXX changed to...'
20 years ago
Darkvater
26da27532e
(svn r2352) - Feature: add the possibility to print out the current debug-level
20 years ago
Darkvater
5fc05c681a
(svn r2338) - CodeChange: only call the variable hooks when you set their value not when you query them
...
- Fix: typo in pool.c "Cleaing up" --> "Cleaning up"
20 years ago
Darkvater
ee89f5ab77
(svn r2332) - Feature: Add 'clear' command and CTRL+L to empty the console window
...
- Fix: do not execute emtpy commands anymore
20 years ago
tron
0375f30336
(svn r2323) Remove unused dereferencing
20 years ago
Darkvater
d958518e76
(svn r2318) - Feature: added console command 'part' to leave a currently running game and 'join' which is an alias to 'connect' to join a multiplayer server.
20 years ago
Darkvater
56bc64a3a1
(svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
20 years ago
Darkvater
408a036bcc
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
20 years ago
Darkvater
eb4233e8e9
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), 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.
20 years ago
Darkvater
c263dc8b49
(svn r2292) - Fix (regression): make error message more general for console errors. Dedicated servers are properly filtered out when requesting player-password.
20 years ago
Darkvater
a29a5b14a0
(svn r2266) - Feature: it is now possible to start a dedicated server on 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
20 years ago
Darkvater
f1631ebed7
(svn r2265) - Fix: some more useful help messages and consistent errors for failed console-cmds. Make command 'clients' only available in network mode
20 years ago
Darkvater
6e342942a9
(svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands
20 years ago
Darkvater
a7b661d47b
(svn r2254) - Fix: using 'ls' or 'dir' in the console always shows loadable savegames and does not depend on the whim of the currently open saveload dialog
20 years ago
Darkvater
1fb4a182e7
(svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)).
...
- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
20 years ago
Darkvater
07d5d86c1a
(svn r2244) - Fix: 'scrollto' is not debug only..sorry :)
20 years ago
Darkvater
22a375ba73
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help 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"
20 years ago
truelight
40a9b91b37
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more 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)
20 years ago
darkvater
d643ca6271
(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch [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)
20 years ago
tron
002dd026f0
(svn r2085) Improve browsing via console:
...
- 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
20 years ago
Darkvater
4e6169db1e
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
20 years ago
Darkvater
017a60aa3c
(svn r2069) - Feature: [ 1168743 ] save command for console (pkirchhofer)
20 years ago
Darkvater
3e1f6cc452
(svn r1899) - Fix: fix braindead strcmp from previous commit. /me bangs head into the wall
20 years ago
Darkvater
76b016dd58
(svn r1897) - Fix: [ 1120424 ] Set name overwrites same name. Renamings 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.
20 years ago
tron
389da29c2b
(svn r1887) Stylistic change of ConExec()
20 years ago
tron
1804109f4b
(svn r1886) Correctly process the last line of a script, even if it's not newline terminated. Also print an error message if something goes wrong while reading from the script file
20 years ago
tron
513eb4d7bb
(svn r1883) -Fix: [1109400] Better test if a string actually contains any console command
20 years ago
tron
257e97c09a
(svn r1833) byte -> char transition: the rest
20 years ago
tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
20 years ago
tron
36c9758c94
(svn r1803) Move debugging stuff into files of it's own
20 years ago
darkvater
9d492b5051
(svn r1648) -Fix: server can now pause and unpause a game through the console. Use 'pause' and 'unpause'
20 years ago
dominik
15dfad9153
(svn r1639) Fixed spelling: Wrong command in error for goto_dir
20 years ago
dominik
a94a7b0775
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
20 years ago
tron
97f893ae2f
(svn r1596) Add some more statics
20 years ago
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
darkvater
e00fd30057
(svn r1590) -Fix: [1107347] ban 1 crashes dedicated server. Dedicated server cannot ban itself :)
20 years ago
darkvater
44c39c5ebc
(svn r1547) -Feature: windows dedicated (if anyone would run that, but ok), 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
20 years ago
truelight
27929d129b
(svn r1527) -Add: RCon (Remote Connection). A server can set:
...
'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!
20 years ago
darkvater
0e651d9702
(svn r1524) -"Feature": when windows exception tracker is enabled (release 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
20 years ago
tron
dd6db73069
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
20 years ago
dominik
6e6b72d46d
(svn r1422) Fixed linux compiling, that was broken in r1420
20 years ago
darkvater
7dfe1c476c
(svn r1420) -Fix: Console alias, load_game functionality and load fix (sign_de)
20 years ago
darkvater
9e7aafe834
(svn r1373) -Fix: compilation fix for windows
20 years ago
truelight
4517349c7d
(svn r1370) -Add: added console support for loading maps. Use 'load', 'list_files'
...
and 'goto_dir' to navigate and load games.
20 years ago
truelight
5eeab7fcfe
(svn r1322) -Add: banning system (mostly tnx to guru3)
...
A server can ban people via ClientList
Both server and dedicated can do it via console:
'ban', 'unban', 'banlist'.
20 years ago
truelight
824d73be2d
(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the date for in
...
which year the server must restart hisself. (0 = disabled, default value)
20 years ago
truelight
e480efb19d
(svn r1251) -Fix: [Console] The alias 'clean_company' is now working correctly
20 years ago
truelight
af13f489b9
(svn r1250) -Fix: a dedicated server could not kick user number 1
20 years ago
truelight
807b5e5304
(svn r1244) -Fix: no longer show the current password when 'set company_pw' is called
...
without parameters (technical not possible, sorry DV)
20 years ago
darkvater
552cb7ad60
(svn r1239) -Feature: Added gui option of setting company password. It can 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
20 years ago
truelight
dc8ed63071
(svn r1231) -Fix: missing header file for console_cmds.c
20 years ago
truelight
1d1a78c011
(svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
...
from the server-list
20 years ago
truelight
182eb874e8
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
20 years ago
truelight
df995a32ed
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
...
and 'void' where needed, prefixed all functions, typedefs and global
vars with 'Network' and organized all externals nicely.
20 years ago
truelight
99c4d6f93b
(svn r1137) -Fix: [Network] Replaces all strncpy with ttd_strlcpy.. windows really
...
does not like strncpy for some silly reason.
20 years ago
truelight
44f808132e
(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set 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>'
20 years ago
truelight
732ea8ca13
(svn r1129) -Add: [Network] Added 'reset_company <company-id>'. If a company is
...
empty (no clients logged on to it), a server can delete a company via
this command in the console.
20 years ago
truelight
664fc4786d
(svn r1116) -Add: [Console] With 'set server_advertise on/off' you can put server
...
advertise on/off via console (requested by imachine)
20 years ago
truelight
7560705a67
(svn r1102) -Fix: [Console] 'set server_pw' was acting crazy when you typed more
...
chars then it could take
20 years ago
truelight
eb5b1ae72f
(svn r1101) -Fix: [Console] Removed magic numbers
20 years ago
truelight
bd08844ab6
(svn r1100) -Fix: [Console] 'set company_pw' is now working again (Hackykid)
20 years ago
dominik
0bb5428b26
(svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
...
- %! allows to merge alias parameters
- \% allows to use % in alias strings
- "alias" command now overwrites the old alias list entry
20 years ago
truelight
256d1797a3
(svn r1068) -Fix: [Console] Let the client remember his own name-change
20 years ago
truelight
b419b91809
(svn r1067) -Add: [Console] Added comment for scripts (everything behind the # is
...
ignored) (GeniusDex / sign_de)
20 years ago
truelight
76b76c28c3
(svn r1065) -Add: [Console] Alias support. Type 'list_aliases' to show them all (sign_de)
20 years ago
truelight
83bdec9b91
(svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'
...
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use
scripts/pre_dedicated.scr)
20 years ago
truelight
daad647d3d
(svn r1058) -Add: [Console] 3 aliases for newgame: new_game, newmap, new_map (this
...
annoyed me for some time now)
20 years ago
truelight
cbdc44926a
(svn r1057) -Add: [Network] 'set port <port>' changes the port of the server (after reboot)
...
-Fix: [Network] Fixed warnings that came with last revision
-Cleanup: [Network] Removed an unused var (_network_client_port)
20 years ago
truelight
f89cf61691
(svn r1055) -Add: [Console] Special for dedicated servers:
...
- You can change patch settings via 'set patch <patch_name> [<value>]'
20 years ago
truelight
5f83ee4554
(svn r1053) -Change: [Console] Changed 'setservername', 'setpassword', 'protect' and 'name' in:
...
- set server_pw "password"
- set server_name "servername"
- set company_pw "password"
- set name "playername"
(patch by sign_de)
20 years ago
truelight
b50b664f36
(svn r1026) -Add: [Network] Added unique id, so in network, each client has an
...
unique id (generated via md5)
20 years ago
truelight
a39770f23a
(svn r954) -Fix: [Console] Hook fixes (sign_de)
...
-Add: [Console] Auto sort commands and variables (sign_de)
20 years ago
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
20 years ago
darkvater
cd01b3890a
(svn r307) -Fix: Several potential buffer-overflow fixes, and removal of 'magic-numbers' in favour of constants. (Tron)
20 years ago
darkvater
e2c1370d60
(svn r295) -Fix: Rewrite and fix of console stuff, including marking (XXX) of areas that require further investigation (Tron)
...
-Note: booby trapped some suspicous assignments (Tron)
20 years ago
signde
25b5a727e8
(svn r268) -Fix: console-command: script command now stops recording correctly
...
-Fix: network client should not stop sending ready packets anymore [client should not timeout without any reason]
20 years ago
darkvater
d48ce392b2
(svn r248) -Feature: console script files "exec myscript.file"
...
-Feature: console logging (of debug messages with *developer = 2 and debug_level #) to text-files "script test.txt"
-Feature: server and client are auto-executing "on_server.scr" and "on_client.scr" scripts
20 years ago
signde
383dc579e4
(svn r233) -Fix: german language fixes (Tron)
...
-Fix: fixed some english console texts
20 years ago
signde
263042cdf2
(svn r230) -Feature: IConsoleWarning for warning messages
...
-Feature: added info_cmd command
-Codechange: renamed "varinfo" to "info_var"
-Fix: some const fixes in console.h
-Fix: fixed return value of IConsoleCmdGet
20 years ago
darkvater
01dd0219d3
(svn r229) -Fix: Some more const stuff fixed .(Tron)
...
-Fix: ParseConnectionString() function to parse network connection string: <IP>[:<PORT>][#<PLAY_AS] .
20 years ago
darkvater
e295e46e3e
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
...
-CodeLayout: Remove trailing spaces and Windows linebreaks
20 years ago
signde
d6cab2e06d
(svn r221) -Feature: console command and variable hooking
...
-Fix: added another network.c stub
-Consolecommand: "scrollto <tile>" center main view on <tile> [Darkvater]
-Consolecommand: "resettile <tile>" force bulldoze <tile> without any checks (DEBUG only) [Darkvater]
-Fix: resetengines is hooked to be not available in network games
-Codechange: "connect <connectstr>": the connect command now uses a connectionstring like the network-gui
-Fix: Direct Connect editbox can handle up to max ~35 characters [Darkvater]
20 years ago