truebrain
fe90077681
(svn r15120) -Fix: more mem-leak fixes
2009-01-17 14:54:24 +00:00
frosch
2cc217cabf
(svn r15119) -Fix: several issues with result 0x4 (standard production change of primary industries) of callbacks 0x29 and 0x35.
2009-01-17 14:49:31 +00:00
truebrain
7eae652302
(svn r15118) -Fix: fix a minor mem-leak
2009-01-17 14:45:44 +00:00
belugas
6b25bc0e0c
(svn r15117) -Codechange: enlarge a few text boxes in the Create Scenario window, allowing them to be more visible.
2009-01-17 03:05:35 +00:00
smatz
e77462a866
(svn r15116) -Fix (r1): company money weren't correctly converted from TTD(P) savegames
2009-01-16 21:50:55 +00:00
belugas
c9fab1c314
(svn r15115) -Documentation: Add some widget enums to the widget array definition (Terkhen).
2009-01-16 21:25:59 +00:00
peter1138
f8d65b4865
(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.
2009-01-16 19:53:52 +00:00
rubidium
102cc11ee9
(svn r15113) -Codechange: unify calling ScanForTarFiles when determining the paths.
2009-01-16 16:32:48 +00:00
rubidium
c333790dd8
(svn r15112) -Fix (r15108): transform should include algorithm as that's where it's from. Furthermore not including it gives compile errors for some
2009-01-16 16:29:07 +00:00
rubidium
2adcaa576f
(svn r15111) -Fix: when scanning a path and saying it should ignore tars, it didn't do so
2009-01-16 16:14:01 +00:00
rubidium
3db8b544ba
(svn r15110) -Fix: reading the shortname of graphicssets always missed the first character.
2009-01-16 16:12:12 +00:00
truebrain
8510afe233
(svn r15109) -Add [NoAI]: add AITile::LevelTiles (Yexo)
2009-01-16 15:01:54 +00:00
truebrain
a43cd3456b
(svn r15108) -Fix: TarAddLink didn't lowercase strings, breaking tar-loading when using uppercase files
2009-01-16 14:56:33 +00:00
truebrain
7f851eaeb9
(svn r15107) -Fix [NoAI]: don't use so much explicit string copies if it is not required
2009-01-16 14:56:13 +00:00
rubidium
95fa33157f
(svn r15106) -Fix [NoAI]: printf-ing of garbage.
2009-01-16 14:37:53 +00:00
smatz
4a53ba1886
(svn r15105) -Fix (r15104): signed/unsigned warning
2009-01-16 14:02:40 +00:00
rubidium
b1a33a494f
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
2009-01-16 12:59:47 +00:00
frosch
cdd3676478
(svn r15103) -Change: Keep industry variables 8E and 8F in sync with 93, when changing production using results 0D, 0E or 0F of callback 29 or 35.
2009-01-16 11:32:35 +00:00
truebrain
b8d2049bc4
(svn r15102) -Fix (r15101): somehow makedepend fucked up (patch by Yexo)
2009-01-16 00:27:22 +00:00
truebrain
94dd36d1ec
(svn r15101) -Change [API CHANGE]: more consistant naming for consts:
...
INVALID_TOWN_RATING -> TOWN_RATING_INVALID
INVALID_TRANSPORT -> TRANSPORT_INVALID
INVALID_ORDER -> ORDER_INVALID
INVALID_GROUP -> GROUP_INVALID
GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP
VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/..
MY_COMPANY -> COMPANY_SELF
FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID
2009-01-16 00:05:26 +00:00
truebrain
5119132dda
(svn r15100) -Add [NoAI]: introduce TILE_INVALID as const
2009-01-15 21:20:12 +00:00
truebrain
e9437c2b2b
(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
2009-01-15 20:59:22 +00:00
translators
555037b623
(svn r15097) -Update: WebTranslator2 update to 2009-01-15 18:47:56
...
brazilian_portuguese - 8 fixed by tucalipe (8)
danish - 4 fixed, 1 changed by beruic (5)
dutch - 6 fixed by habell (6)
english_US - 76 fixed by WhiteRabbit (76)
french - 7 fixed, 1 changed by glx (8)
greek - 9 fixed, 2 changed by doukas (11)
indonesian - 13 changed by fanioz (13)
norwegian_nynorsk - 24 fixed by runarlu (24)
polish - 5 fixed by xaxa (5)
2009-01-15 18:48:09 +00:00
truebrain
6cfb9a24e0
(svn r15096) -Fix [NoAI]: free memory when no longer needed
...
-Fix [NoAI]: when there are multiple versions of one AI, never randonly pick an older one, but always the latest
2009-01-15 18:24:49 +00:00
truebrain
ef62688522
(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs
...
-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
2009-01-15 18:15:12 +00:00
peter1138
a039ec0d21
(svn r15094) -Feature: Add support for IP range bans using CIDR notation.
2009-01-15 18:11:26 +00:00
truebrain
3e7c2bbacc
(svn r15093) -Fix [NoAI]: check if a tile is valid before using IsTileType (bug found by Zuu, patch by Yexo)
2009-01-15 17:00:47 +00:00
truebrain
103cd2a5ed
(svn r15091) -Add [NoAI] [API CHANGE]: introduce GetCategory() as a requirement for every library.nut, to indicate in which category it belongs. Currently the directory indicates the category, but this doesn't allow planned future additions
2009-01-15 15:56:10 +00:00
truebrain
d62a85f2ce
(svn r15090) -Add [NoAI] [API CHANGE]: info.nut/library.nut now requires a function GetShortName(), which should return a 4 (four) character string, unique throughout the world. This id is simular to a GRFid.
2009-01-15 14:37:44 +00:00
peter1138
1ee0c4caf4
(svn r15088) -Fix [FS#2536]: Resize company list in town authority window if required.
2009-01-15 12:50:59 +00:00
peter1138
4f4408f37e
(svn r15087) -Codechange: Less hardcoding of y positions in town authority window.
2009-01-15 12:36:24 +00:00
truebrain
ae29148565
(svn r15086) -Fix: start AIs after 6 months on hard, 12 months on medium, and 24 months on easy. The current values were a bit .. too long waiting period ;)
2009-01-14 21:32:06 +00:00
peter1138
7d70f0cd14
(svn r15085) -Fix (r14164): Clearing a settings group did not delete old items nor reset the last_item pointer, causing lists to not be saved unless they started blank.
2009-01-14 20:23:45 +00:00
truebrain
3cd6bf0ead
(svn r15084) -Fix [NoAI] (r15027): by removing the threads for NoAIs, it is no longer possible to use DoCommand (even indirect) in AIAbstractList::Valuator().
2009-01-14 18:25:48 +00:00
truebrain
a483ddf7ae
(svn r15083) -Add [NoAI]: added a console command to reload an AI (requested by Zuu)
2009-01-14 15:39:05 +00:00
rubidium
ea5457d831
(svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir.
2009-01-14 15:20:06 +00:00
smatz
ff4fcdb03c
(svn r15081) -Fix (r15080): of course it's about southern border, not northern...
2009-01-14 13:40:11 +00:00
smatz
66213d8e4b
(svn r15080) -Fix: terraforming at the northern border failed without any visible reason
2009-01-14 13:11:39 +00:00
rubidium
e18c24cdb5
(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.
2009-01-14 12:50:13 +00:00
truebrain
6fe54a2d1a
(svn r15078) -Fix [NoAI]: AIMap didn't filter its input (Yexo)
2009-01-13 23:50:12 +00:00
smatz
e00cf92f47
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-13 22:58:03 +00:00
truebrain
cb221d9996
(svn r15076) -Fix: a start_date of 0 would never start an AI .. so don't allow it (Yexo)
2009-01-13 22:36:44 +00:00
truebrain
89da8820e5
(svn r15075) -Fix: store _next_competitor_start as uint32, else it might overflow for values > 2.4 years
2009-01-13 21:32:47 +00:00
truebrain
2d3fc8141d
(svn r15074) -Fix: make Rubidium happy
2009-01-13 21:11:02 +00:00
peter1138
792d1bd883
(svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations.
2009-01-13 20:43:53 +00:00
frosch
dab9de2e61
(svn r15072) -Fix (r14919): Distant-join search-area was determined inconsistently.
2009-01-13 19:55:27 +00:00
frosch
b8963032e7
(svn r15071) -Fix (r14919): When drag&dropping rail-stations with X orientation, distant-join scanned a wrong area for stations.
2009-01-13 19:48:33 +00:00
translators
10f7525277
(svn r15070) -Update: WebTranslator2 update to 2009-01-13 18:42:22
...
brazilian_portuguese - 16 fixed by tucalipe (16)
catalan - 8 fixed by arnaullv (8)
croatian - 24 fixed by tifached (24)
czech - 8 fixed by Hadez (8)
dutch - 2 fixed by Excel20 (2)
finnish - 7 fixed, 1 changed by UltimateSephiroth (8)
hungarian - 7 fixed, 2 changed by IPG (2), alyr (7)
indonesian - 23 fixed, 2 changed by fanioz (25)
italian - 7 fixed, 1 changed by lorenzodv (8)
japanese - 59 fixed by ickoonite (59)
polish - 3 fixed by xaxa (3)
romanian - 23 fixed, 1 changed by kkmic (24)
slovak - 59 fixed by James (59)
spanish - 58 fixed by Dominus (30), eusebio (28)
turkish - 7 fixed, 1 changed by Emin (8)
2009-01-13 18:42:41 +00:00
frosch
9ca1e15f51
(svn r15069) -Change (r14919): Make distant-join less intelligent but more transparent to the user by always showing the selection window, even if there is only one option to choose from. (PhilSophus)
2009-01-13 18:41:56 +00:00
truebrain
2e30efb530
(svn r15068) -Add [NoAI]: introducing 'step_size' for AIConfig, for future AIGUI (Yexo)
2009-01-13 18:26:58 +00:00
peter1138
02bda12599
(svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway.
2009-01-13 18:18:53 +00:00
truebrain
e1f64922c5
(svn r15066) -Change: start_date is now in days, instead of in months (Yexo)
2009-01-13 18:04:12 +00:00
frosch
4780c73224
(svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus)
2009-01-13 17:28:11 +00:00
truebrain
890074a03e
(svn r15063) -Fix [NoAI]: starting companies now listen correctly to 'start_date' set to the AI slot (Yexo)
...
-Add [NoAI]: add a 'deviation' value for all settings, giving a slight deviation of the value of a setting (Yexo)
2009-01-13 16:53:03 +00:00
smatz
0a357c0ac1
(svn r15062) -Fix: further forgotten svn properties and headers
2009-01-13 16:30:24 +00:00
smatz
7cea618fcc
(svn r15061) -Fix (r15027): three files were missing the Id header
2009-01-13 15:49:32 +00:00
truebrain
c3249d599f
(svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next
2009-01-13 14:00:26 +00:00
truebrain
405239758e
(svn r15058) -Fix [NoAI]: when using start_ai in console, start the next configured one, not a random (Yexo)
2009-01-13 13:26:20 +00:00
truebrain
07f2afa635
(svn r15057) -Fix [NoAI]: clamp the values of a setting between the ones allowed by info.nut
2009-01-13 13:09:49 +00:00
truebrain
1bd2867715
(svn r15056) -Add [NoAI]: when starting a game, give a random value to the setting marked with AICONFIG_RANDOM (Yexo)
2009-01-13 12:52:09 +00:00
truebrain
e6543c2776
(svn r15055) -Add [NoAI]: add the AICONFIG_RANDOM and AICONFIG_BOOLEAN consts (Yexo)
2009-01-13 12:51:46 +00:00
rubidium
04ea0b9316
(svn r15053) -Cleanup: remove some unneeded includes
2009-01-13 11:53:33 +00:00
rubidium
fc696a7e29
(svn r15052) -Codechange: move the implementation of Send_CompanyInformation to network_server.cpp as the server's the one that sends that information
2009-01-13 11:46:29 +00:00
peter1138
f0e6eeb57d
(svn r15051) -Fix: Only allow creation or deletion of an AI when in a game.
2009-01-13 11:06:21 +00:00
peter1138
56b91b582e
(svn r15050) -Codechange: Use one absolute SpriteID with offsets to draw track fences.
2009-01-13 08:39:25 +00:00
glx
37500a13f6
(svn r15049) -Fix (r15045): MSVC performance warning
2009-01-13 02:03:03 +00:00
truebrain
0adcb5bc2f
(svn r15048) -Fix (r15047): the one time you don't compile a patch of someone, it contains a warning .. ;)
2009-01-13 01:52:32 +00:00
truebrain
c9d20bfd47
(svn r15047) -Fix [NoAI]: AICONFIG_BOOLEAN (in AddSetting) doesn't require (or even allow) a min/max setting .. it is always 0/1 (Yexo)
2009-01-13 01:51:39 +00:00
truebrain
e06e372529
(svn r15046) -Fix (r15045): in case CanLoadFromRevision does not exist, only allow savedata from the same version as we are now
2009-01-13 01:50:51 +00:00
truebrain
bcbbf2c366
(svn r15045) -Add [NoAI API CHANGE]: in info.nut you can now have (optional) a CanLoadFromVersion(version), which should return true/false, to indicate if you can load a savegame made with your AI of version 'version'
...
-Add [NoAI API CHANGE]: in main.nut the Load() function now should be Load(version, data), where 'version' is the version of your AI which made the savegame
-Codechange [NoAI]: various of function renames to make things more sane
-Add [NoAI]: push the 'version' of the AI through various of layers
-Codechange [NoAI]: various of code cleanups
-Add [NoAI]: store the version of the AI in the savegame too
2009-01-13 01:46:46 +00:00
truebrain
e6883c5cc7
(svn r15044) -Add [NoAI]: AIConfig::GetVersion(), to get the version of the current AI
2009-01-13 00:10:58 +00:00
truebrain
2462e8dc9d
(svn r15043) -Fix: just try to change the AI, and see if that succeeded, instead of hoping you understand the internals of a change AI routine (to avoid possible mistakes in the future)
2009-01-13 00:08:38 +00:00
truebrain
695765fde7
(svn r15042) -Fix (r15027): don't leak memory in AIInfo (Yexo)
2009-01-12 21:40:00 +00:00
truebrain
1c3b7ba863
(svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out)
2009-01-12 21:39:45 +00:00
smatz
26e5ccb60d
(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack
2009-01-12 19:49:23 +00:00
truebrain
2c89bfbc81
(svn r15038) -Fix (r15027): loading older savegames failed
2009-01-12 19:31:00 +00:00
smatz
4a5044e61a
(svn r15037) -Cleanup: remove unused file src/table/ai_rail.h
2009-01-12 19:26:21 +00:00
truebrain
c666cf5a49
(svn r15036) -Fix: use the same value for 'random' through-out the code for PlantTree
2009-01-12 18:15:18 +00:00
truebrain
b7b29d96de
(svn r15033) -Fix (r15027): silent a warning when compiling without network
2009-01-12 17:40:13 +00:00
truebrain
e2d2946007
(svn r15032) -Fix (r15030): Rubidium was too script-happy ;)
2009-01-12 17:33:10 +00:00
smatz
16dfe58e4d
(svn r15031) -Fix (r15027): merge reverted r15026, so do it once again
2009-01-12 17:31:43 +00:00
rubidium
eb22e265f2
(svn r15030) -Update (r15029): and from the other languages too (yay for WT2)
2009-01-12 17:25:38 +00:00
rubidium
221df9bb19
(svn r15029) -Cleanup (r15027): remove strings that aren't needed anymore
2009-01-12 17:20:16 +00:00
truebrain
a3dd7506d3
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
smatz
9294f96168
(svn r15026) -Codechange: use SpriteTypeByte instead of SpriteType in the SpriteCache struct in order to make it smaller
2009-01-12 16:53:11 +00:00
frosch
eb6dc2b8ae
(svn r15019) -Fix (r14919): Close station selection window, when disabling distant-join setting. (PhilSophus)
2009-01-12 15:44:37 +00:00
frosch
9a80c0b1de
(svn r15015) -Fix (r14919): Distant-join always failed for docks. Based on patch by PhilSophus.
2009-01-12 15:29:40 +00:00
frosch
508fc29221
(svn r15014) -Codechange: Add a helper function to get the needed DC_xxx flags from the result of GetCommandFlags().
2009-01-12 15:27:39 +00:00
truebrain
809bf8fb43
(svn r15011) -Documentation: Nuclear, not Nucleair
2009-01-12 15:21:59 +00:00
frosch
2d4c9cda72
(svn r15009) -Fix [FS#2528]: No need to extent the reserved path when the vehicle is still loading.
2009-01-12 14:56:31 +00:00
glx
e99335c085
(svn r15008) -Revert (r12706): remove fibers
2009-01-12 14:45:20 +00:00
truebrain
53ca48efe2
(svn r15006) -Codechange: throw a real instance of a class, instead of '0' (which can also be a throw from within a thread for what ever reason)
2009-01-12 14:31:49 +00:00
rubidium
7947e78daa
(svn r14999) -Change [FS#2523]: move service at helipad to the servicing options
2009-01-12 00:06:22 +00:00
smatz
1287fddd8f
(svn r14998) -Codechange: warn once about misuse of each sprite, not once about misuse of any sprite
2009-01-11 23:49:51 +00:00
smatz
720eedf7c5
(svn r14997) -Fix [FS#2524](r14223): when handling invalid sprites, entry in spritecache data could lose its parent
2009-01-11 22:28:30 +00:00
translators
a9e5f9fbe9
(svn r14996) -Update: WebTranslator2 update to 2009-01-11 18:44:49
...
afrikaans - 22 fixed by burgerd (22)
arabic_egypt - 18 fixed by khaloofah (18)
catalan - 16 fixed by arnaullv (16)
czech - 12 fixed by Hadez (12)
dutch - 13 fixed by Excel20 (13)
finnish - 1 fixed by UltimateSephiroth (1)
french - 1 fixed, 1 changed by glx (2)
greek - 8 fixed by paolitotas (8)
hungarian - 16 fixed by alyr (16)
italian - 16 fixed, 8 changed by lorenzodv (24)
lithuanian - 21 fixed by Enternald (21)
polish - 11 fixed by xaxa (11)
slovenian - 41 fixed by Necrolyte (41)
turkish - 22 fixed by Emin (22)
2009-01-11 18:45:12 +00:00
frosch
5c78d35078
(svn r14994) -Fix [FS#Aali]: Better handling of OT_LOADING and OT_LEAVESTATION in ChooseTrainTrack.
2009-01-11 16:33:03 +00:00
frosch
a6fc079c52
(svn r14993) -Fix (r14957, r14975): Do not reverse the train with OT_LEAVESTATION as that breaks PBS prediction.
2009-01-11 15:39:49 +00:00
frosch
f5cff71284
(svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code.
2009-01-11 14:26:11 +00:00
frosch
e8796a148f
(svn r14991) -Fix: Command-flags is an uint32.
2009-01-11 14:11:06 +00:00