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
feat(data): vehicles turn a quarter faster, never under 120 deg/s
Olcay Seygan7ac0c44c026b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 23f648fc3..6034c5b51 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -47,7 +47,8 @@ found and fixed — EA's own, not port damage.**- Sent a short way behind itself, a tank backs up. It used to spin round on the spot and drive off nose first every time. Anything sent within three lengths behind it now reverses at a bit under half speed, and so does a car that has a reverse gear. A Humvee sent a long way behind does a three-point turn instead of pirouetting in its own length. Cars used to reverse at full speed; they now back up at 45% of it.- A car turns no tighter than a car can. EA turned a Quad Cannon round in less than its own length about its rear axle, so its middle swung sideways at twice the speed it drove. A car's turn is held to a circle one and a half lengths across at speed, and only when that circle cannot reach the spot it was sent to does it crawl round a tight one instead, so it still gets everywhere it used to. Without a reverse gear that costs time: a Quad Cannon sent 50 behind itself takes 4.8 seconds where it took 2.2.- A vehicle that had just parked used to start its next move with a lurch, and arrived crabbing sideways into its spot. Both are gone.-- Players told us the tanks felt sluggish off the line, and they were right. Every vehicle you can build, on all three sides and in all nine generals' armies, now pulls away and brakes a quarter harder than it did. A Crusader is at full speed 1.17 seconds after the order instead of 1.37, an Overlord after 1.27 instead of 1.5, and a Humvee sent across a short stretch of ground arrives an eighth of a second sooner. Top speeds and turning are unchanged, and soldiers, aircraft and boats are untouched. Replays recorded before this change will not play back.+- Players told us the tanks felt sluggish off the line, and they were right. Every vehicle you can build, on all three sides and in all nine generals' armies, now pulls away and brakes a quarter harder than it did. A Crusader is at full speed 1.17 seconds after the order instead of 1.37, an Overlord after 1.27 instead of 1.5, and a Humvee sent across a short stretch of ground arrives an eighth of a second sooner. Top speeds are unchanged, and soldiers, aircraft and boats are untouched. Replays recorded before this change will not play back.+- They turn faster as well. Every vehicle you can build swings round a quarter faster than it did, and none turns slower than 120 degrees a second, so the Overlord gains most: sent somewhere straight behind it, an Overlord is rolling at speed 2.5 seconds after the order where it took 4.4, and a Crusader after 1.77 seconds instead of 1.93. The Emperor comes round twice as fast as before, the SCUD Launcher more than that. Turrets turn exactly as they did. Replays recorded before this change will not play back, and this version cannot join a game hosted on an older one.- Groups get where they are going as fast as before. Twenty Crusaders crossing a generated map arrived on average within 3% of the old time over eight maps, and the last of them a fifth of a second later. A replay recorded before this change plays back differently.## Soldiers turn and stop on their feetdiff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifestindex 3328d5d80..253cb9150 100644--- a/GeneralsMD/Code/BuildFingerprint.manifest+++ b/GeneralsMD/Code/BuildFingerprint.manifest@@ -217,6 +217,7 @@ Data/Scenarios/v240_md.txtData/Scenarios/v240_tank.txtData/Scenarios/vehicleaccel.txtData/Scenarios/vehiclelean.txt+Data/Scenarios/vehicleturn.txtData/Scenarios/vision.txtData/Scenarios/wreckcheck.txtData/Scripts/SkirmishScripts.scbdiff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex 92ad7bc48..e21a786dd 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -546,241 +546,329 @@ End; Braking than it had: a Crusader is at 99% of top speed 35 frames after the order where it took 41; (Scenarios/vehicleaccel.txt, -tracemove 57). The "was" comments; give the number before that. The Listening Outpost's Acceleration and every vehicle after it kept-; EA's numbers until then and get the same quarter on top of them ("EA" comments). Speed and TurnRate-; are untouched. Aircraft taxiing, infantry, boats and the campaign's civilian cars are left alone.+; EA's numbers until then and get the same quarter on top of them ("EA" comments). Speed is+; untouched. Aircraft taxiing, infantry, boats and the campaign's civilian cars are left alone.+;+; The same vehicles turn faster too: TurnRate and TurnRateDamaged are a quarter above EA's, and never+; below 120 degrees a second. The quarter alone left the Overlord at 75, and its sluggishness was the+; turn, not the start: a tank pivots on the spot at half its TurnRate (TREAD_PIVOT_SHARE in+; Locomotor.cpp), so EA's 60 swung it round at 30 degrees a second. The floor reaches the Overlord+; family, the SCUD Launcher (EA: 50) and the 90-degree trucks, dozers and Nuke Cannon, and it also+; lifts their TurnRateDamaged, which EA had set below TurnRate. Sent to a point straight behind it+; (Scenarios/vehicleturn.txt), an Overlord reaches 90% of top speed on the new heading 74 frames after+; the order where it took 131; a Crusader 53 where it took 58. Turret turn rates are separate and+; untouched.Locomotor TomahawkLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor CrusaderLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor MilitiaTankLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor BasicTankLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor DragonLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor InfernoLocomotorAcceleration = 31.25 ; was 25AccelerationDamaged = 31.25 ; was 25Braking = 50 ; was 40+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 120 ; EA: 90EndLocomotor BattleMasterLocomotorAcceleration = 26.25 ; was 21AccelerationDamaged = 26.25 ; was 21Braking = 41.25 ; was 33+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor Tank_BattleMasterLocomotorAcceleration = 30 ; was 24AccelerationDamaged = 30 ; was 24Braking = 48.75 ; was 39+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor NuclearBattleMasterLocomotorAcceleration = 36.25 ; was 29AccelerationDamaged = 36.25 ; was 29Braking = 58.75 ; was 47+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor Tank_NuclearBattleMasterLocomotorAcceleration = 36.25 ; was 29AccelerationDamaged = 36.25 ; was 29Braking = 58.75 ; was 47+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor Nuke_FusionBattleMasterLocomotorAcceleration = 47.5 ; was 38AccelerationDamaged = 47.5 ; was 38Braking = 75 ; was 60+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor ScorpionLocomotorAcceleration = 45 ; was 36AccelerationDamaged = 45 ; was 36Braking = 71.25 ; was 57+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor MarauderLocomotorAcceleration = 41.25 ; was 33AccelerationDamaged = 41.25 ; was 33Braking = 66.25 ; was 53+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor GattlingTankLocomotorAcceleration = 45 ; was 36AccelerationDamaged = 45 ; was 36Braking = 71.25 ; was 57+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor HumveeLocomotorAcceleration = 75 ; was 60AccelerationDamaged = 75 ; was 60Braking = 107.5 ; was 86+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor AvengerLocomotorAcceleration = 37.5 ; was 30AccelerationDamaged = 37.5 ; was 30Braking = 53.75 ; was 43+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor QuadCannonLocomotorAcceleration = 50 ; was 40AccelerationDamaged = 50 ; was 40Braking = 71.25 ; was 57+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor TroopCrawlerLocomotorAcceleration = 50 ; was 40AccelerationDamaged = 50 ; was 40Braking = 71.25 ; was 57+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 150 ; EA: 120EndLocomotor BombTruckLocomotorAcceleration = 62.5 ; was 50AccelerationDamaged = 62.5 ; was 50Braking = 88.75 ; was 71+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor BattleBusLocomotorAcceleration = 72.5 ; was 58AccelerationDamaged = 72.5 ; was 58Braking = 116.25 ; was 93+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor ListeningOutpostLocomotorAcceleration = 25 ; EA: 20AccelerationDamaged = 20 ; EA: 16Braking = 71.25 ; was 57+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 90EndLocomotor OverlordLocomotorAcceleration = 18.75 ; EA: 15AccelerationDamaged = 18.75 ; EA: 15Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 60+ TurnRateDamaged = 120 ; EA: 60EndLocomotor NuclearOverlordLocomotorAcceleration = 37.5 ; EA: 30AccelerationDamaged = 37.5 ; EA: 30Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 60+ TurnRateDamaged = 120 ; EA: 60EndLocomotor Tank_OverlordLocomotorAcceleration = 18.75 ; EA: 15AccelerationDamaged = 18.75 ; EA: 15Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 60+ TurnRateDamaged = 120 ; EA: 60EndLocomotor Nuke_FusionOverlordLocomotorAcceleration = 37.5 ; EA: 30AccelerationDamaged = 37.5 ; EA: 30Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 80+ TurnRateDamaged = 120 ; EA: 80EndLocomotor ChinaNukeCannonLocomotorAcceleration = 37.5 ; EA: 30AccelerationDamaged = 10 ; EA: 8Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor ChinaVehicleDozerLocomotorAcceleration = 37.5 ; EA: 30AccelerationDamaged = 10 ; EA: 8Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor AmericaVehicleDozerLocomotorAcceleration = 37.5 ; EA: 30AccelerationDamaged = 10 ; EA: 8Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor SupplyTruckLocomotorAcceleration = 300 ; EA: 240AccelerationDamaged = 225 ; EA: 180Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 90+ TurnRateDamaged = 120 ; EA: 60EndLocomotor SentryLocomotorAcceleration = 75 ; EA: 60AccelerationDamaged = 75 ; EA: 60Braking = 75 ; EA: 60+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor ScudLauncherLocomotorAcceleration = 200 ; EA: 160AccelerationDamaged = 150 ; EA: 120Braking = 62.5 ; EA: 50+ TurnRate = 120 ; EA: 50+ TurnRateDamaged = 120 ; EA: 45EndLocomotor TechnicalLocomotorAcceleration = 125 ; EA: 100AccelerationDamaged = 125 ; EA: 100Braking = 62.5 ; EA: 50+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor RocketBuggyLocomotorAcceleration = 112.5 ; EA: 90AccelerationDamaged = 100 ; EA: 80Braking = 62.5 ; EA: 50+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor RadarVanLocomotorAcceleration = 62.5 ; EA: 50AccelerationDamaged = 62.5 ; EA: 50Braking = 62.5 ; EA: 50+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor ToxinTruckLocomotorAcceleration = 125 ; EA: 100AccelerationDamaged = 125 ; EA: 100Braking = 125 ; EA: 100+ TurnRate = 225 ; EA: 180+ TurnRateDamaged = 225 ; EA: 180EndLocomotor CombatBikeGroundLocomotorAcceleration = 112.5 ; EA: 90AccelerationDamaged = 100 ; EA: 80Braking = 75 ; EA: 60+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 150 ; EA: 120EndLocomotor CombatBikeCliffLocomotorAcceleration = 112.5 ; EA: 90AccelerationDamaged = 100 ; EA: 80Braking = 75 ; EA: 60+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 150 ; EA: 120EndLocomotor CombatBikeTerroristGroundLocomotorAcceleration = 85 ; EA: 68AccelerationDamaged = 75 ; EA: 60Braking = 75 ; EA: 60+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 150 ; EA: 120EndLocomotor CombatBikeTerroristCliffLocomotorAcceleration = 62.5 ; EA: 50AccelerationDamaged = 50 ; EA: 40Braking = 75 ; EA: 60+ TurnRate = 150 ; EA: 120+ TurnRateDamaged = 150 ; EA: 120End; ---- missile defence: flares on the Air Force General's aircraft, a hard-kill charge on the tanks ---diff --git a/GeneralsMD/Code/Data/Scenarios/vehicleturn.txt b/GeneralsMD/Code/Data/Scenarios/vehicleturn.txtnew file mode 100644index 000000000..ccd767a20--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/vehicleturn.txt@@ -0,0 +1,42 @@+# Five main tanks, each alone in its own lane 200 apart, sent 400 west over the open grass of the small+# generated map. They spawn facing east, so the order is straight behind them and far enough that+# none backs up to it: each has to come round 180 degrees and then drive off. For the vehicle+# TurnRate in BalanceReforged.ini. -tracemove follows one unit, so it takes one run per tank: 57 is+# the Crusader, 58 the Battlemaster, 59 the Overlord, 60 the Scorpion, 61 the Paladin. The number is+# the first MOVETRACE frame whose forward speed (last column) reaches 90% of top speed (seventh),+# counted from the order on frame 60.+#+# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -randommap 1 2 small -autoskirmish 2 -takeover+# -side 0 FactionAmerica -side 1 FactionChina -seed 1 -maxframes 1000+# -scenario vehicleturn -tracemove 57 -logPrefix vehicleturn57_+#+# The Overlord runs in the last lane: at y 850, the lane vehicleaccel.txt gives it, the path detours+# round blocked ground and the heading never settles on west. The Battlemaster's and Paladin's points+# are moved by the pathfinder on this seed, so their arrive lines report none.+#+# Measured 2026-10-06, frames from the order, before / after TurnRate +25% with a floor of 120+# (90% counts only once the heading is within 15 degrees of west):+# starts rolling Crusader 33 / 28, Battlemaster 32 / 27, Overlord 86 / 46, Scorpion 34 / 29, Paladin 34 / 29+# 90% of top Crusader 58 / 53, Battlemaster 57 / 52, Overlord 131 / 74, Scorpion 57 / 52, Paladin 59 / 54+# arrival Crusader 447 / 442, Overlord 706 / 653, Scorpion 352 / 346+#+# See mobstress.txt for the line grammar.++30 spawn 0 AmericaTankCrusader 1 700 450+30 spawn 0 ChinaTankBattleMaster 1 700 650+30 spawn 0 ChinaTankOverlord 1 700 1450+30 spawn 0 GLATankScorpion 1 700 1050+30 spawn 0 AmericaTankPaladin 1 700 1250++60 move 0 AmericaTankCrusader 300 450+60 move 0 ChinaTankBattleMaster 300 650+60 move 0 ChinaTankOverlord 300 1450+60 move 0 GLATankScorpion 300 1050+60 move 0 AmericaTankPaladin 300 1250++60 arrive 0 AmericaTankCrusader 300 450 10+60 arrive 0 ChinaTankBattleMaster 300 650 10+60 arrive 0 ChinaTankOverlord 300 1450 10+60 arrive 0 GLATankScorpion 300 1050 10+60 arrive 0 AmericaTankPaladin 300 1250 10