Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

test(scenarios): ai that loses every dozer trains a new one

Olcay Seygan172753246a22
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 66ec41ff8..ddd14bb53 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -135,6 +135,7 @@ Data/Scenarios/comanchepods.txt
Data/Scenarios/comturret.txt
Data/Scenarios/crowdbattle.txt
Data/Scenarios/defencereach.txt
+Data/Scenarios/dozerloss.txt
Data/Scenarios/dragonfirewall.txt
Data/Scenarios/dragonflame.txt
Data/Scenarios/driveby.txt
diff --git a/GeneralsMD/Code/Data/Scenarios/dozerloss.txt b/GeneralsMD/Code/Data/Scenarios/dozerloss.txt
new file mode 100644
index 000000000..37bb8163b
--- /dev/null
+++ b/GeneralsMD/Code/Data/Scenarios/dozerloss.txt
@@ -0,0 +1,28 @@
+# Does a skirmish AI that loses every dozer build a new one and go on building?
+#
+# Seat 1 is a computer America on Twilight Flame. Six Scorpions put down beside its start kill its
+# starting dozer, and any second one already out, in the first 15 seconds, then drive home to seat
+# 0's start out of the way. The tallies count seat 1's dozers and everything it owns: none at 450
+# means the base was really left without one; one or more later, with the worth climbing, means it
+# trained a replacement at the command center and went back to building.
+#
+# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit
+# -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -aidiff hard
+# -side 0 FactionGLA -side 1 FactionAmerica -seed 1 -maxframes 3600
+# -scenario dozerloss -logPrefix dozerloss_
+#
+# See mobstress.txt for the line grammar.
+
+20 spawn 0 GLATankScorpion 6 start1:-200:0 30
+
+40 attack 0 GLATankScorpion 1 AmericaVehicleDozer
+160 attack 0 GLATankScorpion 1 AmericaVehicleDozer
+280 attack 0 GLATankScorpion 1 AmericaVehicleDozer
+400 move 0 GLATankScorpion start0
+
+450 tally 1 AmericaVehicleDozer
+450 tally 1 *
+1800 tally 1 AmericaVehicleDozer
+1800 tally 1 *
+3500 tally 1 AmericaVehicleDozer
+3500 tally 1 *