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): workers, trucks and chinooks mine a pile at one pace
Olcay Seygan80fd79ebfe4e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a6b69c0bf..410cb36d8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -837,6 +837,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- That bar is now the work itself. A worker used to reset it to empty at the very moment it finished and then walk away, so every trip looked like it left mid-handover; and after taking its last box it stood at the pile for one more full loading cycle, taking nothing. It leaves the instant the load is done - which is a little more money per trip, on every worker you own.- 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, and the bar over its head restarted for each of them; 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 still adds 8 dollars a box. 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 063c5d6b1..c114e639b 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -1380,3 +1380,140 @@ Object SupW_NeutronMissileEndEndEnd++; ---- 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' bonus is paid per load, split by the boxes+; carried, so it goes from 8 to 24 to stay a bonus of 8 a box.++Object GLAInfantryWorker+ ReplaceModule ModuleTag_03+ Behavior = WorkerAIUpdate ModuleTag_03_Reforged+ RepairHealthPercentPerSecond = 2%+ BoredTime = 5000+ BoredRange = 150+ MaxBoxes = 3 ; EA: 1+ UpgradedSupplyBoost = 24 ; 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 = 24 ; 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 = 24 ; 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 = 24 ; 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