Commit Graph

117 Commits

Author SHA1 Message Date
celestar 30bc705e48 (svn r4828) -Feature (FS#150) Add a new console command "players" that lists current players along with basic stats (ledow) 2006-05-11 14:08:03 +00:00
Darkvater fd2a005139 (svn r4558) - Fix: 'stopall' was moved to debug, so move the function there as well. 2006-04-23 22:06:52 +00:00
Darkvater aa33135450 (svn r4518) - Fix: specify the 'stopall' console command as a debug command. Mostly because stopped airplanes in mid-air 1. look funny 2. won't ever budge again. (change of r2449) 2006-04-22 08:45:58 +00:00
celestar 5931b34aff (svn r4259) -[multistop] Fix/Feature/Codechange:
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles.
2) Removed the "wait for stop" feature, because it did not work in practise.
3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet)
4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops.
5) Hopefully the last fundamental change to multistop
2006-04-03 14:25:32 +00:00
celestar e54f1e1e2b (svn r3939) -Fix: No longer assume that the number of slots is 2. It was not a problem up to now, but it's not The Right Thing (TM) to do either 2006-03-18 08:00:27 +00:00
celestar 9d54e51ef9 (svn r3730) Multistop modifications:
-Codechange: Completely rewritten the slot assignment system. It now consumes less CPU cycles and memory
-Codechange: Increased maximum number of roadstops to 16.
-Fix: Several conditions where a slot becomes unliked from a vehicle
-Codechange: ClearSlot now only takes one parameter, the vehicle
-Feature: Console command 'clearslots' to clear ALL currently assinged slots. debug usage only
-Feature: vehicles that cannot get a slot now wait on the road instead of planlessly blocking stops or circling around
-Codechange: Adjusted debug levels
TODO: Make the slot finder compatible with (a) pathfinder(s).
2006-03-02 08:55:12 +00:00
Darkvater bf1bf1e1ec (svn r3724) - [5.5/6] heh, the patch part got left out of the previous commit, sorry 2006-03-02 02:03:21 +00:00
peter1138 8cba0a1176 (svn r3593) Fix typo in r3591 2006-02-11 21:41:49 +00:00
Darkvater 843bd25b4e (svn r3591) - Fix: validate the setting of max_companies/spectators through the console. 2006-02-11 14:10:28 +00:00
Darkvater f2448ebfd4 (svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking. 2006-01-31 22:16:15 +00:00
Darkvater 20538e9b40 (svn r3469) - Fix: plug a possible memleak with subsequential strdup's without freeing the previous value and make it possible to ban offline clients 2006-01-29 18:04:52 +00:00
Darkvater 0d80c70b5f (svn r3428) - Feature: server_info was left out previous commit. Move some commands about a bit for better logical placement 2006-01-25 18:40:12 +00:00
Darkvater 78fa9c7393 (svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console. 2006-01-25 18:11:06 +00:00
peter1138 016c498216 (svn r3411) - Fix: When changing the server password via the console, actually set the password as well as flag whether it is required. 2006-01-19 21:29:54 +00:00
Darkvater 6971aee967 (svn r3408) - Ok, compile before you commit; sorry (fix previous commit) 2006-01-19 16:12:24 +00:00
Darkvater a292621b14 (svn r3407) - Feature: Kick and ban now with IP numbers. 2006-01-19 15:58:57 +00:00
Darkvater 4253f3d330 (svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron 2005-10-19 20:00:05 +00:00
Darkvater afc9951648 (svn r3069) - CodeChange: now that we have the '|' char, use that as a seperator instead of '\' as was originally intention 2005-10-19 19:44:01 +00:00
Darkvater 4fb76f67ae (svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of. 2005-10-19 19:41:38 +00:00
Darkvater e611fee4e5 (svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP).
- Feature: 'status' and 'clients' now show the IP of the players
2005-10-19 19:38:35 +00:00
tron d28067445a (svn r2987) -Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (Debolaz) 2005-09-26 08:11:48 +00:00
Darkvater 02472528ad (svn r2945) Add 'del' alias to rm console command 2005-09-11 18:36:22 +00:00
tron e78d41bbb2 (svn r2941) -Feature: Implement the console command rm to remove savegames 2005-09-11 14:57:56 +00:00
tron d975abc96c (svn r2899) -Fix: Several format string vulnerabilities and buffer overflows in the network code 2005-08-28 12:24:57 +00:00
tron a227065ab7 (svn r2701) Insert Id tags into all source files 2005-07-24 14:12:37 +00:00
tron 18d79cc30f (svn r2672) Move saving/loading related declarations to saveload.h 2005-07-22 06:31:31 +00:00
Darkvater 80aa8c868b (svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders. 2005-07-17 15:58:47 +00:00
tron 1b4a0897b6 (svn r2535) Tabs 2005-07-08 22:25:24 +00:00
tron 7ff19d7dfd (svn r2498) -Fix: [1230241] The console variable autoclean_unprotected was linked to the variable _network_autoclean_protected 2005-06-30 12:42:27 +00:00
celestar aa7334a3ec (svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer 2005-06-21 16:28:17 +00:00
matthijs bacc5396e6 (svn r2449) * Added an extra warning to the stopall command, "For debugging only!". 2005-06-16 20:54:37 +00:00
matthijs 2e42c82793 (svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging). 2005-06-16 00:54:19 +00:00
Darkvater b438b1248c (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. 2005-06-02 19:30:21 +00:00
Darkvater c757606502 (svn r2375) - CodeChange: add the newly added 'all' of server_ip to it's helptext. 2005-05-28 19:05:24 +00:00
Darkvater acef413f00 (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 2005-05-28 18:47:05 +00:00
Darkvater 426aa514ff (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...'
2005-05-28 16:59:51 +00:00
Darkvater 519c4161d5 (svn r2352) - Feature: add the possibility to print out the current debug-level 2005-05-20 17:59:24 +00:00
Darkvater 166c1badc9 (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"
2005-05-17 16:07:48 +00:00
Darkvater 653000bdd6 (svn r2332) - Feature: Add 'clear' command and CTRL+L to empty the console window
- Fix: do not execute emtpy commands anymore
2005-05-16 13:46:26 +00:00
tron 6cd410afbb (svn r2323) Remove unused dereferencing 2005-05-15 18:43:36 +00:00
Darkvater 5501f25084 (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. 2005-05-15 10:40:53 +00:00
Darkvater d99dddc704 (svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;) 2005-05-14 19:34:59 +00:00
Darkvater d19438f858 (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() 2005-05-13 17:05:03 +00:00
Darkvater c626555f68 (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.
2005-05-12 00:18:30 +00:00
Darkvater 268968a8b4 (svn r2292) - Fix (regression): make error message more general for console errors. Dedicated servers are properly filtered out when requesting player-password. 2005-05-11 15:30:28 +00:00
Darkvater b12c6bac57 (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 2005-05-04 19:09:25 +00:00
Darkvater effca9f6ec (svn r2265) - Fix: some more useful help messages and consistent errors for failed console-cmds. Make command 'clients' only available in network mode 2005-05-04 10:17:00 +00:00
Darkvater ad6b37a423 (svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands 2005-05-03 11:48:55 +00:00
Darkvater d26052c7df (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 2005-05-02 21:56:01 +00:00
Darkvater 8f6b3154e5 (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 '\'
2005-05-02 17:05:59 +00:00