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
fix(data): supply trips pay retail 75, 300 and 600 again
Olcay Seygan7adec650bd82
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3b79d07de..1a2237fc2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1280,7 +1280,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- A worker leaves a supply pile the instant its load is done. After taking its last box it used to stand at the pile for one more full loading cycle, taking nothing. Every worker you own now brings in a little more money per trip.- A worker loads in one go instead of a box at a time. It used to take one, wait a loading cycle, take the next, wait again; now the whole load changes hands once and the wait is that load's worth of time - four boxes cost what four boxes always cost, in one stretch rather than four. Money in the bank is unchanged, which is the point: three headless matches on the same seeds came back within a few percent of what they earned before.- A GLA worker can no longer mint money standing still. Build a stash as close to a supply pile as the game allows and a worker could end up in the gap between them, touching both. It loaded at the pile and unloaded at the stash without taking a step, a $75 box every second, and the popups stacked over its head. Every hand-over now waits until a worker could have walked the gap, so that worker earns what a worker walking the shortest trip earns: with a stash hugging a pile, two workers brought in 101 boxes in a minute before and 50 now. Workers that do walk are untouched; a stash placed so they have to earned exactly the same, box for box, before and after.-- The three sides now mine a supply pile at the same pace. With five GLA workers, three Chinese supply trucks and three Chinooks on one pile, GLA used to bring in 90 dollars a second with the stash beside it and 27 with the stash 250 feet away, China 56 and 47, and the USA 55 at both. Now all three earn between 49 and 60 a second, close or far. A GLA worker carries three boxes a trip and takes longer loading them, a Chinese truck carries six, and the Chinook is untouched. Worker Shoes is now speed alone, with no extra dollars a box: with the old bonus on top of three-box loads, five upgraded workers made 72 a second beside the pile against 60 for three Chinooks with Supply Lines. Now they make 66 beside it and 61 at 250 feet. Replays recorded before this change play out differently.+- A supply trip pays what it paid in the original game. A GLA worker brings back one box, $75, a Chinese truck four, $300, and a Chinook eight, $600; the Chinook was never touched. Workers and trucks load at their old speed again, and Worker Shoes adds its 8 dollars a box on top of the speed. From v3.0.0 to v3.5.1 a worker carried three boxes and a truck six, each loading slower to match, which held all three sides between 49 and 60 dollars a second off one pile at any distance. That evening out is gone with the bigger loads: when these numbers were last measured, in October, five workers made 90 a second with the stash beside the pile and 27 with it 250 feet away, while three trucks stayed near 50 and three Chinooks at 55. Turkiye's truck is built on the Chinese one and carries four boxes too. Replays recorded before this change play out differently.- Supply points refill themselves, slowly, and faster the more of a base has grown around them. A warehouse used to be a fixed lump of money that ran out and left the map with nothing to fight over: whoever mined out the middle first had the game, and the second half of every match was played on income neither side could earn any more. Six hundred dollars comes back every forty seconds standing on its own, every twenty with one supply centre built near it, every thirteen with two - up to what the point started with, never past it. A single box was too little to be worth the trip: a hundred dollars every forty seconds is less than the harvester earns going to fetch it, so a mined-out point stayed mined out as far as anybody playing was concerned. Both sides expanding onto the same patch make it richer and then have to decide which of them keeps it.- Your workers tell you a supply point has run dry once a match. With piles refilling, they ran dry again and again, and every time the same worker said so.- Workers stop hesitating on their way in and out. A dock has a queue outside it and a worker treated its place in that queue as a destination: it drove to the spot, stopped dead, waited a frame, drove to the door, stopped again, and only then went in - twice a load, and nearly every load with nothing else queued. With the dock empty it drives straight in. The first version of that also skipped the walk to a supply pile or a GLA stash, which have no door of their own, so a worker a long way off played its loading animation where it stood and was paid anyway. In a four-player test match 72 loads were picked up or dropped off away from the dock, one of them 613 feet from it; now there are none.diff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex 1a8e6e769..2cd373fe9 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -1052,145 +1052,6 @@ Object SupW_NeutronMissileEndEnd-; ---- five workers, three trucks and three Chinooks earn the same off one pile ----------------------; A pile serves one docker at a time, so close to it income is bound by the dock time and far from-; it by the walk. EA's numbers left GLA at 90 a second beside the pile and 27 at 250 feet, China at-; 56 and 47, and USA at 55 at both, the Chinook barely caring how far it flies. The GLA worker now-; carries three boxes and takes 1.25 s for each, and the Chinese truck six at 1.1 s each, which puts-; all three between 49 and 60 a second at both distances (Golden Oasis, one pile, min 1 to 3, seed-; 1). The USA is left as EA made it. Worker Shoes pays nothing extra per load any more: its speed-; alone takes five upgraded workers to 66 a second beside the pile and 61 at 250, against 60.5 for-; three Chinooks with Supply Lines. Its old cash bonus put them at 72 and 66 (min 1 to 3, upgrades-; done before gathering starts).--Object GLAInfantryWorker- ReplaceModule ModuleTag_03- Behavior = WorkerAIUpdate ModuleTag_03_Reforged- RepairHealthPercentPerSecond = 2%- BoredTime = 5000- BoredRange = 150- MaxBoxes = 3 ; EA: 1- UpgradedSupplyBoost = 0 ; EA: 8- SupplyCenterActionDelay = 150- SupplyWarehouseActionDelay = 1250 ; EA: 150, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = WorkerVoiceSuppliesDepleted- AutoAcquireEnemiesWhenIdle = Yes- End- End-End--Object Chem_GLAInfantryWorker- ReplaceModule ModuleTag_03- Behavior = WorkerAIUpdate ModuleTag_03_Reforged- RepairHealthPercentPerSecond = 2%- BoredTime = 5000- BoredRange = 150- MaxBoxes = 3 ; EA: 1- UpgradedSupplyBoost = 0 ; EA: 8- SupplyCenterActionDelay = 150- SupplyWarehouseActionDelay = 1250 ; EA: 150, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = WorkerVoiceSuppliesDepleted- AutoAcquireEnemiesWhenIdle = Yes- End- End-End--Object Demo_GLAInfantryWorker- ReplaceModule ModuleTag_03- Behavior = WorkerAIUpdate ModuleTag_03_Reforged- RepairHealthPercentPerSecond = 2%- BoredTime = 5000- BoredRange = 150- MaxBoxes = 3 ; EA: 1- UpgradedSupplyBoost = 0 ; EA: 8- SupplyCenterActionDelay = 150- SupplyWarehouseActionDelay = 1250 ; EA: 150, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = WorkerVoiceSuppliesDepleted- AutoAcquireEnemiesWhenIdle = Yes- End- End-End--Object Slth_GLAInfantryWorker- ReplaceModule ModuleTag_03- Behavior = WorkerAIUpdate ModuleTag_03_Reforged- RepairHealthPercentPerSecond = 2%- BoredTime = 5000- BoredRange = 150- MaxBoxes = 3 ; EA: 1- UpgradedSupplyBoost = 0 ; EA: 8- SupplyCenterActionDelay = 150- SupplyWarehouseActionDelay = 1250 ; EA: 150, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = WorkerVoiceSuppliesDepleted- AutoAcquireEnemiesWhenIdle = Yes- End- End-End--Object ChinaVehicleSupplyTruck- ReplaceModule ModuleTag_03- Behavior = SupplyTruckAIUpdate ModuleTag_03_Reforged- MaxBoxes = 6 ; EA: 4- SupplyCenterActionDelay = 400- SupplyWarehouseActionDelay = 1100 ; EA: 1000, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted- End- End-End--Object Infa_ChinaVehicleSupplyTruck- ReplaceModule ModuleTag_03- Behavior = SupplyTruckAIUpdate ModuleTag_03_Reforged- MaxBoxes = 6 ; EA: 4- SupplyCenterActionDelay = 400- SupplyWarehouseActionDelay = 1100 ; EA: 1000, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted- End- End-End--Object Nuke_ChinaVehicleSupplyTruck- ReplaceModule ModuleTag_03- Behavior = SupplyTruckAIUpdate ModuleTag_03_Reforged- MaxBoxes = 6 ; EA: 4- SupplyCenterActionDelay = 400- SupplyWarehouseActionDelay = 1100 ; EA: 1000, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted- End- End-End--Object Tank_ChinaVehicleSupplyTruck- ReplaceModule ModuleTag_03- Behavior = SupplyTruckAIUpdate ModuleTag_03_Reforged- MaxBoxes = 6 ; EA: 4- SupplyCenterActionDelay = 400- SupplyWarehouseActionDelay = 1100 ; EA: 1000, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted- End- End-End--Object Boss_VehicleSupplyTruck- ReplaceModule ModuleTag_03- Behavior = SupplyTruckAIUpdate ModuleTag_03_Reforged- MaxBoxes = 6 ; EA: 4- SupplyCenterActionDelay = 400- SupplyWarehouseActionDelay = 1100 ; EA: 1000, per box- SupplyWarehouseScanDistance = 700- SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted- End- End-End-; ---- tank shells glow in flight -------------------------------------------------------------------;; Looks only, nothing a shell does changes. EA's cannon shell is AVTankShel, a grey sliver about as