truebrain
a3768b109b
(svn r23360) -Codechange: move AIInstance to ScriptInstance, making it reusable by other script API instances
13 years ago
truebrain
6f874962cd
(svn r23359) -Codechange: move AI_VMSuspend to Script_Suspend (and to its own file)
13 years ago
truebrain
1e13fa3dee
(svn r23358) -Codechange: move AI_FatalError to Script_FatalError (and to its own file)
13 years ago
truebrain
b4112dcf8e
(svn r23357) -Codechange: move AIStorage to ScriptStorage
13 years ago
truebrain
af1b3cc070
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
13 years ago
truebrain
2e731592c4
(svn r23295) -Codechange: put ImportLibrary in AIController (and document the parameters for NoAI docs)
13 years ago
truebrain
cbe453eab0
(svn r23209) -Codechange: track the current active script instance directly, instead of assuming the current company points you to the right one.
13 years ago
truebrain
5e7bae46f8
(svn r23207) -Codechange: make functions private/protected/public depending on their current usage (and reorder functions a bit)
13 years ago
rubidium
2de0383538
(svn r23118) -Feature: [NoAI] Allow AIs to query the amount of remaining operations for the current tick
13 years ago
rubidium
2c1555b13c
(svn r22396) -Document: some AI doxygen stuff
14 years ago
alberth
a51d34c048
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
14 years ago
yexo
971691b691
(svn r20285) -Codechange: use ///< for single-line doxygen comments in the AI code
14 years ago
yexo
844e62546b
(svn r20271) -Doc: add doxygen comments to several items under src/ai/
14 years ago
yexo
cdfe7f7834
(svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu)
15 years ago
alberth
01562e2dfc
(svn r19272) -Doc: successfull -> successful.
15 years ago
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
d9f86b6f97
(svn r18747) -Codechange: add some constness to the AI code
15 years ago
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
yexo
c22f60c812
(svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window
15 years ago
yexo
418c88f94d
(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
yexo
ee384495b9
(svn r17125) -Cleanup: remove an unused variable
15 years ago
yexo
6e467e8ae0
(svn r16834) -Fix [FS#3034]: call the AI Save() function only once so AIs can't crash OpenTTD
15 years ago
smatz
f67ea11992
(svn r16556) -Codechange [NoAI]: use accessor for AIInstance::is_dead
16 years ago
yexo
62a698df32
(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
...
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
16 years ago
yexo
3e53890348
(svn r15467) -Fix [NoAI]: AIs with an error in their info.nut are no longer available in-game.
16 years ago
rubidium
2eebb52592
(svn r15330) -Fix [FS#2597]: leaking of Squirrel when using circular references (by enabling the GC).
16 years ago
Yexo
9569bb12f3
(svn r15327) -Fix (r15027): AIs could access the map and other data in their constructor and Load() function while the savegame was not completely loaded.
16 years ago
truebrain
5573d9a459
(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
16 years ago
truebrain
c2406cd42d
(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