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
docs(cinema): thumbnail scenes for the Reforged trailer
Olcay Seyganbb3bf585c50c
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifestindex b16d94242..37254e0f8 100644--- a/GeneralsMD/Code/BuildFingerprint.manifest+++ b/GeneralsMD/Code/BuildFingerprint.manifest@@ -35,6 +35,8 @@ Data/Cinema/rf_reach.txtData/Cinema/rf_smoke.txtData/Cinema/rf_snow.txtData/Cinema/rf_tank.txt+Data/Cinema/rf_thumb_fa.txt+Data/Cinema/rf_thumb_fe.txtData/Cinema/rf_town.txtData/Cinema/rf_watch.txtData/Cinema/s240_beach.txt@@ -123,6 +125,8 @@ Data/Scenarios/rf_pin.txtData/Scenarios/rf_reach.txtData/Scenarios/rf_smoke.txtData/Scenarios/rf_snow.txt+Data/Scenarios/rf_thumb_fa.txt+Data/Scenarios/rf_thumb_fe.txtData/Scenarios/s240_beach.txtData/Scenarios/s240_bridge.txtData/Scenarios/s240_heli.txtdiff --git a/GeneralsMD/Code/Data/Cinema/rf_thumb_fa.txt b/GeneralsMD/Code/Data/Cinema/rf_thumb_fa.txtnew file mode 100644index 000000000..b618776f4--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/rf_thumb_fa.txt@@ -0,0 +1,17 @@+# The YouTube thumbnail's background, second setup: Scenarios/rf_thumb_fa.txt on Fortress Avalanche,+# rf_hook.txt's view from the west a little wider and higher, held through the beam, the nuke and+# the SCUDs. The shot at 3.5 s, before anything moves, is the check of where the buildings landed.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 12000 -noDynamicLOD -map "Maps\Fortress Avalanche\Fortress Avalanche.map"+# -autoskirmish 3 -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA+# -seed 7 -scenario rf_thumb_fa -cinema rf_thumb_fa -video 930 1230 rf_thumb_fa -maxframes 1240++3.0 cut 1000 2100 0.52 -135 12+3.5 shot+36.0 shot+37.0 shot+38.0 shot+38.5 shot+39.0 shot+39.5 shotdiff --git a/GeneralsMD/Code/Data/Cinema/rf_thumb_fe.txt b/GeneralsMD/Code/Data/Cinema/rf_thumb_fe.txtnew file mode 100644index 000000000..1343b67b8--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/rf_thumb_fe.txt@@ -0,0 +1,17 @@+# The YouTube thumbnail's background: Scenarios/rf_thumb_fe.txt on Flash Effect, looking north over+# the derrick beach the three islands meet at, held, so every corner of the frame has its own part of+# the fight. The shot at 3.5 s, before anything moves, is the check of where the buildings landed.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 12000 -noDynamicLOD -map "Maps\Flash Effect\Flash Effect.map" -autoskirmish 3+# -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA -seed 7+# -scenario rf_thumb_fe -cinema rf_thumb_fe -video 930 1230 rf_thumb_fe -maxframes 1240++3.0 cut 1700 1560 0.47 0 12+3.5 shot+36.0 shot+37.0 shot+37.5 shot+38.0 shot+38.5 shot+39.0 shotdiff --git a/GeneralsMD/Code/Data/Scenarios/rf_thumb_fa.txt b/GeneralsMD/Code/Data/Scenarios/rf_thumb_fa.txtnew file mode 100644index 000000000..aaa0829bd--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/rf_thumb_fa.txt@@ -0,0 +1,133 @@+# The YouTube thumbnail of the Reforged trailer, second setup: v240_hook.txt's three armies and three+# superweapons on the west grass of Fortress Avalanche, with what that fight left empty filled in for+# Cinema/rf_thumb_fa.txt's frame (heading -135, the lake top left): GLA buildings along the top,+# China's on the left by the lake, America's on the right, a burning stash and a buggy raid top+# right, a tank duel along the bottom, napalm and artillery on the edges, King Raptors, MiGs and a+# Chinook in the air. The nuke is called late, so its fireball does not cover the beam.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 12000 -noDynamicLOD -map "Maps\Fortress Avalanche\Fortress Avalanche.map"+# -autoskirmish 3 -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA+# -seed 7 -scenario rf_thumb_fa -cinema rf_thumb_fa -video 930 1230 rf_thumb_fa -maxframes 1240++# --- v240_hook.txt, unchanged ----------------------------------------------------------------+10 spawn 0 AmericaParticleCannonUplink 1 start0:0:-200+10 spawn 0 AmericaPowerPlant 3 start0:-260:40 90+10 spawn 0 AmericaCommandCenter 1 start0:240:60+10 spawn 0 AmericaAirfield 1 start0:0:300+10 spawn 1 ChinaNuclearMissileLauncher 1 start1:0:200+10 spawn 1 ChinaPowerPlant 3 start1:260:-40 90+10 spawn 1 ChinaCommandCenter 1 start1:-260:60+10 spawn 2 GLAScudStorm 1 start2:0:200+10 spawn 2 GLACommandCenter 1 start2:-260:0+20 shiftupgrade 0 AmericaAirfield Upgrade_AmericaCountermeasures++30 spawn 0 AmericaTankCrusader 12 655 1824 36+30 spawn 0 AmericaTankPaladin 6 565 1924 40+30 spawn 0 AmericaVehicleTomahawk 4 555 1784 40+30 spawn 0 AmericaTankMicrowave 3 725 1734 40+30 spawn 0 AmericaInfantryRanger 16 745 1884 18+30 spawn 0 AmericaVehicleComanche 6 565 1704 60+30 spawn 0 AmericaJetRaptor 4 505 1654 70+30 spawn 1 ChinaTankOverlord 5 1345 2384 50+30 spawn 1 ChinaTankBattleMaster 10 1265 2444 40+30 spawn 1 ChinaTankGattling 5 1425 2304 36+30 spawn 1 ChinaTankDragon 4 1245 2324 36+30 spawn 1 ChinaVehicleInfernoCannon 4 1405 2464 40+30 spawn 1 ChinaInfantryRedguard 16 1195 2414 18+30 spawn 1 ChinaVehicleHelix 3 1465 2454 60+30 spawn 1 ChinaJetMIG 4 1515 2524 70+30 spawn 2 GLATankScorpion 10 1325 1804 36+30 spawn 2 GLATankMarauder 5 1405 1844 40+30 spawn 2 GLAVehicleRocketBuggy 6 1265 1734 32+30 spawn 2 GLAVehicleQuadCannon 4 1385 1734 36+30 spawn 2 GLAVehicleToxinTruck 3 1465 1784 36+30 spawn 2 GLAVehicleTechnical 6 1245 1864 30+30 spawn 2 GLAInfantryRebel 16 1315 1904 18+60 attackmove 0 * 1000 2100+60 attackmove 1 * 1000 2100+60 attackmove 2 * 1000 2100++600 spawn 0 AmericaTankCrusader 8 655 1824 36+600 spawn 0 AmericaTankPaladin 4 565 1924 40+600 spawn 1 ChinaTankBattleMaster 8 1265 2444 40+600 spawn 1 ChinaTankOverlord 3 1345 2384 50+600 spawn 2 GLATankScorpion 8 1325 1804 36+600 spawn 2 GLATankMarauder 3 1405 1844 40+630 attackmove 0 * 1000 2100+630 attackmove 1 * 1000 2100+630 attackmove 2 * 1000 2100++450 power 0 AmericaCommandCenter 1000 2100 SuperweaponSpectreGunship+560 power 0 AmericaCommandCenter 845 2004 SuperweaponA10ThunderboltMissileStrike+640 power 1 ChinaCommandCenter 1165 2104 Early_SuperweaponChinaCarpetBomb+700 power 2 GLACommandCenter 1015 1964 SuperweaponAnthraxBomb++# v240_hook calls the nuke at 830 and its fireball covered the middle third of the frame from+# frame 1080 on; called at 1000 it lands about 1200, when the beam has been burning for six seconds.+1000 power 1 ChinaNuclearMissileLauncher 925 2194+930 power 0 AmericaParticleCannonUplink 945 2144+930 power 2 GLAScudStorm 1065 2044++# --- buildings on the edges of the frame ------------------------------------------------------+10 spawn 2 GLAPalace 1 1200 1930+10 spawn 2 GLAArmsDealer 1 1290 1870+10 spawn 2 GLAStingerSite 1 1130 1990+10 spawn 1 ChinaBunker 1 1240 2190+10 spawn 1 ChinaGattlingCannon 1 1300 2120+10 spawn 0 AmericaPatriotBattery 1 900 1800+10 spawn 0 AmericaFireBase 1 840 1900++600 particles 2 SootySmokeColumn02 1 1200 1930+600 particles 2 FireFactionLarge 1 1200 1930+620 particles 1 SootySmokeColumn02 1 1240 2190+620 particles 1 FireFactionLarge 1 1240 2190+640 particles 0 SootySmokeColumn02 1 840 1900+640 particles 0 FireFactionMedium 1 840 1900+660 particles 0 SootySmokeColumn02 2 900 2330 80+660 particles 0 FireFactionSmall 2 900 2330 80++# --- a tank duel along the bottom of the frame -------------------------------------------------+700 spawn 0 AmericaTankPaladin 5 620 2150 40+700 spawn 1 ChinaTankOverlord 4 1050 2450 50+710 attackmove 0 AmericaTankPaladin 880 2300+710 attackmove 1 ChinaTankOverlord 760 2220++# --- powers on the edges -----------------------------------------------------------------------+700 power 1 ChinaCommandCenter 1220 1920 SuperweaponNapalmStrike+760 power 1 ChinaCommandCenter 880 1880 SuperweaponArtilleryBarrage++# --- the top right, which the first take left as bare grass ----------------------------------------+10 spawn 2 GLASupplyStash 1 1080 1450+600 particles 2 SootySmokeColumn02 1 1080 1450+600 particles 2 FireFactionLarge 1 1080 1450+600 particles 2 SootySmokeColumn02 1 990 1560+600 particles 2 FireFactionMedium 1 990 1560+700 spawn 2 GLAVehicleRocketBuggy 6 1250 1450 32+700 spawn 0 AmericaVehicleHumvee 6 760 1560 34+710 attackmove 2 GLAVehicleRocketBuggy 1000 1560+710 attackmove 0 AmericaVehicleHumvee 1060 1480++# --- the far top band, bare grass in the second take ---------------------------------------------+10 spawn 2 GLAArmsDealer 1 1560 1760+10 spawn 2 GLABarracks 1 1350 1540+600 particles 2 SootySmokeColumn02 1 1560 1760+600 particles 2 FireFactionLarge 1 1560 1760+600 particles 2 SootySmokeColumn02 1 1350 1540+600 particles 2 FireFactionMedium 1 1350 1540+600 particles 2 SootySmokeColumn02 1 1720 1980+600 particles 2 FireFactionMedium 1 1720 1980+# A general's own template, so the order moves this squad and not the main army's Scorpions.+850 spawn 2 Demo_GLATankScorpion 6 1560 1640 36+850 spawn 0 AirF_AmericaVehicleHumvee 6 1150 1400 34+860 attackmove 2 Demo_GLATankScorpion 1300 1520+860 attackmove 0 AirF_AmericaVehicleHumvee 1450 1620++# --- the air at the peak ---------------------------------------------------------------------+# The palace has fallen by 840 in this match, so the jets are sent onto the GLA ground instead.+940 spawn 0 AirF_AmericaJetRaptor 4 500 1900 60+940 spawn 1 ChinaJetMIG 4 1500 2600 70+945 attackmove 0 AirF_AmericaJetRaptor 1200 1900+945 attack 1 ChinaJetMIG 0 AmericaPatriotBattery+1000 spawn 0 AmericaVehicleChinook 1 700 1640+1005 move 0 AmericaVehicleChinook 1500 2260diff --git a/GeneralsMD/Code/Data/Scenarios/rf_thumb_fe.txt b/GeneralsMD/Code/Data/Scenarios/rf_thumb_fe.txtnew file mode 100644index 000000000..d8ce5b188--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/rf_thumb_fe.txt@@ -0,0 +1,155 @@+# The YouTube thumbnail of the Reforged trailer: the three islands of Flash Effect meeting at the+# derrick beach, one army off each (America west, China east, the GLA from the north island), with a+# fight in every part of the frame of Cinema/rf_thumb_fe.txt at about frame 1050. Each side has a+# few buildings inside the frame for the others to set on fire, the air over all of it, and every+# general's power timed onto a different corner: the nuke top left, the particle beam right of the+# middle, the SCUDs on China's bunkers, China's carpet bomb and artillery on the American flank,+# napalm and the A-10s on the GLA. America's CommandCenter fires no SuperweaponCarpetBomb here+# ("fired 0"), so that flank has none of its own.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 12000 -noDynamicLOD -map "Maps\Flash Effect\Flash Effect.map" -autoskirmish 3+# -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA -seed 7+# -scenario rf_thumb_fe -cinema rf_thumb_fe -video 930 1230 rf_thumb_fe -maxframes 1240+#+# The armies come in three waves, ordered at frames 60, 460 and 760, so the first has burnt out on+# the beach by the peak and the third is just meeting. Times of the powers are the trailer's: a+# general's air strike about 400 frames from the call, the beam 75, SCUDs 130, the nuke 170 to 200.++# --- the bases, off frame on each island -----------------------------------------------------+# On this map start0 is the north island, start1 the east and start2 the west, so America builds on+# start2 and the GLA on start0. With America on start0 the GLA's first wave spawned beside the+# uplink and had destroyed it before the beam was called. Three plants did not carry the uplink with+# the airfield, the barracks, two Patriots and the firebase drawing on them ("is disabled (no+# power?)" at frame 900), so there are seven.+10 spawn 0 AmericaParticleCannonUplink 1 start2:0:-200+10 spawn 0 AmericaPowerPlant 3 start2:-260:40 90+10 spawn 0 AmericaPowerPlant 4 start2:260:-220 90+10 spawn 0 AmericaCommandCenter 1 start2:240:60+10 spawn 0 AmericaAirfield 1 start2:-300:-250+10 spawn 1 ChinaNuclearMissileLauncher 1 start1:0:200+10 spawn 1 ChinaPowerPlant 3 start1:260:-40 90+10 spawn 1 ChinaCommandCenter 1 start1:-260:60+10 spawn 2 GLAScudStorm 1 start0:0:200+10 spawn 2 GLACommandCenter 1 start0:-260:0+20 shiftupgrade 0 AmericaAirfield Upgrade_AmericaCountermeasures++# --- buildings in frame ----------------------------------------------------------------------+# GLA across the top on the north island, China on the right, America on the left.+10 spawn 2 GLAPalace 1 1760 2060+10 spawn 2 GLAArmsDealer 1 1930 2010+10 spawn 2 GLABarracks 1 1610 2050+10 spawn 2 GLASupplyStash 1 2040 2090+10 spawn 2 GLAStingerSite 1 1700 1900+10 spawn 2 GLAStingerSite 1 1880 1880+10 spawn 2 GLATunnelNetwork 1 1560 1930+10 spawn 1 ChinaBunker 1 1960 1450+10 spawn 1 ChinaGattlingCannon 1 1930 1570+10 spawn 1 ChinaGattlingCannon 1 2000 1350+10 spawn 1 ChinaPropagandaCenter 1 2060 1240+10 spawn 0 AmericaPatriotBattery 1 1480 1540+10 spawn 0 AmericaPatriotBattery 1 1500 1380+10 spawn 0 AmericaFireBase 1 1560 1460+10 spawn 0 AmericaBarracks 1 1430 1240++# --- wave one: on the beach by frame 400, wrecks and fires by the peak -------------------------+30 spawn 0 AmericaTankCrusader 10 1250 1420 36+30 spawn 0 AmericaVehicleHumvee 6 1300 1560 34+30 spawn 0 AmericaInfantryRanger 12 1320 1350 18+30 spawn 1 ChinaTankBattleMaster 10 2150 1420 40+30 spawn 1 ChinaTankGattling 4 2120 1560 36+30 spawn 1 ChinaInfantryRedguard 12 2100 1330 18+30 spawn 2 GLATankScorpion 10 1720 2300 36+30 spawn 2 GLAVehicleTechnical 6 1620 2280 30+30 spawn 2 GLAInfantryRebel 12 1820 2260 18+60 attackmove 0 * 1700 1560+60 attackmove 1 * 1700 1560+60 attackmove 2 * 1700 1620++# --- the artillery duel across the frame ----------------------------------------------------+300 spawn 0 AmericaVehicleTomahawk 4 1530 1290 40+300 spawn 1 ChinaVehicleInfernoCannon 4 1880 1300 40+300 spawn 1 ChinaVehicleNukeLauncher 2 2000 1180 50+300 spawn 2 GLAVehicleScudLauncher 3 1800 2170 50+310 attack 0 AmericaVehicleTomahawk 1 ChinaBunker+310 attack 1 ChinaVehicleInfernoCannon 0 AmericaFireBase+310 attack 1 ChinaVehicleNukeLauncher 0 AmericaPatriotBattery+310 attack 2 GLAVehicleScudLauncher 1 ChinaGattlingCannon++# --- wave two --------------------------------------------------------------------------------+450 spawn 0 AmericaTankCrusader 8 1250 1420 36+450 spawn 0 AmericaTankPaladin 5 1300 1300 40+450 spawn 0 AmericaInfantryMissileDefender 10 1330 1500 18+450 spawn 0 AmericaVehicleComanche 6 1200 1350 60+450 spawn 1 ChinaTankBattleMaster 8 2150 1420 40+450 spawn 1 ChinaTankOverlord 4 2150 1280 50+450 spawn 1 ChinaInfantryTankHunter 10 2100 1560 18+450 spawn 1 ChinaVehicleHelix 3 2200 1350 60+450 spawn 2 GLATankMarauder 6 1650 2280 40+450 spawn 2 GLAVehicleRocketBuggy 8 1800 2300 32+450 spawn 2 GLAInfantryTunnelDefender 10 1720 2240 18+460 attackmove 0 AmericaTankCrusader 1720 1560+460 attackmove 0 AmericaTankPaladin 1820 1380+460 attackmove 0 AmericaInfantryMissileDefender 1600 1600+460 attackmove 0 AmericaVehicleComanche 1720 1880+460 attackmove 1 ChinaTankBattleMaster 1700 1560+460 attackmove 1 ChinaTankOverlord 1600 1400+460 attackmove 1 ChinaInfantryTankHunter 1820 1620+460 attackmove 1 ChinaVehicleHelix 1520 1440+460 attackmove 2 GLATankMarauder 1560 1650+460 attackmove 2 GLAVehicleRocketBuggy 1880 1600+460 attackmove 2 GLAInfantryTunnelDefender 1720 1700++# --- smoke over what is burning ---------------------------------------------------------------+600 particles 2 SootySmokeColumn02 1 1760 2060+600 particles 2 FireFactionLarge 1 1760 2060+600 particles 2 SootySmokeColumn02 1 1930 2010+600 particles 2 FireFactionMedium 1 1930 2010+620 particles 1 SootySmokeColumn02 1 1960 1450+620 particles 1 FireFactionLarge 1 1960 1450+640 particles 0 SootySmokeColumn02 1 1560 1460+640 particles 0 FireFactionMedium 1 1560 1460+660 particles 0 SootySmokeColumn02 2 1640 1580 70+660 particles 0 FireFactionSmall 2 1640 1580 70++# --- the powers ------------------------------------------------------------------------------+450 power 0 AmericaCommandCenter 1740 1960 SuperweaponSpectreGunship+620 power 0 AmericaCommandCenter 1720 2020 SuperweaponA10ThunderboltMissileStrike+640 power 1 ChinaCommandCenter 1520 1360 Early_SuperweaponChinaCarpetBomb+700 power 1 ChinaCommandCenter 1880 1960 SuperweaponNapalmStrike+760 power 1 ChinaCommandCenter 1520 1420 SuperweaponArtilleryBarrage+800 power 1 ChinaNuclearMissileLauncher 1400 1990+900 power 0 AmericaParticleCannonUplink 1850 1660+920 power 2 GLAScudStorm 1960 1440++# --- wave three: meeting at the peak ----------------------------------------------------------+750 spawn 0 AmericaTankCrusader 10 1250 1420 36+750 spawn 0 AmericaTankPaladin 4 1300 1300 40+750 spawn 0 AmericaInfantryRanger 12 1320 1500 18+750 spawn 1 ChinaTankBattleMaster 10 2150 1420 40+750 spawn 1 ChinaTankDragon 4 2120 1560 36+750 spawn 1 ChinaInfantryRedguard 12 2100 1330 18+750 spawn 2 GLATankScorpion 10 1720 2300 36+750 spawn 2 GLAVehicleQuadCannon 4 1620 2280 36+750 spawn 2 GLAVehicleToxinTruck 2 1820 2280 36+760 attackmove 0 AmericaTankCrusader 1700 1560+760 attackmove 0 AmericaInfantryRanger 1600 1480+760 attackmove 1 ChinaTankBattleMaster 1720 1540+760 attackmove 1 ChinaTankDragon 1800 1620+760 attackmove 1 ChinaInfantryRedguard 1800 1450+760 attackmove 2 GLATankScorpion 1700 1640+760 attackmove 2 GLAVehicleQuadCannon 1650 1800+760 attackmove 2 GLAVehicleToxinTruck 1820 1700++# --- the air at the peak ---------------------------------------------------------------------+# Raptors and King Raptors on the GLA base, MiGs on the Patriots, a Chinook crossing the top.+# The jets are spawned late so their first pass falls between frames 1100 and 1150; the Chinook,+# 150 a second, is over the derricks about frame 1130.+940 spawn 0 AmericaJetRaptor 4 1100 1700 60+940 spawn 0 AirF_AmericaJetRaptor 4 1100 1550 60+940 spawn 1 ChinaJetMIG 6 2350 1500 70+945 attack 0 AmericaJetRaptor 2 GLAPalace+945 attack 0 AirF_AmericaJetRaptor 2 GLAArmsDealer+945 attack 1 ChinaJetMIG 0 AmericaPatriotBattery+1000 spawn 0 AmericaVehicleChinook 1 1150 1620+1005 move 0 AmericaVehicleChinook 2350 1850