|
rubidium
|
r5469:9c38e5ce3f50
|
18 years ago
|
|
|
|
Darkvater
|
r5067:7312b67c8cc3
|
18 years ago
|
|
(svn r7125) -Fix: Several errors/glitches related to multiplayer and bankrupcy, mainly such a thing happening to a server, and non updated company-information. Also fixes FS #393.
|
|
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)
|
|
bjarni
|
r4712:ace1fd623579
|
18 years ago
|
|
(svn r6624) -Feature: added ability to add refit commands to vehicle orders (can only be done in goto depot orders) Example: make a train transport iron ore from A to B, then it visits a depot and refits to steel It then transport steel back to A or near A if there is a factory and then it visits another depot to refit to iron ore again
This is controlled in the orders. If a goto depot order is lightlighted, then "Unload" changes to "Refit" Control click "Refit" removes the refit part of the order (as the tooltip says) The player will still pay the normal refit costs
Known issues: If a vehicle is not in a depot, then the refit window will fail to tell refitted cargo capacity Refit costs in the refit window can sometimes print 0 when it should not because the refit calculation is unaware that the vehicle will be refitted in between
Warning: autoreplace got a protection against replacing something so you get a new cargo type, but it can fail here. In the iron ore/steel example, it can see that the vehicle carries iron ore and the new one can be refitted to iron ore, then it will replace. It will not check to see that it's valid for steel as well. This is something to look into in the future
|
|
bjarni
|
r4662:d52885a4183b
|
18 years ago
|
|
(svn r6552) -Feature: [depot window] added a "autoreplace all vehicles in depot" button Like the "sell all" button, this one lacks a sprite as well. We will hopefully get one shortly
|
|
peter1138
|
r4661:f04708c9a3e8
|
18 years ago
|
|
|
|
bjarni
|
r4659:eac0d373b66a
|
18 years ago
|
|
(svn r6542) -Feature: [depot window] added a "sell all vehicles in depot" button It's right below the sell button (sell whole chain button for trains) It's still missing a sprite. That one will be added as soon as anybody draws something we can use To make room for this button, all depots except train depots now opens with an additional row and can't be resized shorter than that
|
|
bjarni
|
r4640:3c3015b68f36
|
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
|
|
tron
|
r4000:702cb45b8eab
|
18 years ago
|
|
|
|
peter1138
|
r3991:7ef299ccf733
|
18 years ago
|
|
|
|
peter1138
|
r3990:43bbedf6ead4
|
18 years ago
|
|
|
|
tron
|
r3491:10ed78e15d31
|
18 years ago
|
|
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
celestar
|
r3421:37cf03a40408
|
18 years ago
|
|
|
|
tron
|
r3182:bc5e088bccfb
|
19 years ago
|
|
|
|
tron
|
r2820:be63c0a603d5
|
19 years ago
|
|
|
|
tron
|
r2819:50c046aedc63
|
19 years ago
|
|
(svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command. As side effect this is a -Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains
|
|
tron
|
r2809:1971a9898e18
|
19 years ago
|
|
|
|
Darkvater
|
r2772:ce10dcbc4136
|
19 years ago
|
|
|
|
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
|
r2759:1f445db03d35
|
19 years ago
|
|
(svn r3304) -Add: allow AI-events to see the UID of the command -Fix: improved the logic of the UID code for AIs
|
|
Darkvater
|
r2749:e781205c9f97
|
19 years ago
|
|
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1. - Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
|
|
truelight
|
r2715:370d805582da
|
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
|
r2645:1d4b7d6bde1a
|
19 years ago
|
|
|
|
Darkvater
|
r2425:5e48f18c7157
|
19 years ago
|
|
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone - Add IsLocalPlayer() which substitutes _local_player == _current_player
|
|
tron
|
r2304:740be9a262e4
|
19 years ago
|
|
|
|
bjarni
|
r2244:0a45bb36cb48
|
19 years ago
|
|
(svn r2764) -Feature: Clone vehicles -This allows a player to clone an excisting vehicle of his own -[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed -Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf
|
|
tron
|
r2204:4670311b130c
|
19 years ago
|
|
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
tron
|
r1980:3622a0cd06c2
|
19 years ago
|
|
|
|
celestar
|
r1962:cc4c06e3f6b5
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
Darkvater
|
r1877:0c39eb68bf5c
|
19 years ago
|
|
|
|
Darkvater
|
r1838:f0c2a1025716
|
19 years ago
|
|
|
|
Darkvater
|
r1834:f466ce63a056
|
19 years ago
|
|
|
|
tron
|
r1820:335b057adac7
|
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
|
r1802:acc0f0bda113
|
19 years ago
|
|
|
|
Darkvater
|
r1796:4bbf4ea0805e
|
19 years ago
|
|
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands. - CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ() - Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
|
|
Darkvater
|
r1794:15e23047f8c1
|
19 years ago
|
|
(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.
|
|
Darkvater
|
r1786:f4dff9cc496a
|
19 years ago
|
|
(svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :) - CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before. - CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions. - CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt. - CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm. - CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
|
|
Darkvater
|
r1784:15b805156766
|
19 years ago
|
|
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115). - CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking. - CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count) - CodeChange: added IsTownIndex() in following of IsStationIndex(), etc. - Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now)
|
|
Darkvater
|
r1782:0fd68043a2ea
|
19 years ago
|
|
(svn r2286) - CodeChange: paramcheck the next batch of commands. - Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels
|
|
Darkvater
|
r1776:9e87ba31e2cb
|
19 years ago
|
|
|
|
tron
|
r1728:885d7dda7580
|
19 years ago
|
|
|
|
Darkvater
|
r1702:18d01f31218c
|
19 years ago
|
|
|
|
Darkvater
|
r1701:1eda2d647f63
|
19 years ago
|
|
|
|
Darkvater
|
r1696:2b916445e5b1
|
19 years ago
|
|
|
|
tron
|
r1691:1594a4bdcc21
|
19 years ago
|
|
|
|
pasky
|
r1623:5ab7cd13fe52
|
19 years ago
|
|
|
|
pasky
|
r1621:1a5975ca39af
|
19 years ago
|
|
|
|
tron
|
r1287:fc823391d719
|
20 years ago
|
|
|
|
darkvater
|
r1227:78cc646079bf
|
20 years ago
|
|
|
|
celestar
|
r1217:1f9b7fc00eb8
|
20 years ago
|
|
(svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on a single station. Thanks to: Truelight for the saveload code, Darkvater and Hackykid for network testing and Tron for proof-reading 1500 lines of diff.
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
tron
|
r959:bb0ac3e56084
|
20 years ago
|
|
|
|
tron
|
r926:fcf36609eb94
|
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.
|
|
darkvater
|
r889:ed9a6e2f24bb
|
20 years ago
|
|
|
|
bjarni
|
r842:96908cec3367
|
20 years ago
|
|
(svn r1323) Adding autoreplace feature This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
|
|
miham
|
r826:aad8f888bce1
|
20 years ago
|
|
|
|
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.
|
|
tron
|
r679:3a7b08cc8504
|
20 years ago
|
|
|
|
truelight
|
r652:0ad4507b89e2
|
20 years ago
|
|
(svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error resulted in infinite money (or assert)
|
|
truelight
|
r601:44f11989d19e
|
20 years ago
|
|
(svn r1025) -Fix: [Network] [ 1083687 ] Sending to depot caused desync because the new pathfinder uses a random, and the goto_depot uses the new pathfinder (if enabled)
|
|
truelight
|
r543:efdb197f91ad
|
20 years ago
|
|
|
|
tron
|
r534:46e9db8de483
|
20 years ago
|
|
(svn r901) Small step in the process to clean up the DPARAM mess: - reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
|
|
tron
|
r507:b1b0a0a3c313
|
20 years ago
|
|
(svn r815) Include strings.h only in the files which need it. This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
|
|
pasky
|
r467:89f22e0c8b19
|
20 years ago
|
|
|
|
darkvater
|
r395:9c19f4df13fc
|
20 years ago
|
|
|
|
truelight
|
r215:8ce1e7d0e69e
|
20 years ago
|
|
(svn r216) -Fix: paused network game now disallows all commands (instead of doing the commands all at once when the game unpauses)
|
|
darkvater
|
r213:7915f9302282
|
20 years ago
|
|
(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de) -Fix: Only server can pause in network, action disabled for clients -Fix: Direct Connect editbox can handle up to max ~35 characters
|
|
truelight
|
r193:6aa65dc5a4b4
|
20 years ago
|
|
|
|
darkvater
|
r147:612ed080a7f6
|
20 years ago
|
|
(svn r148) -Feature: Company HQ can now be moved somewhere else (cost 1% of company value). Water floods HQ. -Some layout fixes for command.c -Tileinfo debug window in console now shows Tile in decimal numbers
|
|
darkvater
|
r58:07e0339bc172
|
20 years ago
|
|
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|