Skip to content

Commit c89eacb

Browse files
Add Spring engine for local testing
This engine is temporarily added to allow Claude to test the smoke test locally before running in CI. It can be removed once testing is complete. Engine: BAR 105.1.1-2472-ga5aa45c (with RmlUi support)
1 parent c1233f8 commit c89eacb

File tree

223 files changed

+41691
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+41691
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 AI_INTERFACE_PROPERTY_* defines in
8+
-- SAIInterfaceLibrary.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 = 'C',
20+
desc = 'machine conform name.',
21+
},
22+
{
23+
key = 'version',
24+
value = '0.1',
25+
},
26+
{
27+
key = 'name',
28+
value = 'default C AI Interface',
29+
desc = 'human readable name.',
30+
},
31+
{
32+
key = 'description',
33+
value = 'This interface is needed for C and C++ AIs',
34+
desc = 'tooltip.',
35+
},
36+
{
37+
key = 'url',
38+
value = 'https://springrts.com/wiki/AIInterface:C',
39+
desc = 'URL with more detailed info about the AI',
40+
},
41+
{
42+
key = 'supportedLanguages',
43+
value = 'C, C++',
44+
},
45+
{
46+
key = 'supportsLookup',
47+
value = 'false',
48+
},
49+
}
50+
51+
return infos
285 KB
Binary file not shown.
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 = 'BARb', -- 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 = 'BARbarIAn',
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: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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 vision',
21+
desc = 'Enable global sight',
22+
type = 'bool',
23+
section = 'performance',
24+
def = false,
25+
},
26+
{ -- bool
27+
key = 'comm_merge',
28+
name = 'Merge neighbour BARbarIAns',
29+
desc = 'Merge spatially close BARbarIAn ally commanders',
30+
type = 'bool',
31+
section = 'performance',
32+
def = true,
33+
},
34+
{ -- bool
35+
key = 'ally_base',
36+
name = 'Avoid building in allied bases',
37+
desc = 'Do not build units near allied factories',
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+
{ -- bool
66+
key = 'game_config',
67+
name = 'Load game config',
68+
desc = 'Enable loading of game-side config',
69+
type = 'bool',
70+
def = true,
71+
},
72+
{ -- list
73+
key = 'profile',
74+
name = 'Difficulty profile',
75+
desc = 'Difficulty or play-style of AI (see init.as).\nkey: profile',
76+
type = 'list',
77+
def = 'hard',
78+
items = {
79+
{
80+
key = 'hard',
81+
name = 'Hard | Balanced',
82+
desc = 'Difficulty: Hard |Playstyle: Balanced |Made by Flaka',
83+
},
84+
{
85+
key = 'medium',
86+
name = 'Medium | Lazy',
87+
desc = 'Difficulty: Medium |Playstyle: Learning mechanics',
88+
},
89+
{
90+
key = 'easy',
91+
name = 'Easy | Slow',
92+
desc = 'Difficulty: Easy |Playstyle: First launch',
93+
},
94+
{
95+
key = 'dev',
96+
name = 'Testing AI',
97+
desc = 'Testing config',
98+
},
99+
},
100+
},
101+
}
102+
103+
return options

0 commit comments

Comments
 (0)