Rubidium
0fd9eb0faa
Codechange: use std::string for script info/library finding
1 year ago
Patric Stout
ed83c4b0da
Change: replace per-AI "start_date" with a global "competitors_interval" ( #10653 )
...
The per-AI "start_date" is a lot of custom code, and was rarely
used in the way it was meant.
While at it, also ported this part over to the new timer system.
1 year ago
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
PeterN
aa737715dd
Fix #7151 : AI start date deviation was still applied when not set to a random AI. ( #7223 )
6 years ago
Samu
011257dc88
Change: Allow AI companies to start immediately.
...
Allow multiple AIs to possibly start in the same tick.
start_date = 0 becomes a special case, where random deviation does not occur.
If start_date was not already 0, then a minimum value of 1 must apply.
6 years ago
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
frosch
812ae4140a
(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.
12 years ago
frosch
e43bf5dabd
(svn r24788) -Change: Detach script settings from difficulty settings. Always allow changing all script settings without setting difficulty to custom.
12 years ago
frosch
a499435351
(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables.
12 years ago
frosch
be0b94400d
(svn r24317) -Feature: Add dropdowns to AI configurations, if all values have labels.
12 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
frosch
6ae8cac432
(svn r23589) -Codechange: Make the AI-start-delay setting translateable.
13 years ago
truebrain
34d7f01ccc
(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
13 years ago
rubidium
7fd1e1df81
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
13 years ago
yexo
cf11a1e98e
(svn r22534) -Fix [FS#4631] (r21250): doing rescan_ai in a game with running AIs caused a crash
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
rubidium
9e8db65223
(svn r21888) -Codechange: remove some unneeded (for the AI header) headers from some AI headers, reducing the include tree
14 years ago
yexo
4ec6c19d44
(svn r21697) -Codechange: use GetGameSettings() in a few more places to enhance readability
14 years ago
yexo
6d4900ed7c
(svn r20271) -Doc: add doxygen comments to several items under src/ai/
14 years ago
yexo
e3591f8a1d
(svn r19429) -Fix: when the title game contains an AIPL block the AI settinsg where overwritten by those from the title game
15 years ago
yexo
fae34ee719
(svn r18944) -Change [FS#3232]: use the highest version of an AI that can load the AI data from a savegame instead of the exact same version
15 years ago
rubidium
f65f276d10
(svn r18763) -Feature [FS#3095]: rerandomise AIs on reloading (via the debug window) when they were randomly chosen
15 years ago
rubidium
0e404038f2
(svn r18747) -Codechange: add some constness to the AI code
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
truebrain
3ca01c64f7
(svn r15638) -Fix: there is a time in your life you should stop coding for a project. You know that time is there when you make two huge mistakes in just 10 lines of code. I wish you all the best of luck :) (ps: HUGE mistakes!)
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
83e1288c6a
(svn r15215) -Fix: various MSVC x64 compiler warnings
16 years ago
glx
a4d3c76093
(svn r15184) -Cleanup: remove extra spaces
16 years ago
Yexo
3c757724e9
(svn r15182) -Fix: After updating an AI select the latest version for the next game.
16 years ago
Yexo
3d35b3c2cc
(svn r15175) -Feature: Add the option to select the AIs to start in a new game and configure them via the gui.
16 years ago
Yexo
61ee8ca42a
(svn r15171) -Fix (r15027): Buffer underflow in case there are no settings to save for an AI.
16 years ago
truebrain
27717e1b6d
(svn r15121) -Fix: more mem-leak fixes (this should make SmatZ so happy ;) :p)
16 years ago
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)
16 years ago
truebrain
07f2afa635
(svn r15057) -Fix [NoAI]: clamp the values of a setting between the ones allowed by info.nut
16 years ago
truebrain
1bd2867715
(svn r15056) -Add [NoAI]: when starting a game, give a random value to the setting marked with AICONFIG_RANDOM (Yexo)
16 years ago
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
16 years ago
truebrain
e6883c5cc7
(svn r15044) -Add [NoAI]: AIConfig::GetVersion(), to get the version of the current AI
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