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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
test(gameengine): stage the angry mob fight where its formation can be seen
Olcay Seygan0e733334c12e
diff --git a/GeneralsMD/Code/Data/Cinema/mobwatch.txt b/GeneralsMD/Code/Data/Cinema/mobwatch.txtnew file mode 100644index 000000000..e3b6f1fdb--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/mobwatch.txt@@ -0,0 +1,24 @@+# Five frames of one angry mob crossing open ground and hitting a Ranger platoon, for looking at+# what the formation does rather than for watching. Runs with -scenario mobopen, which puts the+# mobs at 700,550 and the Rangers at 1000,1150 on the small generated map and sends the mobs at+# them on frame 120.+#+# generals.exe -borderless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -randommap 1 2 small -autoskirmish 2 -takeover+# -side 0 FactionGLA -side 1 FactionAmerica -seed 1 -maxframes 1800+# -scenario mobopen -cinema mobwatch -logPrefix mobopenshots_+#+# The camera rides the nexus, so the mob stays in frame whatever the march does with it and the+# five pictures are comparable to each other and to the same five off another build. Zoom 1.4+# holds about 600 map units across a 1920 frame, which is the mob plus the ground it has lost its+# stragglers onto; 0.65 held 275 and the mob walked out of the sides of it. Pitch -20 is steep+# enough to read who is standing where. Seconds are logic frames over 30.++0 cut 700 550 1.4 -45 -20+2 follow GLAInfantryAngryMobNexus++16.67 shot # frame 500, mid-march, nothing shooting yet+23.33 shot # frame 700, the leading members reach the Rangers+35.0 shot # frame 1050, the two sides mixed+41.67 shot # frame 1250, the fight at its loudest+55.0 shot # frame 1650, decided, no particles leftdiff --git a/GeneralsMD/Code/Data/Scenarios/mobattack.txt b/GeneralsMD/Code/Data/Scenarios/mobattack.txtnew file mode 100644index 000000000..63e6ca9c0--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/mobattack.txt@@ -0,0 +1,27 @@+# Three angry mobs march across Alpine Assault and fight a platoon at the other end.+#+# mob100.txt marches mobs at empty ground, which says what the formation costs but nothing about+# what it does when the shooting starts. A mob member stops holding its place the moment it picks a+# target of its own, and the question this answers is whether the crowd that arrives is still a+# crowd afterwards: who breaks off, how far, and how many of the thirty-three come home.+#+# generals.exe -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover+# -side 0 FactionGLA -side 1 FactionAmerica -seed 1 -maxframes 1800+# -scenario mobattack -screenshot <frame> -camera <x> <y> -logPrefix mobattack_+#+# See mobstress.txt for the line grammar.++30 spawn 0 GLAInfantryAngryMobNexus 3 760 920 90+30 spawn 1 AmericaInfantryRanger 15 1400 1400 30++120 attackmove 0 GLAInfantryAngryMobNexus 1400 1400++# Everything seat 0 owns, nexuses and members alike, counted from the frame the march starts, so+# the total is the whole mob and not the survivors. "first after" is the frame the leading member+# reached the Rangers, "last after" the frame the slowest one did, and the gap between them is the+# formation's cohesion measured in frames.+121 arrive 0 * 1400 1400 250++# The same set counted again over the end of the fight, which says where the survivors stand.+1500 arrive 0 * 1400 1400 250diff --git a/GeneralsMD/Code/Data/Scenarios/mobopen.txt b/GeneralsMD/Code/Data/Scenarios/mobopen.txtnew file mode 100644index 000000000..9de0a0df9--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/mobopen.txt@@ -0,0 +1,25 @@+# The same fight as mobattack.txt, moved onto ground with nothing on it.+#+# mobattack.txt marches from 760,920 to 1400,1400 on Alpine Assault, and that line runs straight+# down a town street: between the houses the mob is in single file whatever the formation code+# wants, so a picture taken there says nothing about the formation. This one uses the small+# generated map the cinema demo uses, whose middle is open grass, and the coordinates are the ones+# parade.txt already walks 80 units across.+#+# generals.exe -borderless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -randommap 1 2 small -autoskirmish 2 -takeover+# -side 0 FactionGLA -side 1 FactionAmerica -seed 1 -maxframes 1800+# -scenario mobopen -cinema mobwatch -logPrefix mobopen_+#+# See mobstress.txt for the line grammar.++30 spawn 0 GLAInfantryAngryMobNexus 3 700 550 60+30 spawn 1 AmericaInfantryRanger 15 1000 1150 40++120 attackmove 0 GLAInfantryAngryMobNexus 1000 1150++# Counted from the frame the march starts, so the total is the whole mob rather than the survivors.+121 arrive 0 * 1000 1150 250++# The same count taken again after the shooting stops, which is how many of the mob is left.+1650 arrive 0 * 1000 1150 250diff --git a/GeneralsMD/Code/Data/Scenarios/mobwin.txt b/GeneralsMD/Code/Data/Scenarios/mobwin.txtnew file mode 100644index 000000000..737d7285e--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/mobwin.txt@@ -0,0 +1,28 @@+# mobopen.txt with a platoon the mob can beat, for the one picture that staging cannot take.+#+# Three angry mobs against fifteen Rangers on open ground lose every member and both nexuses, on+# this build and on the one before it alike, so "are the survivors back around their nexus" has no+# picture in it: there are none. Six Rangers leaves the mob standing.+#+# generals.exe -borderless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -randommap 1 2 small -autoskirmish 2 -takeover+# -side 0 FactionGLA -side 1 FactionAmerica -seed 1 -maxframes 1800+# -scenario mobwin -cinema mobwatch -logPrefix mobwin_+#+# See mobstress.txt for the line grammar.++30 spawn 0 GLAInfantryAngryMobNexus 3 700 550 60+30 spawn 1 AmericaInfantryRanger 6 1000 1150 40++120 attackmove 0 GLAInfantryAngryMobNexus 1000 1150++121 arrive 0 * 1000 1150 250++# Both sides counted over the end of the fight: how much mob is left, and how much platoon. The+# mob losing more members is only a loss if it did not buy anything with them.+1650 arrive 0 * 1000 1150 250+1650 arrive 1 * 1000 1150 250++# The nexuses on their own. A mob whose nexus is dead stops making members, so a smaller total is+# two different stories depending on whether all three are still standing.+1650 arrive 0 GLAInfantryAngryMobNexus 1000 1150 250