summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.cpp
AgeCommit message (Collapse)Author
2013-05-12(svn r25236) -Fix [FS#5547]: crash when AI is executing a command as it is ↵rubidium
bankrupted (removed from the game) The command is placed in a queue for processing before it is bankrupted, after that the command is executed. This command yields a failure because the company does not exist, but then it still needs to call the callback. This callback tries to access the AI's virtual machine without any checks, so it starts to read a just freed pointer and segfaults.
2012-08-13(svn r24468) -Add [FS#5219]: API compatibility scripts for Goal Scripts ↵yexo
(Hirundo)
2012-05-26(svn r24291) -Add: [Script] ScriptEventRoadReconstruction.frosch
2012-05-26(svn r24290) -Add: [Script] ScriptEventExclusiveTransportRights.frosch
2012-05-26(svn r24289) -Add: [Script] Base class for script events involving a company ↵frosch
and a town.
2012-04-09(svn r24108) -Fix [FS#5142]: When starting GS or AI, always use the settings ↵frosch
of the game, not the new-game settings.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-21(svn r23652) -Fix: don't include/document ScriptText for AIs. It is not usabletruebrain
2011-12-19(svn r23636) -Add: introduce ScriptText in parameters where it can be usedtruebrain
2011-12-19(svn r23632) -Add: GSCompanyMode, to change company in GameScriptstruebrain
2011-12-13(svn r23506) -Add: [NoAI] Support for dealing with aircraft range.michi_cc
2011-12-10(svn r23474) -Codechange: move the declaration error related functions to ↵rubidium
error.h
2011-12-03(svn r23416) -Add: [NoAI] API for querying infrastructure costs.michi_cc
2011-12-01(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')truebrain
2011-11-29(svn r23373) -Add: move the AI API to script/api/ai, and move the Squirrel ↵truebrain
C++ glue templates to script/api/template
2011-11-29(svn r23368) -Codechange: move FindLibrary down a few layers, so there is no ↵truebrain
layer violation anymore
2011-11-29(svn r23367) -Codechange: refactor GetSetting to ScriptInstance, to avoid ↵truebrain
global variable in script_controller
2011-11-29(svn r23366) -Codechange: move most of the Dummy code to script/, unifying ittruebrain
2011-11-29(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfigtruebrain
2011-11-29(svn r23361) -Codechange: move multiplayer DoCommand callback code so other ↵truebrain
script users can call their own
2011-11-29(svn r23360) -Codechange: move AIInstance to ScriptInstance, making it ↵truebrain
reusable by other script API instances
2011-11-29(svn r23359) -Codechange: move AI_VMSuspend to Script_Suspend (and to its ↵truebrain
own file)
2011-11-29(svn r23358) -Codechange: move AI_FatalError to Script_FatalError (and to ↵truebrain
its own file)
2011-11-29(svn r23357) -Codechange: move AIStorage to ScriptStoragetruebrain
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
2011-11-29(svn r23352) -Add: support dynamically adding an API prefix when returning a ↵truebrain
C++ class to Squirrel
2011-11-23(svn r23302) -Add: [NoAI] AITown::GetCargoGoal and AITown::GetGrowthRate to ↵truebrain
query statistics about a town regarding its growing
2011-11-23(svn r23295) -Codechange: put ImportLibrary in AIController (and document ↵truebrain
the parameters for NoAI docs)
2011-11-19(svn r23262) -Fix: one annoying typo in a squirrel_export marker linetruebrain
2011-11-13(svn r23209) -Codechange: track the current active script instance directly, ↵truebrain
instead of assuming the current company points you to the right one.
2011-11-12(svn r23195) -Codechange: if we really need to cast away constness, use ↵rubidium
const_cast
2011-11-08(svn r23134) -Add [FS#3799]: [NoAI] AICargoList_StationAcceptingyexo
2011-11-04(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining ↵rubidium
operations for the current tick
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2010-12-29(svn r21664) -Add: [NoAI] AIEventTownFoundedyexo
2010-11-24(svn r21311) -Fix [FS#4260]: AIs in an infinite loop in e.g. autosave, but ↵rubidium
also getting settings and such from info.nut, would not be interrupted after a while causing OpenTTD to seem to not respond
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-19(svn r20563) -Change: [NoAI] rename AIAbstractList to AIListyexo
2010-08-19(svn r20562) -Change: [NoAI] Move all functions from AIList to AIAbstractListyexo
2010-08-01(svn r20285) -Codechange: use ///< for single-line doxygen comments in the ↵yexo
AI code
2010-07-31(svn r20271) -Doc: add doxygen comments to several items under src/ai/yexo
2010-05-13(svn r19814) -Codechange: give some more unnamed enums a name, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2010-05-09(svn r19775) -Fix: improper use of 'then' in few comments (ln)smatz
2010-04-02(svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window ↵yexo
where you can input a break string (patch by Zuu)
2010-02-24(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bitsmatz
2010-01-18(svn r18862) -Fix [FS#3544]: don't pass AI strings through iconvrubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-07(svn r18747) -Codechange: add some constness to the AI coderubidium
2010-01-04(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and ↵frosch
AIWaypoint::HasWaypointType(). -Change: [NoAI] Constructor of AIWaypoint now takes a WaypointType to also handle buoys. -Remove: [NoAI] AIBuoyList.
2009-12-19(svn r18557) -Fix: (most of) gcc errors when using lto caused by some ↵smatz
structs having different definition in different object files