-
Notifications
You must be signed in to change notification settings - Fork 1
/
info.nut
62 lines (52 loc) · 3.35 KB
/
info.nut
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
require("version.nut");
class FNoNoCAB extends AIInfo {
function GetAuthor() { return "Jacob Boerema (NoNoCAB), Bram Ridder (NoCAB)"; }
function GetName() { return "NoNoCAB"; }
function GetDescription() { return "NoNoCAB is an improved version of NoCAB. It is a competitive AI which uses trains, trucks, buses, aircraft and ships."; }
function GetVersion() { return SELF_VERSION; }
function MinVersionToLoad() { return 1; }
function GetDate() { return SELF_DATE; }
function CreateInstance() { return "NoNoCAB"; }
function GetShortName() { return "NONO"; }
function GetAPIVersion() { return "1.2"; }
function GetURL() { return "https://www.tt-forums.net/viewtopic.php?f=65&t=75030"; }
function GetSettings() {
AddSetting( { name = "NiceCAB", description = "NoNoCAB will try to stay away from already serviced industries", easy_value = 1, medium_value = 0, hard_value = 0, custom_value = 0, flags = AICONFIG_BOOLEAN + CONFIG_INGAME} );
AddLabels("NiceCAB", {_0 = "Disabled", _1 = "Enabled"});
AddSetting( { name = "Enable road vehicles", description = "Enable road vehicles", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = AICONFIG_BOOLEAN + CONFIG_INGAME } );
AddLabels("Enable road vehicles", {_0 = "Disabled", _1 = "Enabled"});
AddSetting( { name = "Enable ships", description = "Enable ships", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = AICONFIG_BOOLEAN + CONFIG_INGAME } );
AddLabels("Enable ships", {_0 = "Disabled", _1 = "Enabled"});
AddSetting( { name = "Enable airplanes", description = "Enable airplanes", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = AICONFIG_BOOLEAN + CONFIG_INGAME } );
AddLabels("Enable airplanes", {_0 = "Disabled", _1 = "Enabled"});
AddSetting( { name = "Enable trains", description = "Enable trains", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = AICONFIG_BOOLEAN + CONFIG_INGAME } );
AddLabels("Enable trains", {_0 = "Disabled", _1 = "Enabled"});
AddSetting( { name = "Allow trains town to town", description = "Allow trains town to town", easy_value = 0, medium_value = 0, hard_value = 0, custom_value = 0, flags = AICONFIG_BOOLEAN + CONFIG_INGAME } );
AddLabels("Allow trains town to town", {_0 = "No", _1 = "Yes (Doesn't perform well!)"});
AddSetting( { name = "Politics Setting", description = "Aggressiveness", min_value = 0, max_value = 3, easy_value = 0, medium_value = 1, hard_value = 2, custom_value = 2, flags = CONFIG_INGAME} );
AddLabels(
"Politics Setting",
{_0 = "NoNoCAB is a friendly competitor",
_1 = "NoNoCAB is friendly but can plant trees",
_2 = "NoNoCAB can also build statues and a headquarter",
_3 = "NoNoCAB will also try to get exclusive transport rights"});
// Developer setting to make it possible to change log level in a running game.
AddSetting({
name = "log_level",
description = "How much info to show in the AI log.",
min_value = 0,
max_value = 3,
easy_value = 1,
medium_value = 1,
hard_value = 2,
custom_value = 2,
step_size = 1,
flags = CONFIG_DEVELOPER + CONFIG_INGAME
});
AddLabels(
"log_level",
{_0 = "Everything including debug info",_1 = "Everything except debug info", _2 = "Warnings and errors only", _3 = "Errors only"}
);
}
}
RegisterAI(FNoNoCAB());