Skip to content

Commit

Permalink
MicroAI Tests: Fix issues found by the schema validator
Browse files Browse the repository at this point in the history
With this, the MicroAI test scenarios are clean of schema errors
  • Loading branch information
CelticMinstrel committed Apr 12, 2018
1 parent fc5e3c5 commit d16813a
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 20 deletions.
4 changes: 3 additions & 1 deletion data/ai/micro_ais/scenarios/dragon.cfg
Expand Up @@ -65,7 +65,9 @@
ai_type=hunter
action=add

id=Rowck
[filter]
id=Rowck
[/filter]
[filter_location]
x,y=5-30,1-15
[/filter_location]
Expand Down
4 changes: 3 additions & 1 deletion data/ai/micro_ais/scenarios/goto.cfg
Expand Up @@ -566,7 +566,9 @@ Note: The messengers are controlled by Goto Micro AI definitions that differ by
[filter]
id=messenger1,messenger2
x,y=6-7,2-4
terrain=C*
[filter_location]
terrain=C*
[/filter_location]
[/filter]

[message]
Expand Down
44 changes: 33 additions & 11 deletions data/ai/micro_ais/scenarios/guardians.cfg
Expand Up @@ -131,7 +131,9 @@
ai_type=coward
action=add

id=coward1
[filter]
id=coward1
[/filter]
distance=5
[/micro_ai]

Expand All @@ -154,7 +156,9 @@
ai_type=coward
action=add

id=coward2
[filter]
id=coward2
[/filter]
distance=5
seek_x,seek_y=24,5
[/micro_ai]
Expand All @@ -178,7 +182,9 @@
ai_type=coward
action=add

id=coward3
[filter]
id=coward3
[/filter]
distance=5
seek_x,seek_y=24,5
avoid_x,avoid_y=24,15
Expand All @@ -203,7 +209,9 @@
ai_type=coward
action=add

id=coward4
[filter]
id=coward4
[/filter]
distance=4
seek_x=32
[/micro_ai]
Expand All @@ -228,7 +236,9 @@
ai_type=return_guardian
action=add

id=return1
[filter]
id=return1
[/filter]
return_x,return_y=20,2
[/micro_ai]

Expand All @@ -247,7 +257,9 @@
ai_type=return_guardian
action=add

id=return2
[filter]
id=return2
[/filter]
return_x,return_y=21,9
[/micro_ai]

Expand Down Expand Up @@ -293,7 +305,9 @@ s=2,14 g=3,13"
ai_type=stationed_guardian
action=add

id=stationed1
[filter]
id=stationed1
[/filter]
distance=4
station_x,station_y=2,14
guard_x,guard_y=3,13
Expand All @@ -315,7 +329,9 @@ s=4,14 g=7,13"
ai_type=stationed_guardian
action=add

id=stationed2
[filter]
id=stationed2
[/filter]
distance=4
station_x,station_y=4,14
guard_x,guard_y=3,13
Expand All @@ -340,7 +356,9 @@ s=4,14 g=7,13"
ai_type=zone_guardian
action=add

id=zone1
[filter]
id=zone1
[/filter]
[filter_location]
x=4,5,6,7,5
y=24,24,24,24,25
Expand All @@ -366,7 +384,9 @@ separate attack Zone"
ai_type=zone_guardian
action=add

id=zone2
[filter]
id=zone2
[/filter]
[filter_location]
x=1,2,3,2
y=27,27,27,26
Expand All @@ -391,7 +411,9 @@ separate attack Zone"
ai_type=zone_guardian
action=add

id=zone3
[filter]
id=zone3
[/filter]
[filter_location]
x,y=22-31,4-11 # This is intentionally chosen to extend past the lake
terrain=W*
Expand Down
4 changes: 3 additions & 1 deletion data/ai/micro_ais/scenarios/hang_out.cfg
Expand Up @@ -102,7 +102,9 @@
ai_type=messenger_escort
action=add

id=Bad Outlaw
[filter]
id=Bad Outlaw
[/filter]
ca_score=165000
waypoint_x=16,22,36
waypoint_y=19,19,19
Expand Down
4 changes: 3 additions & 1 deletion data/ai/micro_ais/scenarios/messenger_escort.cfg
Expand Up @@ -59,7 +59,9 @@
ai_type=messenger_escort
action=add

id=messenger
[filter]
id=messenger
[/filter]
waypoint_x=31,24,27,28
waypoint_y=20,14,7,1
[/micro_ai]
Expand Down
16 changes: 12 additions & 4 deletions data/ai/micro_ais/scenarios/patrols.cfg
Expand Up @@ -121,7 +121,9 @@
ai_type=patrol
action=add

id=Konrad
[filter]
id=Konrad
[/filter]
ca_score=300000
waypoint_x=9,24,25
waypoint_y=21,23,15
Expand All @@ -134,7 +136,9 @@
ai_type=patrol
action=add

id=patrol1
[filter]
id=patrol1
[/filter]
ca_score=299999
waypoint_x=14,22,22,14,14
waypoint_y=12,12,18,19,12
Expand All @@ -146,7 +150,9 @@
ai_type=patrol
action=add

id=patrol2
[filter]
id=patrol2
[/filter]
ca_score=299998
waypoint_x=14,14,22,22
waypoint_y=12,19,18,12
Expand All @@ -166,7 +172,9 @@
ai_type=zone_guardian
action=add

id=guard1
[filter]
id=guard1
[/filter]
ca_score=299997
[filter_location]
x,y=10-26,26-28
Expand Down
1 change: 0 additions & 1 deletion data/ai/micro_ais/scenarios/protect_unit.cfg
Expand Up @@ -52,7 +52,6 @@
[/goal]
[/ai]

{ai/aliases/stable_singleplayer.cfg}
[ai]
[engine]
name="lua"
Expand Down

0 comments on commit d16813a

Please sign in to comment.