Commit Graph

144 Commits (eca73a810c19ed5cfb3f24cb5560d0735e19ea00)

Author SHA1 Message Date
truebrain 229e572663 (svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen) 13 years ago
rubidium 65d0d19b16 (svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick 13 years ago
yexo 02913f40b0 (svn r23117) -Fix: [NoAI] calling require() to include a file gave you 100.000 opcodes for free 13 years ago
yexo 0dc20c7d5f (svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth) 13 years ago
rubidium 989bc411ef (svn r22580) -Change: make 'make regression' return an error when it fails 13 years ago
rubidium 22afd83964 (svn r22083) -Change: trunk is heading towards 1.2 now 14 years ago
planetmaker 4828ed94ba (svn r22005) -Fix (r21993): Update regression tests as well 14 years ago
rubidium 09601fe35d (svn r21964) -Fix (r21959): regression failed 14 years ago
smatz 3057a26fd5 (svn r21953) -Remove [FS#4456]: the non-uniform stations setting. Support for uniform stations has been broken for over a year 14 years ago
rubidium 1d47e0a4d2 (svn r21674) -Fix: for Mac OS X %p seems to add "x0", so filter that out for the regression test comparison 14 years ago
yexo 5b25e620dd (svn r21663) -Add: [NoAI]: AIRail::GetName() to get the name of a railtype 14 years ago
yexo 399a9641fe (svn r21654) -Add: [NoAI] AITown::IsCity() so AIs can find out which towns grow faster than others (Lord Aro) 14 years ago
yexo 63857f8487 (svn r20913) -Fix (r19231): [NoAI] give the correct error message if you try to overbuild an opponont road station with your own while using the 0.7 or 1.0 compatibility layer (fanioz) 14 years ago
rubidium 1906dc80af (svn r20704) -Fix (r20658): regression got out-of-sync 14 years ago
yexo b42513a287 (svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem 14 years ago
yexo dc303e550b (svn r20563) -Change: [NoAI] rename AIAbstractList to AIList 14 years ago
yexo 5be1f3f06c (svn r20403) -Fix (r20399): forgot to update regression 14 years ago
yexo 178f74c31c (svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type 14 years ago
rubidium e809c05099 (svn r20164) -Fix [FS#3870]: inconsistencies w.r.t. to km/h vs km-ish/h as "base" unit for aircraft speeds 14 years ago
rubidium 92da292fbc (svn r20162) -Fix [FS#3954]: integer comparison failed in case the difference was more than "MAX_UINT"/2 14 years ago
frosch cddd6df252 (svn r20103) -Fix [FS#3934]: AITown::GetRating() returned wrong values. (Morloth) 14 years ago
frosch 135d3683dc (svn r19887) -Fix (r19881): Update regression. 14 years ago
frosch 03cacb797a (svn r19880) -Fix: [NoAI] AIEngine::IsValidEngine() and AIEngine::IsBuildable() returned false positives. Especially wagons of unavailable railtypes were reported available. 14 years ago
yexo 37928e29f7 (svn r19773) -Add: [NoAI] AIIndustry::GetIndustryID(TileIndex) 14 years ago
terkhen 2e5b09471d (svn r19728) -Fix (r19720, r19721): Update regression test due to different costs. 14 years ago
frosch 184fa43df2 (svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits. 14 years ago
yexo a7e31778b3 (svn r19591) -Add: [NoAI] AIRail::GetMaxSpeed(RailType) to get the speed limit of railtypes 14 years ago
terkhen ef5764f98a (svn r19349) -Add: [NoAI] AIs can get the power, weight and tractive effort of a road vehicle. 14 years ago
frosch 333249ce50 (svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead. 14 years ago
frosch ac1a08ef4a (svn r19293) -Fix [FS#3566]: Some methods of AIAbstractList left invalid iterators. 14 years ago
terkhen a4a66ec1aa (svn r19231) -Feature: Allow overbuilding of road stops. 15 years ago
rubidium 997d52fc69 (svn r19143) -Codechange: trunk's going for 1.1 now. 15 years ago
yexo 091d88f514 (svn r19014) -Add: [NoAI] AIOrder::[G|S]etStopLocation to get/set the stop location of trains in a rail station 15 years ago
yexo 15016e3511 (svn r18955) -Feature: [NoAI] introduce GetBuildCost functions in several classes to get easier cost estimations before you start building 15 years ago
yexo f381b91de0 (svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid 15 years ago
rubidium 28fc7b47bd (svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo)
-Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers.
-Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
15 years ago
frosch 1ed599f5cf (svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
-Change: [NoAI] Constructor of AIWaypoint now takes a WaypointType to also handle buoys.
-Remove: [NoAI] AIBuoyList.
15 years ago
yexo fe67e85700 (svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
-Change: AIEngine::IsValidEngine will now also return true when you have at least one vehicle of that type even if you can't build it anymore.
15 years ago
rubidium 60082980fd (svn r18622) -Merge: release changes 15 years ago
yexo 51cb9cc43f (svn r18519) -Codechange: Improve regression tests for AIOrder 15 years ago
yexo 65642c5878 (svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder 15 years ago
frosch 91865c33da (svn r18276) -Fix: [NoAI] Make AIIndustryType::GetConstructionCost() return -1, if the industry is neither buildable nor prospectable. 15 years ago
frosch 7d355a58f3 (svn r18275) -Fix (r18266): Need to update regression due to different rounding. 15 years ago
yexo 12ef0046dd (svn r17591) -Add [NoAI] [FS#3212]: AIAirport::IsAirportInformationAvailable. Also update several preconditions so it's now possible to get information on airports types that can no longer be build (small airport after 1960) 15 years ago
rubidium dcd6b2096d (svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two. 15 years ago
rubidium f40885ec50 (svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7. 15 years ago
frosch 00ed9c83ee (svn r17434) -Update (r17433): The regression needs a new trick to not become bankrupt. 15 years ago
smatz 072ce4bb17 (svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
-Change [NoAI]: mark AITown::GetMaxProduction as deprecated, AITown::GetLastMonthProduction returns now the value GetMaxProduction did
15 years ago
smatz 100ae8efcc (svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents 15 years ago
yexo c585e9bcd8 (svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION 15 years ago
yexo 67106dc063 (svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
-Change [NoAI]: move all deprecated functions to a separate squirrel script that is only loaded if an AI requests an old API version.
15 years ago
smatz b43fd7266e (svn r17115) -Add [NoAI]: AISubsidy::SubsidyParticipantType, AISubsidy::GetSourceType, AISubsidy::GetSourceIndex, AISubsidy::GetDestinationType, AISubsidy::GetDestinationIndex for better subsidy management
-Change [NoAI]: mark AISubsidy::SourceIsTown, AISubsidy::GetSource, AISubsidy::GetDestinationType, AISubsidy::GetDestination as deprecated
15 years ago
smatz 50d03a8751 (svn r17091) -Fix (r17089)(r17090): regression test was right 15 years ago
smatz 23fd4bedd8 (svn r17090) -Fix (r17089): regression test failed (frosch123) 15 years ago
yexo c2ed884012 (svn r17005) -Add [NoAI]: AIAbstractList::SORT_ASCENDING / SORT_DESCENDING 15 years ago
yexo 1447a99ae6 (svn r16997) -Fix (r16985): forgot to update regression 15 years ago
yexo d09d3566dd (svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys 15 years ago
yexo d7b0aa47c5 (svn r16456) -Fix (r16429): forgot to update regression test 15 years ago
yexo 0b243d25cb (svn r16400) -Add [NoAI]: add AISignList that can be used to get a list of valid signs. This makes AISign::GetMaxSignID obsolete. 15 years ago
yexo c299a38e1f (svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings 15 years ago
smatz 1724ed5c61 (svn r16271) -Fix (r16264) [NoAI]: make regression failed 15 years ago
yexo 9b4a32deb4 (svn r16252) -Add [NoAI]: AIAirport::GetPrice, returning the building cost of an airport 15 years ago
frosch e04ddbe0ac (svn r16166) -Add [NoAI]: AITile::Get(Min|Max|Corner)Height 15 years ago
frosch f55be81e3c (svn r15901) -Add: AIIndustryType::IsBuiltOnWater(), HasHeliport() and HasDock(). Just like AIIndustry. 15 years ago
yexo 400208ee0a (svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge that are already build. 15 years ago
frosch 44351cdc57 (svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a certain cargo needs a bus- or a truckstop. 15 years ago
rubidium 95cff9979c (svn r15730) -Fix (r15727): regression wasn't updated. 15 years ago
yexo 890c5e3ae4 (svn r15616) -Change [API CHANGE]: Rename AIOrder::ChangeOrder() to AIOrder::SetOrderFlags(). 15 years ago
rubidium f5a07faf87 (svn r15597) -Fix (r15563): regression wasn't updated after the removal of AIIndustry::GetMaxIndustryID(). 16 years ago
frosch d3850e101c (svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
  Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
  Note: It is intentional that you cannot control refittability by CB 36.
16 years ago
yexo 3491b0fab9 (svn r15524) -Add [NoAI]: AIEngine::GetPower, AIEngine::GetWeight and AIEngine::GetMaxTractiveEffort. 16 years ago
yexo a0b57c849e (svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in BuildRoadStation and BuildDriveThroughRoadStation. 16 years ago
yexo ab288d3bdb (svn r15493) -Fix (r15486): Forgot to update regression. 16 years ago
yexo 2b221f5afc (svn r15492) -Change [API CHANGE]: Split AIVehicle::MoveWagon in MoveWagon and MoveWagonChain (frosch). 16 years ago
yexo 336abd66a2 (svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a front tile instead of a bool is_vertical (frosch). 16 years ago
yexo 7d88077add (svn r15490) -Change [API CHANGE]: Remove AIBridge::GetYearAvailable. AIBridge::IsValidBridge now only returns true for available bridges. 16 years ago
yexo 16954ba378 (svn r15489) -Change [API CHANGE]: Remove AIAirport::AirportAvailable. AIAirport::IsValidAirportType now only returns true for available AirportTypes. 16 years ago
yexo bce1bcb0f2 (svn r15488) -Change [API CHANGE]: Add support for distant-join stations. 16 years ago
yexo 7fdde2fec0 (svn r15483) -Change [API CHANGE]: Remove AIIndustry::GetProduction, use AIIndustry::GetLastMonthProduction instead. 16 years ago
rubidium d23db8306e (svn r15323) -Fix: regression backed up game_start.scr but didn't/couldn't restore it. 16 years ago
frosch 4a8736033f (svn r15309) -Fix (r15307): Update regression. (Thanks glx) 16 years ago
glx c1cf3934fa (svn r15263) -Codechange: added Engine::GetCost() to remove some code duplication. 16 years ago
glx a88883c1c1 (svn r15224) -Fix (r15213): incorrect regex 16 years ago
glx fab90386a7 (svn r15213) -Fix: AI API regression failed for non unicode builds (different format for NULL pointers) 16 years ago
truebrain b0be1553bf (svn r15129) -Fix [Regression]: no longer test the AI Libraries 16 years ago
truebrain ee1310af71 (svn r15128) -Remove: remove WrightAI and AI Libraries from SVN, as they are now available via the content service 16 years ago
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
16 years ago
truebrain 7eac17f5ea (svn r15092) -Fix [NoAI]: make the library internal class name consistant with their directory name 16 years ago
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 16 years ago
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. 16 years ago
truebrain 6fe54a2d1a (svn r15078) -Fix [NoAI]: AIMap didn't filter its input (Yexo) 16 years ago
truebrain e41655d67c (svn r15064) -Fix (r15063): changes in random made the regression fail 16 years ago
smatz 0a357c0ac1 (svn r15062) -Fix: further forgotten svn properties and headers 16 years ago
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
16 years ago