Skip to content

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.

refactor(data): drop the mod-only wide bar, strings and tool paths

Olcay Seygan29982d62c2a3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index acc7f3cae..bbbec8089 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,7 +27,7 @@ found and fixed, EA's own, not port damage.**
- While you watch, a rack of drawers hangs from the right edge under the superweapon countdowns. The top drawer holds a lever for the camera with three stops (yours, the director that goes to the biggest fight by itself, or the followed player's own screen), a switch for that player's fog of war and a switch that slides the armies drawer out. Under it every player is ranked on a dial of seven numbers: net worth, cash, income a minute, army value, kills and losses, general's rank and power. Turn it with a click, the wheel or Q, W, E, R, T, Y and A, and each row's bar shows his share of the leader's number. A tab out of each row follows that player, a second click lets him go, and the armies drawer lists the six kinds of unit he has most of, with how many. A click on the rack never reaches the battlefield.
- The superweapon countdowns stand where they do in a player's game while you watch, in their tray. The observer's bar named no tray for them, so they used to sit bare and higher up.
- The card that rises when you point at a build button is drawn in your side's own art now, with the price and the build time beside the name behind a coin and a clock. Under them one row of icons says what you are buying: health, armour class, damage, damage a second, range and speed for a unit, health, armour and the power it adds or draws for a building. The six lines of figures that used to pad out the description are gone, and so is the "Power Required" line EA wrote into every building's text, in every language. The small tooltip beside the pointer sits in a framed well of the same art in a match and of the watcher's graphite in the menus.
-- The army screen, the lobby and the score screen wear our own emblems. Every army has a card of its own on the army screen, the generals included, where EA's faces and logos used to be, and the player card shows the same one. Turkiye stops borrowing America's logo there and in the lobby's game list, and a mod's army carries the card of the country it is built on. On the score screen each player's row starts with his army's emblem, and your own army's card stands faint behind the table.
+- The army screen, the lobby and the score screen wear our own emblems. Every army has a card of its own on the army screen, the generals included, where EA's faces and logos used to be, and the player card shows the same one. Turkiye stops borrowing America's logo there and in the lobby's game list. On the score screen each player's row starts with his army's emblem, and your own army's card stands faint behind the table.
## Your queue in pictures again
@@ -175,7 +175,7 @@ found and fixed, EA's own, not port damage.**
- Click a seat's army in the skirmish, LAN or online room and a full screen opens in place of the drop-down list. Every army stands on it under its side's heading, USA, China, GLA and Turkiye, with a large portrait of the one you click, its name across a banner, what it is built to do and what it brings. Confirm takes the army; Back or Escape leaves the seat as it was. The host picks for the computer seats the same way, and nobody can open another player's seat.
- Random gets a pool you choose. Custom Selection puts a tick box on every army, and Random then draws only from the ticked ones: tick China and its three generals and you play Chinese every game, which one is a surprise. Each side's heading carries a box that ticks or clears the whole side, and a click on the side's name leaves it alone in the draw, so "Random USA" is one click. With Random focused, the portrait shows every army it can be, lit when it is in the draw and dimmed when it is not. Everyone in the room draws from the same pool, the replay too, so a game never splits over it, and the skirmish room keeps your pool for the next match.
-- A plain Random no longer hands you Turkiye. The side is an experiment and a player asking for any army should not get it unasked; tick it into a Custom Selection to have it in the draw. Armies a mod brings in beside ours show on the screen and go into a pool like any other. A replay recorded before this change, with a Random seat in it, plays out differently.
+- A plain Random no longer hands you Turkiye. The side is an experiment and a player asking for any army should not get it unasked; tick it into a Custom Selection to have it in the draw. A replay recorded before this change, with a Random seat in it, plays out differently.
## Music that follows the fight
@@ -196,13 +196,12 @@ found and fixed, EA's own, not port damage.**
- A fight anywhere on the screen is heard now, zoomed out as well. The camera goes nearly three times further out than the original's, but every sound still carried only as far as it did at the original's zoom, so at full zoom the side of the screen was 700 units from the microphone and its top 1000, past the 800 most sounds reach: the top quarter of the screen was silent and a fight at the edge came through 14 decibels down, against 9 decibels down for one in the middle. Every sound's reach now stretches with the zoom, so the screen falls off from its middle to its edges the way it does zoomed in: at full zoom a fight in the middle plays 2.5 decibels down and one at the edge 3.
- Every map has a bed of ambience now: snow, town, desert or field, chosen from the terrain the map is made of and played from the game's own ambient loops. It sits under the battle and swells as you zoom out.
- The music crossfade is real. The old fade counted drawn frames, so it ran at the speed of your graphics card; it now runs on game time, two seconds, with no dip in the middle.
-- A mod's music tracks can say whether they are calm, tense or battle music, and for which side, so Music Follows the Fight works with a mod's own soundtrack.
- Headphones mode, under Options, Audio, Output. Each ear gets its own delay, level and muffling from where a sound is, so a gun to your left is on your left and one behind you is dull. The same page offers 5.1 and 7.1 surround on Windows, and a list of output devices.
- Mute in Background is an option now and works on Linux and macOS too. Turn it off and the game keeps playing when you click another window.
- Unplug your headset mid-match, switch Windows to another output or start with no sound device at all, and the game picks up the new device or waits for one, instead of going silent or dying. This may also be the cause of the crashes inside xaudio2_9.dll in our crash reports.
- A Turkiye rank perk that detects stealth now behaves like a detector: the radar pings the spot, the discovery sound plays and EVA says so.
- Clicking through your army no longer stacks a dozen replies on top of each other. A unit that just answered stays quiet for a second and a half, a new reply waits until the last has had four tenths of a second, and no more than two talk at once.
-- macOS and Linux hear the same, and so does the sound the game records for a video, in step with the picture frame for frame. A mod can retune any of it, or switch a part off, from its audio settings.
+- macOS and Linux hear the same, and so does the sound the game records for a video, in step with the picture frame for frame.
## Ukrainian and Russian
@@ -229,7 +228,7 @@ found and fixed, EA's own, not port damage.**
- Windows draws them too, on the default renderer, and so do Linux and macOS. The Direct3D 9 renderer and the Classic graphics setting keep the original puddles whatever the box says, and turning heat effects off takes the shimmer off a nuclear field as well. A cloud that only drifts redraws its smoke twenty times a second rather than every frame, and the second match of a session no longer stalls on the first toxin shell while the clouds' shaders are built again.
- The first toxin cloud of a fresh install no longer freezes the game for three and a half seconds: the clouds' shaders come with the game now, and are made ready when a match starts or the box is switched rather than when the first field opens. A toxin field also no longer comes back at full strength for ten seconds after it has run out; it fades with the hazard.
- A fresh install's first Scud Storm landing, Particle Cannon, nuke and general's air strikes no longer catch a picture for 110 to 130 milliseconds each, whichever cloud style is on. The explosion and lit-smoke shaders those strikes draw with come with the game now, where each one used to be built the first time its blast showed up; a superweapon battle on Twilight Flame from a fresh install now builds nothing at all.
-- A blast the game has no shader for yet, a mod's or a combination nobody recorded, no longer stops the picture while one is built. The shader is built beside the game, and the blast's pieces that need it appear when it is ready, about a sixth of a second later at worst; before, the whole frame waited 110 to 130 milliseconds for each one. With a shader file missing twenty-two of them, a superweapon battle drew on with no pause and the longest any blast waited was 153 milliseconds. The interface, the fog of war and anything drawn into a picture of its own still get their shaders at once, on the match's first frame.
+- A blast the game has no shader for yet, a combination nobody recorded, no longer stops the picture while one is built. The shader is built beside the game, and the blast's pieces that need it appear when it is ready, about a sixth of a second later at worst; before, the whole frame waited 110 to 130 milliseconds for each one. With a shader file missing twenty-two of them, a superweapon battle drew on with no pause and the longest any blast waited was 153 milliseconds. The interface, the fog of war and anything drawn into a picture of its own still get their shaders at once, on the match's first frame.
## A rank ladder for every army
@@ -310,6 +309,7 @@ found and fixed, EA's own, not port damage.**
- The colour and team swatches sit in the middle of their boxes, with the same dark border on all four sides. The colour used to sit two pixels low, over the box's bottom edge, with a dark band along the top only.
- The three rooms wear the same frame as the loading and score screens that follow them: the score screen's blue ruler and grid around the edge of the screen, with the panel sitting on its bright line. The LAN and online panels get the blue edge the skirmish one had, under the same blue rule; the seat rows sit on the panel's black in that blue; the colour bar is a little wider. Record and Close are in capitals like every other button, the record's heading is lettered green, and the darker names in the colour list are lifted toward white so they read on black, the way the score screen lifts them.
- The menus no longer make you sit through their animations. A click or a key while buttons are still sliding or flashing in puts them where they were going, and the click counts: Solo Play pressed while the main menu is still coming up opens its list straight away, where it used to be ignored. A screen on its way out goes the moment you press anything, so Skirmish then a click reaches the skirmish room in about 100ms instead of half a second, and Back to the main menu in 10ms instead of 380.
+- A long army name in a room now shrinks to fit the field, and only that name.
## Every campaign mission is open
@@ -366,7 +366,7 @@ found and fixed, EA's own, not port damage.**
- Opening the pause menu no longer makes boats snap to a different angle or parked aircraft sink into the carrier deck. Boats keep their rocking angle and aircraft remain above the deck while the game is paused.
- Replays and games saved in the middle of a match from earlier versions will not load in this one. The "Mission Start" saves a campaign makes between missions do, and every campaign mission can be picked from the campaign menu. A player on an earlier version cannot join a match with a player on this version, whichever of them hosts, so a LAN party needs everyone on the same build.
- Guns fire at their 2003 rate again. After a shot the game goes back to aiming for a step before it can fire again, which at 30 steps put a 100 millisecond Quad Cannon on a shot every 0.133 seconds; at 60 the same loop fired it every 0.100, a third faster. Shot delays and reloads are rounded to the old step and a gun's next shot is held to the old rhythm, so every weapon fires on the frames it did in 2003. A turret with no turning speed in its data rose twice as fast as it should, aircraft weighed their thrust against gravity at half strength, and a unit hit on the step before still counted as untouched for stealth. All three keep EA's timing now.
-- Mod guns shoot straight again. Shockwave Chaos and other mods give their machine guns and autocannons a shell that arcs 300 high but flies so fast that the 30-step game only ever put it at the muzzle and on the target. At 60 steps the shell stopped partway up that arc, so in Chaos a Humvee's autocannon round went 200 into the air before coming down on a tank 100 away. A shell now passes through the points it passed through in 2003 and flies straight between them, so mod rounds hit straight and the original game's shells fly the same arcs. A shell fired point blank, close enough to arrive in one step, used to fly to the corner of the map and explode there, a bug since 2003; it hits its target now.
+- Shells fly the arcs they flew in 2003. A shell that arcs high but flies fast was only ever put at the muzzle and on the target by the 30-step game, and at 60 steps it stopped partway up that arc. A shell now passes through the points it passed through in 2003 and flies straight between them. A shell fired point blank, close enough to arrive in one step, used to fly to the corner of the map and explode there, a bug since 2003; it hits its target now.
## Turkiye joins the fight, as an experiment
@@ -420,67 +420,14 @@ found and fixed, EA's own, not port damage.**
- A German, French or other non-English Zero Hour on a Mac or Linux speaks its own language. Windows' installer writes the language into the registry, and nothing does that on a Mac or Linux, so the game took English and found it in the original Generals' files beside Zero Hour: the menus came up in Generals' English with Zero Hour's own lines missing, so it looked like plain Generals. With no language set it now takes the one your Zero Hour's own files are in. A language you set yourself still wins.
- Text on the Linux menus is as wide as on Windows. Linux has no Arial, and the font standing in for it reports a wider average letter, so every menu font the game sets to a fixed width came out a quarter narrower than it should, the "Generals" lettering and the menu buttons among them. Each is measured against Arial's own figure now, and lands within one percent of Windows.
- The game no longer crashes on some Linux PCs as its window opens. The game hands out memory its own way, and on Linux the graphics driver gets its memory from the game too. Some drivers, AMD's on Debian 12 among them, need every piece lined up on a 16-byte boundary, and the game's lined up on 4, so the start died or went through depending on where the pieces happened to fall. On Linux everything outside the game's own pools now comes from the system, which lines it up as the driver expects.
-- `./build-linux.sh` stopped on Linux Mint and Arch after the centred Classic interface went in: the new code compared layout names with a Windows-only spelling that GCC on Linux has never heard of. It uses the name every platform knows now, and so do the two debug-build spots with the same habit. From 3.0.0 on, `./build-macos.sh` and `./build-linux.sh` stopped again, on another Windows-only spelling in the mod code and, on Linux, a file name written in the wrong case, which Windows does not mind. The log blamed the audio library because it was the last file the build had started; the real error sat higher up. Both are fixed, after Andreas Berger found them. On 3.2.0 `./build-macos.sh` got nearly to the end and stopped on four of the build's own tests of how the game reads its files, which were missing two pieces the game's job scheduler picked up in that version. They have them now, after Martin K. reported it. Since 3.4.0 `./build-macos.sh` stopped once more, this time on the save and load code: it handed the save file's name to a log line as a whole text object where the line wanted plain characters, which the Mac's compiler refuses and Windows lets through, so on Windows that line printed garbage in place of the file name. It hands over the name itself now, and the Windows build warns about the same mistake anywhere else. Martin K. reported this one too.
+- `./build-linux.sh` stopped on Linux Mint and Arch after the centred Classic interface went in: the new code compared layout names with a Windows-only spelling that GCC on Linux has never heard of. It uses the name every platform knows now, and so do the two debug-build spots with the same habit. From 3.0.0 on, `./build-macos.sh` and `./build-linux.sh` stopped again, on another Windows-only spelling and, on Linux, a file name written in the wrong case, which Windows does not mind. The log blamed the audio library because it was the last file the build had started; the real error sat higher up. Both are fixed, after Andreas Berger found them. On 3.2.0 `./build-macos.sh` got nearly to the end and stopped on four of the build's own tests of how the game reads its files, which were missing two pieces the game's job scheduler picked up in that version. They have them now, after Martin K. reported it. Since 3.4.0 `./build-macos.sh` stopped once more, this time on the save and load code: it handed the save file's name to a log line as a whole text object where the line wanted plain characters, which the Mac's compiler refuses and Windows lets through, so on Windows that line printed garbage in place of the file name. It hands over the name itself now, and the Windows build warns about the same mistake anywhere else. Martin K. reported this one too.
- Windows on Arm laptops, the Snapdragon ones, get a build made for them. Microsoft never shipped those machines the library the game loads its textures and shaders through, so the game brings its own, the texture code the Mac and Linux versions already run. Switched on in place of Microsoft's library on an ordinary Windows PC, it draws the same battlefields, with no tree, house or patch of ground going missing. Nobody has played it on a Snapdragon laptop yet.
- The Linux game has Generals' icon. The window carries it in the taskbar and in the window switcher, and `add-to-menu.sh` in the folder `./build-linux.sh` makes puts the game in the desktop's app menu with it, which is where GNOME takes a running game's icon from. It had none.
- Thanks to ilyasakin, whose port this is.
-## Mods
+## No more mods
-- A mod is a folder now. Start the game with `-mod` and the folder, and its archives count, and so do the plain files under its `Data` and `Art` folders, which the game used to ignore. A modder can drop in one changed file without packing an archive first.
-- A computer player on a mod's army now plays that mod's own plan. Contra's scripts pressed Zero Hour's buttons of the same name, so its GLA stash trucks never trained a worker and earned about a thousand in ten minutes, and its scripts looked for supply piles under a name no map uses. On Hard Contra's GLA now earns 18,000 to 36,000 in the same ten minutes, its USA and China about twice what they did.
-- Zero Hour's armies play the very same match with a mod loaded as without it, on every difficulty. Their computer players used to look through the mod's units for a scout too, and one that nobody could train cost them the scout.
-- A long army name in a room now shrinks to fit the field, and only that name.
-- A mod's armies always stand beside Zero Hour's, never over them, one mod or five. Contra alone used to swap every USA, China and GLA in the room for its own and leave you nothing else to play. Now the list holds Zero Hour's armies and under them "Contra - Tank General" and the rest, so a Contra general can fight a plain Zero Hour China in one match. No switch asks for this and none turns it off. A plain Random stays with Zero Hour's armies; a mod's army plays when somebody picks it or ticks it into a Custom Selection. On the army screen each mod's generals gather under one heading a country, "Contra - USA", where Contra's twelve used to make twelve headings and run off the screen. More armies also used to shrink every tile on that screen, to about a third of its size at worst. The tiles now keep their size under any number of mods and the list scrolls, by the wheel or the bar beside it, opening with your seat's army in view. Playing a mod's army you hear that mod's music tracks, so the Enhanced Music pack for Contra plays in the match.
-- Reforged stays on top of every mod. This build's balance, its fixes to EA's data, its AI and its menus load after the mod and win where they touch the same unit, weapon or button, on Zero Hour's armies; a mod's army keeps its own numbers and buttons. A change that names something the mod renamed or removed is passed over instead of stopping the game, which is how ShockWave starts and plays. A mod's own copy of a file Reforged ships, the skirmish setup screen among them, is ignored, and so are any upscaled art archives it carries. The one exception is the skirmish AI's scripts: a mod's are written for its own generals, so they replace Reforged's, and Reforged's smarter AI plays them.
-- A mod no longer repaints the game around it. Shockwave Chaos set the whole skirmish lobby in Comic Sans, with its own yellow-edged boxes, loading bars, main menu backdrop and score screens, because its archives replaced the font list, the shell's image sheets and the pictures they are cut from. Every menu and lobby layout, the fonts, the shell's colours and frames and the in-match screens are ours now under any mod. The mod's units, their build pictures and its generals with their portraits still come from the mod, and its new generals still appear in the lobby's faction list.
-- The maps stay Zero Hour's under every mod. A mod that carries its own maps, Contra among them, used to fill the skirmish and LAN map lists with them, and its edited copies of the stock maps replaced ours under the same names: picking Twilight Flame started Contra's Twilight Flame. The map list and every map you start are Zero Hour's and Reforged's now, whatever mods are loaded, so everyone in a lobby plays the same map.
-- A `mod.json` in the folder names the mod and its version. The names stand beside the version number in the options menu, in the order the mods were given, and go into every replay you record, so a replay made with mods says which ones, and the replay list marks it as another version when the game is running without them.
-- Joining a LAN game that runs different mods used to end in a box about a mismatch and nothing else. It names the host's mods now, or tells you the host plays without any.
-- Two total conversions in one match. Give both, and each mod's armies join Zero Hour's own: the faction list reads "ShockWave - USA" and "The End of Days - USA" under plain "USA", and a ShockWave army can fight an End of Days one. Each side builds from its own mod's units, weapons, upgrades and generals' powers, and each looks and sounds like its own mod: a ShockWave tank wears ShockWave's model and textures even where The End of Days replaces the same file, and speaks with ShockWave's voice. The End of Days' Russian command center, its Tor-M1 and some sixty other models used to come out bright pink; they wear the mod's own paint now. Playing a mod's faction, your buttons, build pictures, unit names and tooltips are that mod's, set in our command bar for that general's country: a mod's Chinese general gets the Chinese bar, a GLA one the GLA bar, and a nation Zero Hour never had, Russia among them, the American one. Every mod general used to get the American bar. The End of Days' Russia is in the list under its own name. Each mod general's promotion screen holds that mod's own powers, with the mod's pictures, and they unlock with your rank. They sit together with no holes between them, and each power's upgrades stand in the column under it, Paradrop 1 over 2 over 3, the way Zero Hour lays out its own. A mod's faction climbs that mod's own ranks: The End of Days' eight, with its own experience steps and points, where Zero Hour's five used to apply to everyone. ShockWave's and The End of Days' screens used to open empty, because a rank granted only Zero Hour's own rank marks and the mod's powers asked for the mod's. Menus, lobby and colours stay ours whatever mods you load. A computer player on a mod's faction plays that mod's own skirmish AI: the mod's base layout, base defences, harvester counts, generals' powers and the teams its scripts train, run by Reforged's AI. It used to lay out the base from the mod's buildings and then train the army it knew from Zero Hour, and a nation Zero Hour never had did nothing at all. A mod that ships no skirmish AI of its own still gets Zero Hour's, read with the mod's buildings.
-- A patch for a mod stays with that mod. Give it with `-modpatch` right after the mod it changes, and its files replace that mod's one for one, even beside a second total conversion: a ShockWave balance patch reaches ShockWave's armies and leaves The End of Days alone. Given first, a patch changes Zero Hour's own files. The launcher's MODS page marks each mod a patch or a full mod, and a `mod.json` can say `"patch": true`. ShockWave and The End of Days together used to stop the game at startup.
-- The launcher keeps its pages in a rail down the left side. Home, Maps, Mods, Replays, Hotkeys, Game options and Health are one click each, with the counts that matter beside them, and the gold button under them is always the next step into the game: Install until the game is on disk, Update now when a release waits, Play after that. On the Mods page a patch sits under the mod it changes, and the site says which downloads are patches.
-- Contra and The Power of the West start and play now, The Power of the West beside ShockWave too; every one of those used to crash while loading. Contra's China base fell over the carpet bombers it never had, and one misspelt armour line in The Power of the West stopped the game where Zero Hour itself had shrugged it off. A mod's patch archive named to sort first, like Contra's `!!` one, wins over the rest of the mod again, as it always did in Zero Hour.
-- No empty slots in a mod general's power tray. Mods give unrelated powers the same few types, Contra's small Scud Storm counting as a carpet bomb, so a Contra Cybernetic player's tray picked up another faction's button for a power he only held one of the same type as, then hid it, and an empty frame stood where it had been. The tray offers a button now only for the very power you hold, and a slot whose button goes away takes its frame with it.
-- A Paladin under Contra no longer crashes the game. Reforged gives every Paladin a second laser for infantry, and that laser borrowed a Zero Hour weapon nothing else fires. Contra deleted it, so the laser had no gun, and the game went down a moment after the first Paladin rolled out. The laser is Reforged's own weapon now and is there whatever mod you load. The same kind of gap took the guns off Contra's Toxin Tunnel Defender and Toxin Stinger soldier, the Chemical Suits off its Rangers, and the death blast off its Demolition Scud Launcher, Toxin demo trap and Toxin Tractors (ShockWave's trap too). Where Reforged names a weapon or armour the mod dropped, the unit now keeps the mod's own, and the death blasts carry Zero Hour's charge.
-- Contra's units have their attack move, guard and stop buttons again, and A, G and S press them. Contra draws its command bar with eighteen buttons and keeps those three in the last row, which our fourteen-button bar does not have, so they went missing on every Contra unit, the Cybernetic general's cyborgs among them. A button a mod puts past the end of our bar now moves to an empty one, the three orders to the places Zero Hour gives them.
-- A mod with more than fourteen buttons on one unit or building gets all eighteen. The command bar grows a column at each end, nine across and two down, numbered the way Contra's own bar numbers them, and the steel plate behind it grows with it in your side's own paint, rail and toolbar buttons included. Before, there were only fourteen windows to move buttons into, so a set of sixteen lost two without a word. Without such a mod, or with a mod that brings a bar of its own, the bar is the fourteen-button one it always was. The nine-column layout follows Hojjat's edit of ControlBar Pro for Contra.
-- Contra's Special Powers menu opens on its own key. The button's tooltip says tilde, the key under Escape, and that key opened our console instead, so the menu only answered a click. It opens with the key now on any keyboard layout, a Turkish one too, and while that button is on screen Shift and the same key bring up the console.
-- A mod general's promotion screen is the one the mod laid out. We packed every row to the left and sorted upgrade chains into whichever column had room, so a Contra Flame General's Emergency Repair left the fourth column Contra gives it and his Frenzy moved over to make way. Every mod's button now stands in the slot its author gave it, as Zero Hour's own generals always did.
-- Contra's Air Force, Laser, Superweapon and Demolitions generals have their whole promotion screens back, and the Demolitions General his power tray. Our corrections to Zero Hour's button lists overwrote the mod's lists of the same name, so the Air Force General showed four of his fifteen three-star powers and the Demolitions General's tray never came up. A mod that brings its own lists keeps them.
-- Contra's Laser Turret draws its beam at aircraft again, and a Contra Toxin General can buy his Rebel Ambush without the game going down. Reforged's fixes for those two named a beam and an ambush of Zero Hour's own that Contra does not have, so the turret shot an invisible beam, and the moment the ambush was bought its button had no power behind it and the game crashed. Now the promotion screen sells it and the powers bar fires it: gas-masked rebels climb out of the ground where you click. Where a Reforged fix names a beam, a power, a science or a spawn list the mod lacks, the mod's own now stays.
-- Contra's cyborgs no longer stand on black squares. Their little ground shadow is drawn the way Zero Hour draws it again, darkening the ground by the shape painted in the picture, so it comes out as a soft patch under the feet. We had been reading the shape from the picture's transparency instead, and Contra's shadow picture has none: it filled its whole square. Zero Hour's own shadows look as they did.
-- A computer opponent on ShockWave's Armor, Special Weapons or Salvage general plays on every map now. Those are the three generals ShockWave adds to Zero Hour's nine, and Shockwave Chaos renames two of them the Scumbag Artillery and Bandana generals. A map made before they existed, every one Zero Hour ships among them, has no computer player for them, so the seat started with no AI at all: its base sat idle, and clicking it with nothing selected handed it to you, which is how a player found himself running the enemy's base. The seat now takes the mod's skirmish AI for that general and builds like any other; on Tournament Desert it had three buildings up in forty seconds where it used to have none.
-- ShockWave's EMP Patriot fires its missiles again. ShockWave switched on a short-range field around the battery that EA had left commented out, and every time the field pulsed, every 0.75 seconds, the battery's missiles had to wait their turn again from the start. The turret kept tracking its target and nothing left the rails: a lone EMP Patriot fired 0 missiles in 6 seconds at rocket soldiers 200 away, where Zero Hour's fires 12. The field now keeps its own clock, so the battery fires 12 like Zero Hour's and the field still pulses. ShockWave's Superweapon Humvee, its Reaper tank and its Salvage SA-2 site carried the same pairing.
-- ShockWave's Armor General's cluster missiles land where you aim them. The missile is built to cruise high and drop straight onto the target, splitting into warheads on the way down, but it was flying Reforged's smooth Scud curve instead and split a long way off: aimed at a Scud Launcher, the warheads came down 180 to 270 short of it. A missile like this one now flies the way Zero Hour flew it, and the same two shots landed 4 and 5 from the aim and killed both launchers. Scuds and Tomahawks keep their curve.
-- Shockwave Chaos beside a second full mod starts now. With Contra, ShockWave and Shockwave Chaos switched on together the game stopped while loading, on one line of Chaos's Black Market tank that lists 43 of the mod's own tanks it can turn into. Keeping each mod's armies apart puts a short mark in front of every name the mod defines, and that line grew past the room the game gave a line of text. A line has three times the room now, more than any mod can fill.
-- Five full mods side by side start now. Contra, ShockWave, Shockwave Chaos, The End of Days and Tiberian Dawn Redux together bring about 700 upgrades, and the game had room for 512: it stopped while loading at The End of Days' Fanaticism. It has room for 1024.
-- Contra, The End of Days and Rise of the Reds no longer crash the moment certain missiles fly. Some of their missiles have no engine of their own and fly on the push they leave the launcher with, which Zero Hour always allowed; the weave Reforged gives missiles on their way in, and the lead they take on a moving tank, reached for that engine anyway and took the game down. Such a missile now just flies straight, as it did in Zero Hour.
-- ShockWave's and Reborn's Superweapon General no longer crashes the game the moment its Particle Cannon finishes building. Reforged's fix for that cannon's glow named Zero Hour's particle cannon power, and these mods give the Superweapon General a power of their own, so the cannon found no power to charge from. It now charges from the power its building carries.
-- Shockwave Chaos no longer crashes when a drone or other slaved unit set to scout follows a building rather than a vehicle. The drone looked for where its master was driving to, and a building drives nowhere; it now guards the building instead.
-- A map with two players of the same name no longer crashes the main menu or a match the first time a point defense laser looks for a target. The second of the two was left with no team, and the laser's search for enemies tripped over it.
-- The End of Days no longer crashes in the middle of a match when some of its guns fire. A shell flies a path worked out from its speed, and a shell with next to no speed asked for a path of hundreds of millions of steps, gigabytes of it; the game handed back far less memory than that and the path was written on past the end, so the match died at once or a little later in some unrelated place. A shell that would take more than ten minutes to land is now dropped as it is fired, and the game refuses any request for more than 2 GB of memory at once instead of handing back a short one.
-- Generals' Challenge starts under Contra and The End of Days. Both mods ship their own list of maps, and that list stands in for Zero Hour's, so a Challenge map that was right there in the game's files was missing from the list, and the game went down dealing out start positions on a map it said did not exist. A map the list leaves out is now read the moment it is asked for.
-- Picking USA, GLA or China under The End of Days opens the mission list instead of crashing. The mod's campaign file holds only the Challenge campaigns, and the list asked a campaign that was not there for its first mission. The list comes up with every mission greyed, and Back takes you out again.
-- A mod whose team colour textures are stored in a format the colour cannot be painted into, a compressed one for instance, no longer crashes the game as such a unit comes out (a player hit it under The Power of the West). The unit keeps the texture's own colours.
-- A shortcut button on the powers bar whose power the mod does not have stays off the bar instead of crashing the game while the command bar fills. A mod's own button, or a Reforged button loaded over a mod, can name a power that was never defined.
-- A `-mod` path with `.` or `..` in it is refused. An archive counts as your mod's only when it was loaded for that mod. Two mods under `-modfactions` that define a command set with the same name both load now, and the later one wins.
-- A computer player on a mod's Helix no longer crashes the match when it sends the Helix on a bombing raid. The AI picked its raiders by the bomb upgrade on the Helix's buttons, and Contra's Nuke General Helix (under `-modfactions` beside ShockWave) has that upgrade without the napalm bomb the raid drops. A Helix without that bomb now stays with the army.
-- Under `-modfactions` a plain number in a model or sound line stays a number. A mod's own art gets the mod's mark in front of its name, and a mod file named with nothing but a number, a 6.dds say, had an animation's repeat count, the 6 in "0 6", marked as if it named that file, after which it no longer read as a number. That is our best reading of why ShockWave and Project Raptor together stopped while loading Project Raptor's Air Force General; we do not have that mod to check.
-- A mod no longer crashes the match in its first second when Turkiye (Experimental) sits in a seat. Turkiye's buildings are made from America's, and under a mod without the American base they come from Turkiye had no command center to start with. Such a mod now leaves Turkiye out of the army list and out of every Random draw.
-- Generals' Challenge leaves out a general the mod cannot field. A mod's Challenge list can name a general whose campaign, maps, opponents or army are missing from its files, and picking him crashed the game as the battle started. His portrait stays off the screen now.
-- A mission saved under a different mod, or under game data that has changed since, says it cannot be loaded instead of crashing the game.
-- An INI file that stops the game at startup names itself. The crash report gives the file and the line it stopped on, with what it found there, where it used to say only "Uncaught Exception during initialization." A unit that names a locomotor or a science the mod never defines gets that name in the report too. A file saved with a UTF-8 byte order mark, which some editors add, loads; the mark used to hide the first block's name and the whole file was refused.
-- A mod that keeps command buttons or command sets among its unit files gets a crash report naming the file and where those blocks belong. The game used to go down reading them with nothing to say.
-- Under `-modfactions` a mod's own lists named after a keyword, such as `OCL:` or `FX:`, are found. The name behind the keyword went without the mod's mark, so the game looked for a list of that name outside the mod.
-- A mod's helicopter that has nothing to fly with in the state it is shot down in falls and spins to the ground like any other, instead of crashing the game.
-- A build button whose requirement names a unit the mod never made shows its tooltip with the requirement listed by name. Hovering it used to crash the game.
-- A vehicle a mod gives two passenger holds no longer crashes the game. The second hold took riders in where nothing else looked, so a passenger who died stayed aboard, and the next time the vehicle seated its riders it reached for him.
-- A network game or a replay on a map this machine cannot read goes back to the menu. It used to deal out the start positions as if the map had eight, while the machines that had it dealt over the map's own, and the game split from the first second.
-- A mod whose unit is switched on, held back or stripped by an upgrade the mod never defines no longer crashes the game as the map loads. The missing name is skipped and written to the log once, and the rest of the unit's upgrades work.
-- A mod or an install folder carrying an older skirmish room screen, one without the match record panel, no longer crashes the game on the way into Skirmish. The room opens without the record and plays as before.
-- A unit that leaves the factory already a veteran with Chemical Suits on no longer crashes the game (a player hit it under a mod). The suits went on before the unit had a body on screen to mark; such a unit now goes without the ground marking under it.
-- ShockWave's Supply Drop Zone pays again, +1500 a drop for every USA general. A mod's own crates (money, salvage, healing) load beside retail's.
+- The game no longer loads mods. EA's own `-mod` switch is gone, and so are `-modpatch` and `-modfactions`; what you play is Zero Hour's data with Reforged's changes on it, the same on every machine in the room.
## One interface
@@ -494,21 +441,22 @@ found and fixed, EA's own, not port damage.**
- Buildings select together again, which the one interface had taken away. Shift-click them, drag a box over them, or double-click one for every building of its kind on the screen; select four War Factories and each tank you click goes to whichever has the shortest queue. Double-click a unit and every one of that kind whose feet sit in the picture is taken, including the ones sitting past the camera's far clip that used to be skipped. A building and a unit still never share a selection.
- Formation lines are back for everyone. With move, attack move or guard armed, a left drag spreads the selection along the line you draw again; since the one interface it drew a selection box instead, because the line was switched off for the Classic mouse that every player now runs. A drag with no order armed is still the selection box.
- A box round your soldiers leaves the worker among them behind again. The rule that a box holding anything military drops the dozers, workers, supply trucks, Chinooks and hackers from it was switched off for the Classic mouse, which is the one every player now runs, so the dozer came along with the tanks. It holds for every box now, a Shift box added to a selection included. A box of workers alone still takes the workers, and a click or a double click on one still takes it.
-- Every key is yours to move. The launcher's Hotkeys page draws the command bar of every building and unit each general can field, cameos and letters as the game shows them, and a click and a keypress gives any button a new letter or none. Two buttons on one bar that would share a letter are marked before you play. The keyboard commands are there too, from bookmarks and team keys to the camera, along with the ones Zero Hour never bound: select all your infantry, vehicles or aircraft, every barracks, war factory or airfield, the next idle worker or unit, pause, the general's promotions, the three signals to your allies and the general's powers. Your keys are yours alone; the other players in a match keep theirs, and a match never refuses you for them. Every mod you install brings its own generals to the page, ShockWave's fifteen next to Zero Hour's thirteen, and a key you give a ShockWave button stays with ShockWave.
+- Every key is yours to move. The launcher's Hotkeys page draws the command bar of every building and unit each general can field, cameos and letters as the game shows them, and a click and a keypress gives any button a new letter or none. Two buttons on one bar that would share a letter are marked before you play. The keyboard commands are there too, from bookmarks and team keys to the camera, along with the ones Zero Hour never bound: select all your infantry, vehicles or aircraft, every barracks, war factory or airfield, the next idle worker or unit, pause, the general's promotions, the three signals to your allies and the general's powers. Your keys are yours alone; the other players in a match keep theirs, and a match never refuses you for them.
- Some keys now mean one thing on every bar: A attack move, S stop, G guard, Y rally point, V evacuate, N sell, C combat drop, and H for land mines, camo netting and the GLA worker's switch to fake buildings. Sell sits on its own key, so emptying a bunker can never sell it. The 188 buttons Zero Hour had put on one of those letters take another, kept off the 18 letters under your left hand where the bar leaves room (the Avenger is J now), and no bar gained a clash doing it. Those letters are still yours to hand out: the Hotkeys page gives A or H to any other button you pick, and marks the clash. On a bar that has the order as well, the order keeps its key: a Barracks button on A fires from A, and a tank's A is still attack move. A `FixedOrderKeys` block with `Enabled = No` in Hotkeys.ini turns the fixed keys off and gives every button the letter the game's own text gives it, the orders included, as the game shipped: in the German game guard is W and the rally point U again, and the 179 German buttons on one of those letters, the Humvee on V and the supply center on N among them, have their keys back.
- Those orders move too. Sell, attack move, stop, guard, rally point, evacuate, combat drop, the mines, camo netting and the fake building switch were locked to their letters: the Hotkeys tab refused to wait for a key on them, and a letter given to one in the file was ignored in the match. Each one now takes the letter you give it, or none, on the Hotkeys tab like any other button, and keeps it after a restart; the letters above are only where they start. A letter you set also beats the one a button had from the game: Sell moved to K on the GLA Command Center used to lose K to the Worker button, and now sells. The launcher's Hotkeys page lets them go as well; it used to show the fixed letter whatever you had set and refuse to change it. Two holds Zero Hour put on a modifier alone are on the list of commands now, in the game and the launcher: Alt queues orders and Shift adds to the selection, and either can move to a key or another modifier. With nothing selected and a worker lending you his bar, only his buildings answer a key. H used to throw a GLA worker over to his fake buildings, and S stopped him, though nobody had picked him. The launcher also stops shifting keyboard commands off those letters: it had put View command center on P because H belonged to the mines, and the next time it starts it hands H back. A key you chose yourself stays where you put it.
- The Hotkeys page is in the game as well, as the last tab of the options screen, so a key can move without quitting to the launcher: from the main menu, or from Esc in the middle of a match. Every command sits on the left with its key. On the right you pick a general and one of his buildings or units, and its command bar is listed button by button, each with its cameo and its letter. Double-click a line, or press Enter or Change, and then the key; Esc lets go. Two buttons of one bar on one letter, or two commands on one key, turn red, and the line under the lists names them. Accept writes the file the launcher writes, so a key set in either place is there in the other, and a key changed in a match works from the next press.
-- Export and Import on the Hotkeys page take your keys to a file and back, for another PC or a fresh install. Before an import the page tells you how many keys it changes and how many would clash; a file with a line it cannot read changes nothing and quotes that line. Keys for a mod you have not installed come along and wait for it.
+- Export and Import on the Hotkeys page take your keys to a file and back, for another PC or a fresh install. Before an import the page tells you how many keys it changes and how many would clash; a file with a line it cannot read changes nothing and quotes that line.
- The arrow keys scroll the camera in the German game, as they do in English. German Zero Hour put next and previous unit and worker on the bare arrows, so the arrows picked units and only Ctrl and an arrow moved the camera; those four now sit on Ctrl and an arrow, as the English game ships them. Any language that puts a command on a bare arrow gets the same, and an arrow you gave a command yourself on the Hotkeys page stays where you put it.
-- Grid keys are back, keyed by the cell a button sits in. The first grid moved buttons around to give them a place's letter and still left two places without one; this one moves nothing. With the grid on, the top row of the bar is Q W E R T Y U and the bottom row A S D F G H J, column by column, so the first cell is Q on a Barracks, a War Factory and a tank alike, and the cell under it A. A mod's nine-column bar adds I O over K L. Upgrades take X C V B N in the order they stand on the bar, so the first upgrade of any building is X. The fixed keys step aside on the bar: attack move and stop take their cells' letters like every other button, while Ctrl still forces an attack. A letter you give a button still beats its cell, and a letter can now go to one cell alone, which is what a transport needs: its passengers' exit buttons are all one button, and with a key per cell the third passenger out can be M while the rest keep the grid. Accept on the in-game Hotkeys tab keeps the grid and every per-cell key, and the tab's list shows the grid's letters. On a mod's nine-column bar it now lists every cell the bar has, up to eighteen, each button on the letter the bar gives it, I O K L included. It used to squeeze the bar into fourteen, so an order the bar keeps in the last column was listed on another letter, and a key you gave one of the last four cells never showed.
+- Grid keys are back, keyed by the cell a button sits in. The first grid moved buttons around to give them a place's letter and still left two places without one; this one moves nothing. With the grid on, the top row of the bar is Q W E R T Y U and the bottom row A S D F G H J, column by column, so the first cell is Q on a Barracks, a War Factory and a tank alike, and the cell under it A. Upgrades take X C V B N in the order they stand on the bar, so the first upgrade of any building is X. The fixed keys step aside on the bar: attack move and stop take their cells' letters like every other button, while Ctrl still forces an attack. A letter you give a button still beats its cell, and a letter can now go to one cell alone, which is what a transport needs: its passengers' exit buttons are all one button, and with a key per cell the third passenger out can be M while the rest keep the grid. Accept on the in-game Hotkeys tab keeps the grid and every per-cell key, and the tab's list shows the grid's letters.
- W no longer starts a War Factory. The launcher had moved China's War Factory onto W, which Zero Hour already gives to Select all aircraft. With a tank selected and no aircraft on the map, W dropped the tank, the idle worker's bar took its place, and the same press let go on that bar's War Factory. The launcher now keeps the buttons it moves off every letter a keyboard command holds on its own, W, Q and the idle worker's I among them, and China's War Factory sits on D. Start the launcher once and it rewrites its part of the file. A letter you picked yourself stays where you put it. The game now settles it for any letter, yours and the grid's included: a key press does one thing. If a button on the bar wears the letter when the key goes down, the button gets it and the keyboard command on that letter waits; if none does, the command fires and the bar that comes up after it is left alone. A button that loses its letter to another, on the bar or the strip of general's powers, shows no letter instead of one that does nothing. With nothing selected, the worker's buildings that the bar shows anyway step off any letter a keyboard command uses on its own: on the grid, Q selects everything and W every aircraft again instead of putting down a Power Plant or a Barracks, and the buildings on free letters keep them.
- With a transport or bunker selected, click one of your units to send it inside.
- A unit on repeat can be switched off even when it cannot be built: a lost prerequisite, the unit cap, a full queue or an unpowered factory no longer lock the button.
-- Guard, Attack Move, Force Attack, Move and Hold Position have their own rows on the Hotkeys page, and they bind under any mod. Command bar buttons take digit keys too.
+- Guard, Attack Move, Force Attack, Move and Hold Position have their own rows on the Hotkeys page. Command bar buttons take digit keys too.
+- The launcher keeps its pages in a rail down the left side. Home, Maps, Replays, Hotkeys, Game options and Health are one click each, with the counts that matter beside them, and the gold button under them is always the next step into the game: Install until the game is on disk, Update now when a release waits, Play after that.
## The command bar moves to the middle
-- ControlBar Pro is the command bar, in every match and for every side, and nothing has to be installed for it. The radar sits in the bottom left corner, the command buttons with your money and power in the middle of the bottom edge, and your selection, rank and general's buttons in the bottom right. Each piece is drawn at your screen's height and keeps the shape it was painted in, so nothing stretches on a 4:3 monitor or a 32:9 one, and the battlefield shows between the three. At 1920x1080 they stand where ControlBar Pro's own layout puts them, to the pixel. Its rank screen, power buttons, chat, quit and disconnect screens come with it. A mod's faction plays on its American bar, with the mod's own buttons and pictures in it, whether the mod brings a bar of its own or not. Thanks to xezon and FAS, whose bar this is.
+- ControlBar Pro is the command bar, in every match and for every side, and nothing has to be installed for it. The radar sits in the bottom left corner, the command buttons with your money and power in the middle of the bottom edge, and your selection, rank and general's buttons in the bottom right. Each piece is drawn at your screen's height and keeps the shape it was painted in, so nothing stretches on a 4:3 monitor or a 32:9 one, and the battlefield shows between the three. At 1920x1080 they stand where ControlBar Pro's own layout puts them, to the pixel. Its rank screen, power buttons, chat, quit and disconnect screens come with it. Thanks to xezon and FAS, whose bar this is.
- The command bar is one console standing in the middle of the bottom edge: a taller radar, your selection and the build grid side by side, with the power bar over the grid. The idle worker and rank keys sit in a row over your selection, and in multiplayer the smoke signals join them. The red under-attack lamp is gone: the ping on the radar, the voice and the line in the event feed already tell you where you are hit, and the lamp only blinked about it a second time.
- Your general's powers grow out of the console's right end, a column for each F key with its powers stacked up it, and only the powers you have take any room.
@@ -801,7 +749,7 @@ found and fixed, EA's own, not port damage.**
## The computer builds against what you field
- Which unit it trained next was a coin flip. It gathered the teams sharing the highest priority number in its data and picked one at random - not one line looked at what it was fighting. An opponent facing nothing but aircraft went on building tanks.
-- Now the priority is the start of a score, not the whole of it. What it can *see* you fielding weights the choice, and the weighing is the game's own arithmetic: for every unit it could build and every unit it sees you with, how many shots each needs to kill the other through its armour, how long it waits between them, and what each one costs. A Crusader shell does a tenth of its damage to a rifleman, so your Rebels get Gattlings and your Overlords get Tank Hunters, not whatever the script listed first. Stealth still pushes detectors up. It reads the same unit data the game fights with, so a mod's units are weighed correctly too.
+- Now the priority is the start of a score, not the whole of it. What it can *see* you fielding weights the choice, and the weighing is the game's own arithmetic: for every unit it could build and every unit it sees you with, how many shots each needs to kill the other through its armour, how long it waits between them, and what each one costs. A Crusader shell does a tenth of its damage to a rifleman, so your Rebels get Gattlings and your Overlords get Tank Hunters, not whatever the script listed first. Stealth still pushes detectors up.
- How much that weighs depends on the level: nothing on Easy, which is what the game always did, about half on Normal, and the full weight on Hard.
- Anti-air was the computer's oldest hole. It is closed.
- The skirmish no longer catches a hitch the first time the computer picks a team. It works out every unit-against-unit matchup on the loading screen now, in about a millisecond.
@@ -1457,7 +1405,7 @@ A third pass went through the generals' powers, promotions and unit abilities.
- Factories take a hundred units in the queue, not nine. The build queue only ever had nine buttons and that had become the limit.
- A match can pay everyone a wage. `MoneyPerMinute` in `GameData.ini` drops the same sum into every
living player's account on the minute, on top of whatever they are mining, which is the knob a
- mod or a map needs to run a game that is not about holding the supply piles. Zero, and therefore
+ map needs to run a game that is not about holding the supply piles. Zero, and therefore
absent, unless somebody asks for it: on a stock install nothing changes. Measured on one seed with
four Hard computers at 7,777 a minute, three of the four spent between 3,400 and 6,200 more in
the first three minutes and put the difference on the map.
@@ -1530,7 +1478,7 @@ A third pass went through the generals' powers, promotions and unit abilities.
- Laying a foundation costs less the further up the map you build. Flattening the ground under a new building scanned every row of the map from the bottom edge up to the building, threw all of them away bar the ones actually under it, and did that once per column. It works out the rows it needs now. The ground comes out identical, down to the last unit of height.
- EVA announcements that were queued behind another one no longer go quiet. A request waits its turn and expires if its turn never comes, and the sum that worked out when that was could wrap round to zero, retiring the announcement on the frame it was asked for.
- A windowed game has a minimise button, like every other window on your desktop. There was none, and the system menu offered a Minimise entry that did nothing; the only way out was alt-tab.
-- Mods can mark a thing as not worth an alarm. Walls, mines and scenery are shot at constantly and each one shouting drowns out the attack that matters; NO_ATTACK_WARNING on an object says damage to it raises no ping, no radar flash and no EVA line.
+- A thing can be marked as not worth an alarm. Walls, mines and scenery are shot at constantly and each one shouting drowns out the attack that matters; NO_ATTACK_WARNING on an object says damage to it raises no ping, no radar flash and no EVA line.
- "Your base is under attack" fires for the attack you are actually under. The check that decides whether a warning is a repeat of one you just heard was computing something that was not a distance at all, so an attack on the far side of the map could silence the warning for one at your front door, and two hits on the same building could each get their own.
- Scorch marks and tank tracks keep their colour on a brightly lit map. The shade was worked out from the map's own lighting with nothing holding it to a byte, and the red channel sits sixteen bits up, so anything over full brightness spilled into the transparency and the mark came out the wrong colour at the wrong opacity.
- Two tanks shelling the same spot no longer wipe a scorch mark off the far side of the map. With the ground already carrying its full quota of marks, a repeat crater threw the oldest one away and then declined to add itself, so a mark vanished and nothing replaced it.
@@ -2101,8 +2049,8 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- A campaign mission could crash on its very first frame with the Direct3D 11 picture on, if the screen had been reset before it by an alt-tab or a change on the display options page. The reset threw some textures away, the new picture kept drawing with them, and the first water reflection of the next map read freed memory. A reset now clears every texture from the new picture as well as the old one.
- Changing the resolution in fullscreen could crash the game the moment you pressed Accept, with the Direct3D 11 picture on. The screen reset asks the graphics card for the memory the ground shadows are drawn into, and when the card refused, the next frame wrote into memory that was never handed over. A player on an RTX 5080 met it on v2.4.0. Now the ground shadows sit out until the next reset, and the game keeps running.
- A save made before v2.2.0 loads again. Since then the Boss General's Scud Storm keeps its missiles in a different weapon slot, and loading an old save looked for the weapon in the slot that is now empty and went down. The game now drops what no longer fits and fills the slots the way today's data has them.
-- A tank or truck with no orders of its own, the burning wreck some mods leave behind, crashed the game the first time it was drawn. The new tread and chassis motion asked every drawn vehicle for its engine, and a wreck has none. A wreck now sits still.
-- Opening Skirmish crashed on a game that loads its menus from a mod or from the original files, as the Shockwave mod does. Those menus have no game speed box, and the game set one up anyway. The same was true of the tree sway box and the detail presets on the Options screen. A missing box is now left out, and a skirmish without one plays at normal speed.
+- A tank or truck with no orders of its own, such as a burning wreck, crashed the game the first time it was drawn. The new tread and chassis motion asked every drawn vehicle for its engine, and a wreck has none. A wreck now sits still.
+- Opening Skirmish crashed on a game that loads its menus from the original files. Those menus have no game speed box, and the game set one up anyway. The same was true of the tree sway box and the detail presets on the Options screen. A missing box is now left out, and a skirmish without one plays at normal speed.
- The opening movies froze on their first frame with that picture on. A movie writes a new image every frame into a texture the copy had already taken.
- A map that fills all sixteen player seats no longer crashes as it finishes loading. Every match adds one more player, the watcher its replay is seen through, and on such a map there was no seat left for him; the load went down looking for him. One player met it on America's first mission, whose map already holds fifteen. Such a map now starts with no watcher, and its replay watches from the seat it was recorded in.
- Leaving a Generals' Challenge match while its opening movie still played could crash the game on the way back to the menu. Clearing the match closed every movie, the load screen's own among them, and the load screen was left up to close it again; it now goes with the match.
@@ -2117,7 +2065,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- A Windows PC that never installed the 2010 DirectX runtime, as happens with some repacks, crashed at the first texture. The game now draws with its own copy of that library, the one Windows on Arm laptops already use, and plays the same match to the same result.
- A long chat message or an unusual map name could kill the process.
- A map name the game cannot make sense of is refused as you start, instead of taking the game down later. A path with a space in it and no quotes around it left the loader walking the same step of that path forever, growing a string until it ran out of room, and the game then went on starting with half of itself missing. What you saw was a crash a second later, in the part of the game that runs a match, naming nothing that had anything to do with it. Any failure during start-up now stops the game there and says which one it was.
-- A downloaded map made for another mod loads instead of crashing as the match starts. Maps can carry their own tweaks to units, and one a player tried gave a wall a setting Zero Hour has never had; one unfamiliar line was enough to take the whole game down. A setting the game does not know is now passed over and the rest of the map's tweaks still apply.
+- A downloaded map with its own unit changes loads instead of crashing as the match starts. Maps can carry their own tweaks to units, and one a player tried gave a wall a setting Zero Hour has never had; one unfamiliar line was enough to take the whole game down. A setting the game does not know is now passed over and the rest of the map's tweaks still apply.
- One damaged map in your Maps folder no longer stops the game from starting. The game reads every map there as it starts, to build its map list, and a file it could not read through ended the start-up with "ErrorCode 0xdead0005" before the main menu ever came up. A half-finished download would do it. That map is left off the list now and the rest of the folder loads.
- Starting the game from the folder the zip was unpacked to says what is wrong. None of Zero Hour's own files are in that folder, so the first one the game asked for was missing, and the box that came up blamed viruses and overheated hardware. It now names the folder it looked in and tells you to run install.bat.
- A machine that once had Generals installed from a disc or The First Decade, and later removed it, no longer loses the original game's files. The old install leaves its address behind in Windows, the game trusted it over the copy Steam keeps beside Zero Hour, and the main menu came up over magenta water and black hills. A folder that turns out to be empty is passed over now.
@@ -2162,8 +2110,8 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
existed - so any vehicle whose data has one and not the other faulted the moment its wheels came
back down.
- A file that appears after the game has already looked for it is found. The answer to "is this
- file there" was remembered forever, and nothing cleared it when a mod archive was mounted or the
- patch content was layered on top - so a file the game had asked about a moment too early stayed
+ file there" was remembered forever, and nothing cleared it when the patch content was layered
+ on top - so a file the game had asked about a moment too early stayed
invisible for the rest of the session.
- A guard posted at a tunnel network no longer takes the game down when its target stops existing.
EA's own copy of that function, the one for units guarding anywhere else, tests for it on its first
@@ -2232,12 +2180,18 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Stopped sounds really stop. A destroyed unit's engine loop and a turret's turning loop no longer play on, and the Idle Worker tooltip shows its key.
- A damaged map sends you back to the menu with a box naming it as damaged, instead of closing the game. A map file is whatever its maker handed you, and the reader trusted every count in it: a height map claiming four billion cells, a trigger with a negative number of points or a tile class pointing past its table either crashed the game or read on into the next part of the file, where every machine found different garbage. Each count is checked against what the file can hold now, and a map that fails is left out of the list or refused at the start, the same way on every machine in the match. For a few hours that check also refused Tournament City, Tournament Desert, Fortress Avalanche, Heartland Shield, Sand Serpent and two campaign maps, all of which save no cliff textures and were read as damaged for it. They open again; all 62 skirmish maps in the game's archives were started headless to prove it.
- A custom map's rules last for that match only. A map.ini could rewrite a weapon, a sound, a particle effect, an FX list, the water or the snow, and the next match on another map played with the change still in it, so two players who had played different maps before were running different rules. Every store a map may touch puts the game's own values back when the match ends, and a block a map has no business changing (the mouse, the multiplayer colours, the campaigns) is skipped with the rest of the file still loading. A map.ini that raised a unit's price showed it on the button and charged the old one; it charges what the button says now. Values no sane map uses, a build time of a hundred years or a snowstorm a million flakes wide, are refused one line at a time. A map that set the weather twice, in its map.ini and its solo.ini, froze the game while it loaded; it loads now.
-- A replay that cannot save a rewind point plays on. It keeps the rewind points it already made and stops making new ones; one mod unit that could not be saved used to close the game. A rewind point that will not load says so in a box instead of closing the game.
+- A replay that cannot save a rewind point plays on. It keeps the rewind points it already made and stops making new ones; one unit that could not be saved used to close the game. A rewind point that will not load says so in a box instead of closing the game.
- A network match no longer reports a desync that never happened. With a long run-ahead one frame can bring in the checks of several earlier ones, each player's newest overwrote the rest, and the game compared one player's check of one frame with another's of the next. Checks are kept by the frame they were made on now, and a frame is compared only once every connected player's check for it is in.
- A graphics driver reset says so. The game used to vanish without a word when Windows reset the driver or the card stopped answering; now the crash report names the frame and the reason Windows gave.
- Alt-tab no longer crashes the game while it is painting house colours onto a unit. With the screen gone the game had no picture to paint on and reached for it anyway. The unit comes out in its plain colours for that moment and gets its house colour the next time it is drawn.
- Logging off or shutting Windows down with the game open closes it cleanly, replay saved with its length. The game used to refuse, Windows sat on its "apps are preventing shutdown" screen, killed it anyway, and the launcher reported a crash.
- A crash that used to leave nothing in the log leaves a record now. Some access violations faulted again inside the crash report itself and the log ended on an ordinary frame; the first thing written is the fault's address and module, straight to the file, then the last second of log lines that were still waiting to be written.
+- A map with two players of the same name no longer crashes the main menu or a match the first time a point defense laser looks for a target. The second of the two was left with no team, and the laser's search for enemies tripped over it.
+- A mission saved under game data that has changed since says it cannot be loaded instead of crashing the game.
+- An INI file that stops the game at startup names itself. The crash report gives the file and the line it stopped on, with what it found there, where it used to say only "Uncaught Exception during initialization." A unit that names a locomotor or a science the data never defines gets that name in the report too. A file saved with a UTF-8 byte order mark, which some editors add, loads; the mark used to hide the first block's name and the whole file was refused.
+- A network game or a replay on a map this machine cannot read goes back to the menu. It used to deal out the start positions as if the map had eight, while the machines that had it dealt over the map's own, and the game split from the first second.
+- An install folder carrying an older skirmish room screen, one without the match record panel, no longer crashes the game on the way into Skirmish. The room opens without the record and plays as before.
+- A unit that leaves the factory already a veteran with Chemical Suits on no longer crashes the game. The suits went on before the unit had a body on screen to mark; such a unit now goes without the ground marking under it.
## Units take corners wide, and drive round a jam instead of into it
@@ -2458,9 +2412,6 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Audio is real, through the audio library the retail game ships with.
- Installs from outside Steam start again. Their copy of the game's data files differs from Steam's in a few places, and one of our fixes, to the Aurora's fuel-air bomb, looked for a piece that copy does not have and stopped the game at start with a parsing error. A fix that finds nothing to change now leaves that piece as it is and the game carries on.
-- The Shockwave mod no longer stops the game at start. Our balance pass gives the Tank General's bunker 1500 health, Shockwave builds that bunker from different parts, and the game quit with a parsing error naming the bunker. A change that finds some other kind of part where it expected the bunker's health is now passed over, and the mod's bunker keeps the health the mod gave it.
-- Contra X Beta 2 starts too. Our China command center menu puts the early Carpet Bomb in its second slot, Contra has no such button, and the game quit at start with a parsing error naming that menu. A menu slot that asks for a button the loaded game does not have is now left empty, and the rest of the menu fills in as before.
-- A mod pack that leaves out a unit we rebalance starts as well. A player running the Alternate packs had no Gattling Cannon under the name our balance pass prices, and the game quit at start with a parsing error naming the cannon. A balance change for a unit, weapon or armor the loaded game does not have is now passed over, and every change after it still applies.
- A game set to a language it has no files for starts in English. A player whose Windows still said German, with only the English game installed, saw it close as it started: the game went looking for German menus and fonts, found none and closed. It now notices before it loads any text and plays in English. A German or Russian copy with no English files at all closed the same way after 2.5.0, because English was the only language the game knew to fall back to. It now takes whichever language your copy does have, and a copy with none says so and tells you to verify the game's files in Steam.
- A death cry plays to the end. So does "construction complete", and the tail of a gun. Telling a sound to stop used to cut it off that frame, where the 2003 game let it finish and only kept it from repeating; our own fix for the audio thread broke that, and it is put back. A looping sound caught in the pause between two plays can be stopped too, instead of carrying on after whatever made it is gone.
- Birdsong no longer drowns out the battle. Every sound on the map played at full volume all the way out to the edge of its range, because the game handed the sound library its near and far distances the wrong way round. A sound that carries a long way, like the birds and the wind, came through at full strength from across the map, while a gun firing just off screen had already been cut. Sounds get quieter with distance now, at the same rate the game uses to decide when one is too faint to keep playing, so what is close to the camera is what you hear.
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index b0def61da..41c31559d 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -15,16 +15,13 @@ Data/Art/Textures/ReforgedForceAttack.tga
Data/Art/Textures/ReforgedGuardCentre.tga
Data/Art/Textures/ReforgedGuardRing.tga
Data/Art/Textures/ReforgedHudAmericaCommandBar.dds
-Data/Art/Textures/ReforgedHudAmericaCommandBarWide.dds
Data/Art/Textures/ReforgedHudAmericaPowers.dds
Data/Art/Textures/ReforgedHudBlankTexture.tga
Data/Art/Textures/ReforgedHudChinaCommandBar.dds
-Data/Art/Textures/ReforgedHudChinaCommandBarWide.dds
Data/Art/Textures/ReforgedHudChinaPowers.dds
Data/Art/Textures/ReforgedHudControlButtons.dds
Data/Art/Textures/ReforgedHudDisconnectWindow.dds
Data/Art/Textures/ReforgedHudGlaCommandBar.dds
-Data/Art/Textures/ReforgedHudGlaCommandBarWide.dds
Data/Art/Textures/ReforgedHudGlaPowers.dds
Data/Art/Textures/ReforgedHudHelpbox.dds
Data/Art/Textures/ReforgedHudObsCommandBar.dds
@@ -32,7 +29,6 @@ Data/Art/Textures/ReforgedHudObsPieces.dds
Data/Art/Textures/ReforgedHudObsPlayerWindow.dds
Data/Art/Textures/ReforgedHudObsSpec.dds
Data/Art/Textures/ReforgedHudTurkiyeCommandBar.dds
-Data/Art/Textures/ReforgedHudTurkiyeCommandBarWide.dds
Data/Art/Textures/ReforgedHudTurkiyePowers.dds
Data/Art/Textures/ReforgedLaserPink.tga
Data/Art/Textures/ReforgedLobbySpot.tga
@@ -555,7 +551,6 @@ Data/Scenarios/sentrydrone.txt
Data/Scenarios/shellpaths.txt
Data/Scenarios/shiftorders.txt
Data/Scenarios/shiftqueue.txt
-Data/Scenarios/shw_supplydrop.txt
Data/Scenarios/spectre_reaim.txt
Data/Scenarios/spectre_reshoot.txt
Data/Scenarios/squad30.txt
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudAmericaCommandBarWide.dds b/GeneralsMD/Code/Data/Art/Textures/ReforgedHudAmericaCommandBarWide.dds
deleted file mode 100644
index 8cb673752..000000000
Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudAmericaCommandBarWide.dds and /dev/null differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudChinaCommandBarWide.dds b/GeneralsMD/Code/Data/Art/Textures/ReforgedHudChinaCommandBarWide.dds
deleted file mode 100644
index f9768a285..000000000
Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudChinaCommandBarWide.dds and /dev/null differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudGlaCommandBarWide.dds b/GeneralsMD/Code/Data/Art/Textures/ReforgedHudGlaCommandBarWide.dds
deleted file mode 100644
index 3b162b556..000000000
Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudGlaCommandBarWide.dds and /dev/null differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudTurkiyeCommandBarWide.dds b/GeneralsMD/Code/Data/Art/Textures/ReforgedHudTurkiyeCommandBarWide.dds
deleted file mode 100644
index 5f5ac7bb5..000000000
Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedHudTurkiyeCommandBarWide.dds and /dev/null differ
diff --git a/GeneralsMD/Code/Data/French/Generals.str b/GeneralsMD/Code/Data/French/Generals.str
index 20ddb0eb7..56fce1cf6 100644
--- a/GeneralsMD/Code/Data/French/Generals.str
+++ b/GeneralsMD/Code/Data/French/Generals.str
@@ -16765,14 +16765,6 @@ TOOLTIP:CloudStyle
"Classique utilise les effets de toxine et de radiation d'origine. Volumétrique ajoute une fumée mouvante, une brume nucléaire plus sombre et une distorsion de chaleur. S'applique quand vous cliquez sur Accepter, aux nuages déjà sur le terrain aussi."
END
-LAN:ErrorModMismatch
-"Cette partie utilise d'autres mods. Les mods de l'hôte : %s. Lancez le jeu avec les mêmes mods, dans le même ordre, pour la rejoindre."
-END
-
-LAN:NoMod
-"aucun"
-END
-
GUI:SaveFromOlderGame
"Cette sauvegarde a été faite par le jeu d'origine ou par une ancienne version de Reforged et ne peut pas être chargée. Ses sauvegardes « Début de mission » se chargent toujours et reprennent la campagne au début de cette mission, et chaque mission de la campagne peut être choisie depuis le menu de la campagne."
END
diff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.ini
index 5b2271e38..355d42424 100644
--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini
+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini
@@ -584,8 +584,8 @@ End
; The Paladin's laser also burns down infantry that come within 65. A second laser with its own clip
; does that, so a Tank Hunter's missile and the Tank Hunter himself do not share one gun. That needs
; a second weapon and a MULTIFILE file cannot add one. It borrowed AirF_RaptorPointDefenseLaser,
-; which the King Raptor fires again now, then EA's WatchTowerMachineGun, which Contra's Weapon.ini
-; leaves out, so under that mod the module had no weapon and the game crashed. It is
+; which the King Raptor fires again now, then EA's WatchTowerMachineGun, and with a Weapon.ini that
+; leaves that one out the module had no weapon and the game crashed. It is
; Reforged_PaladinInfantryLaser in WeaponReforged.ini now, the Paladin's beam from its LASER bone
; and no burst.
;
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
index 101622a5e..2856c3c85 100644
--- a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
+++ b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
@@ -5,13 +5,3 @@ MappedImage AmericaProCommandBar
Coords = Left:0 Top:0 Right:1920 Bottom:512
Status = NONE
End
-
-; the same plate two command columns wider, for a mod whose sets fill all eighteen slots
-; (Tools/hud_command_bar.py, ControlBar_needsWideCommandGrid)
-MappedImage AmericaProCommandBarWide
- Texture = ReforgedHudAmericaCommandBarWide.tga
- TextureWidth = 2048
- TextureHeight = 512
- Coords = Left:0 Top:0 Right:1920 Bottom:512
- Status = NONE
-End
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudChinaCommandBar.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudChinaCommandBar.ini
index ce3b78ac6..6b951faea 100644
--- a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudChinaCommandBar.ini
+++ b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudChinaCommandBar.ini
@@ -5,13 +5,3 @@ MappedImage ChinaProCommandBar
Coords = Left:0 Top:0 Right:1920 Bottom:512
Status = NONE
End
-
-; the same plate two command columns wider, for a mod whose sets fill all eighteen slots
-; (Tools/hud_command_bar.py, ControlBar_needsWideCommandGrid)
-MappedImage ChinaProCommandBarWide
- Texture = ReforgedHudChinaCommandBarWide.tga
- TextureWidth = 2048
- TextureHeight = 512
- Coords = Left:0 Top:0 Right:1920 Bottom:512
- Status = NONE
-End
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudGlaCommandBar.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudGlaCommandBar.ini
index 517e877d0..54083052e 100644
--- a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudGlaCommandBar.ini
+++ b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudGlaCommandBar.ini
@@ -5,13 +5,3 @@ MappedImage GlaProCommandBar
Coords = Left:0 Top:0 Right:1920 Bottom:512
Status = NONE
End
-
-; the same plate two command columns wider, for a mod whose sets fill all eighteen slots
-; (Tools/hud_command_bar.py, ControlBar_needsWideCommandGrid)
-MappedImage GlaProCommandBarWide
- Texture = ReforgedHudGlaCommandBarWide.tga
- TextureWidth = 2048
- TextureHeight = 512
- Coords = Left:0 Top:0 Right:1920 Bottom:512
- Status = NONE
-End
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyeCommandBar.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyeCommandBar.ini
index 5094f8492..e2439b97c 100644
--- a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyeCommandBar.ini
+++ b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyeCommandBar.ini
@@ -7,13 +7,3 @@ MappedImage TurkiyeProCommandBar
Coords = Left:0 Top:0 Right:1920 Bottom:512
Status = NONE
End
-
-; the same plate two command columns wider, for a mod whose sets fill all eighteen slots
-; (ControlBar_needsWideCommandGrid)
-MappedImage TurkiyeProCommandBarWide
- Texture = ReforgedHudTurkiyeCommandBarWide.tga
- TextureWidth = 2048
- TextureHeight = 512
- Coords = Left:0 Top:0 Right:1920 Bottom:512
- Status = NONE
-End
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 417fd9cd0..3fa951699 100644
--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
@@ -6133,8 +6133,8 @@ End
; particle's life, white through yellow, orange and red to soot, burn away from their thin edges in
; rather than only fading flat, and flicker where two noise fields bend the card's texture. -d3d9
; and the Classic graphics setting draw them as before. A block that names a system already defined
-; edits it in place, so these name FireLook alone and every other field stays retail's, a mod's or
-; the fork's own block above. The list is every billboarded additive or alpha system drawn with
+; edits it in place, so these name FireLook alone and every other field stays retail's or the
+; fork's own block above. The list is every billboarded additive or alpha system drawn with
; EA's flame and fireball textures (EXExplo, EXFire, EXFireball, EXFThrower, EXSmolderingFire),
; less the green fires of toxin and anthrax and the Particle Cannon's, which the ramp would turn
; orange, and less muzzle flashes, sparks and embers, gone before a ramp shows.
@@ -6998,7 +6998,7 @@ End
; EA's own tank blast, the dark cloud of every tank and big vehicle death, under the column or without
; it: it turned the brown of soot at frame 60 of 100, still at 40% opacity. A fifth off its life ends
; it on the same three seconds as the column, with the colour ramp pulled in to match. Only these
-; fields change; the rest stays retail's or a mod's.
+; fields change; the rest stays retail's.
ParticleSystem MammothTankExplosionSmoke
Lifetime = 80.00 80.00
diff --git a/GeneralsMD/Code/Data/INI/WeaponReforged.ini b/GeneralsMD/Code/Data/INI/WeaponReforged.ini
index a8d1d66fb..e17d3fc5b 100644
--- a/GeneralsMD/Code/Data/INI/WeaponReforged.ini
+++ b/GeneralsMD/Code/Data/INI/WeaponReforged.ini
@@ -2,15 +2,15 @@
;
; BalanceReforged.ini and FixesReforged.ini edit weapons in place and cannot add one: a block for a
; name nobody defined is read and dropped. A weapon they hand to an object therefore has to exist
-; whatever Weapon.ini a mod brings, and this file makes sure it does. A block for a name the loaded
-; data already has is read and dropped, so the data's own definition always stands.
+; before they load, and this file makes sure it does. A block for a name the loaded data already
+; has is read and dropped, so the data's own definition always stands.
;
; This file lands in the multiplayer INI checksum.
; The Paladin's anti-personnel laser, the second PointDefenseLaserUpdate that BalanceReforged.ini
-; gives every Paladin. It borrowed EA's WatchTowerMachineGun, which nothing else fires, and Contra's
-; Weapon.ini leaves that one out: the module got no weapon and the Paladin crashed the game at the
-; first infantry in reach. These are EA's fields with BalanceReforged's changes on them.
+; gives every Paladin. It borrowed EA's WatchTowerMachineGun, which nothing else fires; with a
+; Weapon.ini that leaves that one out the module got no weapon and the Paladin crashed the game at
+; the first infantry in reach. These are EA's fields with BalanceReforged's changes on them.
Weapon Reforged_PaladinInfantryLaser
PrimaryDamage = 100.0
PrimaryDamageRadius = 0.0
@@ -84,14 +84,13 @@ Weapon Reforged_JetCrashFireWeapon
DelayBetweenShots = 250
End
-; ---- EA's own, for a mod that dropped them ---------------------------------------------------------
+; ---- EA's own, for data that lacks them ------------------------------------------------------------
;
; FixesReforged.ini replaces death modules on the GLA's Demolition and Toxin vehicles and traps with
-; ones that fire these. Contra keeps every one of those objects and drops all six weapons from its
-; Weapon.ini (ShockWave drops the two trap charges), so the replaced modules fired nothing: no Gamma
-; puddle from a Toxin Tractor, no blast from a Demolition Scud Launcher or a Toxin demo trap. Under
-; retail Zero Hour, ShockWave and The End of Days each block below is dropped unread, since the
-; weapon is already defined. The fields are EA's, copied from Weapon.ini of Zero Hour 1.04.
+; ones that fire these. A Weapon.ini that keeps those objects and drops these six weapons leaves the
+; replaced modules firing nothing: no Gamma puddle from a Toxin Tractor, no blast from a Demolition
+; Scud Launcher or a Toxin demo trap. Under retail Zero Hour each block below is dropped unread,
+; since the weapon is already defined. The fields are EA's, copied from Weapon.ini of Zero Hour 1.04.
Weapon Demo_DestroyedWeapon
PrimaryDamage = 50.0
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index 5f5f56b99..caa3c4d36 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -1631,14 +1631,6 @@ TOOLTIP:CloudStyle
"Classic uses the original toxin and radiation effects. Volumetric adds moving smoke, darker nuclear haze and heat shimmer. Applies when you press Accept, to the clouds already on the field too."
END
-LAN:ErrorModMismatch
-"This game runs different mods. The host's mods: %s. Start the game with the same mods, in the same order, to join."
-END
-
-LAN:NoMod
-"none"
-END
-
GUI:SaveFromOlderGame
"This save was made by the original game or by an older version of Reforged, and cannot be loaded. Its \"Mission Start\" saves still load and carry the campaign on from that mission's beginning, and every campaign mission can be picked from the campaign menu."
END
@@ -3590,7 +3582,7 @@ GUI:FactionPickPool
"Random picks one of the %d armies ticked on the left, out of %d. Click an army to tick it or take it out."
END
-// %s is a side's name as its heading reads (USA, China, a mod's side): the pool is that side and nothing else.
+// %s is a side's name as its heading reads (USA, China, Turkiye): the pool is that side and nothing else.
GUI:FactionPickRandomSide
"Random %s"
END
diff --git a/GeneralsMD/Code/Data/Russian/Generals.str b/GeneralsMD/Code/Data/Russian/Generals.str
index 63eb71d99..60ab3720e 100644
--- a/GeneralsMD/Code/Data/Russian/Generals.str
+++ b/GeneralsMD/Code/Data/Russian/Generals.str
@@ -16745,14 +16745,6 @@ TOOLTIP:CloudStyle
"Классический использует оригинальные эффекты токсинов и радиации. Объёмный добавляет движущийся дым, более тёмную ядерную дымку и марево. Применяется при нажатии «Принять», в том числе к облакам, уже находящимся на поле."
END
-LAN:ErrorModMismatch
-"В этой игре запущены другие моды. Моды хоста: %s. Чтобы присоединиться, запустите игру с теми же модами в том же порядке."
-END
-
-LAN:NoMod
-"нет"
-END
-
GUI:SaveFromOlderGame
"Это сохранение сделано в оригинальной игре или в более старой версии Reforged и не может быть загружено. Сохранения \"Начало миссии\" по-прежнему загружаются и продолжают кампанию с начала этой миссии, а любую миссию кампании можно выбрать в меню кампании."
END
diff --git a/GeneralsMD/Code/Data/Scenarios/shw_supplydrop.txt b/GeneralsMD/Code/Data/Scenarios/shw_supplydrop.txt
deleted file mode 100644
index bfed95818..000000000
--- a/GeneralsMD/Code/Data/Scenarios/shw_supplydrop.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-# ShockWave's Supply Drop Zone pays out: each drop is six parachuted dummies that, on landing, make a
-# 250 money crate and a structure that collects it (the crate lives in the mod's Crate.ini).
-#
-# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit
-# -mod D:\zhr-mods-new\ShockWave\ -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2
-# -takeover -side 0 M1~FactionAmerica -side 1 FactionGLA -seed 1 -maxframes 24000
-# -scenario shw_supplydrop -logPrefix shwdrop_
-#
-# The HEADLESS PLAYER line for slot 0 gives the money earned: +1500 a drop, the first about two and
-# a half minutes in, then one every two minutes.
-
-30 spawn 0 M1~AmericaSupplyDropZone 1 start0:250:0
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index a257f3e9e..c09cbbead 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -2609,14 +2609,6 @@ LAN:ErrorCRCMismatch
"Oyun bir uyumsuzluk tespit etti. Çok oyunculu oyun, oyuncular arasındaki senkronizasyon verisini kaybetti. Rakibiniz sürümünü değiştirmiş olabilir; onu Yok Sayma Listenize eklemek isteyebilirsiniz"
END
-LAN:ErrorModMismatch
-"Bu oyun başka modlarla oynanıyor. Kurucunun modları: %s. Katılmak için oyunu aynı modlarla, aynı sırayla başlatın."
-END
-
-LAN:NoMod
-"yok"
-END
-
LAN:ErrorGameStarted
"Üzgünüz, bu oyun zaten başladı"
END
diff --git a/GeneralsMD/Code/Data/Ukrainian/Generals.str b/GeneralsMD/Code/Data/Ukrainian/Generals.str
index be7413a68..ca0985000 100644
--- a/GeneralsMD/Code/Data/Ukrainian/Generals.str
+++ b/GeneralsMD/Code/Data/Ukrainian/Generals.str
@@ -16745,14 +16745,6 @@ TOOLTIP:CloudStyle
"Класичний використовує оригінальні ефекти токсинів і радіації. Об'ємний додає рухомий дим, темнішу ядерну імлу й марево. Діє після натискання Прийняти, також на хмари, що вже є на полі."
END
-LAN:ErrorModMismatch
-"Ця гра запущена з іншими модами. Моди хоста: %s. Щоб приєднатися, запустіть гру з тими ж модами в тому ж порядку."
-END
-
-LAN:NoMod
-"немає"
-END
-
GUI:SaveFromOlderGame
"Це збереження зроблене оригінальною грою або старішою версією Reforged і не може бути завантажене. Його збереження \"Початок місії\" все ще завантажуються й продовжують кампанію з початку тієї місії, а кожну місію кампанії можна вибрати в меню кампанії."
END
diff --git a/GeneralsMD/Code/Data/Window/ControlBar.wnd b/GeneralsMD/Code/Data/Window/ControlBar.wnd
index 1a74210ee..336fc525c 100644
--- a/GeneralsMD/Code/Data/Window/ControlBar.wnd
+++ b/GeneralsMD/Code/Data/Window/ControlBar.wnd
@@ -558,194 +558,6 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 1404 1000,
- BOTTOMRIGHT: 1492 1070,
- CREATIONRESOLUTION: 1920 1080;
- NAME = "ControlBar.wnd:ButtonCommand18";
- STATUS = ENABLED+HIDDEN+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 8, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = 1;
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- END
- CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 1404 926,
- BOTTOMRIGHT: 1492 996,
- CREATIONRESOLUTION: 1920 1080;
- NAME = "ControlBar.wnd:ButtonCommand17";
- STATUS = ENABLED+HIDDEN+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 8, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = 1;
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- END
- CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 1312 1000,
- BOTTOMRIGHT: 1400 1070,
- CREATIONRESOLUTION: 1920 1080;
- NAME = "ControlBar.wnd:ButtonCommand16";
- STATUS = ENABLED+HIDDEN+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 8, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = 1;
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- END
- CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 1312 926,
- BOTTOMRIGHT: 1400 996,
- CREATIONRESOLUTION: 1920 1080;
- NAME = "ControlBar.wnd:ButtonCommand15";
- STATUS = ENABLED+HIDDEN+IMAGE+NOFOCUS+WRAP_CENTERED+ON_MOUSE_DOWN;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 8, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = 1;
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- END
- CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
SCREENRECT = UPPERLEFT: 1220 1000,
diff --git a/GeneralsMD/Code/Data/Window/ControlBarPro.txt b/GeneralsMD/Code/Data/Window/ControlBarPro.txt
index 163319634..83fd81954 100644
--- a/GeneralsMD/Code/Data/Window/ControlBarPro.txt
+++ b/GeneralsMD/Code/Data/Window/ControlBarPro.txt
@@ -34,9 +34,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-
-EIGHTEEN-BUTTON GRID:
-The nine-column command grid a mod with eighteen command slots gets (ButtonCommand15
-to 18, and the wider middle plate) follows Hojjat's edit of Control Bar Pro 2.1.1 for
-the Contra mod, under the same MIT License. The plate itself is drawn with the rest of
-the American, Chinese, GLA and Turkiye paintings by Tools/hud_command_bar.py.
diff --git a/GeneralsMD/Code/Tools/gametext.py b/GeneralsMD/Code/Tools/gametext.py
index a64334a41..66302fcba 100644
--- a/GeneralsMD/Code/Tools/gametext.py
+++ b/GeneralsMD/Code/Tools/gametext.py
@@ -169,10 +169,9 @@ def decode(raw):
return raw.decode("latin-1")
-def parse_str(path, strict=True):
+def parse_str(path):
"""[(label, text)] the way GameTextManager::parseStringFile reads a .str. Raises on anything
- that file would silently read wrongly; strict=False reads a mod's file the way the game does,
- keeping a label's first string."""
+ that file would silently read wrongly."""
with open(path, "rb") as source:
lines = decode(source.read()).splitlines()
@@ -195,7 +194,7 @@ def parse_str(path, strict=True):
break
if not stripped.startswith('"'):
continue
- if strict and len(stripped.encode("utf-8")) > MAX_LINE_BYTES:
+ if len(stripped.encode("utf-8")) > MAX_LINE_BYTES:
raise ValueError("%s: %s is %d bytes on one line, the game reads %d"
% (path, label, len(stripped.encode("utf-8")), MAX_LINE_BYTES))
@@ -205,10 +204,9 @@ def parse_str(path, strict=True):
raise ValueError("%s: the string of %s never closes its quote" % (path, label))
body += " " + lines[index]
index += 1
- if text is not None and strict:
+ if text is not None:
raise ValueError("%s: %s has two strings" % (path, label))
- if text is None:
- text = unescape(body[:unescaped_quote(body)])
+ text = unescape(body[:unescaped_quote(body)])
entries.append((label, text if text is not None else ""))
return entries
diff --git a/GeneralsMD/Code/Tools/hud_command_bar.py b/GeneralsMD/Code/Tools/hud_command_bar.py
index 4196f8ed5..e9f6fdc38 100644
--- a/GeneralsMD/Code/Tools/hud_command_bar.py
+++ b/GeneralsMD/Code/Tools/hud_command_bar.py
@@ -5,7 +5,7 @@ pixel, its top row at screen y 568 (the ImagePart of ControlBarProReforged.ini,
MappedImages/HandCreated/ReforgedHud<Side>CommandBar.ini). ControlBarSchemeManager::drawPainting cuts
it at design x 182 and 616, texel 437 and 1478, and draws each piece where its panel stands, so nothing
may be painted near those two columns. Every opening the bar's windows draw into (the fourteen
-command cells or the wide grid's eighteen, money, power rail, selection window, rank bar, the toolbar,
+command cells, money, power rail, selection window, rank bar, the toolbar,
the idle column and the two tabs above the right panel) is read from the same numbers ControlBar.wnd
and the scheme use, below in layout(); the art only frames them. The left panel is empty: the radar
takes the map's shape, and the code draws its frame from nine pieces of the button sheet. The plates reach past ControlBar.wnd's input
@@ -32,7 +32,7 @@ lamp): its bar, the watched player's panel, a sheet of pieces (toolbar buttons,
radar frame's nine, every side's and general's emblem) and the spectator's rack (ReforgedHudObsSpec).
python Tools/hud_command_bar.py --out DIR [--side all|Observer|Lobby|America|China|Gla|Turkiye] [--dds TEXTURES]
- writes DIR/ReforgedHud<Side>CommandBar.png, ...CommandBarWide.png and ...Powers.png for each side,
+ writes DIR/ReforgedHud<Side>CommandBar.png and ...Powers.png for each side,
the observer's ReforgedHudObsCommandBar, ...ObsPlayerWindow, ...ObsPieces, ...ObsSpec and ReforgedHudHelpbox, and the
front end's ReforgedFactionEmblems (Lobby), and with --dds the same as DXT5 .dds into TEXTURES
(Data/Art/Textures)
@@ -108,25 +108,21 @@ STEEL, GLASS, ACCENT, ACCENT2, GOLDM, INKM, BRIGHT, DARK, PAPERM, DIM, HILITE =
METAL = (STEEL, DARK, BRIGHT)
-def layout(wide):
+def layout():
"""The bar's windows in texels (x0, y0, x1, y1); screen y is texel y + 568 at 1920x1080."""
- s = 92 if wide else 0 # COMMAND_GRID_WIDE_STEP: one column more at each end
- cols = 9 if wide else 7
- x0 = 668 - s
return dict(
radar=(5, 185, 327, 507), # LeftHUD's square, the largest the map-shaped radar gets
uattack=(276, 172, 340, 236),
money=(894, 311, 1026, 336), # MoneyUL/LR
- power=(605 - s, 338, 1313 + s, 348), # PowerBarUL/LR
- tools=[(609 - s, y, 663 - s, y + 35) for y in (357, 412, 468)], # options, beacon, chat
+ power=(605, 338, 1313, 348), # PowerBarUL/LR
+ tools=[(609, y, 663, y + 35) for y in (357, 412, 468)], # options, beacon, chat
# the idle column at the grid's right end: worker, infantry, vehicle, aircraft (Idle<Kind>UL/LR)
- idle=[(1312 + s, y, 1366 + s, y + 35) for y in (357, 394, 431, 468)],
- cells=[(x0 + 92 * c, y, x0 + 92 * c + 88, y + 70) for c in range(cols) for y in (358, 432)],
+ idle=[(1312, y, 1366, y + 35) for y in (357, 394, 431, 468)],
+ cells=[(668 + 92 * c, y, 668 + 92 * c + 88, y + 70) for c in range(7) for y in (358, 432)],
minmax=(1829, 234, 1920, 265),
general=(1829, 272, 1920, 303),
portrait=(1642, 319, 1871, 503), # RightHUD
exp=(1875, 319, 1911, 503), # ExpBarForeground
- wide=s,
)
@@ -180,12 +176,6 @@ def grow(r, d):
return (r[0] - d, r[1] - d, r[2] + d, r[3] + d)
-def spread(pts, s):
- """The centre panel's outline for the wide grid: everything left of the money tab moves s left,
- everything right of it s right."""
- return [(x - s if x < 832 else x + s if x > 1088 else x, y) for x, y in pts]
-
-
def jitter(poly, seed, amp=2.5, step=12):
"""A ragged copy of a polygon: each edge broken every step texels and bitten in by up to amp. Edges
on the screen's border (x 0, x 1920, y 512) stay straight, and nothing moves outward."""
@@ -535,11 +525,11 @@ def windows(p, L, build):
window(p, (r[0], r[1], r[2] + 4, r[3]), 3, 2, 1, c * 0.6, STEEL, build)
-def paint_bar(side_name="America", wide=False):
+def paint_bar(side_name="America"):
side = SIDES[side_name]
- L = layout(wide)
+ L = layout()
p = Painter(2048, 512)
- BARS[side["build"]](p, L, L["wide"])
+ BARS[side["build"]](p, L)
return shade(p, side, SEAMS)
@@ -559,14 +549,14 @@ def vents(p, x0, x1, y0, y1, pitch=7):
p.inlay([[(x, y1), (x + t, y0), (x + t + 2.4, y0), (x + 2.4, y1)] for x in np.arange(x0, x1 - t, pitch)], INKM, 1.0)
-def bar_machined(p, L, s):
+def bar_machined(p, L):
"""America: two tiers of machined plate, a dark flange carrying the silhouette and a satin frame on
it, every corner cut at 45 degrees, the shield's chevrons up the wings, octagon studs."""
# the left panel is the radar's frame now (radar_frame), drawn round the map's shape
- flanges = [spread([(560, 512), (560, 348), (592, 316), (832, 316), (862, 286), (1058, 286), (1088, 316),
- (1366, 316), (1383, 333), (1383, 512)], s),
+ flanges = [[(560, 512), (560, 348), (592, 316), (832, 316), (862, 286), (1058, 286), (1088, 316),
+ (1366, 316), (1383, 333), (1383, 512)],
[(1590, 512), (1590, 322), (1622, 290), (1806, 290), (1806, 244), (1828, 222), (1920, 222), (1920, 512)]]
- frames = [plate(592 - s, 326, 1376 + s, 512, tl=("cut", 10), tr=("cut", 10)),
+ frames = [plate(592, 326, 1376, 512, tl=("cut", 10), tr=("cut", 10)),
plate(868, 302, 1052, 340, tl=("cut", 10), tr=("cut", 10)),
plate(1625, 302, 1920, 512, tl=("cut", 10)), plate(1821, 228, 1920, 316, tl=("cut", 8))]
for f in flanges:
@@ -575,22 +565,22 @@ def bar_machined(p, L, s):
windows(p, L, "machined")
# the shield split: the first accent's chevrons up the left wing, the second's up the right panel's;
# the idle column fills the grid's right wing, so the second accent runs there as a hairline only
- wing_chevrons(p, 577 - s, 370, 490, 16, ACCENT)
+ wing_chevrons(p, 577, 370, 490, 16, ACCENT)
wing_chevrons(p, 1609, 348, 490, 18, ACCENT2)
- p.inlay([plate(612 - s, 329, 858, 331)], ACCENT, 0.4)
- p.inlay([plate(1062, 329, 1356 + s, 331)], ACCENT2, 0.4)
+ p.inlay([plate(612, 329, 858, 331)], ACCENT, 0.4)
+ p.inlay([plate(1062, 329, 1356, 331)], ACCENT2, 0.4)
p.inlay([plate(1645, 305, 1810, 307)], ACCENT2, 0.4)
vents(p, 1650, 1790, 293, 300)
- for x, y in ((577 - s, 358), (577 - s, 500), (1609, 336), (1609, 500), (1814, 282)):
+ for x, y in ((577, 358), (577, 500), (1609, 336), (1609, 500), (1814, 282)):
p.stud(x, y, 3.0)
-def bar_terraced(p, L, s):
+def bar_terraced(p, L):
"""China: cast armour in three square terraces that follow a stepped silhouette, a heavy rim round
every well, rows of round rivets, and the accents as stacked ingots and painted bands."""
- outlines = [spread([(560, 512), (560, 340), (576, 340), (576, 328), (592, 328), (592, 316), (832, 316), (832, 300),
- (848, 300), (848, 286), (1072, 286), (1072, 300), (1088, 300), (1088, 316), (1351, 316),
- (1351, 328), (1367, 328), (1367, 340), (1383, 340), (1383, 512)], s),
+ outlines = [[(560, 512), (560, 340), (576, 340), (576, 328), (592, 328), (592, 316), (832, 316), (832, 300),
+ (848, 300), (848, 286), (1072, 286), (1072, 300), (1088, 300), (1088, 316), (1351, 316),
+ (1351, 328), (1367, 328), (1367, 340), (1383, 340), (1383, 512)],
[(1590, 512), (1590, 314), (1604, 314), (1604, 302), (1618, 302), (1618, 290), (1806, 290), (1806, 236),
(1818, 236), (1818, 222), (1920, 222), (1920, 512)]]
for o in outlines:
@@ -599,16 +589,16 @@ def bar_terraced(p, L, s):
windows(p, L, "terraced")
# ingots up the wings, the first accent left of the grid and the second up the right panel; the
# idle column fills the grid's right wing
- for cx, y0, y1, w, mat in ((575 - s, 360, 500, 16, ACCENT), (1610, 330, 500, 22, ACCENT2)):
+ for cx, y0, y1, w, mat in ((575, 360, 500, 16, ACCENT), (1610, 330, 500, 22, ACCENT2)):
for y in np.arange(y0, y1 - 8, 20):
p.bump([plate(cx - w / 2, y, cx + w / 2, y + 9)], 1.6, 0.8, mat)
# painted bands on the outer terrace's shoulders
- p.inlay([plate(600 - s, 318, 824, 322)], ACCENT, 0.3)
- p.inlay([plate(1096, 318, 1343 + s, 322)], ACCENT2, 0.3)
+ p.inlay([plate(600, 318, 824, 322)], ACCENT, 0.3)
+ p.inlay([plate(1096, 318, 1343, 322)], ACCENT2, 0.3)
p.inlay([plate(1626, 292, 1798, 296)], ACCENT2, 0.3)
# rivet rows along the outer terrace
- rows = [((598 - s, 320), (826, 320)), ((854, 290), (1066, 290)), ((1094, 320), (1345 + s, 320)),
- ((564 - s, 346), (564 - s, 506)), ((1379 + s, 346), (1379 + s, 506)),
+ rows = [((598, 320), (826, 320)), ((854, 290), (1066, 290)), ((1094, 320), (1345, 320)),
+ ((564, 346), (564, 506)), ((1379, 346), (1379, 506)),
((1624, 294), (1800, 294)), ((1594, 320), (1594, 506)), ((1824, 226), (1914, 226)), ((1810, 242), (1810, 286))]
for (x0, y0), (x1, y1) in rows:
n = max(2, int(np.hypot(x1 - x0, y1 - y0) // 18) + 1)
@@ -616,20 +606,20 @@ def bar_terraced(p, L, s):
p.rivet(x0 + (x1 - x0) * t, y0 + (y1 - y0) * t, 2.2)
-def bar_scavenged(p, L, s):
+def bar_scavenged(p, L):
"""GLA: a ragged frame cut from whatever was there, scrap sheets laid over it out of square and
welded where they meet, bolts where they would hold, and the colours sprayed on by hand. No two
sides of it match."""
- outlines = [spread([(560, 512), (560, 360), (574, 330), (600, 316), (832, 316), (832, 296), (846, 286), (1070, 286),
- (1088, 300), (1088, 316), (1355, 316), (1355, 326), (1383, 326), (1383, 512)], s),
+ outlines = [[(560, 512), (560, 360), (574, 330), (600, 316), (832, 316), (832, 296), (846, 286), (1070, 286),
+ (1088, 300), (1088, 316), (1355, 316), (1355, 326), (1383, 326), (1383, 512)],
[(1590, 512), (1590, 330), (1600, 300), (1640, 290), (1806, 290), (1810, 250), (1806, 236), (1830, 222),
(1920, 222), (1920, 512)]]
for i, o in enumerate(outlines):
p.silhouette([jitter(o, 12 + i)], 3.0, "scavenged", screen=True)
# each sheet's edges fall between windows, never across one, or the glass would show the step
- sheets = [((588 - s, 320, 1380 + s, 352), 0.1, 1.03),
- ((588 - s, 352, 1034, 524), 0.3, 0.95), ((1034, 352, 1386 + s, 524), -0.25, 1.08),
- ((838, 288, 1082, 306), -1.1, 0.90), ((1336 + s, 318, 1384 + s, 350), 2.0, 0.80),
+ sheets = [((588, 320, 1380, 352), 0.1, 1.03),
+ ((588, 352, 1034, 524), 0.3, 0.95), ((1034, 352, 1386, 524), -0.25, 1.08),
+ ((838, 288, 1082, 306), -1.1, 0.90), ((1336, 318, 1384, 350), 2.0, 0.80),
((1596, 296, 1930, 524), -0.3, 1.04), ((1812, 226, 1930, 314), 0.9, 0.92), ((1592, 412, 1636, 508), -2.2, 0.82)]
for k, ((x0, y0, x1, y1), deg, tint) in enumerate(sheets):
poly = sheet(x0, y0, x1, y1, deg)
@@ -643,42 +633,42 @@ def bar_scavenged(p, L, s):
p.bolt(bx, by, 2.8, k + j)
windows(p, L, "scavenged")
# hazard slashes along the grid plate's top left shoulder, and nowhere else
- for x in range(612 - s, 814, 16):
+ for x in range(612, 814, 16):
p.inlay([[(x, 328), (x + 8, 319), (x + 15, 319), (x + 7, 328)]], ACCENT, 0.3)
# colours sprayed on by hand: a ragged stripe in each wing
- for i, (r, mat) in enumerate((((567 - s, 360, 590 - s, 470), ACCENT), ((1369 + s, 372, 1381 + s, 470), ACCENT2),
+ for i, (r, mat) in enumerate((((567, 360, 590, 470), ACCENT), ((1369, 372, 1381, 470), ACCENT2),
((1600, 324, 1632, 404), ACCENT2))):
p.inlay([jitter(plate(*r), 41 + i, 3.0, 5)], mat, 0.25)
- for i, (x, y) in enumerate(((1374 + s, 500), (1600, 440), (1600, 360))):
+ for i, (x, y) in enumerate(((1374, 500), (1600, 440), (1600, 360))):
p.bolt(x, y, 3.2, 71 + i)
-def bar_faceted(p, L, s):
+def bar_faceted(p, L):
"""Turkiye: composite armour. A silhouette cut at 30 degrees, a frame with one wide flat facet for an
edge, its face laid in triangular tiles each tilted its own way, triangle markers pointing in from
the wings, flush hex bolts."""
- outlines = [spread([(560, 512), (560, 346), (612, 316), (832, 316), (832, 310), (874, 286), (1046, 286), (1088, 310),
- (1088, 316), (1331, 316), (1383, 346), (1383, 512)], s),
+ outlines = [[(560, 512), (560, 346), (612, 316), (832, 316), (832, 310), (874, 286), (1046, 286), (1088, 310),
+ (1088, 316), (1331, 316), (1383, 346), (1383, 512)],
[(1590, 512), (1590, 320), (1642, 290), (1806, 290), (1806, 236), (1830, 222), (1920, 222), (1920, 512)]]
for o in outlines:
p.silhouette([o], 4.0, "machined", screen=True)
- frames = [plate(598 - s, 326, 1376 + s, 512, tl=("slant", 14), tr=("slant", 24)),
+ frames = [plate(598, 326, 1376, 512, tl=("slant", 14), tr=("slant", 24)),
plate(880, 298, 1040, 340, tl=("slant", 8), tr=("slant", 8)),
plate(1630, 302, 1920, 512, tl=("slant", 14)), plate(1822, 230, 1920, 316, tl=("slant", 8))]
p.frame(frames, 9.0, "faceted")
windows(p, L, "faceted")
p.facets(46, 0.06, 0.45, 23) # after the windows, so the glass stays flat
# triangle markers in the wings, pointing in at the grid and the selection window
- for cx, y0, y1, w, point, mat in ((576 - s, 362, 500, 14, "right", ACCENT), (1610, 330, 500, 18, "left", ACCENT2)):
+ for cx, y0, y1, w, point, mat in ((576, 362, 500, 14, "right", ACCENT), (1610, 330, 500, 18, "left", ACCENT2)):
for y in np.arange(y0 + 10, y1 - 6, 26):
p.inlay([triangle(cx, y, w, w * 1.15, point)], mat, 0.6)
# thin lines along the frames' tops, each broken by a 30 degree kink
- for (x0, x1, y), mat in (((640 - s, 860, 332), ACCENT), ((1060, 1320 + s, 332), ACCENT2),
+ for (x0, x1, y), mat in (((640, 860, 332), ACCENT), ((1060, 1320, 332), ACCENT2),
((1660, 1800, 308), ACCENT2)):
mid = (x0 + x1) / 2
p.inlay([plate(x0, y, mid - 6, y + 2), [(mid - 6, y), (mid + 4, y + 6), (mid + 4, y + 8), (mid - 6, y + 2)],
plate(mid + 4, y + 6, x1, y + 8)], mat, 0.4)
- for i, (x, y) in enumerate(((577 - s, 352), (577 - s, 502), (1609, 336), (1609, 502), (1814, 282))):
+ for i, (x, y) in enumerate(((577, 352), (577, 502), (1609, 336), (1609, 502), (1814, 282))):
p.bump([regular(x, y, 3.0, 6, np.pi / 6)], 0.8, 1.2, BRIGHT)
@@ -2674,7 +2664,7 @@ def scheme_blocks(scheme="America8x6"):
return {k: v[k + "UL"] + v[k + "LR"] for k in ("Radar", "Production", "Money", "Upgrades", "GenPower")}
-def check(img, wide, side_name="America", frame=None):
+def check(img, side_name="America", frame=None):
"""The two cuts stay clear, the left panel is empty (the radar's frame is pieces of the sheet now),
every window the bar draws into stands on the plate, and the plates, with the radar's frame at its
largest round the square radar, and the side's scheme's input blockers cover each other to within a
@@ -2683,10 +2673,9 @@ def check(img, wide, side_name="America", frame=None):
for x in SEAMS:
assert not a[:, x - 2:x + 3].any(), "art across the cut at texel %d" % x
assert not a[:, :SEAMS[0]].any(), "art on the left panel, which is the radar's frame now"
- L = layout(wide)
+ L = layout()
for r in [L[n] for n in ("money", "power", "portrait", "exp", "minmax", "general")] + L["cells"] + L["tools"] + L["idle"]:
assert (a[r[1]:r[3], r[0]:r[2]] == 255).all(), "window %s is not on the plate" % (r,)
- s = L["wide"]
solid = a >= 250
if frame is not None: # the frame round the square radar, where the code stands it
l, t, _, _ = RADAR_EDGE
@@ -2698,8 +2687,6 @@ def check(img, wide, side_name="America", frame=None):
solid[fy:fy + fa.shape[0], fx:fx + fa.shape[1]] |= fa >= 250
blocked = np.zeros(a.shape, bool)
for name, (x0, y0, x1, y1) in scheme_blocks(SIDES[side_name]["scheme"]).items():
- if name == "Production":
- x0, x1 = x0 - s, x1 + s
y0, y1 = y0 - TOP, y1 - TOP
blocked[y0:y1, x0:x1] = True
ys, xs = np.nonzero(solid[y0:y1, x0:x1])
@@ -2800,10 +2787,8 @@ def main():
check_helpbox(helpbox)
else:
frame = radar_frame(side)
- for wide in (False, True):
- img = paint_bar(side, wide)
- check(img, wide, side, frame)
- made["ReforgedHud%sCommandBar%s" % (side, "Wide" if wide else "")] = img
+ made["ReforgedHud%sCommandBar" % side] = img = paint_bar(side)
+ check(img, side, frame)
made["ReforgedHud%sPowers" % side] = sheet_img = paint_powers(side, args.emblem, frame, args.ready_glow)
check_sheet(sheet_img, side, args.ready_glow)
for name, img in made.items():
diff --git a/README.md b/README.md
index 59078ad87..6c39b3b0f 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
EA published the source of Command & Conquer: Generals and Zero Hour in February 2025. Zero Hour
Reforged is that source worked on as a game: around sixty bugs EA shipped in 2003 fixed, a computer
-opponent that builds a base (1.5x income, more when it falls behind, no other edge), a Direct3D 11 renderer, a new interface and
-mods that load side by side. Windows x64 players install it through a free launcher; macOS and Linux
+opponent that builds a base (1.5x income, more when it falls behind, no other edge), a Direct3D 11 renderer and a new
+interface. Windows x64 players install it through a free launcher; macOS and Linux
build it from this repository.
Game v3.2.0, released 2026-10-20. Launcher v1.7.0, released the same day. `main` carries work that
@@ -165,22 +165,6 @@ time reached and the whole length; click anywhere on it to jump there. Beside it
speeds, from half to eight times the speed the match was played at. Every match is archived under its
own date-and-time name.
-### Mods
-
-| What | Since |
-|:--|:--|
-| `-mod <folder>` loads a mod's archives and its loose `Data` and `Art` files; give it once per mod, and each mod's armies stand beside Zero Hour's | 3.0.0 |
-| `-modfactions` puts two total conversions in one match, each army building from its own mod's units | 3.0.0 |
-| `-modpatch <folder>` after a mod changes that mod and leaves the others alone | 3.0.0 |
-| A `mod.json` names the mod and its version, and the names go into every replay | 3.0.0 |
-| Reforged's balance, fixes, AI and menus load after the mod and win where both touch the same thing | 3.0.0 |
-| Contra and The Power of the West start and play | 3.0.0 |
-| Shockwave Chaos starts beside a second full mod | 3.2.0 |
-| Five full mods side by side (Contra, ShockWave, Shockwave Chaos, The End of Days, Tiberian Dawn Redux) | `main` |
-| Crashes fixed under Contra, The End of Days, Rise of the Reds, ShockWave, Shockwave Chaos and Reborn | `main` |
-
-The launcher's Mods page installs mods from a catalog and marks each one a patch or a full mod.
-
## Play it
### Windows
@@ -197,7 +181,7 @@ The launcher's Mods page installs mods from a catalog and marks each one a patch
<sub>Launcher v1.7.0, Home page.</sub>
The launcher downloads the build, checks every file against a signed list and keeps the game and
-itself up to date. Its pages are Home, Mods, Maps, Replays, Hotkeys, Options, Health and Feedback, in
+itself up to date. Its pages are Home, Maps, Replays, Hotkeys, Options, Health and Feedback, in
English, Turkish or German. Uninstall puts back the files your game had before. When the game
crashes, the launcher sends the report without asking you for anything.
@@ -258,9 +242,6 @@ Discs carry 1.00 and the engine is 1.04's, so files from a 1.04 install (Steam,
| `-xres <w>` `-yres <h>` | the resolution for this run |
| `-msaa [N]` | multisampling; bare is 4x, a number asks for N from 2 to 16 |
| `-language english\|turkish\|german` | the language for this run, over the one Options saved |
-| `-mod <folder>` | loads a mod's armies beside Zero Hour's as their own lobby entries; repeat it for several |
-| `-modpatch <folder>` | a patch for the mod given before it, or for Zero Hour's files when it comes first |
-| `-modfactions` | each mod's armies join Zero Hour's instead of replacing them |
| `-replay <name>` | opens a replay from the replay folder, extension optional |
| `-loadsave <name>` | opens a save game the same way |
| `-quickstart` | skips the intro movie, the shell map and the menu animations |
diff --git a/Tools/Balance/unitmatrix.py b/Tools/Balance/unitmatrix.py
index 2c2d98ed6..3093a4fb5 100644
--- a/Tools/Balance/unitmatrix.py
+++ b/Tools/Balance/unitmatrix.py
@@ -10,28 +10,22 @@ unconditioned ArmorSet and body MaxHealth, frames to kill both ways. The page di
can weigh them by price; the AI's aiMatchupScore is the same ratio on a log scale.
python unitmatrix.py --out <page.html>
- python unitmatrix.py --mod ShockWave --out <page.html>
- python unitmatrix.py --all <dir>
python unitmatrix.py --selfcheck
The game data comes from Run beside the source; ZHR_RUN_DIR points it at another Run, as siege.py does.
---mod mounts one mod over it the way -mod does (a folder, or its name under the user data's Mods), and
-the sides and their units then come from that data: the lobby's PlayerTemplates and what their
-buildings build. --all writes birim-matrisi.html and one birim-matrisi-<mod>.html per installed mod,
-each page linking the others.
+The sides and their units come from that data: the lobby's PlayerTemplates and what their buildings
+build.
"""
import argparse
import collections
import copy
-import html
import json
import math
import os
import re
import struct
import sys
-import tempfile
import time
from pathlib import Path
@@ -61,8 +55,8 @@ MODULE_KEYS = ("body", "behavior", "draw", "clientupdate")
SHOWN_KINDS = ("INFANTRY", "VEHICLE", "AIRCRAFT")
# the Generals Challenge copies (GC_) borrow a general's side but are never built in a skirmish
CHALLENGE_PREFIX = "gc_"
-# the sides the game itself ships, with the page's Turkish label and tag; a mod's side keeps these only
-# while its lobby name (SIDE:<side>) is still the retail one
+# the sides the game ships, with the page's Turkish label and tag; a side keeps these only while its
+# lobby name (SIDE:<side>) is still the one written here
VANILLA_SIDES = {
"America": ("USA", "ABD", "ABD"),
"AmericaAirForceGeneral": ("USA Air Force General", "ABD Hava Kuvvetleri", "HVK"),
@@ -86,7 +80,6 @@ OWN_FACTION_SIDES = {"Turkiye"}
PATCH_FILES = ("Data/INI/BalanceReforged.ini", "Data/INI/FixesReforged.ini", "Data/INI/TurkiyeReforged.ini")
# Object::look: a unit sees no further than half as far again as its longest weapon reaches
SIGHT_PER_WEAPON_RANGE = 1.5
-MODS_DIR = Path(os.environ.get("ZH_USER_DATA_DIR", Path.home() / "Documents" / "Command and Conquer Generals Zero Hour Data")) / "Mods"
Shots = collections.namedtuple("Shots", "damage delay clip reload opening")
@@ -105,44 +98,13 @@ def msec_to_frames(msec):
# ---- files -----------------------------------------------------------------------------------------
-def is_reforged_archive(big):
- """ArchiveFileSystem.cpp isReforgedArchiveName: the fork's upscaled art goes by its file name."""
- return big.name.lower().startswith("reforged")
-
-
-def is_fork_owned(path):
- """FileSystem::isForkOwnedPath: what the fork installs loose next to the exe, which no mod replaces."""
- p = path.lower().replace("/", "\\")
- if p.startswith("data\\ini\\") and "\\" not in p[len("data\\ini\\"):] and p.endswith("reforged.ini"):
- return True
- if p.startswith("data\\ini\\mappedimages\\handcreated\\reforged") and p.endswith(".ini"):
- return True
- return (p == "data\\patch.str" or p.startswith(("data\\turkish\\", "data\\german\\", "art\\textures\\reforged",
- "window\\")) or p == "install_final.bmp")
-
-
class GameFiles:
- """Data/... paths resolved like the game: Code/Data master, then loose under Run, then the archives.
+ """Data/... paths resolved like the game: Code/Data master, then loose under Run, then the archives."""
- With a mod (one -mod folder): its loose file or its archive's copy goes in front of all of that
- (FileSystem::modLooseFile), except over a path the fork ships loose; its archives go over the retail
- ones, and the fork's Reforged*.big go back on top (ArchiveFileSystem::loadMods)."""
-
- def __init__(self, mod=None):
+ def __init__(self):
self.members = {}
- self.mod = mod
- bigs = sorted(RUN_DIR.glob("*.big"), key=lambda big: big.name.lower())
- for big in bigs:
+ for big in sorted(RUN_DIR.glob("*.big"), key=lambda big: big.name.lower()):
self._index(big, big.name.lower().startswith("patch"))
- if mod:
- # a folder's archives against FilenameList order (case-insensitive, subfolders too), each with
- # overwrite, so the first name wins as in retail's own pass ("!!" or "00_" is the mod's patch)
- for big in sorted(mod.rglob("*.big"), key=lambda big: str(big).lower(), reverse=True):
- if not is_reforged_archive(big):
- self._index(big, True)
- for big in bigs:
- if is_reforged_archive(big):
- self._index(big, True)
def _index(self, big, overwrite):
with open(big, "rb") as f:
@@ -161,11 +123,6 @@ class GameFiles:
return f.read(size)
def read(self, path):
- if self.mod:
- loose = self.mod / path
- archived = path.lower() in self.members and self.mod in self.members[path.lower()][1].parents
- if (loose.is_file() or archived) and not (is_fork_owned(path) and self._fork_loose(path)):
- return loose.read_bytes() if loose.is_file() else self._archived(path)
for loose in self._fork_loose(path):
return loose.read_bytes()
return self._archived(path) if path.lower() in self.members else None
@@ -174,7 +131,7 @@ class GameFiles:
"""Every *.ini under a Data/... directory, sorted as INI::loadDirectory loads them."""
found = {path for path, _, _, _ in self.members.values()
if path.lower().startswith(directory.lower() + "/") and path.lower().endswith(".ini")}
- for root in (CODE_DATA / directory.split("/", 1)[1], RUN_DIR / directory) + ((self.mod / directory,) if self.mod else ()):
+ for root in (CODE_DATA / directory.split("/", 1)[1], RUN_DIR / directory):
if root.is_dir():
found |= {directory + "/" + p.relative_to(root).as_posix() for p in root.rglob("*.ini")}
# FilenameList is a case-insensitive set of backslashed paths, and the files in subfolders load last
@@ -516,13 +473,12 @@ class GameData:
todo.append(button["object"][0].lower())
if command == "UNIT_BUILD":
units.add(button["object"][0].lower())
- # a button can name what this data never made: a Turkiye reskin of an object the mod dropped
+ # a button can name what this data never made
return units & self.things.keys()
def load_objects(self, text, multifile):
# a patch of an Object, Weapon or Armor the data never built, and a reskin of a missing original,
- # is read and dropped (ThingFactory::parseObjectDefinition, WeaponStore, ArmorStore): a mod's
- # archives replaced EA's files
+ # is read and dropped (ThingFactory::parseObjectDefinition, WeaponStore, ArmorStore)
for keyword, args, children in ini_blocks(text):
keyword = keyword.lower()
if keyword == "objectreskin":
@@ -617,26 +573,13 @@ def best_attack(data, attacker, target):
# ---- the page ------------------------------------------------------------------------------------------
-def parse_str(table):
- with tempfile.TemporaryDirectory() as folder:
- path = Path(folder) / "Generals.str"
- path.write_bytes(table)
- return gametext.parse_str(path, strict=False)
-
-
def game_strings(files):
- """GameTextManager::init: Data/Generals.str when there is one, the English CSF otherwise, and
- Data/Patch.str over it, which names the fork's own units and sides (Turkiye's among them)."""
+ """GameTextManager::init: the English CSF, and Data/Patch.str over it, which names the fork's own
+ units and sides (Turkiye's among them)."""
names = {}
- table = files.read("Data/Generals.str")
- entries = gametext.read_csf(files.read("Data/English/generals.csf")) if table is None else parse_str(table)
- for label, text in entries:
+ for label, text in gametext.read_csf(files.read("Data/English/generals.csf")):
names.setdefault(label.lower(), text)
- patch = files.read("Data/Patch.str")
- overlay = {}
- for label, text in parse_str(patch) if patch else ():
- overlay.setdefault(label.lower(), text)
- names.update(overlay)
+ names.update((label.lower(), text) for label, text in gametext.parse_str(CODE_DATA / "Patch.str"))
return names
@@ -671,7 +614,7 @@ def playable_sides(files, names):
if vanilla and vanilla[0] == lobby:
label, tag = vanilla[1], vanilla[2]
else:
- # the mod's own name, tagged by the word that tells it from its faction's other sides
+ # the lobby's own name, tagged by the word that tells it from its faction's other sides
words = [word for word in re.findall(r"\w+", lobby) if word.lower() not in ("general", faction)]
label, tag = lobby, (words[0] if words else lobby)[:3].upper()
if faction not in factions:
@@ -694,8 +637,7 @@ def build(files):
sides, factions, starts = playable_sides(files, names)
# what each side's buildings and dozers offer; a unit keeps its own Side when that is one of the
- # lobby's, and takes the first side that builds it otherwise (The End of Days' Russia units say
- # Side = Russia under the ChinaNukeGeneral template)
+ # lobby's, and takes the first side that builds it otherwise
owner = {}
for side in sorted(sides, key=lambda side: sides[side]["order"]):
for name in data.reachable(starts[side]):
@@ -767,30 +709,12 @@ def selfcheck():
assert kill_frames(480.0, Shots(0.0, 30.0, 0, 0.0, 0.0)) == CANNOT_KILL
assert msec_to_frames(2000) == 120 and msec_to_frames(100) == 6 and msec_to_frames(1) == 1
assert real("75.0.") == 75.0 and real("-2e1x") == -20.0 and percent("50%") == 0.5
- assert is_fork_owned("Data/INI/BalanceReforged.ini") and is_fork_owned("Window/Menus/MainMenu.wnd")
- assert not is_fork_owned("Data/INI/Object/Reforged.ini") and not is_fork_owned("Data/INI/Weapon.ini")
print("unitmatrix selfcheck: ok")
-def installed_mods():
- return sorted((folder.resolve() for folder in MODS_DIR.iterdir() if (folder / "mod.json").is_file()),
- key=lambda folder: folder.name.lower()) if MODS_DIR.is_dir() else []
-
-
-def page_name(mod):
- return "birim-matrisi.html" if mod is None else "birim-matrisi-%s.html" % mod.name.lower()
-
-
-def game_title(mod):
- if mod is None:
- return "Zero Hour Reforged"
- info = json.loads((mod / "mod.json").read_text(encoding="utf-8")) if (mod / "mod.json").is_file() else {}
- return ("%s %s" % (info.get("name", mod.name), info.get("version", ""))).strip()
-
-
-def write_page(mod, out, games):
+def write_page(out):
started = time.time()
- files = GameFiles(mod)
+ files = GameFiles()
if files.read("Data/INI/Weapon.ini") is None or not files.list_dir("Data/INI/Object"):
sys.exit("unitmatrix: no game data in %s. Put a Zero Hour install's *.big there (INIZH.big carries "
"the INIs, EnglishZH.big the names) or point ZHR_RUN_DIR at a Run that has them." % RUN_DIR)
@@ -798,17 +722,9 @@ def write_page(mod, out, games):
sys.exit("unitmatrix: %s has no EnglishZH.big, which carries the unit names." % RUN_DIR)
page, report = build(files)
- title = game_title(mod)
- switcher = "".join('<a href="%s"%s>%s</a>' % (page_name(game), ' aria-current="page"' if game == mod else "",
- html.escape(game_title(game))) for game in games)
- text = (TEMPLATE.replace("__TITLE__", "Zero Hour" if mod is None else html.escape(title))
- .replace("__SOURCE__", "INIZH.big" if mod is None else "modun arşivleri")
- .replace("__GAME__", html.escape(title))
- .replace("__GAMES__", switcher)
- .replace("__UNIT_DATA__", json.dumps(page, ensure_ascii=False)))
- out.write_text(text, encoding="utf-8", newline="\n")
- print("%s: %d units over %d sides, %d without a weapon that kills, %d patch blocks skipped, %s in %.1f s"
- % (title, len(page["units"]), len({unit["side"] for unit in page["units"]}), len(page["excluded"]),
+ out.write_text(TEMPLATE.replace("__UNIT_DATA__", json.dumps(page, ensure_ascii=False)), encoding="utf-8", newline="\n")
+ print("%d units over %d sides, %d without a weapon that kills, %d patch blocks skipped, %s in %.1f s"
+ % (len(page["units"]), len({unit["side"] for unit in page["units"]}), len(page["excluded"]),
len(report["skipped"]), out, time.time() - started))
if report["unread"]:
print(" no health read: " + ", ".join(report["unread"]))
@@ -817,31 +733,14 @@ def write_page(mod, out, games):
def main():
parser = argparse.ArgumentParser(description=__doc__.split("\n", 1)[0])
parser.add_argument("--out", type=Path, help="where to write the HTML page")
- parser.add_argument("--mod", help="a mod folder, or its name under %s" % MODS_DIR)
- parser.add_argument("--all", type=Path, metavar="DIR",
- help="write the page for Zero Hour Reforged and for every installed mod into DIR")
parser.add_argument("--selfcheck", action="store_true", help="check the frames-to-kill arithmetic and stop")
args = parser.parse_args()
if args.selfcheck:
selfcheck()
return
-
- games = [None] + installed_mods()
- if args.all is not None:
- for game in games:
- write_page(game, args.all / page_name(game), games)
- return
if args.out is None:
- parser.error("--out or --all is required")
- mod = None
- if args.mod:
- mod = Path(args.mod) if Path(args.mod).is_dir() else MODS_DIR / args.mod
- if not mod.is_dir():
- parser.error("no mod folder %s" % mod)
- mod = mod.resolve()
- if mod not in games:
- games.append(mod)
- write_page(mod, args.out, games)
+ parser.error("--out is required")
+ write_page(args.out)
TEMPLATE = r'''<!doctype html>
@@ -849,7 +748,7 @@ TEMPLATE = r'''<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>__TITLE__ Karşılaşma Matrisi</title>
+<title>Zero Hour Karşılaşma Matrisi</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed:wght@500;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap">
@@ -960,11 +859,6 @@ h1 {
text-wrap: balance;
}
.lede { margin: 8px 0 0; color: var(--ink-2); max-width: 68ch; }
-.games { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; font-size: 13px; }
-.games a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-block: 2px; }
-.games a:hover { color: var(--ink); border-color: var(--ink); }
-.games a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
-.games a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); }
.readout {
font-family: var(--font-data);
font-size: 12px;
@@ -1264,8 +1158,7 @@ table.matrix {
<div class="page">
<header class="masthead">
<div>
- <nav class="games" aria-label="Oyun">__GAMES__</nav>
- <p class="eyebrow">__GAME__ · __SOURCE__ ve BalanceReforged.ini · birebir çarpışma</p>
+ <p class="eyebrow">Zero Hour Reforged · INIZH.big ve BalanceReforged.ini · birebir çarpışma</p>
<h1>Kim kime karşı</h1>
<p class="lede">Satırdaki birim, sütundaki birimle tek başına karşılaşıyor. Hücre kaç kat üstün olunduğunu söylüyor: 2, saldıranın hedefi hedefin onu öldürdüğü sürenin yarısında öldürdüğü demek. −2 tersi, hedef saldıranı yarı sürede öldürüyor. Köşegen kendi kendine karşı, yani 1; Comanche gibi kendi türünü vuramayan birimlerde taralı.</p>
</div>
diff --git a/docs/porting/windows-impact.md b/docs/porting/windows-impact.md
index 66d7e8f04..84cadf264 100644
--- a/docs/porting/windows-impact.md
+++ b/docs/porting/windows-impact.md
@@ -234,7 +234,7 @@ Three things the checks found:
| 2026-09-26 | B1 (flip) | `Input/Keyboard.cpp:468` | The UK layout's AltGr character on the 4 key is `u'\u20AC'`, the euro sign. It held the three bytes EF BF BD - U+FFFD in UTF-8, left where some earlier re-encoding of the file lost the euro sign. Player-visible; `CHANGELOG.md` has the line. | MSVC without `/utf-8` (this tree does not set it) reads those bytes in the ANSI code page as three characters in a wide character literal and keeps the first (warning C4066): `ï`, i-diaeresis, on a Western code page. So AltGr+4 typed that, and now types the euro sign. That is the intent. | low | **Windows: OPEN** (Left: AltGr+4 on a UK layout.) Windows, UK layout: AltGr+4 in a chat box types the euro sign. |
| 2026-09-26 | B1 (flip) | `WWLib/cpudetect.cpp` | A raw non-ASCII micro sign in a CPU-description string became ASCII: `"%dk uOPs"`. | Cosmetic: the debug text reads `uOPs` where it read a code-page-dependent character. | low | **Windows: nothing to verify** (the row: none needed.) None needed. |
| 2026-09-26 | B5 (GameEngine) | `Common/System/ControlServer.cpp` | Ported to BSD sockets. File-local POSIX definitions of `SOCKET`, `INVALID_SOCKET` and `closesocket`. `#if` at the real differences: Winsock startup/cleanup, `fcntl(O_NONBLOCK)`, `SO_REUSEADDR` (POSIX only), `EINTR` retry, `EAGAIN`/`EWOULDBLOCK`, and `SO_NOSIGPIPE` on the accepted socket. The two `send`s pass `CONTROL_SEND_FLAGS`, which is `MSG_NOSIGNAL` on Linux and `0` elsewhere. | Intended to be a no-op on Windows. The preprocessed token stream with `_WIN32` defined is identical to before (710 lines; POSIX control differs). That rests on the Windows SDK defining neither `MSG_NOSIGNAL` nor `SO_NOSIGPIPE`; mingw-w64's Winsock headers define neither, which is a proxy for Microsoft's SDK, not proof. If the SDK defined `SO_NOSIGPIPE`, Windows would gain a harmless `setsockopt` on the client socket; if it defined `MSG_NOSIGNAL` without `SO_NOSIGPIPE`, the two sends would pass that flag. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: `control_client.py` against `-control`.) Build on Windows, then `Tools/control_client.py` against `-control`: connect, send a command, disconnect, reconnect. |
-| 2026-09-26 | B5 (GameEngine) | `CommandLine.cpp`, `CinemaDirector.cpp`, `DisconnectMenu.cpp`, `PopupSaveLoad.cpp` | Standard names at the call site: `struct _stat`/`_stat`/`_S_IFDIR` became `struct stat`/`stat`/`S_IFDIR`, and three `itoa(n, buf, 10)` became `snprintf(buf, sizeof buf, "%d", n)`. One `DeleteFile` whose result is unused became `remove`. `CinemaDirector`'s three `DWORD` clock values became `UnsignedInt`. | MSVC provides the POSIX `stat` names (under `_CRT_NONSTDC_NO_WARNINGS`) and `remove` (standard C, which deletes the file as `DeleteFileA` does); both should behave the same on Windows. `%d` prints what `itoa(..., 10)` did for an `Int`. `DWORD` and `UnsignedInt` are both 32-bit unsigned: the same wrap in `wall - theCinemaSeenFrameAt`, but a different type identity (`unsigned long` against `unsigned int`), and these values are only subtracted and stored. `PopupReplay`'s `DeleteFile` is unchanged on Windows, because its error text comes from `GetLastError`; POSIX gets `remove` and `strerror`. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: the disconnect timer, `-mod` with a directory, deleting a save.) Build on Windows; the disconnect screen's timer and vote counts, `-mod` with a directory, and deleting a save from the load menu. |
+| 2026-09-26 | B5 (GameEngine) | `CommandLine.cpp`, `CinemaDirector.cpp`, `DisconnectMenu.cpp`, `PopupSaveLoad.cpp` | Standard names at the call site: `struct _stat`/`_stat`/`_S_IFDIR` became `struct stat`/`stat`/`S_IFDIR`, and three `itoa(n, buf, 10)` became `snprintf(buf, sizeof buf, "%d", n)`. One `DeleteFile` whose result is unused became `remove`. `CinemaDirector`'s three `DWORD` clock values became `UnsignedInt`. | MSVC provides the POSIX `stat` names (under `_CRT_NONSTDC_NO_WARNINGS`) and `remove` (standard C, which deletes the file as `DeleteFileA` does); both should behave the same on Windows. `%d` prints what `itoa(..., 10)` did for an `Int`. `DWORD` and `UnsignedInt` are both 32-bit unsigned: the same wrap in `wall - theCinemaSeenFrameAt`, but a different type identity (`unsigned long` against `unsigned int`), and these values are only subtracted and stored. `PopupReplay`'s `DeleteFile` is unchanged on Windows, because its error text comes from `GetLastError`; POSIX gets `remove` and `strerror`. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: the disconnect timer, deleting a save; `-mod` went with mod support on 2026-11-04.) Build on Windows; the disconnect screen's timer and vote counts, and deleting a save from the load menu. |
| 2026-09-26 | B5 (GameEngine) | `GUICallbacks/Menus/PopupReplay.cpp` | Both `FormatMessageW` calls pass `sizeof(buffer)/sizeof(buffer[0])` (1024) where they passed `sizeof(buffer)` (2048). The parameter counts wide characters. | **A behaviour change on Windows, on purpose, and only in the overflow case.** With the old count a system message longer than 1024 characters would be written past the 1024-`wchar_t` stack buffer; now it is truncated to fit. For every message that fits, the output is identical. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: a failed replay save's error box.) Build on Windows; fail a replay save (e.g. a read-only replay folder) and check the error box still shows the system's reason. |
| 2026-09-26 | B5 (GameEngine) | new `Common/ExecutableDirectory.h`, new `Common/System/ExecutableDirectory.cpp`; `MiniLog.cpp`, `System/MemoryInit.cpp`, `System/Debug.cpp` | The three copies of "`GetModuleFileName`, then walk back to the last `'\\'`" became one function, `getExecutableDirectory(buf, size, keepTrailingSeparator)`. Debug.cpp keeps the separator (TRUE), the other two cut on it (FALSE), as each did. Its Windows view (windows_view_diff's own `view()` and MSVC flags, control positive) is the old loop with `'\\'` and the old size, `(DWORD)` of the same `sizeof`. Windows compiles one more TU in gameengine (the source list is a GLOB). | MemoryInit calls it before main, from a static constructor: if MSVC ran it before something it needs, the pool sizes from `Data\INI\MemoryPools.ini` would not load and every pool would take its default size. It needs nothing but `GetModuleFileName` and `strlen`, so this is not expected. A wrong cut would move `MemoryPools.ini` or the debug log out of the game's directory. | low | **Windows: OPEN** (Left: the debug log beside generals.exe and the MemoryPools.ini sizes, in a Debug build.) Windows Debug build: the debug log appears next to `generals.exe` as before, and MemoryInit's pool sizes match `MemoryPools.ini` (a pool listed there with an unusual size shows it in the memory report). |
| 2026-09-26 | B5 (GameEngine) | `Common/System/GameMemory.cpp` | `GlobalAlloc(GMEM_FIXED)`, `GlobalSize` and `GlobalFree` are called through three file-local functions, `sysMemoryAllocate`, `sysMemorySize` (MEMORYPOOL_DEBUG only) and `sysMemoryRelease`, whose Windows bodies are those calls. windows_view_diff: the three wrappers and six renamed call sites, nothing else. | None expected in Release. Every pool blob and single block comes through here, so a wrong wrapper would fail at startup, not subtly. Debug: `sysMemorySize` is `GlobalSize`, as before; only POSIX reports a usable size that can exceed the request. | low | **Windows: OPEN** (Left: a Debug build's memory report.) Windows Release starts and plays; a Debug build's memory report totals match a build before this change. |
@@ -262,7 +262,7 @@ Three things the checks found:
| 2026-09-26 | C1 (c) | `GameState.cpp`, `GameStateMap.cpp`, `Recorder.cpp`, `GameEngine.cpp`, `InGameUI.cpp`, `Image.cpp`, `PopupReplay.cpp`, `ReplayMenu.cpp`, `PeerDefs.cpp` | Every direct `CopyFile`/`DeleteFile`/`MoveFileEx`/`CreateDirectory`/`FindFirstFile`/`Get`/`SetCurrentDirectory` goes through `TheLocalFileSystem`. The save list and the scratch-map cleanup list the save folder by path instead of changing into it. Under Wine, the old and new listings were byte-identical in all 12 cases, and the new one is what `Win32LocalFileSystem` runs. What does change on Windows: (1) a missing save folder lists nothing, where it listed the game folder and deleted its `.map` files (defect 16, fixed); (2) the menu's save-header read gets the full path; (3) `Image.cpp` loads user mapped images only if a *file* matches `*.ini`; (4) the three `CreateDirectory` sites (`GameState`, `InGameUI`, `PeerDefs`) now refuse paths of 256-259 characters (`_MAX_DIR`); (5) patch 1.01's `Data\INI\INIZH.big` delete runs a little later in `GameEngine::init`, still before the archives mount. | The save/load menu reading headers by path is the change a player would see first if wrong: an empty or broken list. The rest are failure-path or edge changes. The error messages still come from `GetLastError` straight after the call. | medium | **Windows: OPEN** (Left: the save/load menu, replay copy and delete, the checkpoint folder, the Ladders folder.) On Windows: save a game and see it listed in the load menu with its details; load it. Save, copy (to the Desktop) and delete a replay from the menus. Watch a replay far enough to take checkpoints, and see the `ReplayCheckpoints\<pid>` folder emptied after. Start GameSpy once and see `GeneralsOnline\Ladders` created. |
| 2026-09-26 | C1 (e) | `Common/EarlyOptions.h`, `ReplayMenu.cpp`, `registry.cpp` (comment), `CMakeLists.txt` | The POSIX user-data and Desktop lookups live in `EarlyOptions.h`'s `#else` branch. `ReplayMenu.cpp`'s Desktop lookup gains an `#else`, and its `EarlyOptions.h` include is POSIX-only. `test_gameengine`'s `ZH_USER_DATA_DIR` is POSIX-only. `windows_view_diff.py` reports all three C/C++ files identical to MSVC. | None expected: the Windows text of every file is unchanged. | low | **Windows: VERIFIED** (CI: build.) Build `gameengine` on Windows. |
| 2026-09-26 | C1 (d) | 26 GameEngine files, WWLib `mixfile.cpp`/`argv.cpp`/`rawfile.cpp`, Wwutil `miscutil.cpp`, `EarlyOptions.h` | 78 raw `fopen`/`remove`/`rename`/`access`/`_open`/`stat`/`unlink` calls (with `miscutil`'s `::remove`, which becomes `zh_unlink`) became `zh_fopen` and its siblings, which on Windows are the same calls, `inline`, in `zhio.h`. Each file gains `#include "zhio.h"`. `windows_view_diff.py` shows nothing else in those files. | `zhio.h` pulls `<direct.h>` and `<io.h>` into files that did not include them before. A name clash there would be a compile error, not a behaviour change. `EarlyOptions.h` reaches `WinMain.cpp` and `Win32BIGFileSystem.cpp`, which now see `zhio.h` too. Not compiled with MSVC. | medium | **Windows: VERIFIED** (CI: build.) Build `gameengine`, `gameenginedevice` and `generals` on Windows. |
-| 2026-09-26 | C1 (d) | `WWLib/zhio.h` | `zh_stat(path, struct stat *)`, on Windows `inline` `stat(path, status)`, the CRT's POSIX name, which `CommandLine.cpp`'s mod check already called. It needs `<sys/types.h>` and `<sys/stat.h>`, now included by `zhio.h` on every platform. | `struct stat` and `stat` are MSVC's POSIX-name compatibility spellings. With `_CRT_NONSTDC_NO_WARNINGS` defined, as it is, they compile quietly; without it, a deprecation warning. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: `-mod` with a directory.) Build any `zhio.h` includer on Windows; check the `-mod` directory check (`CommandLine.cpp`) still tells a directory from a file. |
+| 2026-09-26 | C1 (d) | `WWLib/zhio.h` | `zh_stat(path, struct stat *)`, on Windows `inline` `stat(path, status)`, the CRT's POSIX name, which `CommandLine.cpp`'s mod check already called. It needs `<sys/types.h>` and `<sys/stat.h>`, now included by `zhio.h` on every platform. | `struct stat` and `stat` are MSVC's POSIX-name compatibility spellings. With `_CRT_NONSTDC_NO_WARNINGS` defined, as it is, they compile quietly; without it, a deprecation warning. | low | **Windows: VERIFIED** (CI: build. The `-mod` directory check it was left for went with mod support on 2026-11-04.) Build any `zhio.h` includer on Windows. |
| 2026-09-26 | C1 (d) | `WWLib/rawfile.cpp` | `RawFileClass::Set_Name`'s `#ifdef _UNIX` block, which lowercased names and turned backslashes into slashes, is removed; the POSIX arms call `zh_open`/`zh_unlink`. | None on Windows: nothing defines `_UNIX` there (B5's tripwires). | low | **Windows: VERIFIED** (CI: build.) Build `wwlib` on Windows. |
| 2026-09-26 | C1 (d) | `CMakeLists.txt` | `ZH_ZHIO_LIBS` (`wwlib wwdebug`) is linked into the widechar gates, `widechar_format_selfcheck`, `widechar_file_selfcheck` and `gametext_csf`. It is set only when `ZH_PLATFORM_POSIX`; on Windows it is empty and the link lines are unchanged. | If the variable were set on Windows, those tests would link wwlib too: harmless, only slower. | low | **Windows: VERIFIED** (VM check: widechar_crc_gate, widechar_format_selfcheck, widechar_file_selfcheck and gametext_csf, the targets of this kind Windows builds, link no `wwlib`.) Configure on Windows and confirm those five targets link no `wwlib`. |
| 2026-09-26 | C1 (f) | `Win32Device/Common/Win32BIGFileSystem.cpp`, `CMakeLists.txt` | Built off Windows too. Its `<winsock2.h>`/`<windows.h>`, its `MessageBox` and its BIGF `DEBUG_CRASH` are the `_WIN32` side of new `#if`s; the other sides are POSIX-only. Two includes were corrected in case (`Common/file.h`, `Common/Registry.h`). The two Win32 BIG sources are added to the POSIX-only `posixdevice` list. `windows_view_diff.py`: include case only. | None expected: NTFS folds case, and the Windows text is otherwise unchanged. | low | **Windows: VERIFIED** (CI: build.) Build `gameenginedevice` on Windows. |
@@ -348,11 +348,11 @@ Three things the checks found:
| 2026-09-26 | float sweep (client) | `WW3D2/dx8wrapper.h`, `WW3D2/mapper.cpp`, `WW3D2/part_emt.cpp`, `GameClient/InGameUI.cpp`, `GameClient/System/ParticleSys.cpp` | Changes:<br>- `Convert_Color(Vector3, alpha)` converts each channel through `floatToIntAsMsvc` before masking the low byte. That is the same byte as the old cast for any value in int range, including negative channels, which wrap as they always did.<br>- The grid texture mapper's frame time (`Milliseconds_Per_Frame`), an emitter's interval and the superweapon strip's pulse period are capped at 0xFFFFFFFF instead of converting a value past an unsigned int's range. The mapper's frame time is also at least 1 ms, where a rate above 1000 frames a second used to give 0 and a division by zero.<br>- Three particle INI timers (`InitialDelay`, `Lifetime`, `BurstDelay`) go through `particleTimerFrames`: -1 or less (no shipped system) means 2^24 frames, and everything else converts as before. | Windows' output changes only for data no shipped asset or INI has: a grid animation above 1000 frames a second (it used to divide by zero), rates or durations whose conversions left the unsigned range, or a negative particle timer (believed "never" before, 2^24 frames now). | low | **Windows: PARTLY VERIFIED** (CI: build. Left: particles, grid textures and the superweapon strip by eye.) Windows: the tree builds; particles, grid-animated textures and the superweapon strip look as before. |
| 2026-09-26 | LOD pin | `Tests/test_gameengine.cpp` | A test, `dynamic_lod_never_reaches_what_the_simulation_reads`: with SlowDeathScale 0.5 and DebrisSkipMask 0xFF at every dynamic level, setting each level leaves `getSlowDeathScale()` at 1.0 and skips no debris. It pins `applyDynamicLODLevel` not applying the two values the logic reads. Test only; no engine change. | None: it constructs a `GameLODManager` on the stack and touches no global. | low | **Windows: VERIFIED** (CI: test_gameengine.) Windows: test_gameengine passes. |
| 2026-09-26 | rank walk | `GameNetwork/RankPointValue.h`, `GUICallbacks/Menus/PopupPlayerInfo.cpp`, `GUICallbacks/Menus/WOLLobbyMenu.cpp`, `Tests/test_gameengine.cpp` | The three rank walks (`while (points >= m_ranks[i + 1]) ++i`, unbounded) become `rankForPoints`, which stops at `RANK_COMMANDER_IN_CHIEF`. `CalculateRank`'s five float-to-Int sums go through `floatToIntAsMsvc`. Measured on the Windows conversion model with the shipped table: 2,000 points and up read one past `m_ranks`; 1,077,936,129 stops inside the multipliers (index 12); above 1,084,227,584 (400,000,000 wins is enough, with no overflow) walks off the struct. | Windows' rank changes only where the old walk left the table: 2,000 or more points still show Commander in Chief (the walk used to read the first multiplier to find that), and points above 1,077,936,128, which only a hostile or corrupt stats record has, now show Commander in Chief instead of reading past the struct. | medium | **Windows: OPEN** (Left: the rank display.) Windows: a player's rank shows as before on the lobby, popup and load screen. |
-| 2026-09-26 | rope segments | `W3DDevice/GameClient/Drawable/Draw/W3DRopeDraw.cpp` | `numSegs` is `floatToIntAsMsvc(ceil(maxLen / wobbleLen))`. A mod's `RopeWobbleLen = 0` is 1/0: INT_MIN on Windows (no rope), as before. | None expected: the same answer as MSVC's conversion for every input, under the header's model. | low | **Windows: OPEN** (Left: a Chinook's rope.) Windows: a Chinook's rope draws as before. |
+| 2026-09-26 | rope segments | `W3DDevice/GameClient/Drawable/Draw/W3DRopeDraw.cpp` | `numSegs` is `floatToIntAsMsvc(ceil(maxLen / wobbleLen))`. A `RopeWobbleLen = 0` is 1/0: INT_MIN on Windows (no rope), as before. | None expected: the same answer as MSVC's conversion for every input, under the header's model. | low | **Windows: OPEN** (Left: a Chinook's rope.) Windows: a Chinook's rope draws as before. |
| 2026-09-26 | N1 | `GameEngine/Source/Common/GlobalData.cpp` (the "lets CRC the executable!" block), `CMakeLists.txt` (`build_fingerprint`, `build_fingerprint_header`), `.gitattributes` | **`m_exeCRC` no longer hashes `generals.exe`**: the `GetModuleFileName` read is gone. In its place are the four bytes of `ZH_BUILD_FINGERPRINT`, from `BuildFingerprint.h`, which a host tool (`Tools/fingerprint/build_fingerprint.cpp`) generates at build time over the files `BuildFingerprint.manifest` lists. The version and the two `.scb` terms follow, unchanged. | **Values:** `m_exeCRC` changes on Windows, as after any rebuild. LAN and GameSpy matchmaking and the replay header compare it, so an old Windows replay says "different executable" on playback, as it would after any rebuild. Two Windows builds of the same source now agree, as does a Mac or Linux build of it: that is decision 5. **Build:** the MSVC build now compiles and runs a host tool before `gameengine` (a custom command with a stamp; the header is written only when its value changes). If the manifest names a file the Windows checkout lacks, or if `add_custom_command`'s BYPRODUCTS misbehaves under the Visual Studio generator, the build stops with the tool's message. `.gitattributes` keeps the manifest LF under autocrlf, and the tool strips CRs anyway. **Never compiled by MSVC.** | medium | **Windows: VERIFIED** (CI: build, E1; VM check: build64's `ZH_BUILD_FINGERPRINT` is 0xD883D7C9 over 3736 files, the same as the macOS and Linux builds of the same tree.) Configure and build on Windows. `<build>/generated/fingerprint/BuildFingerprint.h` must hold the same `ZH_BUILD_FINGERPRINT` as a Mac build of the same commit (`build_fingerprint --print GeneralsMD/Code GeneralsMD/Code/BuildFingerprint.manifest` prints it). A second no-op build must not rerun it. Then `replay-check.ps1`. |
| 2026-09-26 | water tracks (.wak) | `W3DDevice/GameClient/Water/W3DWaterTracks.cpp`, `W3DWaterTracks.h`, `Tests/test_water_tracks.cpp`, `CMakeLists.txt`, `BuildFingerprint.manifest` | Changes to the map's `.wak` loader:<br>- It reads no more records than the file holds (`wakTrackCount`) and stops at a short read.<br>- A wave type outside the wave table (`isWakWaveType`) is skipped.<br>- A duplicate record is skipped with `continue` instead of `i++; goto`, which read on past the count.<br>It used the file's count and types as they came, and a network map transfer accepts `.wak`. All 25 shipped `.wak` files were checked: their counts match their sizes, their types are all in the table, and none ends on a duplicate, so they load as before. | Windows' output changes only for a `.wak` that indexed `waveTypeInfo` out of bounds, claimed more tracks than it holds, or ended on a duplicate. Before, those read out of bounds or looped; now the record is skipped or the list stops. | medium | **Windows: OPEN** (Left: waves on a beach map.) Windows: waves on a stock beach map (e.g. one with a `.wak` in MapsZH.big) look as before. |
| 2026-09-26 | road buffer | `W3DDevice/GameClient/W3DRoadBuffer.cpp`, `W3DRoadBuffer.h`, `Tests/test_road_buffer.cpp`, `CMakeLists.txt`, `BuildFingerprint.manifest` | Changes:<br>- `loadFloat4PtSection` stops writing vertices at `MAX_SEG_VERTEX`, the size of its stack array `vb`. It tested `MAX_SEG_INDEX` (2000), so a section of more than 500 vertices wrote past `vb`, and `SetVertexBuffer` then refused it anyway.<br>- Index writes stop when a step's six would pass `ib`; they used to overrun by up to five.<br>- Both sections' column count is `roadColumnCountFor`: at least 2, never more than the map's extents corner to corner, converted as Windows does.<br>- The lit section gets the `vCount < 2` floor the float section always had. | Windows' output changes only where it wrote past a stack array or read out of bounds: a section of over 500 vertices now keeps its first 500 where it was dropped after corrupting the stack, and a road point outside the map or an absurd width (map or mod data) gives the floor. Every road inside a map converts and counts as before. | medium | **Windows: OPEN** (Left: roads.) Windows: roads on stock maps draw as before. |
-| 2026-09-26 | reach and blind-spot guards | `GameClient/InGameUI.cpp`, `GameClient/InGameUI.h`, `Tests/test_gameengine.cpp` | Changes:<br>- `templateReach` gives a non-finite weapon range no reach.<br>- `insideReach` and `reachViewHits` treat a NaN distance as outside (`!(d < r)`), where it slipped past `d >= r`.<br>- `reachAtAngle` reads the first outline corner for a NaN angle.<br>- The blind-spot grid's ring count is `blindSpotRingCount`: converted as Windows does, and never more rings than the map's width plus height. | Windows' output changes only where it read out of bounds or ran away. A mod's AttackRange of inf read the outline at INT_MIN on Windows and now draws no circle; a NaN position read the blind-spot table at INT_MIN; and a range longer than the map now stops at the map's size, where 1e6 froze every platform. Every real reach draws as before. | medium | **Windows: OPEN** (Left: a defence's reach circle and blind spots.) Windows: placing a defence shows its reach circle and blind spots as before. |
+| 2026-09-26 | reach and blind-spot guards | `GameClient/InGameUI.cpp`, `GameClient/InGameUI.h`, `Tests/test_gameengine.cpp` | Changes:<br>- `templateReach` gives a non-finite weapon range no reach.<br>- `insideReach` and `reachViewHits` treat a NaN distance as outside (`!(d < r)`), where it slipped past `d >= r`.<br>- `reachAtAngle` reads the first outline corner for a NaN angle.<br>- The blind-spot grid's ring count is `blindSpotRingCount`: converted as Windows does, and never more rings than the map's width plus height. | Windows' output changes only where it read out of bounds or ran away. An AttackRange of inf read the outline at INT_MIN on Windows and now draws no circle; a NaN position read the blind-spot table at INT_MIN; and a range longer than the map now stops at the map's size, where 1e6 froze every platform. Every real reach draws as before. | medium | **Windows: OPEN** (Left: a defence's reach circle and blind spots.) Windows: placing a defence shows its reach circle and blind spots as before. |
| 2026-09-26 | cursor guards | `GameClient/Mouse.h`, `GameClient/Input/Mouse.cpp`, `W3DDevice/GameClient/W3DMouse.cpp`, `Tests/test_gameengine.cpp` | Changes:<br>- The animated cursor's frame and the scrolling cursor's direction go through `mouseCursorFrame` and `mouseCursorDirection`: converted as Windows does, and outside the table they read its first entry. The direction's arithmetic is kept in double, with `M_PI`'s digits written out because a header the whole engine includes cannot count on MSVC defining it.<br>- A cursor's `Directions` is capped at `MAX_2D_CURSOR_DIRECTIONS` (8) when Mouse.ini is parsed. | Windows' output changes only where it read or wrote out of bounds: a NaN or infinite FPS or scroll speed (INT_MIN), a negative FPS (a negative frame), and more than 8 directions (the load loops wrote past the table). Shipped Mouse.ini has 8 directions and finite rates, and every in-range index is the old one (the test sweeps it). | medium | **Windows: PARTLY VERIFIED** (CI: build (Mouse.h compiles). Left: cursors by eye.) Windows: the build compiles (Mouse.h no longer uses M_PI); cursors animate and point the way they did. |
| 2026-09-26 | particle counts | `GameClient/System/ParticleSys.cpp`, `WW3D2/part_emt.cpp` | A particle system's burst count after its multiplier (`count *= m_countCoeff`) and a W3D emitter's buffer size (`BurstSize * emit_rate * (max_age + 1)`) are converted with `floatToIntAsMsvc`. | None expected: the same answer as MSVC's own conversion for every input, under the header's model. Off Windows a value past the int range was INT_MAX: a burst loop that ran until it gave out, or a buffer of 2^31 particles. | low | **Windows: OPEN** (Left: particles and W3D emitters by eye.) Windows: particles and W3D emitters look as before. |
| 2026-09-26 | emitter clone (strdup of NULL) | `WW3D2/part_emt.cpp` | `ParticleEmitterClass`'s copy constructor copies `NameString` and `UserString` through `strdupOrNull`, a NULL for a NULL, where it called `::strdup` on them directly. `UserString` is NULL until a user string is set, and Darwin's and glibc's `strdup(NULL)` read through the pointer. The fog of war clones every emitter it ghosts, so a stock map (Seaside Mutiny) crashed within seconds of a match off Windows. | None expected: on Windows `strdup` is the UCRT's `_strdup`, which returns NULL for NULL, which is what the helper does. That is from the UCRT's behaviour as understood, not measured here. | low | **Windows: PARTLY VERIFIED** (W2: the UCRT's `_strdup(NULL)` is NULL. Left: fogged emitters by eye.) Windows: fogged emitters (burning buildings, smoke) still draw as ghosts. |
@@ -365,7 +365,7 @@ Three things the checks found:
| 2026-09-27 | W1 (Linux build) | `JobSystem.cpp`, `W3DSupplyDraw.cpp`, `GUICommandTranslator.cpp`, `LookAtXlat.cpp`, `LobbyUtils.cpp`, `GameSpy/Thread/BuddyThread.cpp`, `GameSpy/Thread/PeerThread.cpp` | Errors GCC 16 with libstdc++ reports on the native Linux build (Linux x86_64): `#include <system_error>` for the `std::system_error` JobSystem catches, and `#include <limits.h>` for W3DSupplyDraw's `INT_MAX`, both of which MSVC and libc++ bring in through other headers; and `static` dropped from five `static enum X { ... };` definitions that declare no variable, where GCC says "a storage class can only be specified for objects and functions". | None expected: MSVC ignores `static` on a declaration with no declarator (its warning C4091 says so), so the five enums are the same types with the same scope, and the two headers only declare what was already in reach. Not compiled with MSVC. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: GameSpy lobby and chat callbacks.) Windows build compiles the seven files; GameSpy lobby and chat callbacks behave as before. |
| 2026-09-27 | -offscreen (PERF1) | `Tools/vendor.sh`, `Tools/vendor.ps1` (a comment and its skip message), new `Libraries/Source/sdl3-metal-windowless.patch`; `Main/PosixMain.cpp`, `SdlDevice/Common/SdlGameEngine.cpp`, `SdlDevice/Common/SdlGameEngine.h`, `SdlDevice/GameClient/SdlMouse.cpp`, `PosixDevice/Render/PosixDirect3D9.cpp`, `PosixDevice9.cpp`, `PosixDevice9.h`, `PosixDevice9Timing.cpp`, `SdlGpuFrame.cpp`, `SdlGpuFrame.h` | `vendor.sh` gains `install_sdl3_patch`: the vendored SDL3's `METAL_PrepareDriver` also accepts the hint `ZH_SDL_GPU_METAL_WINDOWLESS`, checked by a marker, exit 1 if it did not take. `-offscreen` / `ZH_OFFSCREEN=1` runs the game with no window: SDL video (the dummy driver where there is no display), an offscreen GPU frame, the gamma pass into a texture of its own, two frames in flight, and an optional `ZH_OFFSCREEN_HZ` pacer; silent, and the mouse as a hidden window has it. | None on Windows: SDL3 is not vendored there (`vendor.ps1` skips it and says so), and every other file is POSIX-only (`sdldevice`, `posixd3d9` and `PosixMain.cpp` build only under `ZH_PLATFORM_POSIX`). Off Windows, with the hint unset the patched expression is upstream's. | low | **Windows: nothing to verify** (the row: none needed on Windows.) None needed on Windows. On a POSIX machine a fresh `vendor.sh` prints the patch step and `grep ZH_SDL_GPU_METAL_WINDOWLESS` finds it twice in `SDL_gpu_metal.m`; a `-offscreen` capture matches a `-hiddenwindow` one signature for signature (50 of 50, 2026-09-27). |
| 2026-09-27 | the game's data gone (lid-close crash) | `Common/file.h`, `Common/LocalFile.h`, `Common/System/LocalFile.cpp`, `Common/Debug.h`, `Common/System/Debug.cpp`, `Common/System/StreamingArchiveFile.cpp`, `Win32Device/Common/Win32BIGFile.cpp`, `Common/GameEngine.cpp`, `GameLogic/System/GameLogicDispatch.cpp`, `Tests/run_data_gone_check.sh` (new), `CMakeLists.txt`, `BuildFingerprint.manifest` | A read of an open archive that fails because its drive went away (`LocalFile` records the error; on Windows `_doserrno` ERROR_DEVICE_NOT_CONNECTED, ERROR_NOT_READY, ERROR_DEV_NOT_EXIST or ERROR_FILE_INVALID) now calls `GameDataGone`. On the main thread that logs, shows a box ("the game's data is no longer available", MessageBoxWrapper, none under -headless) and `_exit(3)`; from another thread it only records the loss, and `GameEngine::execute` stops at the top of its next pass. `GameEngine::reset` and `GameLogic::prepareNewGame` skip the backdrop layout when it is NULL. `File` gains a virtual `deviceGone`; `LocalFile` a member. | None expected in normal play: every new path runs only after a read or seek has already failed, and the guards only when a layout is NULL. Where Windows crashed on a disconnected install drive it now shows a box and exits; if the Windows codes are not the ones Windows gives, it crashes as before (unmeasured: no Windows machine yet). | low | **Windows: VERIFIED** (W2: a VHD detached mid-match gives GAME DATA GONE and exit status 3; CI: play unchanged.) Windows: normal play, saves and replays unchanged; with the game on a USB drive, pulling it mid-game and ending the match shows the box instead of a crash. |
-| 2026-09-27 | port defect 33 | `Include/Common/ThingTemplate.h`, `Source/Common/Thing/ThingTemplate.cpp`, `Source/Common/Thing/ThingFactory.cpp`, `Data/INI/FixesReforged.ini` | A ReplaceModule of an AI module now records how many locomotor sets the old module had (a new `Byte m_locomotorSetsLostToReplace` on ThingTemplate, set in `parseReplaceModule`). `ThingFactory::postProcessLoad` logs each thing whose replacement still has no SET_NORMAL, and DEBUG_CRASHes in a debug build. No game behaviour changes: nothing reads the count except that check. The INI re-states twelve units' Locomotor lines that upstream's fbe8dc6f/179e1f65 dropped. That is a data change on every platform, and it fixes Windows' crash too. | The new member changes ThingTemplate's layout. Nothing serialises a ThingTemplate, and `copyFrom` copies it like every other member. If MSVC disagreed about `LocomotorTemplateMap`'s iteration in the counting loop, the count could be off, which only changes a log line. A debug Windows build with a mod that relies on dropped locomotors now stops at the DEBUG_CRASH, as intended. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: a Debug build starting without the DEBUG_CRASH.) W2: build on Windows; a debug build must start without the DEBUG_CRASH on the fixed data. |
+| 2026-09-27 | port defect 33 | `Include/Common/ThingTemplate.h`, `Source/Common/Thing/ThingTemplate.cpp`, `Source/Common/Thing/ThingFactory.cpp`, `Data/INI/FixesReforged.ini` | A ReplaceModule of an AI module now records how many locomotor sets the old module had (a new `Byte m_locomotorSetsLostToReplace` on ThingTemplate, set in `parseReplaceModule`). `ThingFactory::postProcessLoad` logs each thing whose replacement still has no SET_NORMAL, and DEBUG_CRASHes in a debug build. No game behaviour changes: nothing reads the count except that check. The INI re-states twelve units' Locomotor lines that upstream's fbe8dc6f/179e1f65 dropped. That is a data change on every platform, and it fixes Windows' crash too. | The new member changes ThingTemplate's layout. Nothing serialises a ThingTemplate, and `copyFrom` copies it like every other member. If MSVC disagreed about `LocomotorTemplateMap`'s iteration in the counting loop, the count could be off, which only changes a log line. A debug Windows build on data that relies on dropped locomotors now stops at the DEBUG_CRASH, as intended. | low | **Windows: PARTLY VERIFIED** (CI: build. Left: a Debug build starting without the DEBUG_CRASH.) W2: build on Windows; a debug build must start without the DEBUG_CRASH on the fixed data. |
| 2026-09-27 | port defect 32 dangling erase in LocomotorStore::reset | `GameLogic/Object/Locomotor.cpp`, `GameLogic/ScriptEngine/ScriptEngine.cpp`, `Tests/run_mission_check.sh` | `LocomotorStore::reset` erases with `erase(it++)` where it erased `it` and went on with it. That was UB on every platform, reached by a locomotor defined only by a map's `map.ini` (the shipped test map Hovercraft; any transferred custom map); the Mac hung at the end of the match. `ScriptEngine::reset` takes the iterator `cleanupSequentialScript` returns, as its other callers do, where it discarded it and went on with the erased one. | None expected: where the old loops worked, the new ones visit the same elements in the same order and free the same objects. Windows changes only where it had UB: a map-only locomotor, which crashed Windows at the end of the match ("Pure virtual function called", measured on the W2 VM; with the fix, exit 0), and a checked-iterator Debug build at the end of a map with a sequential script pending. | low | **Windows: PARTLY VERIFIED** (W2: the Hovercraft map ends with the fix (exit 0, frame 600) and crashes without it; CI: E1. Left: scripted campaign missions.) Windows: the Hovercraft map ends and returns to the menu; campaign missions with scripted sequences end as before; replays unchanged. |
| 2026-09-27 | L1b | `Tests/test_wwlib.cpp` | `threadclass_stop_deadlocks_if_the_caller_holds_the_workers_lock` waits (up to about a second, in 1 ms sleeps) until its worker thread has taken the lock once, through a `std::atomic<bool>` the worker sets, instead of sleeping a fixed 20 ms; one `CHECK` more. The code under test (ThreadClass, FastCriticalSectionClass) is unchanged. | The test is compiled by MSVC too. If `std::atomic<bool>` or the new member broke there, test_wwlib would fail to build; `<atomic>` is already included for the B14 thread tests, which use it the same way. On a machine where the worker takes over a second to start, the new CHECK fails loudly rather than the old one quietly. | low | **Windows: VERIFIED** (CI: test_wwlib.) Build and run test_wwlib on Windows (W2's ctest). |
| 2026-09-27 | W2 (the first MSVC build) | `WW3D2/sdl3target.h`, `WWDownload/Download.cpp`, `WWLib/mpu.cpp`, `profile/profile_funclevel.cpp`, `W3DDevice/GameClient/WorldHeightMap.cpp`, `CMakeLists.txt`, `Tests/test_ffvertex.cpp` | What MSVC refused in the fork's first Windows build:<br>- `(std::max)` against windows.h's macro.<br>- Download.cpp includes `Platform/MSVCCompat.h`, so its `mkdir` and `strncasecmp` resolve (row 61's prediction).<br>- mpu.cpp's `abs` takes `(int)` of the DWORD difference.<br>- `ProfileFastCS::testEvent`'s orphaned Windows-only definition is removed.<br>- WorldHeightMap's unused `j` is removed.<br>CMake:<br>- `SdlDevice/` is out of the Windows glob.<br>- test_clock links winmm, and the widechar tests link ws2_32.<br>- gametext_csf and test_premain_* take `/NODEFAULTLIB:GameEngine.lib`.<br>- The .sh oracles are POSIX only.<br>- test_ffvertex runs everywhere, updated to port defect 23 and port defect 26. | None expected: `(std::max)` is the same call; the shim's `mkdir` drops the mode as `_mkdir` did; `abs` of an int is what abs(int) or abs(long) gave on LLP64; the removed event was never waited on; the CMake changes touch no game target but gameenginedevice's glob, which now matches what it always meant. Measured: the build is green and the E1 CRCs equal the Mac's and Linux's. | low | **Windows: VERIFIED** (W2, the first MSVC build, on the data before upstream 843bf76b: `build.bat Release`, 0xE896DEF3 and 0x7C7DBA69 at 12000 frames.) Windows: `build.bat Release` succeeds; replay-check gives 0xE896DEF3 and 0x7C7DBA69 at 12000 frames. |