Skip to content

Commit f4baccc

Browse files
authored
Merge pull request #767 from rlcevg/ai_new
Add bleeding edge test version of CircuitAI (64bit only)
2 parents e188132 + 2ed348d commit f4baccc

21 files changed

Lines changed: 2892 additions & 0 deletions

File tree

LuaMenu/configs/gameConfig/zk/aiSimpleName.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ local devSubnameMap = {
1919
{"DevCircuitAIHard", "AI: Hard" .. DEV_NAME},
2020
{"DevCircuitAIBrutal", "AI: Brutal" .. DEV_NAME},
2121
{"DevCircuitEconomist", "AI: Economist Personality" .. DEV_NAME},
22+
{"DevCircuitTest", "AI: Bleeding edge test" .. DEV_NAME},
2223
{"CAI", "AI: Legacy"},
2324
}
2425

@@ -46,6 +47,7 @@ local simpleAiOrder = {
4647
["AI: Hard" .. DEV_NAME] = -2,
4748
["AI: Brutal" .. DEV_NAME] = -1,
4849
["AI: Economist Personality" .. DEV_NAME] = -0.9,
50+
["AI: Bleeding edge test" .. DEV_NAME] = -0.1,
4951
["AI: Beginner" .. STABLE_NAME] = 0,
5052
["AI: Novice" .. STABLE_NAME] = 1,
5153
["AI: Easy" .. STABLE_NAME] = 2,
@@ -71,6 +73,7 @@ local aiTooltip = {
7173
["AI: Hard" .. DEV_NAME] = "Recommended for veteran strategy gamers who aren't afraid of losing.",
7274
["AI: Brutal" .. DEV_NAME] = "Recommended for veterans of Zero-K.",
7375
["AI: Economist Personality" .. DEV_NAME] = "Brutal AI with a bias for escalating and economy.",
76+
["AI: Bleeding edge test" .. DEV_NAME] = "Latest test version.",
7477
["AI: Beginner" .. STABLE_NAME] = "Recommended for players with no strategy game experience.",
7578
["AI: Novice" .. STABLE_NAME] = "Recommended for players with some strategy game experience, or experience with related genres (such as MOBA).",
7679
["AI: Easy" .. STABLE_NAME] = "Recommended for experienced strategy gamers with some experience of streaming economy.",
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
--
2+
-- Info Definition Table format
3+
--
4+
--
5+
-- These keywords must be lowercase for LuaParser to read them.
6+
--
7+
-- key: user defined or one of the SKIRMISH_AI_PROPERTY_* defines in
8+
-- SSkirmishAILibrary.h
9+
-- value: the value of the property
10+
-- desc: the description (could be used as a tooltip)
11+
--
12+
--
13+
--------------------------------------------------------------------------------
14+
--------------------------------------------------------------------------------
15+
16+
local infos = {
17+
{
18+
key = 'shortName',
19+
value = 'DevCircuitTest64', -- AI name - !This comment is used for parsing!
20+
desc = 'machine conform name.',
21+
},
22+
{
23+
key = 'version',
24+
value = 'stable', -- AI version - !This comment is used for parsing!
25+
},
26+
{
27+
key = 'name',
28+
value = 'Circuit Test',
29+
desc = 'human readable name.',
30+
},
31+
{
32+
key = 'description',
33+
value = 'This AI is using the new C++ wrapper.',
34+
desc = 'tooltip.',
35+
},
36+
{
37+
key = 'url',
38+
value = 'https://springrts.com/wiki/AI:CppTestAI',
39+
desc = 'URL with more detailed info about the AI',
40+
},
41+
{
42+
key = 'loadSupported',
43+
value = 'yes',
44+
desc = 'whether this AI supports loading or not',
45+
},
46+
{
47+
key = 'interfaceShortName',
48+
value = 'C', -- AI Interface name - !This comment is used for parsing!
49+
desc = 'the shortName of the AI interface this AI needs',
50+
},
51+
{
52+
key = 'interfaceVersion',
53+
value = '0.1', -- AI Interface version - !This comment is used for parsing!
54+
desc = 'the minimum version of the AI interface this AI needs',
55+
},
56+
}
57+
58+
return infos
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
--
2+
-- Custom Options Definition Table format
3+
--
4+
-- A detailed example of how this format works can be found
5+
-- in the spring source under:
6+
-- AI/Skirmish/NullAI/data/AIOptions.lua
7+
--
8+
--------------------------------------------------------------------------------
9+
--------------------------------------------------------------------------------
10+
11+
local options = {
12+
{ -- section
13+
key = 'performance',
14+
name = 'Performance Relevant Settings',
15+
desc = 'These settings may be relevant for both CPU usage and AI difficulty.',
16+
type = 'section',
17+
},
18+
{ -- bool
19+
key = 'cheating',
20+
name = 'LOS cheating',
21+
desc = 'Enable LOS cheating',
22+
type = 'bool',
23+
section = 'performance',
24+
def = false,
25+
},
26+
{ -- bool
27+
key = 'ally_aware',
28+
name = 'Alliance awareness',
29+
desc = 'Consider allies presence while making expansion desicions',
30+
type = 'bool',
31+
section = 'performance',
32+
def = true,
33+
},
34+
{ -- bool
35+
key = 'comm_merge',
36+
name = 'Merge neighbour Circuits',
37+
desc = 'Merge spatially close Circuit ally commanders',
38+
type = 'bool',
39+
section = 'performance',
40+
def = true,
41+
},
42+
-- { -- number (int->uint)
43+
-- key = 'random_seed',
44+
-- name = 'Random seed',
45+
-- desc = 'Seed for random number generator (int)',
46+
-- type = 'number',
47+
-- def = 1337
48+
-- },
49+
50+
{ -- string
51+
key = 'disabledunits',
52+
name = 'Disabled units',
53+
desc = 'Disable usage of specific units.\nSyntax: armwar+armpw+raveparty\nkey: disabledunits',
54+
type = 'string',
55+
def = '',
56+
},
57+
-- { -- string
58+
-- key = 'json',
59+
-- name = 'JSON',
60+
-- desc = 'Per-AI config.\nkey: json',
61+
-- type = 'string',
62+
-- def = '',
63+
-- },
64+
65+
{ -- list
66+
key = 'profile',
67+
name = 'Difficulty profile',
68+
desc = 'Difficulty or play-style of AI (see init.as).\nkey: profile',
69+
type = 'list',
70+
def = 'default',
71+
items = {
72+
{
73+
key = 'default',
74+
name = 'Default',
75+
desc = 'Default config.',
76+
},
77+
},
78+
},
79+
}
80+
81+
return options
Binary file not shown.

0 commit comments

Comments
 (0)