|
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.
|
|
Darkvater
|
r3116:d87f48f9dc12
|
18 years ago
|
|
(svn r3720) - [2/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This second part gets rid of the old SettingDesc structures and updates them with the unified types. These new settings are heavily macro'd, which should make it easy to add/edit entries within sections. - This unified structure merges the settings in settings.c (concerned with the ini file) and the ones in setting_gui., having to do with the GUI. I tried to give sensible min and maximum values to _patches that were not present in the GUI I hope they work out all right. - All patch settings miss their callback function which have been temporarily reset to NULL - Fixed a really small typo in a Doxygen comment in settings.h - NOTE! When for example _patches are saved to the savegame (as are _gameopt_settings now), you cannot just blindly edit the struct. The same rules apply as to all the other SaveLoad structs. Eg correct CONDVAR's and only adding new entries at the end. - NOTE! The game is not compilable after this commit.
|
|
Darkvater
|
r3115:f1eba3dacb95
|
18 years ago
|
|
(svn r3719) - [1/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This first part rewrites the configuration section to use the SaveLoad VarType in general. - This unified structure consists of a SaveLoad type which stores all data relevant about the variable internals such as type, mem/filesize, address, version-control. The SettingDesc type is concerned more about the representation. Things like default value, string-name, minimum/maximum values, gui-behaviour etc. - The SaveLoad type has received a few flags controlling saving/loading. These are: SLF_SAVE_NO: the setting is not saved with the savegame, effectively making this setting player-based. Eg. it will NOT be overwritten when joining a network-game SLF_CONFIG_NO: the setting is not saved to the configuration file so you cannot overwrite it ingame. SLF_NETWORK_NO: the setting is not synchronised with the local settings when the game is loaded during network-play. Note that when SLF_SAVE_NO is set, SLF_NETWORK_NO is also set (which is logical), at least if the proper macros are used (in [2/4]). - NOTE! The game is not compilable after this commit.
|
|
Darkvater
|
r3112:954462cc5193
|
18 years ago
|
|
|
|
Darkvater
|
r3052:83896bbe1fa2
|
18 years ago
|
|
|
|
Darkvater
|
r3051:b3415e5305f9
|
18 years ago
|
|
|
|
Darkvater
|
r3042:c3fdf30e50a5
|
18 years ago
|
|
|
|
Darkvater
|
r3041:6dced19ef528
|
18 years ago
|
|
|
|
truelight
|
r3021:1511c3c181fa
|
18 years ago
|
|
|
|
truelight
|
r3020:e001ed9f33ba
|
18 years ago
|
|
|
|
truelight
|
r2991:0b6d1939050c
|
18 years ago
|
|
(svn r3567) -Fix: for once and for all, use 'unsigned long' if you want to cast something from int-like to void *... we fixed that not too long ago, and the code below this changed line clearly tells you do to that :p
|
|
Darkvater
|
r2975:9a9dc9472473
|
18 years ago
|
|
|
|
Darkvater
|
r2973:355b81ae0ad8
|
18 years ago
|
|
|
|
Darkvater
|
r2972:274147e2ba45
|
18 years ago
|
|
|
|
Darkvater
|
r2969:dae643a60ce0
|
18 years ago
|
|
|
|
peter1138
|
r2953:a59e10678800
|
18 years ago
|
|
|
|
tron
|
r2952:e97f823d2dbe
|
18 years ago
|
|
|
|
truelight
|
r2923:9acf8efb78dc
|
18 years ago
|
|
(svn r3479) -Fix: fixed warnings on 64bit platforms (anyway, most 64bit platforms) (tnx to qball and DarkVater for testing)
|
|
Darkvater
|
r2919:e65ed3a31f3b
|
18 years ago
|
|
|
|
Darkvater
|
r2916:04b29c805eb5
|
18 years ago
|
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron) - The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
|
|
tron
|
r2767:8b2ae5bad046
|
19 years ago
|
|
(svn r3313) Remove GPMI related changes from trunk Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
|
|
truelight
|
r2696:2c5f2d1dbfe3
|
19 years ago
|
|
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by Darkvater, so we can, in the future, save patch options in savegames without any problems.
|
|
truelight
|
r2687:bd59b891729e
|
19 years ago
|
|
|
|
truelight
|
r2682:86af293a8bfc
|
19 years ago
|
|
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch settings, off by defaut). An other step to AIScripts. WARNING: this is still highly experimental and has known bugs!
|
|
tron
|
r2680:1d715d8816c6
|
19 years ago
|
|
|
|
bjarni
|
r2672:0f51e63b0069
|
19 years ago
|
|
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones max_autosave_num in the config files sets the number of autosaves to keep (default 16) MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given this behaviour can still be overwritten by keep_all_autosave (openttd.config setting) Note: this is a requested behaviour for PDA ports, since they got limited storage space
|
|
peter1138
|
r2619:14b1b02e2787
|
19 years ago
|
|
|
|
peter1138
|
r2456:aad40f8d9c89
|
19 years ago
|
|
|
|
tron
|
r2450:cff286bc42f2
|
19 years ago
|
|
|
|
tron
|
r2398:60efe212582c
|
19 years ago
|
|
|
|
tron
|
r2309:0d7cc439199d
|
19 years ago
|
|
(svn r2833) Remove saving of sprite cache data: the benefits are questionable, it's error prone, undocumented and hasn't been widely used for ages, if ever
|
|
tron
|
r2307:c00be2ee9101
|
19 years ago
|
|
|
|
tron
|
r2306:83bf5acd9e01
|
19 years ago
|
|
|
|
tron
|
r2291:d8cfcbdcaa29
|
19 years ago
|
|
|
|
tron
|
r2191:25c222619da7
|
19 years ago
|
|
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2153:b45e3461c6c4
|
19 years ago
|
|
|
|
ludde
|
r2125:87ebf6378cb6
|
19 years ago
|
|
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra. - Benchmark shows that NTP is now around 10x faster than NPF. - Made IsTunnelTile macro to determine if a tile is a tunnel. - Added some useful debugging functions for making tiles red / getting accurate timestamps. - Remove old depot finding algorithm. - Disable warning for signed/unsigned comparisons.
|
|
tron
|
r2123:d9c5094dcb09
|
19 years ago
|
|
|
|
tron
|
r2121:96bd03691149
|
19 years ago
|
|
|
|
ludde
|
r2044:17a81bf31939
|
19 years ago
|
|
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder. - Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks.
|
|
hackykid
|
r2008:5e435ad4c8e4
|
19 years ago
|
|
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
|
|
matthijs
|
r2006:bc0d47d1f3f0
|
19 years ago
|
|
(svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail(). - Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails. - Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
|
|
matthijs
|
r1941:5f5008bdaa63
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
matthijs
|
r1777:6d7bf202b4ef
|
19 years ago
|
|
(svn r2281) - Fix: [ 1115204 ] [NPF] When pressing the goto depot button, trains will now also look behind it if there is no depot in front. If so, the train reverses immediately. This also work anywhere, not just at stations. - Add: [NPF] Reversing inside of depots now has a penalty. It also applies to trains only, other vehicles shouldn't bother reversing. - Fix: [NPF] When checking whether to reverse a train, the trackdir of the first loc was used instead of the last vehicle as a starting node for pathfindig. This might have caused some trains not reversing when they should have (or vice versa). Typo introduced when converting to GetVehicleTrackdir() in r2256. - CodeChange: [NPF] Removed duplicate code by letting NPFRouteTjoStationOrTile() call NPFRouteToStationOrTileTwoWay(). - Add: [NPF] NPFRouteToDepotBreadthFirstTwoWay() to find a depot while also looking backwards. - Add: It is now possibly to specify a path cost for aystar starting nodes.
|
|
matthijs
|
r1751:242d46045f3b
|
19 years ago
|
|
(svn r2255) - Fix: [ 9680363 ] [NPF] Broken buoy handling for ships Buoys will now try to get within 3 tiles of a buoy instead of a the actual buoy tile. This gets ships to got past buoys in a realistic (IMO) way instead of barging right through them. - Fix: [NPF] Trains get curves penalties sometimes even when the track is straight. - Add: [NPF] Ships get a penalty for going over buoys now, so they will try to go around. - Add: [NPF] Ships get a penalty for curves too, yay for straight lines. - Add: TrackdirToTrack(), TrackToTrackdir(), IsDiagonalTrack() and IsDiagonalTrackdir() helper functions. - Add: IsBuoy() and IsBuoyTile() helper functions. - Codechange: Rearranged part of the control flow of ShipController(), removing a goto.
|
|
Darkvater
|
r1727:24fc06d14c4b
|
19 years ago
|
|
|
|
Darkvater
|
r1723:b5ddf5f28512
|
19 years ago
|
|
|
|
matthijs
|
r1700:dc59dfec1cb8
|
19 years ago
|
|
|
|
Darkvater
|
r1688:04d84999dd62
|
19 years ago
|
|
(svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930]. - I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type. - Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
|
|
matthijs
|
r1643:7db102528a2c
|
19 years ago
|
|
|
|
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)
|
|
pasky
|
r1584:b5fd953db0ea
|
19 years ago
|
|
|
|
Darkvater
|
r1500:e5979abe9361
|
19 years ago
|
|
(svn r2004) - Fix: [ 1149487 ] Autosave ignoring settings - Fix: [ 1153926 ] All my settings in vain... IGNORED! - Change: I hope I got it all right. Pressing 'New Game' (either choosing random or a preset scenario) and 'Create Scenario' will start a new game with the settings and difficulty in the intro menu. Using 'Load Game' and 'Play Scenario' will take the values from the savegame/scenario itself.
|
|
matthijs
|
r1460:c58279a407af
|
19 years ago
|
|
|
|
matthijs
|
r1459:5ad84cecccbb
|
19 years ago
|
|
(svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path. - Add: [NPF] NPFGetFlag() and NPFSetFlag() to wrap NPF node flag handling
|
|
pasky
|
r1422:f1d1da267604
|
19 years ago
|
|
(svn r1926) Codechange: Renamed some of the predefined town names arrays for consistent naming. - name_spanish_1, name_french_1, name_czech_1, name_romanian_1, name_finnish_1 and name_german_hardcoded were renamed to *_real. - name_slovakish_1 was renamed to name_slovak_real. - name_finnish_2[ab] was renamed to name_finnish[12]. - Added comment near the town_names setting definition about the "Slovakish" pigginess.
|
|
tron
|
r1329:88de95f6e7d3
|
19 years ago
|
|
|
|
tron
|
r1317:3783af524858
|
19 years ago
|
|
|
|
truelight
|
r1282:086fc2f1272e
|
19 years ago
|
|
(svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000 trains in one game (instead of the 240 which was the current value). Default max allowed vehicles per type is changed: Trains: 500 (old 80) Road: 500 (old 80) Ships: 200 (old 40) Aicraft: 300 (old 50) (Tnx to Celestar and Darkvater for checking the patch)
|
|
truelight
|
r1271:028e834ec248
|
19 years ago
|
|
(svn r1775) -Fix: The NPF patch setting was not synced in network. REMINDER FOR ALL DEVELOPERS: We do have 2 patch-setting-arrays: player-based, server-based. PLEASE put your new patch setting in the right one... thank you :)
|
|
truelight
|
r1258:ebea6f3bde8d
|
19 years ago
|
|
(svn r1762) -Codechange: renamed 'MemoryPool' to 'SettingsMemoryPool' (we need MemoryPool for general-dynamic-arrays)
|
|
matthijs
|
r1247:d01094dbcdcc
|
19 years ago
|
|
(svn r1751) - Feature: New PathFinder (NPF). - Supports trains, road vehicles and ships. - Uses A* pathfinding (same codebase as the new ai). - Currently unlimited search depth, so might perform badly on large maps/networks (especially ships). - Will always find a route if there is one. - Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values). - With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again. - Feature: Disabling 90 degree turns for trains and ships. - Requires NPF to be enabled. - Ships and trains can no longer make weird 90 degree turns on tile borders. - Codechange: Removed table/directions.h. - table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location? - Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault. - Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64. - Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED. - Codechange: Moved TileAddWrap() to map.[ch] - Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). - Codechange: Moved IsTrainStationTile() to station.h - Add: IsRoadStationTile() and GetRoadStationDir().
|
|
tron
|
r1218:b56319aa5250
|
19 years ago
|
|
|
|
tron
|
r1104:a3b726a10097
|
19 years ago
|
|
|
|
tron
|
r1093:18f56ef2d029
|
19 years ago
|
|
|
|
darkvater
|
r1037:e6afad772171
|
20 years ago
|
|
|
|
darkvater
|
r1030:35b8947e620d
|
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!
|
|
tron
|
r1010:9090bb49db8d
|
20 years ago
|
|
|
|
darkvater
|
r998:60ce1309b99c
|
20 years ago
|
|
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game -Fix: fixed some compiler warnings -Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
|
|
miham
|
r960:9cf3efcb26e9
|
20 years ago
|
|
|
|
celestar
|
r951:c9f2409794fc
|
20 years ago
|
|
|
|
darkvater
|
r930:5f452407167a
|
20 years ago
|
|
|
|
dominik
|
r898:ae9a3edf52a3
|
20 years ago
|
|
|
|
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
|
r835:d8d661a0d2ad
|
20 years ago
|
|
(svn r1312) -Add: Patch which is on by default: population in label of the town -Fix: Expand town is a bit more agressive -Fix: Fixed a bug in growing algorithm
|
|
truelight
|
r812:2f2818d6d63d
|
20 years ago
|
|
(svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch Note: this is the first commit that breaks compatibility with 0.3.5! -Fix: Bufferoverflow with autorenew_money. It is now a 32-bit integer.
|
|
dominik
|
r794:1221b0920dc0
|
20 years ago
|
|
|
|
dominik
|
r788:364eb3a50ec5
|
20 years ago
|
|
|
|
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)
|
|
darkvater
|
r774:3e6bfb2226bd
|
20 years ago
|
|
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled. -Fix: removed some warnings -Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
|
|
truelight
|
r764:b278ee9c19c0
|
20 years ago
|
|
(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers) -Fix: UDPListener was launched wrongly -Fix: Not all sockets have broadcast enabled anymore -Fix: Server-advertise retries 3 times before giving up
|
|
dominik
|
r759:e05ead977366
|
20 years ago
|
|
|
|
dominik
|
r738:f65fde6f029e
|
20 years ago
|
|
|
|
dominik
|
r710:0724049e7b44
|
20 years ago
|
|
|
|
dominik
|
r705:96c068ae5357
|
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
|
r675:6e8313fa7536
|
20 years ago
|
|
(svn r1113) -Add: [Network] Added the GUI part for server advertising. When you go to Start Server, you can select by connection: 'Internet (advertise)'. When selected, the server will announce itself to the server-list at http://servers.openttd.org (when finished)
|
|
dominik
|
r643:07192b544a95
|
20 years ago
|
|
(svn r1076) Feature: Patch setting to autosave the game on exit If you set autosave_on_exit = true in openttd.cfg, your game will be saved as exit.sav in the autosave folder and you won't be asked if you want to quit the game any more.
|
|
dominik
|
r641:32cee30ab73a
|
20 years ago
|
|
(svn r1074) Fix: server_bind_ip was set to 255.255.255.255 by default The correct default value is 0.0.0.0. If you are experiencing problems with connecting to your server you'll have to change the value of server_bind_ip to 0.0.0.0 in openttd.cfg
|
|
truelight
|
r629:806084a01de5
|
20 years ago
|
|
(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)
|
|
truelight
|
r627:f80a6630f065
|
20 years ago
|
|
(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)
|
|
truelight
|
r602:2cc515e0a01e
|
20 years ago
|
|
(svn r1026) -Add: [Network] Added unique id, so in network, each client has an unique id (generated via md5)
|
|
Celestar
|
r568:3ee180395698
|
20 years ago
|
|
|
|
truelight
|
r545:7c13b5eca49e
|
20 years ago
|
|
(svn r945) -Fix: [Network] Terraform callback went wrong in merge -Fix: Some settings went wrong in merge
|
|
truelight
|
r543:efdb197f91ad
|
20 years ago
|
|
|
|
tron
|
r523:5b235fb799fd
|
20 years ago
|
|
(svn r853) -Feature: Implement improved vehicle loading algorithm It's not FIFO loading, but does the right thing in the common case: If a vehicle is empty and another vehicle is already loading the same cargo at this station then the vehicle waits.
This is an reworked version of [ 1072211 ] submitted by Hackykid, thanks!
|