summaryrefslogtreecommitdiff
path: root/network_server.c
AgeCommit message (Collapse)Author
2005-07-05(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statementscelestar
2005-06-21(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayercelestar
2005-05-17(svn r2339) - Fix: on a dedicated server, after the joining of a player, the ↵Darkvater
player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
2005-05-15(svn r2324) Introduce _cmd_text for passing strings with a command instead ↵tron
of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-14(svn r2309) - CodeChange: Change all _iconsole_color_whatever into ↵Darkvater
_icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
2005-05-14(svn r2308) - Fix: enforce server-only and/or offline commands by giving ↵Darkvater
them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security" - CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited.
2005-05-12(svn r2299) - Fix: add more verbose output to possible hack-attempt.Darkvater
- Btw, only 14 more commands are remaining, 88% done \o/
2005-05-02(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)matthijs
- Add: GetVehicleTrackdir() helper function. - Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed. - Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte". - Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
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-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-06(svn r1813) Declare functions implemented in strings.c in their own shiny ↵tron
new header (though i think some of these function don't belong into strings.c)
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-19(svn r1568) made an enum of train subtypes to make the code more readablebjarni
2005-01-16(svn r1546) -Fix: possible buffer-overflow in networktruelight
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 r1518) -Fix: server issue where some company names were wrongdarkvater
-Fix: Highscore troubles; accessing members of deleted window
2005-01-14(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)truelight
- Added green dot if company income is positive (else red dot) - Added lock icon if company is password protected
2005-01-10(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped ↵darkvater
year between 1920-2090 as wel as adding defines for it.
2005-01-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-05(svn r1389) -Add: [Network] Added packet protection. No longer a client or ↵truelight
server reads beyond the size of the packet -Fix: [Network] A server no longer crashes when a client sends an invalid DoCommand, but drops the client instead.
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'.
2005-01-01(svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could ↵truelight
talk).. 1 variable was still byte instead of uint16 (with a very big tnx to guru3!)
2004-12-29(svn r1297) Language fixes in the source.. (ln-)miham
2004-12-23(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 charstruelight
-Fix: You can enter some more chars in the chatbox
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 r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because truelight
company-index was sent, which should have been the client-index
2004-12-21(svn r1204) -Add: [Network] Added some cheaters-protection (money-cheat mostly)truelight
2004-12-20(svn r1186) -Fix: [Network] You can now join a company on a server where a ↵truelight
company went bankrupt, without joining the wrong company (or even failing to do so)
2004-12-20(svn r1185) -Fix: [Network] Send to team now results in correct company on ↵truelight
the sender
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 r1136) -Fix: [Network] Revision check on windows-servers is working nowtruelight
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 r1127) -Fix: [Network] Protect the network against an illegal ↵truelight
PLAYER_CTRL (in which a modified client could, for example, delete a random active company)
2004-12-15(svn r1106) -Add: [Network] Added master-server protocol and advertise to truelight
master-server option. No GUI yet, and disabled by default (it still is WIP)
2004-12-15(svn r1104) -Fix: nasty server crash buffer overflow problem when using ↵darkvater
release build. Big thanks to Truelight for the guidance in fixing this very annoying bug! -VS.NET now treats warnings as errors too in the release build.
2004-12-15(svn r1098) -Fix: server without revision build doesn't care about the ↵darkvater
client's version. Also moved all revision things where it belongs (network.c)
2004-12-15(svn r1096) -Fix: [Network] PlayAs is now registered correctlytruelight
-Codewise: [Network] Cleaned some code, removed some comment, changed some wrong comment
2004-12-15(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. ↵darkvater
Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-14(svn r1090) -Fix: Made the _openttd_revision variable global, and with that truelight
hopefully killed the windows-revision problem. If WITH_REV is defined, for both Windows as *nix system _openttd_revision is filled with normal info, else _openttd_revision is set to 'norev000' -Fix: Small possible server-crash
2004-12-13(svn r1054) -Fix: [Network] Redid revision 1024, only a bit more nice this time truelight
(revision length is back to 10, and checking is now done correctly)
2004-12-13(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows ↵truelight
(somehow windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-12(svn r1026) -Add: [Network] Added unique id, so in network, each client has an truelight
unique id (generated via md5)
2004-12-08(svn r982) -Fix: [Network] Because dparams are misused as a char, we had some truelight
endian-problems. To fix this, we are sending dparams byte by byte (instead of an uint32). Because of this dparam is sent not-uint32-endian-safe, but char-endian-safe. Too bad dparam can no longer be used for normal stuff (which is currently not the case) (tnx to Tron and Bjarni)
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight