|
rubidium
|
r5381:cb21ed637a29
|
18 years ago
|
|
|
|
Darkvater
|
r5380:f5fecf6b34ff
|
18 years ago
|
|
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to use in debug.h. grfmsg() is now used as a specific debug-function for grf.
|
|
Darkvater
|
r5296:9e88faa6d573
|
18 years ago
|
|
(svn r7449) -Codechange: Rename _path to _paths as it is technically more correct, but mainly because it interferes with OS/2 symbol in libc (psmedley)
|
|
Darkvater
|
r5170:49b50acf2141
|
18 years ago
|
|
|
|
Darkvater
|
r5034:dcc9e9cf8018
|
18 years ago
|
|
(svn r7076) -Codechange: Prefer includes instead of using extern. Move UpdateNetworkGameWindow declaration to network.h, and remove stale externs of NetworkPopulateCompanyInfo
|
|
Darkvater
|
r4945:e7f1f2433fec
|
18 years ago
|
|
|
|
Darkvater
|
r4944:46e541921fea
|
18 years ago
|
|
(svn r6932) -Codechange: Send server messages with format NETWORK_ACTION_SERVER_MESSAGE so it is general colour like the rest of the server messages. Spectators speak in grey.
|
|
Darkvater
|
r4912:d420151de4c6
|
18 years ago
|
|
(svn r6884) -Codechange: Add strict bounds checking in string formatting system. The last parameter should point to the end of the buffer (eg lastof(buf)) Courtesy of Tron.
|
|
Darkvater
|
r4906:df7262f32cc3
|
18 years ago
|
|
(svn r6876) -Codechange: Change the naming of _PLAYER in DESTTYPE_PLAYER/NETWORK_ACTION_CHAT_PLAYER to _COMPANY as that is whom you are really addressing to. Also change some variable names, 'desttype' is confusing if there is also a parameter 'dest', so rename it to just type.
|
|
Darkvater
|
r4880:f67f786d80f0
|
18 years ago
|
|
(svn r6816) -Codechange: Some coding style, variable localization, const correctness. -Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState
|
|
Darkvater
|
r4878:45022b37ea6a
|
18 years ago
|
|
(svn r6814) -Codechange: For network games ci->client_playas was always p->index + 1. To correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users.
|
|
Darkvater
|
r4861:3fd923d44458
|
18 years ago
|
|
(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a new player instead of a 0.
|
|
Darkvater
|
r4860:69fd1f6be832
|
18 years ago
|
|
(svn r6786) -Codechange: To join a new company CMD_PLAYER_CTRL is executed with so far a local spectator (awaiting assignment from server). Since a spectator cannot execute any commands, a local player is impersonated. Move this impersonation to the server side where CMD_PLAYER_CTRL is handled specially anyways.
|
|
Darkvater
|
r4850:7a78073de588
|
18 years ago
|
|
(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an actual playable player (< MAX_PLAYERS) or not.
|
|
Darkvater
|
r4848:23347d73ba8f
|
18 years ago
|
|
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
|
|
Darkvater
|
r4826:320930d1d77d
|
18 years ago
|
|
(svn r6750) -Codechange: Juggle around some header includes as they're only used when networking is enabled.
|
|
peter1138
|
r4717:a8eac2fae630
|
18 years ago
|
|
|
|
peter1138
|
r4716:03163a5883a7
|
18 years ago
|
|
|
|
peter1138
|
r4713:0463b8125a60
|
18 years ago
|
|
|
|
tron
|
r4428:bd332de32ae3
|
18 years ago
|
|
|
|
rubidium
|
r4329:7372b441f7d8
|
18 years ago
|
|
|
|
rubidium
|
r4326:7102aa7f4fb2
|
18 years ago
|
|
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
|
|
truelight
|
r4321:baa916e5dd65
|
18 years ago
|
|
|
|
truelight
|
r4300:642b2431578b
|
18 years ago
|
|
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds: - New optional landscape generator (TerraGenesis Perlin) - Load heightmaps (either BMP or PNG) - Progress dialog while generating worlds (no longer a 'hanging' screen) - New dialogs for NewGame, Create Scenario and Play Heightmap - Easier to configure your landscape - More things to configure (tree-placer, ..) - Speedup of world generation - New console command 'restart': restart the map EXACTLY as it was when you first started it (needs a game made after or with this commit) - New console command 'getseed': get the seed of your map and share it with others (of course only works with generated maps) - Many new, world generation related, things - Many internal cleanups and rewrites Many tnx to those people who helped making this: Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic) Many tnx to those who helped testing: Arnau, Bjarni, and tokai (alfabetic) And to all other people who helped testing and sending comments / bugs Stats: 673 lines changed, 3534 new lines, 79 new strings
|
|
rubidium
|
r4293:cbb984a32af5
|
18 years ago
|
|
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920 -Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
|
|
rubidium
|
r4286:835278152b0f
|
18 years ago
|
|
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year. -Cleanup: replace some magic '1920' values with BASE_YEAR.
|
|
rubidium
|
r4285:8d597bba823e
|
18 years ago
|
|
|
|
rubidium
|
r4261:8c2d0c75e37a
|
18 years ago
|
|
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
|
|
tron
|
r4077:259c4c4aacad
|
18 years ago
|
|
|
|
tron
|
r4026:0c2bb28a0aa4
|
18 years ago
|
|
|
|
Darkvater
|
r3623:f9efbebba36e
|
18 years ago
|
|
|
|
Darkvater
|
r3437:4edc35be7536
|
18 years ago
|
|
|
|
tron
|
r3419:b0136b621d82
|
18 years ago
|
|
|
|
peter1138
|
r3417:181dba636639
|
18 years ago
|
|
|
|
Darkvater
|
r3283:7bb3060bd0cd
|
18 years ago
|
|
|
|
Darkvater
|
r3121:d92bf3e0a6d9
|
18 years ago
|
|
(svn r3726) - [6/6] Finalize conversion, finally save the patches struct. - Remove the temporary synchronisation in during the map-transfer as this is no longer needed - The saved patches work just like the saved gameoptions. You have a _patches and a _patches_newgame struct. The _patches_newgame struct contains the values from the configuration file and thus the defaults for new games. When a new game is started or an older game is loaded, the default values are copied over to _patches to be used. When you load a game that has PATS saved, the default values are also loaded, but immediately overwritten by the values from the savegame. This ensures that player-based values are always taken from your personal preferences. - The current implementation also changes the default values if you change player-based settings in the game. For example changing window_snap_radius in a certain game will also change it for all next OpenTTD sessions. - The savegame version has been increased to 22. - The last 6 orso patches close the following reports: [ 1366446 ] different names for patches: all patch settings have the same name as in the configuration file and are reachable from the console. [ 1288024 ] Strange string on OTTD initial screen: configuration (and this includes patches) inputs are validated and clamped to their minimum/maximum values. [ 1423198 ] Make "Signals on Drive side" player, not server, based: this is only visual so current setting is to save it with the savegame but not synchronise in multiplayer. [ 1208070 ] Patches and New GRF options saved: apart from newgrf this is done
|
|
Darkvater
|
r3117:680d682e2556
|
18 years ago
|
|
(svn r3721) - [3/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. From part 3 on, OpenTTD is once again compilable. - Code has been added to the saveload code to honour the SLF_SAVE_NO and SLF_NETWORK_NO flags. SLF_NETWORK_NO just reads in the the bytestream and then discards it because that setting is not synchronised. For this the function SlSkipBytes() has been reinstated - SAVEGAME_VERSION has been changed from a constant ENUM to a constant integer. This was done for the configuration-code to be able to tell which version of a CONDVAR type to handle. As said before, because settings can be saved to the savegame, they will become conditional at some point. The configuration code always has to read the 'most recent' version. - GameOptions are saved through the new structure. It is fully compatible with any old savegame...however it is better. Because of the move to this new format we can instruct the loader to skip certain variables. Autosave for example isn't synchronised anymore (in the network). The same goes for currency and kilometers :D. That is the only functionality change this patch is supposed to have if I have written it correctly. - NOTE! Patches are still not saved so for Multiplayer to work network_client.c and network_server.c needed slight modifications.
|
|
tron
|
r2952:e97f823d2dbe
|
18 years ago
|
|
|
|
Darkvater
|
r2944:25bed4e89f1d
|
18 years ago
|
|
|
|
Darkvater
|
r2882:233e43ca5473
|
18 years ago
|
|
|
|
Darkvater
|
r2879:e5a04d608a3a
|
18 years ago
|
|
|
|
tron
|
r2817:7ad46034031f
|
19 years ago
|
|
|
|
bjarni
|
r2676:cfc81c07cc6a
|
19 years ago
|
|
(svn r3218) -Feature: Multiheaded train engines will now stay in the same train This means that any user attempt to remove a rear engine will tell the user to move the front engine instead This fixes the assert when moving multiheaded engines (introduced in r3144) Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs
-Codechange: train subtype is now a bitmask This allows fast access to info like if it is a wagon or engine and if it is in front and so on Note: savegame version bump
|
|
Darkvater
|
r2538:adfa87a580f2
|
19 years ago
|
|
(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
|
|
tron
|
r2373:a9ea9754767f
|
19 years ago
|
|
|
|
tron
|
r2304:740be9a262e4
|
19 years ago
|
|
|
|
ludde
|
r2235:5593fd36d118
|
19 years ago
|
|
|
|
tron
|
r2204:4670311b130c
|
19 years ago
|
|
|
|
tron
|
r2200:e7230ee22524
|
19 years ago
|
|
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2162:7c64e21f12f9
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
ludde
|
r2081:bff902e9d670
|
19 years ago
|
|
|
|
ludde
|
r2079:7352903b4b15
|
19 years ago
|
|
|
|
ludde
|
r2078:0300868e49d0
|
19 years ago
|
|
|
|
ludde
|
r2073:6be1dac46f17
|
19 years ago
|
|
(svn r2583) Move OS specific code out of misc.c Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
|
|
celestar
|
r2013:4c9ef5e17f2f
|
19 years ago
|
|
|
|
celestar
|
r1962:cc4c06e3f6b5
|
19 years ago
|
|
|
|
Darkvater
|
r1834:f466ce63a056
|
19 years ago
|
|
|
|
tron
|
r1820:335b057adac7
|
19 years ago
|
|
|
|
Darkvater
|
r1805:fc29191fa6bf
|
19 years ago
|
|
|
|
Darkvater
|
r1804:36be1e10ff8e
|
19 years ago
|
|
(svn r2308) - Fix: enforce server-only and/or offline commands by giving 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.
|
|
Darkvater
|
r1795:0736d50179cb
|
19 years ago
|
|
(svn r2299) - Fix: add more verbose output to possible hack-attempt. - Btw, only 14 more commands are remaining, 88% done \o/
|
|
matthijs
|
r1752:e339152fbe8d
|
19 years ago
|
|
(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx) - 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.
|
|
truelight
|
r1602:d98995321539
|
19 years ago
|
|
(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)
|
|
tron
|
r1317:3783af524858
|
19 years ago
|
|
|
|
tron
|
r1309:4100b4013e37
|
19 years ago
|
|
|
|
tron
|
r1299:07d5483b3f76
|
19 years ago
|
|
|
|
tron
|
r1093:18f56ef2d029
|
19 years ago
|
|
|
|
bjarni
|
r1067:2a7fac5cf25c
|
20 years ago
|
|
|
|
truelight
|
r1045:adc547006eac
|
20 years ago
|
|
|
|
truelight
|
r1026:26bcb9a458ed
|
20 years ago
|
|
(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!
|
|
darkvater
|
r1017:81e26141fac3
|
20 years ago
|
|
(svn r1518) -Fix: server issue where some company names were wrong -Fix: Highscore troubles; accessing members of deleted window
|
|
truelight
|
r1011:51e33a299a51
|
20 years ago
|
|
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz) - Added green dot if company income is positive (else red dot) - Added lock icon if company is password protected
|
|
darkvater
|
r970:a6f7afe85299
|
20 years ago
|
|
|
|
tron
|
r959:bb0ac3e56084
|
20 years ago
|
|
|
|
truelight
|
r903:61e47f5f59a3
|
20 years ago
|
|
(svn r1389) -Add: [Network] Added packet protection. No longer a client or 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.
|
|
truelight
|
r841:70f3f166b21e
|
20 years ago
|
|
(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'.
|
|
truelight
|
r839:37dbe0052c90
|
20 years ago
|
|
(svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could talk).. 1 variable was still byte instead of uint16 (with a very big tnx to guru3!)
|
|
miham
|
r826:aad8f888bce1
|
20 years ago
|
|
|
|
truelight
|
r793:fbbd2e21f0e9
|
20 years ago
|
|
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars -Fix: You can enter some more chars in the chatbox
|
|
truelight
|
r785:98d70fb62afe
|
20 years ago
|
|
(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)
|
|
truelight
|
r779:f9b7b8ed9585
|
20 years ago
|
|
(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because company-index was sent, which should have been the client-index
|
|
truelight
|
r748:de983ef3b5a0
|
20 years ago
|
|
|
|
truelight
|
r734:3e67b660d4ce
|
20 years ago
|
|
(svn r1186) -Fix: [Network] You can now join a company on a server where a company went bankrupt, without joining the wrong company (or even failing to do so)
|
|
truelight
|
r733:e0eb6ce89cf4
|
20 years ago
|
|
|
|
truelight
|
r722:28d5e9ff5875
|
20 years ago
|
|
|
|
truelight
|
r716:ae3edbaa50e7
|
20 years ago
|
|
(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.
|
|
truelight
|
r692:46901a530174
|
20 years ago
|
|
|
|
truelight
|
r690:f69eb4b03951
|
20 years ago
|
|
(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>'
|
|
truelight
|
r686:d5de6d4a9d3f
|
20 years ago
|
|
(svn r1127) -Fix: [Network] Protect the network against an illegal PLAYER_CTRL (in which a modified client could, for example, delete a random active company)
|
|
truelight
|
r668:c0236804c7cc
|
20 years ago
|
|
(svn r1106) -Add: [Network] Added master-server protocol and advertise to master-server option. No GUI yet, and disabled by default (it still is WIP)
|
|
darkvater
|
r667:d3b7e25bd6ba
|
20 years ago
|
|
(svn r1104) -Fix: nasty server crash buffer overflow problem when using 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.
|
|
darkvater
|
r663:a23aa2eec081
|
20 years ago
|
|
|
|
truelight
|
r662:d42c2c6d320b
|
20 years ago
|
|
(svn r1096) -Fix: [Network] PlayAs is now registered correctly -Codewise: [Network] Cleaned some code, removed some comment, changed some wrong comment
|
|
darkvater
|
r659:c4726c05e825
|
20 years ago
|
|
|
|
truelight
|
r656:44c757c66b53
|
20 years ago
|
|
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that 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
|
|
truelight
|
r624:c093137acaa3
|
20 years ago
|
|
(svn r1054) -Fix: [Network] Redid revision 1024, only a bit more nice this time (revision length is back to 10, and checking is now done correctly)
|
|
truelight
|
r618:80731d9a1c73
|
20 years ago
|
|
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow windows uses WITH_REV_HACK instead of WITH_REV :s)
|