summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.cpp
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-22Add: [Script] ScriptEventVehicleAutoReplaced.glx
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-05-11Change: Limit memory allocations for each Squirrel instanceNiels Martin Hansen
This can avoid out-of-memory situations due to single scripts using up the entire address space. Instead, scripts that go above the maximum are killed. The maximum is default 1 GB per script, but can be configured by a setting.
2019-05-01Add: New RoadType API functions.peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2014-09-21(svn r26893) -Feature: ScriptStationList_Cargo for sorting cargo by from and viafonsinchen
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
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