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.

feat(gameengine): fixed normal speed and a host-picked turbo mode

Olcay Seygan20bca44ad2ea
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d23c6a891..da2bdd161 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,14 @@ found and fixed — EA's own, not port damage.**
---
+## Turbo mode instead of a speed dropdown
+
+- Every match plays at normal speed. The skirmish lobby's game speed dropdown is gone, and with it x0.5 and x0.75.
+- Turbo mode is the one choice left: a box in the skirmish, LAN and online lobbies that plays the match twice as fast. Two seconds of battle go by in every second. The battle itself is the same one, step for step, only more of its steps run each second; the screen still draws as often as it did.
+- In a network game the host ticks the box and every machine in the room plays at that speed, so nobody falls out of step. A recorded stats game online plays at normal speed. A replay plays back at the speed its match had, and its speed buttons still work from there.
+- Campaign and Generals' Challenge missions have the box in Options, under Interface: Turbo Mode in Missions. Ticked in the middle of a mission, it speeds that mission up at once.
+- A skirmish lobby or a saved game left on x0.5 or x0.75 comes back at normal speed. A map script can no longer change how fast a match runs, and the speed console command picks between normal and turbo.
+
## Every campaign mission is open
- Picking USA, GLA or China now opens a list of that campaign's missions, every one of them open. Pick a mission, then the difficulty, and it starts with its briefing and movie as it always did; win it and the campaign carries on to the next one. Every campaign mission starts at the same rank however you reach it, so starting at the fourth is the same game as playing through to it.
@@ -48,7 +56,7 @@ found and fixed — EA's own, not port damage.**
- The game now works out the battle 60 times a second, double the 30 Zero Hour has run at since 2003. Each step is 17 milliseconds where it was 33, so an order you give waits half as long for the step that carries it out, and a unit turning, braking or firing moves in steps half the size.
- The match plays at the speed it always did. Every speed, delay, reload and build time in the game's data was converted to the shorter step, so a Crusader still fires every two seconds. The balance is the one you know.
- Mission timers keep EA's clock. A map's countdown still ticks 30 times a second, because the missions read a running timer's number and act on it: the second American mission declares victory when its "Win" timer drops below 1700, and on the first 60-step builds that came after 38 seconds instead of 10. The cutscene cues, the random music pick in the campaigns and the generals' challenges, the shell map's camera loop and the lightning on Eastern Everglades and Rocky Rampage were off the same way, 30 maps in all, and run on their original timing again. Custom maps get the same.
-- Normal speed is now the fastest a skirmish or a mission runs. The game speed choice in the skirmish lobby offers x0.5, x0.75 and x1, and x1 is 60 steps a second; the x1.5 and x2 it used to have are gone. A lobby left on one of them, or a saved game made at one, comes back at x1, and the speed console command and a mission's own script stay between half speed and normal as well. Replays still play as fast as you ask, and network games are untouched.
+- Normal speed is 60 steps a second. Turbo mode, the one other speed a match can have, runs 120 of the same steps a second (see Turbo mode above). Replays still play as fast as you ask.
- 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.
@@ -1154,10 +1162,10 @@ A third pass went through the generals' powers, promotions and unit abilities.
- Every lobby now has two tabs over the bottom panel, Info and Lobby Settings, and the one you are looking at is lettered green (online, it is the greyed-out one). The host's settings live on the settings page; the map details in skirmish and the chat log in a network game come back the moment you tab away from it.
- The skirmish and LAN rooms are laid out again, on one grid. Each column heading sits over its own column instead of up to 18 pixels to the right of it. The seats and the settings page underneath them start and stop at the same two edges, and Play Game stands under the map and your win record on the right-hand pair. The open tab used to be lettered in a grey that measured about 2 to 1 against the panel and read as a button that was switched off. Play Game waits at the bottom right and the button that leaves the room sits at the bottom left, as far from it as the screen allows. With all eight seats taken, "USA Super Weapon General" still fits in its box. The online room keeps its old layout.
- A GLA computer could stand one superweapon more than its towers paid for. A Scud Storm knocked down leaves a hole, and 20 seconds later a worker climbs out of it and builds the storm again for free. Those 20 seconds the storm was off the books, so a new one went down on the same four towers and then the hole put the old one back: two storms on four Stinger Sites, where every other side stopped at one. The hole now counts as the storm it is about to rebuild. Replays where a computer's superweapon went down while a storm's hole was waiting play out differently.
-- Skirmish keeps starting cash and the game speed there. LAN and online keep starting cash next to peace time and the superweapon rule. Before this they were scattered around whatever space each of the three lobby screens happened to have left over.
+- Skirmish keeps starting cash and the turbo mode box there. LAN and online keep starting cash next to peace time and the superweapon rule. Before this they were scattered around whatever space each of the three lobby screens happened to have left over.
- Starting cash in skirmish and multiplayer now runs from 10,000 up to 1,000,000, and the 5,000 choice is gone. An Unlimited choice joins them, where nobody's money ever runs out, for the matches where the point is the armies and not the supply trucks.
-- Game speed in the skirmish room is a dropdown now: x0.5, x0.75, x1, x1.5 or x2. The old slider read out a frame rate nobody plays by, and its last notch read "--" and started the match at a thousand game frames a second, which no machine can play and every machine tried to. A speed saved by the old slider comes back as the nearest of the five.
-- The speed can change during a skirmish or a mission, too, from the console: `speed 150` for half again as fast, `speed` alone to ask, `speed reset` for normal. It used to live on numpad plus and minus, where the reset landed on one and a half times normal speed and the readout gave a number of frames nobody could read as a speed. Those keys are free again. Network games keep the speed the host picked.
+- The skirmish room's game speed slider is gone. Its last notch read "--" and started the match at a thousand game frames a second, which no machine can play and every machine tried to. A match runs at normal speed or in turbo mode (see Turbo mode at the top).
+- The speed console command switches a skirmish or a mission between normal and turbo: `speed 200` for turbo, `speed` alone to ask, `speed reset` for normal. It used to live on numpad plus and minus, where the reset landed on one and a half times normal speed. Those keys are free again. Network games keep the speed the host picked.
- A Unit Limit box on the settings page caps the match at 840 units, shared out evenly: two players get 420 each, four get 210, eight get 105. Units standing and units waiting in a queue both count against your share, buildings do not, and the build buttons grey out when you reach it. A transport that rolls out full is charged for its riders while it is still in the queue, so a Troop Crawler costs nine and cannot slip eight Red Guards past the limit, and a pair of Red Guards costs two. A shift or control batch near the wall queues as many as still fit and stops there, and a button whose next order would not fit greys out. Your own count and your share sit in the top right corner next to the frame rate, so you can see the wall coming. The host ticks it; everybody else sees it ticked.
- Allies can pool their income. Share Income on the settings page splits every payment evenly between whoever earned it and each teammate still in the match, so an oil derrick paying 200 to one of two allies pays 100 to each. Oil Derricks shares the derricks you capture and nothing else; All Income adds supply runs, hackers and black markets. In a two-against-two between computer players one pair of partners had earned 4,600 apart after five minutes without it, and 190 apart with it. It works in skirmish too, with a computer ally. No Sharing is the game as it always played.
- Destroyed tech buildings can come back. With Tech Respawn set on the settings page, an oil derrick, refinery, hospital, artillery platform, repair bay or reinforcement pad that gets blown up lies in ruins for the minutes the host picked, and then a neutral one stands on the same spot at full health, waiting for an engineer. It keeps happening for as long as the match lasts, so the derricks in the middle of the map are worth fighting over in the second hour too. Nothing appears on top of anybody: a building you put up over the ruin, or a tank parked on it, keeps it away until the spot is clear. In a test six Crusaders sat on a dead derrick for a minute past its time and it came back one second after they drove off. Never is the game as it always played.
diff --git a/GeneralsMD/Code/Data/German/Generals.str b/GeneralsMD/Code/Data/German/Generals.str
index 6036375ec..288832add 100644
--- a/GeneralsMD/Code/Data/German/Generals.str
+++ b/GeneralsMD/Code/Data/German/Generals.str
@@ -14777,6 +14777,22 @@ TOOLTIP:ProRules
"Die Turnierliste. Keine Partikelkanone und kein SCUD Storm, außer der einen Kanone des Superwaffengenerals. Das Atomraketen-Silo wird gebaut, feuert aber nie. Kein Aurora, keine Tactical-Nuke-MiGs, kein Sprengmotorrad, keine Selbstmordbomben, Neutronengranaten oder Tarn-Comanche, und kein Flächenbombardement vor Rang 3. Ein Mikrowellenpanzer kann kein Gebäude einfrieren, das noch im Bau ist, niemand baut näher als 300 an einem feindlichen Gebäude, und niemand setzt mehr als zwei Patriots, Gatling-Kanonen oder Stinger-Stellungen um eine Ölbohrturm-Gruppe."
END
+GUI:TurboMode
+"Turbo-Modus"
+END
+
+TOOLTIP:TurboMode
+"Das Spiel läuft doppelt so schnell: In jeder Sekunde vergehen zwei Sekunden Spielzeit, sonst ändert sich nichts. Im Netzwerkspiel wählt der Host für alle."
+END
+
+GUI:TurboModeMissions
+"Turbo-Modus in Missionen"
+END
+
+TOOLTIP:TurboModeMissions
+"Kampagnen- und Generalsherausforderungs-Missionen laufen doppelt so schnell, auch eine laufende Mission sofort. Gefecht und Mehrspieler haben ein eigenes Kästchen in der Lobby."
+END
+
GUI:CantBuildTooCloseToEnemy
"Hier kannst du nicht so nah an einem feindlichen Gebäude bauen."
END
@@ -14977,6 +14993,10 @@ GUI:OptionsGroupMenus
"Menüs"
END
+GUI:OptionsGroupSpeed
+"Spieltempo"
+END
+
GUI:OptionsGroupReplays
"Replays"
END
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index ec077b1ee..f5188caa0 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -1032,6 +1032,22 @@ TOOLTIP:ProRules
"The tournament list. No Particle Cannon or SCUD Storm, except the Superweapon General's one cannon. The Nuclear Missile silo goes up but never fires. No Aurora, no Tactical Nuke MiGs, no demo bike, no suicide bombs, Neutron Shells or Stealth Comanche, and no Carpet Bomb before rank 3. A Microwave Tank cannot freeze a building still going up, nobody builds within 300 of an enemy building, and nobody puts more than two Patriots, Gatling Cannons or Stinger Sites round one group of oil derricks."
END
+GUI:TurboMode
+"Turbo Mode"
+END
+
+TOOLTIP:TurboMode
+"The match runs twice as fast: two seconds of play go by in every second, and nothing else about it changes. In a network game the host picks it for everyone."
+END
+
+GUI:TurboModeMissions
+"Turbo Mode in Missions"
+END
+
+TOOLTIP:TurboModeMissions
+"Campaign and Generals' Challenge missions run twice as fast, and a mission already under way speeds up at once. Skirmish and multiplayer games have their own box in the lobby."
+END
+
// Pro Rules, rule 9: no foundation within reach of an enemy building
GUI:CantBuildTooCloseToEnemy
"Can't build this close to an enemy building."
@@ -1318,6 +1334,10 @@ GUI:OptionsGroupMenus
"Menus"
END
+GUI:OptionsGroupSpeed
+"Game Speed"
+END
+
GUI:OptionsGroupReplays
"Replays"
END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 070e13ec6..dff65eb40 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -15417,6 +15417,22 @@ TOOLTIP:ProRules
"Turnuva listesi. Süper Silah Generalinin tek topu dışında Parçacık Topu ya da SCUD Fırtınası yok. Nükleer Füze silosu kurulur ama asla ateşlemez. Aurora yok, Taktik Nükleer MiG yok; patlayıcılı motor, intihar bombası, Nötron Mermileri ya da Hayalet Comanche de yok; 3. rütbeden önce Halı Bombardımanı yok. Mikrodalga Tankı hâlâ inşa edilen bir binayı devre dışı bırakamaz, kimse bir düşman binasının 300 birim yakınına bina kuramaz ve kimse bir grup petrol kuyusunun çevresine ikiden fazla Patriot, Gatling Topu ya da Stinger Mevzii koyamaz."
END
+GUI:TurboMode
+"Turbo Modu"
+END
+
+TOOLTIP:TurboMode
+"Maç iki kat hızlı oynanır: her saniyede oyunun iki saniyesi geçer, başka hiçbir şey değişmez. Ağ oyununda bunu herkes için kurucu seçer."
+END
+
+GUI:TurboModeMissions
+"Görevlerde Turbo Modu"
+END
+
+TOOLTIP:TurboModeMissions
+"Kampanya ve General Meydan Okuması görevleri iki kat hızlı oynanır; süren bir görev de hemen hızlanır. Çatışma ve çok oyunculu oyunların lobide kendi kutusu vardır."
+END
+
GUI:CantBuildTooCloseToEnemy
"Bir düşman binasına bu kadar yakın inşa edemezsiniz."
END
@@ -15733,6 +15749,10 @@ GUI:OptionsGroupMenus
"Menüler"
END
+GUI:OptionsGroupSpeed
+"Oyun Hızı"
+END
+
GUI:OptionsGroupReplays
"Tekrarlar"
END
diff --git a/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd
index c9bfb176a..39a77c30f 100644
--- a/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd
@@ -11122,7 +11122,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 500 346, BOTTOMRIGHT: 660 370, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 463 346, BOTTOMRIGHT: 583 370, CREATIONRESOLUTION: 800 600;
NAME = "GameSpyGameOptionsMenu.wnd:CheckBoxUseStats";
STATUS = ENABLED+IMAGE+BORDER;
STYLE = CHECKBOX+MOUSETRACK;
@@ -11169,7 +11169,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 500 370, BOTTOMRIGHT: 660 394, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 589 346, BOTTOMRIGHT: 709 370, CREATIONRESOLUTION: 800 600;
NAME = "GameSpyGameOptionsMenu.wnd:CheckBoxLimitArmies";
STATUS = ENABLED+IMAGE;
STYLE = CHECKBOX+MOUSETRACK;
@@ -11216,7 +11216,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 500 418, BOTTOMRIGHT: 660 442, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 589 370, BOTTOMRIGHT: 709 394, CREATIONRESOLUTION: 800 600;
NAME = "GameSpyGameOptionsMenu.wnd:CheckBoxProRules";
STATUS = ENABLED+IMAGE;
STYLE = CHECKBOX+MOUSETRACK;
@@ -12127,7 +12127,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 500 394, BOTTOMRIGHT: 660 418, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 463 370, BOTTOMRIGHT: 583 394, CREATIONRESOLUTION: 800 600;
NAME = "GameSpyGameOptionsMenu.wnd:CheckBoxUnitLimit";
STATUS = ENABLED+IMAGE;
STYLE = CHECKBOX+MOUSETRACK;
@@ -12171,6 +12171,53 @@ 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;
END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 463 394, BOTTOMRIGHT: 583 418, CREATIONRESOLUTION: 800 600;
+ NAME = "GameSpyGameOptionsMenu.wnd:CheckBoxTurbo";
+ STATUS = ENABLED+IMAGE;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "TextEntry";
+ TOOLTIPTEXT = "TOOLTIP:TurboMode";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:TurboMode";
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 140 138 138 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: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
ENDALLCHILDREN
END
CHILD
diff --git a/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd
index 4df38573b..567f57b5b 100644
--- a/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd
@@ -11158,6 +11158,53 @@ 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;
END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 600 448, BOTTOMRIGHT: 728 472, CREATIONRESOLUTION: 800 600;
+ NAME = "LanGameOptionsMenu.wnd:CheckBoxTurbo";
+ STATUS = ENABLED+IMAGE;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "TextEntry";
+ TOOLTIPTEXT = "TOOLTIP:TurboMode";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:TurboMode";
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 140 138 138 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: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
ENDALLCHILDREN
END
CHILD
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
index c959e57d4..71c8a8b75 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
@@ -9403,7 +9403,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 34 330, BOTTOMRIGHT: 258 354, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:GroupHeadingInterface2";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -9414,6 +9414,98 @@ WINDOW
FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
HEADERTEMPLATE = "MainButton";
TOOLTIPDELAY = -1;
+ TEXT = "GUI:OptionsGroupSpeed";
+ TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
+ 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,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ STATICTEXTDATA = CENTERED: 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 40 362, BOTTOMRIGHT: 264 386, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckTurboModeMissions";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:TurboModeMissions";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:TurboModeMissions";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingInterface3";
+ STATUS = ENABLED;
+ STYLE = STATICTEXT+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
+ HEADERTEMPLATE = "MainButton";
+ TOOLTIPDELAY = -1;
TEXT = "GUI:OptionsGroupBattlefield";
TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
@@ -10407,7 +10499,7 @@ WINDOW
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface3";
+ NAME = "OptionsMenu.wnd:GroupHeadingInterface4";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
SYSTEMCALLBACK = "[None]";
@@ -10740,7 +10832,7 @@ WINDOW
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 530 254, BOTTOMRIGHT: 754 278, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface4";
+ NAME = "OptionsMenu.wnd:GroupHeadingInterface5";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
SYSTEMCALLBACK = "[None]";
diff --git a/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd
index 40705076b..df012751b 100644
--- a/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd
@@ -9443,293 +9443,6 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
END
CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 330 392, BOTTOMRIGHT: 418 416, CREATIONRESOLUTION: 800 600;
- NAME = "SkirmishGameOptionsMenu.wnd:LabelGameSpeed";
- STATUS = ENABLED+NOINPUT+NOFOCUS;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "TextEntry";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:GameSpeed";
- TEXTCOLOR = ENABLED: 255 255 255 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: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- 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,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 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,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 424 392, BOTTOMRIGHT: 536 416, CREATIONRESOLUTION: 800 600;
- NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxGameSpeed";
- STATUS = ENABLED+IMAGE;
- STYLE = MOUSETRACK+COMBOBOX;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "ComboBoxEntry";
- TOOLTIPTEXT = "GUI:AdjustGameSpeed";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 122 48 1 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 1 1 1 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: 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
- COMBOBOXDATA = ISEDITABLE: 0,
- MAXCHARS: 16,
- MAXDISPLAY: 5,
- ASCIIONLY: 0,
- LETTERSANDNUMBERS: 0;
- COMBOBOXDROPDOWNBUTTONENABLEDDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: VSliderDownButtonHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXDROPDOWNBUTTONDISABLEDDRAWDATA = IMAGE: VSliderDownButtonDisabled, 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 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXDROPDOWNBUTTONHILITEDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: VSliderDownButtonHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXEDITBOXENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: TextEntryEnabledRightEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: TextEntryEnabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: TextEntryEnabledSmallRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXEDITBOXDISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 128 128 128 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryDisabledRightEnd, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: TextEntryDisabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: TextEntryDisabledSmallRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXEDITBOXHILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: TextEntryHiliteRightEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: TextEntryHiliteRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: TextEntryHiliteSmallRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXLISTBOXENABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
- IMAGE: ListBoxHiliteItemLeftEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: ListBoxHiliteItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: ListBoxHiliteItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: ListBoxHiliteItemSmallRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXLISTBOXDISABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- COMBOBOXLISTBOXHILITEDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
- IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXENABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: VSliderUpButtonHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXDISABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXHILITEUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: VSliderUpButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXENABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: VSliderDownButtonHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXDISABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXHILITEDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: VSliderDownButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXENABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 255 190 0 0, BORDERCOLOR: 47 55 168 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,
- IMAGE: ScrollBarThumbHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 66 418, BOTTOMRIGHT: 162 442, CREATIONRESOLUTION: 800 600;
@@ -10928,6 +10641,53 @@ 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;
END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 336 392, BOTTOMRIGHT: 536 416, CREATIONRESOLUTION: 800 600;
+ NAME = "SkirmishGameOptionsMenu.wnd:CheckBoxTurbo";
+ STATUS = ENABLED+IMAGE;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "TextEntry";
+ TOOLTIPTEXT = "TOOLTIP:TurboMode";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:TurboMode";
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 140 138 138 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: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
ENDALLCHILDREN
END
CHILD
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h b/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h
index 7bf0464d3..3876ff5f8 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h
@@ -108,19 +108,17 @@ constexpr Real ConvertRetailPerFrameSquared( Real perFrameSqr ) { return perFram
inline Real ConvertRetailPerFrameFactor( Real factor ) { return sqrtf( factor > 0.0f ? factor : 0.0f ); }
// ----------------------------------------------------------------------------------------------
-// The speeds a skirmish or single-player match may run at: half speed to normal, never faster. The
-// menu, the console, a saved game and a map script all pass through this; -fps, -turbo and a network
-// game do not.
+// The two speeds a match someone plays runs at: normal, and turbo mode at twice that. There is no
+// slider any more. A saved game and the console's speed land on the nearer of the two; -fps, -turbo
+// and a replay's speed keys do not pass through here.
enum
{
- PLAYER_GAME_SPEED_MIN_FPS = LOGICFRAMES_PER_SECOND / 2,
- PLAYER_GAME_SPEED_MAX_FPS = LOGICFRAMES_PER_SECOND
+ PLAYER_GAME_SPEED_NORMAL_FPS = LOGICFRAMES_PER_SECOND,
+ PLAYER_GAME_SPEED_TURBO_FPS = LOGICFRAMES_PER_SECOND * 2
};
constexpr Int ClampPlayerGameSpeed( Int fps )
{
- if( fps < PLAYER_GAME_SPEED_MIN_FPS ) return PLAYER_GAME_SPEED_MIN_FPS;
- if( fps > PLAYER_GAME_SPEED_MAX_FPS ) return PLAYER_GAME_SPEED_MAX_FPS;
- return fps;
+ return fps > PLAYER_GAME_SPEED_NORMAL_FPS ? PLAYER_GAME_SPEED_TURBO_FPS : PLAYER_GAME_SPEED_NORMAL_FPS;
}
// ----------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GameEngine.h b/GeneralsMD/Code/GameEngine/Include/Common/GameEngine.h
index df4772b7e..08c13cea0 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GameEngine.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GameEngine.h
@@ -53,6 +53,11 @@
/** The above in logic frames, at a given game speed: 3 at the retail 30fps, 6 at 60. */
Int GameEngine_logicCatchupMaxFrames( Int logicFps );
+/** The logic frames a second a match starts at: FramesPerSecondLimit (normal speed, or what -fps
+ asked for), twice that with turbo mode on. Every start that sends MSG_NEW_GAME passes this, so a
+ replay plays back at the speed its match had. */
+Int GameEngine_matchFramesPerSecond( Bool turbo );
+
/** R1, smooth motion: the renderer's blend reads how far into the next logic tick the wall clock is
(0 just after a tick, 1 a whole tick later or more; always 1 in fast mode or before the first tick).
The logic loop notes each pass's last tick with GameEngine_noteLogicTickDone. */
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
index cf0d0f7a8..70b299f57 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
@@ -204,6 +204,7 @@ public:
Bool m_useShadowDecals;
Bool m_shadowsForProjectiles; // "ShadowsForProjectiles": missiles and bombs that have no shadow of their own get a decal one
Bool m_startAtMaxZoom; // "OpenAtMaxZoom" in Options.ini: a game opens as far out as the wheel goes, not 300 over the ground
+ Bool m_turboMode; // "TurboMode" in Options.ini: a campaign or challenge mission runs at twice normal speed; a lobby has its own box
Bool m_shadowsForProps; // "ShadowsForProps": fences, rubbish, shrubs - scenery the art gave no shadow at all
Bool m_shadowsForParticles; // "ShadowsForParticles": big alpha-blended particle clouds drop a soft blob on the ground
Bool m_volumetricSmokeShadows; // "VolumetricSmokeShadows": smoke and dust shade the world and themselves through the sun's map (Direct3D 11)
@@ -474,6 +475,7 @@ public:
Int m_incomeSharing; ///< -incomesharing <n>: the lobby's income sharing, an IncomeSharing, for an -autoskirmish run
Int m_techRespawn; ///< -techrespawn <n>: the lobby's tech building respawn, in minutes, for an -autoskirmish run
Int m_supplyPileLimit; ///< -supplypilelimit <n>: the lobby's supply pile limit, in players a pile, for an -autoskirmish run
+ Bool m_turboMatch; ///< -turbomode: the lobby's turbo mode, for an -autoskirmish or -netgame run
Int m_superweapons; ///< -superweapons <n>: the lobby's superweapon rule, a SUPERWEAPONS_ mode, for an -autoskirmish run
Int m_startingCash; ///< -startingcash <n>: the lobby's starting cash for an -autoskirmish run (0 = DefaultStartingCash)
Int m_maxGameFrames; ///< -maxframes <n>: quit after n logic frames however the match is going (0 = no limit)
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
index bff83e816..bfc1b5023 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
@@ -120,6 +120,7 @@ public:
Int getMinimumCushion();
void addNetworkStall(time_t ms) { m_frameMetrics.addNetworkStall(ms); }
+ Int getMatchFps() const { return m_frameMetrics.getMatchFps(); } ///< the game's speed, from parseUserList
void flushConnections();
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/FrameMetrics.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/FrameMetrics.h
index f8f7ad722..8b4626d9b 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/FrameMetrics.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/FrameMetrics.h
@@ -40,6 +40,10 @@ public:
void init();
void reset();
+ /// The match's logic frames a second, turbo mode included: the history starts full of it and no
+ /// sample reads above it. Starts again as init() does.
+ void setMatchFps(Int fps);
+ Int getMatchFps() const { return m_matchFps; }
void doPerFrameMetrics(UnsignedInt frame);
void processLatencyResponse(UnsignedInt frame);
@@ -51,6 +55,8 @@ public:
Int getMinimumCushion();
protected:
+ Int m_matchFps; ///< see setMatchFps
+
// These are used for keeping track of parameters to the run ahead equation.
// frames per second history variables.
Real *m_fpsList; ///< A record of how many game logic frames per second there were for the last 60 seconds.
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h
index 4299a12e2..c129087c0 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h
@@ -282,6 +282,11 @@ public:
inline Int getSupplyPileLimit( void ) const;
void setSupplyPileLimit( Int players );
+ // Turbo mode: the match runs twice as many logic frames a second, each one the same as at normal
+ // speed. The host's choice, so every machine and the replay agree on it.
+ Bool getTurbo( void ) const { return m_turbo; }
+ void setTurbo( Bool turbo ) { m_turbo = turbo; }
+
Bool hasAIPlayers( void ) const; ///< is any slot held by a computer player?
protected:
@@ -311,6 +316,7 @@ protected:
Int m_incomeSharing; // an IncomeSharing, INCOME_SHARING_OFF = the retail game
Int m_techRespawn; // minutes before a destroyed tech building comes back, 0 = never
Int m_supplyPileLimit; // players who may gather from one supply pile at once, 0 = any number
+ Bool m_turbo; // the lobby's turbo mode is on
};
extern GameInfo *TheGameInfo;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
index f08429f5a..a581eb8d4 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
@@ -1405,8 +1405,8 @@ Int parseIgnoreStackTrace(char *args[], int num)
}
#endif
-/* -fps <n> is the game speed itself: the rate the logic tick is paced at, the command-line twin of
- the skirmish menu's game speed slider. MSG_NEW_GAME only honours 1..1000. n is in retail 30 Hz
+/* -fps <n> is the game speed itself: the rate the logic tick is paced at, for tests; a player gets
+ normal speed or turbo mode's twice that, and turbo doubles this too. MSG_NEW_GAME only honours 1..1000. n is in retail 30 Hz
frames, so -fps 30 is still normal speed and every script that passes it keeps its meaning. */
Int parseFPSLimit(char *args[], int num)
@@ -2299,6 +2299,15 @@ Int parseSupplyPileLimit(char *args[], int num)
return 1;
}
+/* -turbomode: the lobby's turbo mode for an -autoskirmish or -netgame run, twice the logic frames a
+ second at the same frames. Not -turbo, which fast-forwards a drawing run as fast as it goes. */
+Int parseTurboMode(char *args[], int num)
+{
+ if (TheWritableGlobalData)
+ TheWritableGlobalData->m_turboMatch = TRUE;
+ return 1;
+}
+
/* -slowframe <ms> lowers the bar a logic frame has to clear before it logs its own breakdown.
The default of 20ms is a stutter hunt: it catches the frames a player would notice. Chasing a
@@ -2887,6 +2896,7 @@ static CommandLineParam params[] =
{ "-techrespawn", parseTechRespawn },
{ "-superweapons", parseSuperweapons },
{ "-supplypilelimit", parseSupplyPileLimit },
+ { "-turbomode", parseTurboMode },
{ "-startingcash", parseStartingCash },
{ "-showlanes", parseShowLanes },
{ "-uidrill", parseUIDrill },
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
index 142031514..d5192a4e9 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
@@ -780,6 +780,7 @@ static void startAutoSkirmish( Int numPlayersWanted )
TheSkirmishGameInfo->setTechRespawn( TheGlobalData->m_techRespawn );
TheSkirmishGameInfo->setSupplyPileLimit( TheGlobalData->m_supplyPileLimit );
TheSkirmishGameInfo->setSuperweaponRestriction( (UnsignedShort)TheGlobalData->m_superweapons );
+ TheSkirmishGameInfo->setTurbo( TheGlobalData->m_turboMatch );
if (TheGlobalData->m_startingCash > 0)
{
Money cash;
@@ -797,15 +798,9 @@ static void startAutoSkirmish( Int numPlayersWanted )
TheWritableGlobalData->m_shellMapOn = FALSE;
TheWritableGlobalData->m_playIntro = FALSE;
- /* The menu passes the game speed slider's position here, so pass the same thing and clamp it
- the same way reallyDoStart() does: MSG_NEW_GAME rejects anything outside 1..1000 by falling
- back to m_framesPerSecondLimit *unclamped*, which is how a stray -fps would still get through.
- -noFPSLimit deliberately does not appear here - it uncaps the renderer, not the simulation. */
- Int maxFPS = TheGlobalData->m_framesPerSecondLimit;
- if (maxFPS < ConvertRetailFrames( 15 ))
- maxFPS = DEFAULT_MAX_FPS;
- if (maxFPS > 1000)
- maxFPS = 1000;
+ /* The speed reallyDoStart() passes for the lobby's turbo box, -fps included. -noFPSLimit
+ deliberately does not appear here - it uncaps the renderer, not the simulation. */
+ const Int maxFPS = GameEngine_matchFramesPerSecond( TheSkirmishGameInfo->getTurbo() );
InitRandom( seed );
GameMessage *msg = TheMessageStream->appendMessage( GameMessage::MSG_NEW_GAME );
@@ -1612,6 +1607,19 @@ Int GameEngine_logicCatchupMaxFrames( Int logicFps )
return frames < 1 ? 1 : frames;
}
+/* MSG_NEW_GAME refuses anything outside 1..1000 and falls back to m_framesPerSecondLimit
+ unclamped, so the answer stays inside that. A FramesPerSecondLimit below retail's 15, or none at
+ all, is normal speed. */
+Int GameEngine_matchFramesPerSecond( Bool turbo )
+{
+ Int fps = TheGlobalData->m_framesPerSecondLimit;
+ if (fps < ConvertRetailFrames( 15 ))
+ fps = LOGICFRAMES_PER_SECOND;
+ if (turbo)
+ fps *= 2;
+ return fps > 1000 ? 1000 : fps;
+}
+
Bool GameEngine_mayStartAnotherCatchupTick( Int ticksSoFar, Int maxTicks, Real elapsedMsInLoop )
{
if (ticksSoFar >= maxTicks)
@@ -3052,8 +3060,7 @@ void GameEngine::update( void )
// count and the pacer's own accumulator cap stop at LOGIC_CATCHUP_MAX_FRAMES, so a logic
// frame that is itself over budget cannot pull the loop into a spiral.
Int logicTicksThisPass = 0;
- const Int maxTicksThisPass = GameEngine_logicCatchupMaxFrames(
- networkPaced ? TheGlobalData->m_framesPerSecondLimit : m_maxFPS );
+ const Int maxTicksThisPass = GameEngine_logicCatchupMaxFrames( m_maxFPS );
/* Bounded by the clock as well as by the count - see LOGIC_CATCHUP_BUDGET_MS. Three
25ms ticks back to back with no picture in between is the 113ms freeze; one of them
plus the render is a dropped frame nobody files a bug about. */
@@ -3107,7 +3114,7 @@ void GameEngine::update( void )
else if (!GameEngine_isLogicFrameDue(s_logicAccumMs, 0.0f, m_maxFPS))
break;
}
- GameEngine_noteLogicTickDone( networkPaced ? TheGlobalData->m_framesPerSecondLimit : m_maxFPS, fastMode );
+ GameEngine_noteLogicTickDone( m_maxFPS, fastMode );
// a frame held by a scripted freeze keeps showing its last picture, rather than going back
// half a frame every other pass
if (TheGameLogic->getFrame() == frameBeforeTicks)
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
index 71d6ee0ab..147e724dc 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
@@ -691,6 +691,7 @@ GlobalData::GlobalData()
m_useShadowDecals = FALSE;
m_shadowsForProjectiles = TRUE; //on by default: the shipped INI has no entry for it
m_startAtMaxZoom = FALSE; //off, a match opens at START_CAMERA_HEIGHT (View.cpp); on, as far out as the wheel goes
+ m_turboMode = FALSE; //a mission runs at normal speed
m_shadowsForProps = TRUE; //likewise: scenery with no shadow of its own gets one
m_shadowsForParticles = TRUE; //on by default: the shipped INI has no entry for it
m_volumetricSmokeShadows = TRUE;
@@ -728,6 +729,7 @@ GlobalData::GlobalData()
m_incomeSharing = 0; // INCOME_SHARING_OFF unless -incomesharing asks
m_techRespawn = 0; // a destroyed tech building stays destroyed unless -techrespawn asks
m_supplyPileLimit = 0; // a supply pile takes any number of players unless -supplypilelimit asks
+ m_turboMatch = FALSE; // normal speed unless -turbomode asks
m_superweapons = 0; // SUPERWEAPONS_ALLOW unless -superweapons asks
m_startingCash = 0; // the INI's DefaultStartingCash unless -startingcash asks
m_autoSkirmishObserver = FALSE;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
index 9a9e1cb21..ff06cb47e 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
@@ -26,11 +26,13 @@
#include "Common/OptionsCatalog.h"
#include "Common/AudioAffect.h"
#include "Common/GameAudio.h"
+#include "Common/GameEngine.h"
#include "Common/GlobalData.h"
#include "Common/UserPreferences.h"
#include "GameClient/Mouse.h"
#include "GameClient/PlayerColorScheme.h"
#include "GameClient/View.h"
+#include "GameLogic/GameLogic.h"
//-----------------------------------------------------------------------------
// The accessors. Each is two lines and exists only because a member pointer cannot span Bool and
@@ -85,6 +87,15 @@ static void set_m_ambientVolume( Int value )
if (TheAudio)
TheAudio->setVolume( value / 100.0f, (AudioAffect)(AudioAffect_Ambient | AudioAffect_SystemSetting) );
}
+// The catalog loads before there is a game; the menu's Accept during a mission changes its speed
+// on the spot, which only the pacing reads.
+static Int get_m_turboMode( void ) { return TheGlobalData->m_turboMode ? 1 : 0; }
+static void set_m_turboMode( Int value )
+{
+ TheWritableGlobalData->m_turboMode = (value != 0);
+ if (TheGameLogic && TheGameLogic->isInSinglePlayerGame())
+ TheGameEngine->setFramesPerSecondLimit( GameEngine_matchFramesPerSecond( value != 0 ) );
+}
OPTION_BOOL_ACCESSORS( m_formationDrag )
OPTION_BOOL_ACCESSORS( m_buildWithoutWorker )
OPTION_BOOL_ACCESSORS( m_chromaLighting )
@@ -290,6 +301,13 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_startAtMaxZoom, set_m_startAtMaxZoom },
+ // Turbo mode for the campaign and the generals' challenge: twice the logic frames a second, each
+ // the same as at normal speed. A skirmish or network lobby has its own box, the host's for the
+ // whole room, so this one never touches a skirmish or a multiplayer match. On Options > Interface.
+ { "TurboMode", OPT_WND( "CheckTurboModeMissions" ), "GUI:TurboModeMissions",
+ OPTION_BOOL, APPLY_LIVE, 0, 1,
+ get_m_turboMode, set_m_turboMode },
+
// Pixels the pointer may travel with a button held before the press stops being a click and
// starts a selection box, a camera drag or a formation line. Mouse.ini says 25, which is the
// default here; a high-DPI mouse wants more and a small screen less.
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp
index 104d81d29..9e6091058 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp
@@ -871,7 +871,8 @@ SaveCode GameState::loadGame( AvailableGameInfo gameInfo )
// A loaded match played at the default 30 whatever speed it was saved at: the reset during the
// load puts the default back, and nothing kept the speed. A mission save starts its map afresh. A
- // save from when the speed went past normal comes back at normal.
+ // save comes back at normal speed or in turbo mode, whichever is nearer what it was saved at, so
+ // one from the old half-speed settings plays at normal.
if( getSaveGameInfo()->saveFileType != SAVE_FILE_TYPE_MISSION && getSaveGameInfo()->framesPerSecond > 0 )
TheGameEngine->setFramesPerSecondLimit( ClampPlayerGameSpeed( getSaveGameInfo()->framesPerSecond ) );
@@ -890,6 +891,7 @@ SaveCode GameState::loadGame( AvailableGameInfo gameInfo )
msg->appendIntegerArgument(GAME_SINGLE_PLAYER);
msg->appendIntegerArgument(TheCampaignManager->getGameDifficulty());
msg->appendIntegerArgument(TheCampaignManager->getRankPoints());
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(TheGlobalData->m_turboMode));
// remove the mission save data, we've got all we need and have started the load
SaveGameInfo *gameInfo = getSaveGameInfo();
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ChallengeMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ChallengeMenu.cpp
index eac6c4537..a161b55e2 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ChallengeMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ChallengeMenu.cpp
@@ -692,7 +692,7 @@ WindowMsgHandledType ChallengeMenuSystem( GameWindow *window, UnsignedInt msg, W
// Added so that, even though a ChallengeGame is really a SkirmishGame in SinglePlayerGame's clothing,
// GameEngine will still apply the default "FRAME CAP" as it does during "Solo Missions."
- msg->appendIntegerArgument(LOGICFRAMES_PER_SECOND); // FPS limit
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(TheGlobalData->m_turboMode)); // FPS limit
InitRandom(0);
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp
index 5a26e931e..2c0cd3930 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp
@@ -125,6 +125,7 @@ static NameKeyType comboBoxStartingCashID = NAMEKEY_INVALID;
static NameKeyType comboBoxPeaceTimeID = NAMEKEY_INVALID;
static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;
static NameKeyType checkBoxProRulesID = NAMEKEY_INVALID;
+static NameKeyType checkBoxTurboID = NAMEKEY_INVALID;
static NameKeyType comboBoxIncomeSharingID = NAMEKEY_INVALID;
static NameKeyType comboBoxTechRespawnID = NAMEKEY_INVALID;
static NameKeyType comboBoxSupplyPileLimitID = NAMEKEY_INVALID;
@@ -142,6 +143,7 @@ static GameWindow *comboBoxStartingCash = NULL;
static GameWindow *comboBoxPeaceTime = NULL;
static GameWindow *checkBoxUnitLimit = NULL;
static GameWindow *checkBoxProRules = NULL;
+static GameWindow *checkBoxTurbo = NULL;
static GameWindow *comboBoxIncomeSharing = NULL;
static GameWindow *comboBoxTechRespawn = NULL;
static GameWindow *comboBoxSupplyPileLimit = NULL;
@@ -430,7 +432,7 @@ void LANDisableButtons()
comboBoxStartingCash->winEnable(false);
GameWindow *optionalGadgets[] = { comboBoxSuperweapons, comboBoxPeaceTime, checkBoxUnitLimit,
- checkBoxProRules, comboBoxIncomeSharing, comboBoxTechRespawn, comboBoxSupplyPileLimit };
+ checkBoxProRules, comboBoxIncomeSharing, comboBoxTechRespawn, comboBoxSupplyPileLimit, checkBoxTurbo };
for (Int i = 0; i < (Int)ARRAY_SIZE(optionalGadgets); ++i)
{
if (optionalGadgets[i])
@@ -773,6 +775,32 @@ static void handleProRulesSelection()
}
}
+static void handleTurboSelection()
+{
+ LANGameInfo *myGame = TheLAN->GetMyGame();
+
+ // the same guard as the Pro Rules box above
+ if (myGame == NULL || checkBoxTurbo == NULL || myGame->getTurbo() == GadgetCheckBoxIsChecked( checkBoxTurbo ))
+ return;
+
+ myGame->setTurbo( GadgetCheckBoxIsChecked( checkBoxTurbo ) );
+ myGame->resetAccepted();
+
+ if (myGame->amIHost() && !s_isIniting)
+ {
+ TheLAN->RequestGameOptions(GenerateGameOptionsString(), true);
+ lanUpdateSlotList(); // Update the accepted button UI
+ }
+}
+
+// the host's to change, everyone's to see
+static void updateTurboCheckBox( GameInfo *game, Bool hostMayEdit )
+{
+ checkBoxTurbo->winEnable( hostMayEdit );
+ if ( GadgetCheckBoxIsChecked( checkBoxTurbo ) != game->getTurbo() )
+ GadgetCheckBoxSetChecked( checkBoxTurbo, game->getTurbo() );
+}
+
static void handleUnitLimitSelection()
{
LANGameInfo *myGame = TheLAN->GetMyGame();
@@ -841,6 +869,7 @@ void InitLanGameGadgets( void )
comboBoxPeaceTimeID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxPeaceTime" ) );
checkBoxUnitLimitID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:CheckBoxUnitLimit" ) );
checkBoxProRulesID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:CheckBoxProRules" ) );
+ checkBoxTurboID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:CheckBoxTurbo" ) );
comboBoxIncomeSharingID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxIncomeSharing" ) );
comboBoxTechRespawnID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxTechRespawn" ) );
comboBoxSupplyPileLimitID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxSupplyPileLimit" ) );
@@ -886,6 +915,10 @@ void InitLanGameGadgets( void )
DEBUG_ASSERTCRASH(checkBoxProRules, ("Could not find the checkBoxProRules"));
if (checkBoxProRules)
UpdateProRulesCheckBox(checkBoxProRules, TheLAN->GetMyGame(), TheLAN->AmIHost());
+ // the fork's box, which a stock or modded layout does not have
+ checkBoxTurbo = TheWindowManager->winGetWindowFromId( parentLanGameOptions, checkBoxTurboID );
+ if (checkBoxTurbo)
+ updateTurboCheckBox(TheLAN->GetMyGame(), TheLAN->AmIHost());
comboBoxIncomeSharing = TheWindowManager->winGetWindowFromId( parentLanGameOptions, comboBoxIncomeSharingID );
DEBUG_ASSERTCRASH(comboBoxIncomeSharing, ("Could not find the comboBoxIncomeSharing"));
if (comboBoxIncomeSharing)
@@ -1002,6 +1035,7 @@ void DeinitLanGameGadgets( void )
comboBoxPeaceTime = NULL;
checkBoxUnitLimit = NULL;
checkBoxProRules = NULL;
+ checkBoxTurbo = NULL;
comboBoxIncomeSharing = NULL;
comboBoxTechRespawn = NULL;
comboBoxSupplyPileLimit = NULL;
@@ -1065,6 +1099,7 @@ void LanGameOptionsMenuInit( WindowLayout *layout, void *userData )
game->setIncomeSharing( pref.getInt( "IncomeSharing", INCOME_SHARING_OFF ) );
game->setTechRespawn( pref.getInt( "TechRespawn", 0 ) );
game->setSupplyPileLimit( pref.getInt( "SupplyPileLimit", 0 ) );
+ game->setTurbo( pref.getInt( "TurboMode", 0 ) != 0 );
AsciiString lowerMap = pref.getPreferredMap();
lowerMap.toLower();
std::map<AsciiString, MapMetaData>::iterator it = TheMapCache->find(lowerMap);
@@ -1192,6 +1227,8 @@ void updateGameOptions( void )
UpdateUnitLimitCheckBox( checkBoxUnitLimit, theGame, TheLAN->AmIHost() );
if (checkBoxProRules)
UpdateProRulesCheckBox( checkBoxProRules, theGame, TheLAN->AmIHost() );
+ if (checkBoxTurbo)
+ updateTurboCheckBox( theGame, TheLAN->AmIHost() );
if (comboBoxIncomeSharing)
UpdateIncomeSharingComboBox( comboBoxIncomeSharing, theGame, TheLAN->AmIHost() );
if (comboBoxTechRespawn)
@@ -1452,6 +1489,12 @@ WindowMsgHandledType LanGameOptionsMenuSystem( GameWindow *window, UnsignedInt m
break;
}
+ if ( controlID == checkBoxTurboID )
+ {
+ handleTurboSelection();
+ break;
+ }
+
if ( LobbyTabClicked( (NameKeyType)controlID ) )
break;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp
index 09f4b6ef1..bb7091de3 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp
@@ -399,6 +399,7 @@ static void doGameStart( void )
msg->appendIntegerArgument(GAME_SINGLE_PLAYER);
msg->appendIntegerArgument(TheCampaignManager->getGameDifficulty());
msg->appendIntegerArgument(TheCampaignManager->getRankPoints());
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(TheGlobalData->m_turboMode));
InitRandom(0);
isShuttingDown = TRUE;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MapSelectMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MapSelectMenu.cpp
index e7f81df76..45836d354 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MapSelectMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MapSelectMenu.cpp
@@ -77,6 +77,7 @@ static void doGameStart( void )
msg->appendIntegerArgument(GAME_SINGLE_PLAYER);
msg->appendIntegerArgument(s_AIDiff);
msg->appendIntegerArgument(0);
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(TheGlobalData->m_turboMode));
InitRandom(0);
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp
index 6cfddc289..b38d3f5b5 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp
@@ -229,6 +229,7 @@ void startNextCampaignGame(void)
msg->appendIntegerArgument(GAME_SINGLE_PLAYER);
msg->appendIntegerArgument(TheCampaignManager->getGameDifficulty());
msg->appendIntegerArgument(TheCampaignManager->getRankPoints());
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(TheGlobalData->m_turboMode));
InitRandom(0);
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp
index c61d399c1..f4b02a304 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp
@@ -118,7 +118,7 @@ static NameKeyType buttonStartID = NAMEKEY_INVALID;
static NameKeyType buttonSelectMapID = NAMEKEY_INVALID;
static NameKeyType buttonResetID = NAMEKEY_INVALID;
static NameKeyType windowMapID = NAMEKEY_INVALID;
-static NameKeyType comboBoxGameSpeedID = NAMEKEY_INVALID;
+static NameKeyType checkBoxTurboID = NAMEKEY_INVALID;
static NameKeyType comboBoxSuperweaponsID = NAMEKEY_INVALID;
static NameKeyType comboBoxStartingCashID = NAMEKEY_INVALID;
static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;
@@ -168,33 +168,13 @@ static Bool buttonPushed = FALSE;
static Bool stillNeedsToSetOptions = FALSE;
void skirmishUpdateSlotList( void );
static void populateSkirmishBattleHonors( void );
-// The game speed dropdown, as logic frames a second against the normal LOGICFRAMES_PER_SECOND. Half
-// speed to normal (ClampPlayerGameSpeed), nothing faster. The preference keeps the frame rate in
-// retail 30 Hz frames, as it always did, so one saved by an older build, the old 15 to 60 slider or
-// the x1.5 and x2 entries this list used to have, lands on the nearest entry.
-static const Int SKIRMISH_GAME_SPEEDS[] = { PLAYER_GAME_SPEED_MIN_FPS, LOGICFRAMES_PER_SECOND * 3 / 4,
- PLAYER_GAME_SPEED_MAX_FPS };
-static const WideChar *SKIRMISH_GAME_SPEED_CAPTIONS[] = { u"x0.5", u"x0.75", u"x1" };
-static const Int SKIRMISH_GAME_SPEED_COUNT = sizeof( SKIRMISH_GAME_SPEEDS ) / sizeof( SKIRMISH_GAME_SPEEDS[ 0 ] );
-
-static Int nearestGameSpeedIndex( Int framesPerSecond )
+// The turbo mode box, the only speed a skirmish has besides normal. It is the fork's control, so a
+// stock or modded SkirmishGameOptionsMenu.wnd that wins over Run/Window has none and plays at normal
+// speed. The old game speed dropdown's "FPS" preference is left in the file and never read.
+static Bool turboBoxChecked( void )
{
- Int nearest = 0;
- for( Int i = 1; i < SKIRMISH_GAME_SPEED_COUNT; ++i )
- {
- if( abs( SKIRMISH_GAME_SPEEDS[ i ] - framesPerSecond ) < abs( SKIRMISH_GAME_SPEEDS[ nearest ] - framesPerSecond ) )
- nearest = i;
- }
- return nearest;
-}
-
-static Int selectedGameSpeed( void )
-{
- GameWindow *comboBoxGameSpeed = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, comboBoxGameSpeedID );
- // a layout without the dropdown plays at x1, not at the first entry's x0.5
- Int selected = nearestGameSpeedIndex( LOGICFRAMES_PER_SECOND );
- GadgetComboBoxGetSelectedPos( comboBoxGameSpeed, &selected );
- return SKIRMISH_GAME_SPEEDS[ selected ];
+ GameWindow *checkBoxTurbo = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, checkBoxTurboID );
+ return checkBoxTurbo != NULL && GadgetCheckBoxIsChecked( checkBoxTurbo );
}
Bool doUpdateSlotList = TRUE;
@@ -402,7 +382,7 @@ Bool SkirmishPreferences::write(void)
setSlotList();
- setInt("FPS", selectedGameSpeed() / LOGICFRAMES_PER_RETAIL_FRAME);
+ setInt("TurboMode", turboBoxChecked() ? 1 : 0);
return UserPreferences::write();
}
@@ -436,8 +416,10 @@ void reallyDoStart( void )
if (TheGameLogic->isInGame())
TheGameLogic->clearGameData(FALSE);
- const Int maxFPS = selectedGameSpeed();
- DEBUG_LOG(("Game speed dropdown is at %d logic frames a second\n", maxFPS));
+ // on the game, so the replay's header carries it as a network lobby's does
+ TheSkirmishGameInfo->setTurbo( turboBoxChecked() );
+ const Int maxFPS = GameEngine_matchFramesPerSecond( TheSkirmishGameInfo->getTurbo() );
+ DEBUG_LOG(("Turbo mode %s: %d logic frames a second\n", TheSkirmishGameInfo->getTurbo() ? "on" : "off", maxFPS));
TheWritableGlobalData->m_mapName = TheSkirmishGameInfo->getMap();
TheSkirmishGameInfo->startGame(0);
@@ -1362,7 +1344,7 @@ void SkirmishGameOptionsMenuInit( WindowLayout *layout, void *userData )
stillNeedsToSetOptions = FALSE;
- comboBoxGameSpeedID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:ComboBoxGameSpeed" ) );
+ checkBoxTurboID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:CheckBoxTurbo" ) );
sandboxOk = FALSE;
doUpdateSlotList = FALSE;
@@ -1455,17 +1437,10 @@ void SkirmishGameOptionsMenuInit( WindowLayout *layout, void *userData )
//updateSkirmishGameOptions();
//initSkirmishGameOptions();
- // set up the game speed dropdown. It is the fork's control, so a stock or modded
- // SkirmishGameOptionsMenu.wnd that wins over Run/Window has none, like the combo boxes in
- // InitSkirmishGameGadgets
- GameWindow *comboBoxGameSpeed = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, comboBoxGameSpeedID );
- if ( comboBoxGameSpeed )
- {
- GadgetComboBoxReset( comboBoxGameSpeed );
- for( Int i = 0; i < SKIRMISH_GAME_SPEED_COUNT; ++i )
- GadgetComboBoxAddEntry( comboBoxGameSpeed, UnicodeString( SKIRMISH_GAME_SPEED_CAPTIONS[ i ] ), comboBoxGameSpeed->winGetEnabledTextColor() );
- GadgetComboBoxSetSelectedPos( comboBoxGameSpeed, nearestGameSpeedIndex( ConvertRetailFrames( prefs.getInt( "FPS", RETAIL_LOGICFRAMES_PER_SECOND ) ) ) );
- }
+ // the turbo box, which a stock or modded layout does not have (turboBoxChecked)
+ GameWindow *checkBoxTurbo = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, checkBoxTurboID );
+ if ( checkBoxTurbo )
+ GadgetCheckBoxSetChecked( checkBoxTurbo, prefs.getInt( "TurboMode", 0 ) != 0 );
buttonStart->winSetText(TheGameText->fetch("GUI:Start"));
/* hey, for now we're also going to disable the map select button until it doesn't crash */
//buttonSelectMap->winEnable( FALSE );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp
index 23b0b4ce9..56462727a 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp
@@ -211,6 +211,7 @@ static NameKeyType comboBoxPeaceTimeID = NAMEKEY_INVALID;
static NameKeyType checkBoxLimitArmiesID = NAMEKEY_INVALID;
static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;
static NameKeyType checkBoxProRulesID = NAMEKEY_INVALID;
+static NameKeyType checkBoxTurboID = NAMEKEY_INVALID;
static NameKeyType comboBoxIncomeSharingID = NAMEKEY_INVALID;
static NameKeyType comboBoxTechRespawnID = NAMEKEY_INVALID;
static NameKeyType comboBoxSupplyPileLimitID = NAMEKEY_INVALID;
@@ -231,6 +232,7 @@ static GameWindow *comboBoxPeaceTime = NULL;
static GameWindow *checkBoxLimitArmies = NULL;
static GameWindow *checkBoxUnitLimit = NULL;
static GameWindow *checkBoxProRules = NULL;
+static GameWindow *checkBoxTurbo = NULL;
static GameWindow *comboBoxIncomeSharing = NULL;
static GameWindow *comboBoxTechRespawn = NULL;
static GameWindow *comboBoxSupplyPileLimit = NULL;
@@ -356,6 +358,7 @@ static void savePlayerInfo( void )
pref.setInt( "IncomeSharing", TheGameSpyGame->getIncomeSharing() );
pref.setInt( "TechRespawn", TheGameSpyGame->getTechRespawn() );
pref.setInt( "SupplyPileLimit", TheGameSpyGame->getSupplyPileLimit() );
+ pref.setInt( "TurboMode", TheGameSpyGame->getTurbo() ? 1 : 0 );
}
pref.write();
}
@@ -898,6 +901,32 @@ static void handleProRulesSelection()
}
}
+static void handleTurboSelection()
+{
+ GameInfo *myGame = TheGameSpyInfo->getCurrentStagingRoom();
+
+ // the same guard as the Pro Rules box above
+ if (myGame == NULL || checkBoxTurbo == NULL || myGame->getTurbo() == GadgetCheckBoxIsChecked( checkBoxTurbo ))
+ return;
+
+ myGame->setTurbo( GadgetCheckBoxIsChecked( checkBoxTurbo ) );
+ myGame->resetAccepted();
+
+ if (myGame->amIHost())
+ {
+ TheGameSpyInfo->setGameOptions();
+ WOLDisplaySlotList();// Update the accepted button UI
+ }
+}
+
+// the host's to change outside a recorded stats game, everyone's to see
+static void updateTurboCheckBox( GameInfo *game, Bool hostMayEdit )
+{
+ checkBoxTurbo->winEnable( hostMayEdit );
+ if ( GadgetCheckBoxIsChecked( checkBoxTurbo ) != game->getTurbo() )
+ GadgetCheckBoxSetChecked( checkBoxTurbo, game->getTurbo() );
+}
+
static void handleUnitLimitSelection()
{
GameInfo *myGame = TheGameSpyInfo->getCurrentStagingRoom();
@@ -1192,6 +1221,8 @@ void WOLDisplayGameOptions( void )
UpdateUnitLimitCheckBox( checkBoxUnitLimit, theGame, superweaponIsTheHostsToPick() );
if ( checkBoxProRules )
UpdateProRulesCheckBox( checkBoxProRules, theGame, superweaponIsTheHostsToPick() );
+ if ( checkBoxTurbo )
+ updateTurboCheckBox( theGame, superweaponIsTheHostsToPick() );
if ( comboBoxIncomeSharing )
UpdateIncomeSharingComboBox( comboBoxIncomeSharing, theGame, superweaponIsTheHostsToPick() );
if ( comboBoxTechRespawn )
@@ -1287,6 +1318,7 @@ void InitWOLGameGadgets( void )
checkBoxLimitArmiesID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:CheckBoxLimitArmies"));
checkBoxUnitLimitID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:CheckBoxUnitLimit"));
checkBoxProRulesID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:CheckBoxProRules"));
+ checkBoxTurboID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:CheckBoxTurbo"));
comboBoxIncomeSharingID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxIncomeSharing"));
comboBoxTechRespawnID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxTechRespawn"));
comboBoxSupplyPileLimitID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxSupplyPileLimit"));
@@ -1328,6 +1360,10 @@ void InitWOLGameGadgets( void )
DEBUG_ASSERTCRASH(checkBoxProRules, ("Could not find the GameSpyGameOptionsMenu.wnd:CheckBoxProRules" ));
if ( checkBoxProRules )
UpdateProRulesCheckBox( checkBoxProRules, TheGameSpyGame, superweaponIsTheHostsToPick() );
+ // the fork's box, which a stock or modded layout does not have
+ checkBoxTurbo = TheWindowManager->winGetWindowFromId( parentWOLGameSetup, checkBoxTurboID );
+ if ( checkBoxTurbo )
+ updateTurboCheckBox( TheGameSpyGame, superweaponIsTheHostsToPick() );
comboBoxIncomeSharing = TheWindowManager->winGetWindowFromId( parentWOLGameSetup, comboBoxIncomeSharingID );
DEBUG_ASSERTCRASH(comboBoxIncomeSharing, ("Could not find the GameSpyGameOptionsMenu.wnd:ComboBoxIncomeSharing" ));
if ( comboBoxIncomeSharing )
@@ -1496,6 +1532,7 @@ void DeinitWOLGameGadgets( void )
comboBoxPeaceTime = NULL;
checkBoxUnitLimit = NULL;
checkBoxProRules = NULL;
+ checkBoxTurbo = NULL;
comboBoxIncomeSharing = NULL;
comboBoxTechRespawn = NULL;
comboBoxSupplyPileLimit = NULL;
@@ -1601,6 +1638,7 @@ void WOLGameSetupMenuInit( WindowLayout *layout, void *userData )
game->setIncomeSharing( isUsingStats ? INCOME_SHARING_OFF : customPref.getInt( "IncomeSharing", INCOME_SHARING_OFF ) );
game->setTechRespawn( isUsingStats ? 0 : customPref.getInt( "TechRespawn", 0 ) );
game->setSupplyPileLimit( isUsingStats ? 0 : customPref.getInt( "SupplyPileLimit", 0 ) );
+ game->setTurbo( !isUsingStats && customPref.getInt( "TurboMode", 0 ) != 0 );
if (isUsingStats)
game->setOldFactionsOnly( 0 );
@@ -2929,6 +2967,12 @@ WindowMsgHandledType WOLGameSetupMenuSystem( GameWindow *window, UnsignedInt msg
break;
}
+ if ( controlID == checkBoxTurboID )
+ {
+ handleTurboSelection();
+ break;
+ }
+
if ( LobbyTabClicked( (NameKeyType)controlID ) )
break;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
index d05e834b7..eba258528 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
@@ -146,7 +146,8 @@ static AsciiString runCheat( const ConsoleCheat &cheat, AsciiString arguments )
}
//-------------------------------------------------------------------------------------------------
-/** The game speed as a share of normal, 50 to 100 in a skirmish or mission, 17 to 666 in a replay. It changes how
+/** The game speed as a share of normal: 100 or turbo mode's 200 in a skirmish or mission, whichever is
+ * nearer, 17 to 666 in a replay. It changes how
* often a logic frame runs and nothing inside one, so a network game, which runs at the pace the
* whole room agrees on, is the one place it is refused. */
//-------------------------------------------------------------------------------------------------
@@ -169,8 +170,7 @@ static AsciiString runSpeed( AsciiString arguments )
if( percent < SPEED_MIN_PERCENT ) percent = SPEED_MIN_PERCENT;
if( percent > SPEED_MAX_PERCENT ) percent = SPEED_MAX_PERCENT;
Int fps = percent * LOGICFRAMES_PER_SECOND / SPEED_NORMAL_PERCENT;
- // a match someone plays goes no faster than normal and no slower than half; a replay keeps the
- // whole range
+ // a match someone plays runs at normal speed or in turbo mode; a replay keeps the whole range
if( TheGameLogic->isInSkirmishGame() || TheGameLogic->isInSinglePlayerGame() )
fps = ClampPlayerGameSpeed( fps );
TheGameEngine->setFramesPerSecondLimit( fps );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp
index 25c4c987e..945a44729 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp
@@ -7149,18 +7149,18 @@ void ScriptActions::executeAction( ScriptAction *pAction )
// (LOGIC-THREAD.md hazard 24), which is when the engine next paces anyway
const Int asked = pAction->getParameter(0)->getInt();
LogicThread::callAfterTick( [asked]{
+ // A match someone plays, or its replay, keeps the speed it started at: normal, or turbo
+ // mode's twice that. Only the shell map's scripts may still pace themselves.
+ if (!TheGameLogic->isInShellGame())
+ return;
if (!asked)
{
TheGameEngine->setFramesPerSecondLimit(TheGlobalData->m_framesPerSecondLimit);
}
else
{
- // the map asks for a 30 Hz logic rate; 30 is normal speed. A mission or skirmish map gets
- // half speed to normal like the player does, never faster
- Int fps = ConvertRetailFrames(asked);
- if (TheGameLogic->isInSkirmishGame() || TheGameLogic->isInSinglePlayerGame())
- fps = ClampPlayerGameSpeed(fps);
- TheGameEngine->setFramesPerSecondLimit(fps);
+ // the map asks for a 30 Hz logic rate; 30 is normal speed
+ TheGameEngine->setFramesPerSecondLimit(ConvertRetailFrames(asked));
}
// Setting the fps limit doesn't do much good if we don't use it. jba.
TheWritableGlobalData->m_useFpsLimit = true;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
index 2ef137ed1..e994befdf 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
@@ -37,6 +37,7 @@
#include "Common/Debug.h"
#include "Common/file.h"
#include "Common/GameAudio.h"
+#include "Common/GameEngine.h"
#include "Common/LocalFileSystem.h"
#include "Common/Player.h"
#include "Common/PlayerList.h"
@@ -1342,7 +1343,8 @@ void ConnectionManager::updateRunAhead(Int oldRunAhead, Int frameRate, Bool didS
together oscillate: the band swallows a genuinely slow player for as long as the probe
keeps the rate within 10 % of them, so a room held at 12 by one machine walked
12-13-14-15-12 for ever. One mechanism, not two. */
- minFps = settleRoomFrameRate(minFps, TheGlobalData->m_framesPerSecondLimit);
+ // the ceiling is the match's speed, which turbo mode doubles on every machine alike
+ minFps = settleRoomFrameRate(minFps, getMatchFps());
DEBUG_LOG(("ConnectionManager::updateRunAhead - minFps after adjustment is %d\n", minFps));
/* The rate everybody is actually told to run at. Deliberately a step above the slowest
@@ -1351,7 +1353,7 @@ void ConnectionManager::updateRunAhead(Int oldRunAhead, Int frameRate, Bool didS
room for the rest of the match - see CushionMetrics.h. The run-ahead below is sized
on the settled rate rather than this one: it is the room's honest measured speed, and
sizing a safety window on the rate we are hoping for is how the window comes up short. */
- Int commandedFps = probeRoomFrameRate(minFps, TheGlobalData->m_framesPerSecondLimit);
+ Int commandedFps = probeRoomFrameRate(minFps, getMatchFps());
// the rate crosses the wire as an UnsignedByte, and -fps is in logic frames now (twice retail)
if (commandedFps > UCHAR_MAX)
commandedFps = UCHAR_MAX;
@@ -2026,6 +2028,9 @@ void ConnectionManager::parseUserList(const GameInfo *game)
if (!game)
return;
+ // every machine reads the same game options, so every machine starts the room at the same speed
+ m_frameMetrics.setMatchFps(GameEngine_matchFramesPerSecond(game->getTurbo()));
+
Int i;
Int numUsers = 0;
m_localSlot = -1;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/FrameMetrics.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/FrameMetrics.cpp
index b2d813d4a..e102ed708 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/FrameMetrics.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/FrameMetrics.cpp
@@ -49,6 +49,7 @@ FrameMetrics::FrameMetrics()
{
//Added By Sadullah Nader
//Initializations missing and needed
+ m_matchFps = LOGICFRAMES_PER_SECOND;
m_averageFps = 0.0f;
m_averageLatency = 0.0f;
m_cushionIndex = 0;
@@ -86,14 +87,16 @@ FrameMetrics::~FrameMetrics() {
}
void FrameMetrics::init() {
- m_averageFps = LOGICFRAMES_PER_SECOND;
+ // Full of the match's own speed: thirty seconds of history seeded at normal speed held a turbo
+ // room near normal speed for most of a minute.
+ m_averageFps = (Real)m_matchFps;
m_averageLatency = (Real)0.2;
m_minimumCushion = -1;
// i is used after the loop; VC6 for-scope let it escape.
Int i;
for (i = 0; i < TheGlobalData->m_networkFPSHistoryLength; ++i) {
- m_fpsList[i] = (Real)LOGICFRAMES_PER_SECOND;
+ m_fpsList[i] = (Real)m_matchFps;
}
m_fpsListIndex = 0;
// The fps window has to open on a real time and a real frame. Left at zero, the first sample
@@ -112,6 +115,11 @@ void FrameMetrics::reset() {
init();
}
+void FrameMetrics::setMatchFps(Int fps) {
+ m_matchFps = fps;
+ init();
+}
+
void FrameMetrics::doPerFrameMetrics(UnsignedInt frame) {
// Do the measurement of the fps.
//
@@ -144,8 +152,8 @@ void FrameMetrics::doPerFrameMetrics(UnsignedInt frame) {
if (busyMS < windowMS / 4)
busyMS = windowMS / 4;
Real logicFps = FrameMetrics_logicFpsSample(frame, m_fpsStartingFrame, busyMS);
- if (logicFps > (Real)TheGlobalData->m_framesPerSecondLimit)
- logicFps = (Real)TheGlobalData->m_framesPerSecondLimit;
+ if (logicFps > (Real)m_matchFps)
+ logicFps = (Real)m_matchFps;
m_fpsStallMS = 0;
m_averageFps -= ((m_fpsList[m_fpsListIndex])) / TheGlobalData->m_networkFPSHistoryLength; // subtract out the old value from the average.
m_fpsList[m_fpsListIndex] = logicFps;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp
index ac1f49e33..908928c78 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp
@@ -407,6 +407,7 @@ void GameInfo::reset( void )
m_incomeSharing = INCOME_SHARING_OFF;
m_techRespawn = 0;
m_supplyPileLimit = 0;
+ m_turbo = FALSE;
//
@@ -1205,6 +1206,9 @@ static AsciiString buildGameInfoAsciiString( const GameInfo *game, const AsciiSt
game->getStartingCash().countMoney(), game->oldFactionsOnly() ? 'Y' : 'N', game->getPeaceTime(),
game->getUnitLimit() ? 1 : 0, game->getProRules() ? 1 : 0, game->getIncomeSharing(), game->getTechRespawn(),
game->getSupplyPileLimit() );
+ // written only when on, so a normal-speed game's string is the one it always was
+ if (game->getTurbo())
+ optionsString.concat("TB=1;");
//add player info for each slot
optionsString.concat(slotListID);
@@ -1285,6 +1289,7 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)
Int incomeSharing = INCOME_SHARING_OFF; // the same
Int techRespawn = 0; // the same
Int supplyPileLimit = 0; // the same
+ Bool turbo = FALSE; // the same
Bool sawMap, sawMapCRC, sawMapSize, sawSeed, sawSlotlist, sawUseStats, sawSuperweaponRestriction, sawStartingCash, sawOldFactions;
sawMap = sawMapCRC = sawMapSize = sawSeed = sawSlotlist = sawUseStats = sawSuperweaponRestriction = sawStartingCash = sawOldFactions = FALSE;
@@ -1410,6 +1415,10 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)
else if (key.compare("PL") == 0 )
{
supplyPileLimit = atoi(val.str());
+ }
+ else if (key.compare("TB") == 0 )
+ {
+ turbo = atoi(val.str()) != 0;
}
else if (key.getLength() == 1 && *key.str() == slotListID)
{
@@ -1762,6 +1771,7 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)
game->setIncomeSharing( incomeSharing );
game->setTechRespawn( techRespawn );
game->setSupplyPileLimit( supplyPileLimit );
+ game->setTurbo( turbo );
return true;
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/StagingRoomGameInfo.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/StagingRoomGameInfo.cpp
index 251402073..4688b5d13 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/StagingRoomGameInfo.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameSpy/StagingRoomGameInfo.cpp
@@ -30,6 +30,7 @@
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
+#include "Common/GameEngine.h"
#include "Common/GameState.h"
#include "Common/Player.h"
#include "Common/PlayerList.h"
@@ -877,6 +878,9 @@ void GameSpyStagingRoom::launchGame( void )
// send a message to the logic for a new game
GameMessage *msg = TheMessageStream->appendMessage( GameMessage::MSG_NEW_GAME );
msg->appendIntegerArgument(GAME_INTERNET);
+ msg->appendIntegerArgument(DIFFICULTY_NORMAL); // not used; there so the speed can go last
+ msg->appendIntegerArgument(0);
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(getTurbo()));
TheWritableGlobalData->m_useFpsLimit = false;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
index 2571bb1ad..2a9be663d 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp
@@ -281,6 +281,7 @@ Bool LANAPI::StartAutomatedGame( AsciiString mapName, Int seed, const UnsignedIn
game->setIncomeSharing( TheGlobalData->m_incomeSharing );
game->setTechRespawn( TheGlobalData->m_techRespawn );
game->setSupplyPileLimit( TheGlobalData->m_supplyPileLimit );
+ game->setTurbo( TheGlobalData->m_turboMatch );
game->setIsDirectConnect( FALSE );
game->setLastHeard( Clock_Milliseconds() );
game->setLocalIP( m_localIP );
@@ -321,6 +322,9 @@ Bool LANAPI::StartAutomatedGame( AsciiString mapName, Int seed, const UnsignedIn
GameMessage *msg = TheMessageStream->appendMessage( GameMessage::MSG_NEW_GAME );
msg->appendIntegerArgument( GAME_LAN );
+ msg->appendIntegerArgument( DIFFICULTY_NORMAL ); // not used; there so the speed can go last
+ msg->appendIntegerArgument( 0 );
+ msg->appendIntegerArgument( GameEngine_matchFramesPerSecond( m_currentGame->getTurbo() ) );
InitRandom( seed );
@@ -361,6 +365,7 @@ void LANAPI::OnGameStart( void )
pref.setInt( "IncomeSharing", m_currentGame->getIncomeSharing() );
pref.setInt( "TechRespawn", m_currentGame->getTechRespawn() );
pref.setInt( "SupplyPileLimit", m_currentGame->getSupplyPileLimit() );
+ pref.setInt( "TurboMode", m_currentGame->getTurbo() ? 1 : 0 );
pref.setStartingCash( m_currentGame->getStartingCash() );
}
pref.write();
@@ -417,6 +422,9 @@ void LANAPI::OnGameStart( void )
// send a message to the logic for a new game
GameMessage *msg = TheMessageStream->appendMessage( GameMessage::MSG_NEW_GAME );
msg->appendIntegerArgument(GAME_LAN);
+ msg->appendIntegerArgument(DIFFICULTY_NORMAL); // not used; there so the speed can go last
+ msg->appendIntegerArgument(0);
+ msg->appendIntegerArgument(GameEngine_matchFramesPerSecond(m_currentGame->getTurbo()));
TheWritableGlobalData->m_useFpsLimit = false;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
index 5c5c6f909..af186e747 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
@@ -424,6 +424,8 @@ void Network::parseUserList( const GameInfo *game )
}
m_conMgr->parseUserList(game);
+ // run at the game's speed, turbo mode included, until the router's first run-ahead command
+ m_frameRate = m_conMgr->getMatchFps();
// Now that we have the players in this game, we need to reset the FrameData stuff.
m_conMgr->destroyGameMessages();
@@ -837,8 +839,9 @@ Bool Network::timeForNewFrame() {
only ever ran one; a slow picture then lost the frames it owed and the whole room slowed
down to its rate. The count comes from the game speed and not from the room's rate: tied
to the room, a room that slowed down could pay back less and slowed down further, and a
- 250ms picture took two machines from 30 frames a second to 4. */
- if ((m_nextFrameTime + (GameEngine_logicCatchupMaxFrames(TheGlobalData->m_framesPerSecondLimit) * frameDelay)) < curTime) {
+ 250ms picture took two machines from 30 frames a second to 4. The game speed is the
+ match's, turbo mode included, read from the game options in parseUserList. */
+ if ((m_nextFrameTime + (GameEngine_logicCatchupMaxFrames(m_conMgr->getMatchFps()) * frameDelay)) < curTime) {
// If we get too far behind on our framerate we need to reset the nextFrameTime thing.
m_nextFrameTime = curTime;
// DEBUG_LOG(("Initializing m_nextFrameTime to %I64d\n", m_nextFrameTime));
diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cpp
index dff358c20..aa83c09f3 100644
--- a/GeneralsMD/Code/Tests/test_gameengine.cpp
+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp
@@ -4628,16 +4628,43 @@ TEST(controlbar_seconds_round_up_and_never_reach_zero_early)
CHECK_EQ( ControlBar_secondsFromFrames( 1.0f ), 1 );
}
-TEST(player_game_speed_is_half_to_normal)
-{
- /* A skirmish or mission runs from half speed to normal and never faster: the menu, the console,
- a saved game and a map script all clamp to this. An old x2 preference or save comes back at x1. */
- CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 2 ), LOGICFRAMES_PER_SECOND );
- CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 3 / 2 ), LOGICFRAMES_PER_SECOND );
+TEST(player_game_speed_is_normal_or_turbo)
+{
+ /* A match someone plays runs at normal speed or in turbo mode at twice that, nothing between: a
+ saved game and the console land on the nearer one, so a save from the old half-speed settings
+ comes back at normal. */
+ CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 3 ), LOGICFRAMES_PER_SECOND * 2 );
+ CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 2 ), LOGICFRAMES_PER_SECOND * 2 );
+ CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 3 / 2 ), LOGICFRAMES_PER_SECOND * 2 );
CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND ), LOGICFRAMES_PER_SECOND );
- CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND * 3 / 4 ), LOGICFRAMES_PER_SECOND * 3 / 4 );
- CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND / 2 ), LOGICFRAMES_PER_SECOND / 2 );
- CHECK_EQ( ClampPlayerGameSpeed( ConvertRetailFrames( 5 ) ), LOGICFRAMES_PER_SECOND / 2 );
+ CHECK_EQ( ClampPlayerGameSpeed( LOGICFRAMES_PER_SECOND / 2 ), LOGICFRAMES_PER_SECOND );
+ CHECK_EQ( ClampPlayerGameSpeed( ConvertRetailFrames( 5 ) ), LOGICFRAMES_PER_SECOND );
+}
+
+TEST(match_speed_is_frames_per_second_limit_doubled_by_turbo)
+{
+ /* Every MSG_NEW_GAME a player starts passes this: GameData.ini's normal speed, or -fps for a test,
+ twice that in turbo mode, inside the 1..1000 MSG_NEW_GAME takes. */
+ GlobalData *saved = TheWritableGlobalData;
+ TheWritableGlobalData = NEW GlobalData;
+
+ TheWritableGlobalData->m_framesPerSecondLimit = LOGICFRAMES_PER_SECOND;
+ CHECK_EQ( GameEngine_matchFramesPerSecond( FALSE ), LOGICFRAMES_PER_SECOND );
+ CHECK_EQ( GameEngine_matchFramesPerSecond( TRUE ), LOGICFRAMES_PER_SECOND * 2 );
+ TheWritableGlobalData->m_framesPerSecondLimit = 0; // no FramesPerSecondLimit at all
+ CHECK_EQ( GameEngine_matchFramesPerSecond( TRUE ), LOGICFRAMES_PER_SECOND * 2 );
+ TheWritableGlobalData->m_framesPerSecondLimit = 800;
+ CHECK_EQ( GameEngine_matchFramesPerSecond( TRUE ), 1000 );
+
+ SkirmishGameInfo game;
+ game.init();
+ CHECK( !game.getTurbo() );
+ game.setTurbo( TRUE );
+ game.reset();
+ CHECK( !game.getTurbo() );
+
+ delete TheWritableGlobalData;
+ TheWritableGlobalData = saved;
}
TEST(controlbar_seconds_are_real_seconds_at_the_current_game_speed)
diff --git a/GeneralsMD/Code/Tools/lobbyroom_layout.py b/GeneralsMD/Code/Tools/lobbyroom_layout.py
index 8d27c9b4d..38922ef07 100644
--- a/GeneralsMD/Code/Tools/lobbyroom_layout.py
+++ b/GeneralsMD/Code/Tools/lobbyroom_layout.py
@@ -92,7 +92,7 @@ LAN_COLUMNS = [
SKIRMISH_SETTINGS = [
(96, 152, [("StartingCashLabel", "ComboBoxStartingCash"), ("LabelSuperweapons", "ComboBoxSuperweapons"),
("LabelIncomeSharing", "ComboBoxIncomeSharing"), ("LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")]),
- (88, 112, [("LabelGameSpeed", "ComboBoxGameSpeed"), ("CheckBoxUnitLimit",),
+ (88, 112, [("CheckBoxTurbo",), ("CheckBoxUnitLimit",),
("LabelTechRespawn", "ComboBoxTechRespawn")]),
]
# The skirmish page is 108 high and the pile limit is its fourth row: 26 apart from 4 under the page
@@ -106,8 +106,13 @@ LAN_SETTINGS = [
("LabelTechRespawn", "ComboBoxTechRespawn")]),
(96, 152, [("LabelPeaceTime", "ComboBoxPeaceTime"), ("LabelIncomeSharing", "ComboBoxIncomeSharing"),
("LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")]),
- (0, 128, [("CheckBoxProRules",), ("CheckBoxUnitLimit",)]),
+ (0, 128, [("CheckBoxProRules",), ("CheckBoxUnitLimit",), ("CheckBoxTurbo",)]),
]
+
+# Turbo mode replaced the skirmish room's game speed dropdown: a box cloned from the unit limit's,
+# which every room has, so it inherits that box's art and lettering.
+TURBO_BOX = ("CheckBoxTurbo", "GUI:TurboMode", "TOOLTIP:TurboMode")
+GAME_SPEED_DROPDOWN = ("LabelGameSpeed", "ComboBoxGameSpeed")
LAN_SETTING_ROW_PITCH = 28
LAN_SETTING_TOP_PADDING = 4
@@ -136,6 +141,26 @@ def need(layout, name):
return window
+def add_turbo_box(layout):
+ """Clone the unit limit box into the turbo box beside it, once; a second run finds it there."""
+ name, text, tooltip = TURBO_BOX
+ if layout.find(name) is not None:
+ return
+ unit_limit = need(layout, "CheckBoxUnitLimit")
+ prefix = unit_limit.name.split(":")[0]
+ box = wndlayout.clone(unit_limit, "%s:%s" % (prefix, name))
+ box.put_prop("TEXT", '"%s"' % text)
+ box.put_prop("TOOLTIPTEXT", '"%s"' % tooltip)
+ layout.root.parent_of(unit_limit).children.append(box)
+
+
+def drop_game_speed_dropdown(layout):
+ for name in GAME_SPEED_DROPDOWN:
+ window = layout.find(name)
+ if window is not None:
+ layout.root.parent_of(window).children.remove(window)
+
+
def left_align(window):
if window.prop("STATICTEXTDATA") is not None:
window.set_prop("STATICTEXTDATA", "CENTERED: 0")
@@ -248,6 +273,8 @@ def build_skirmish(layout):
page_height = PAGE_BOTTOM - PAGE_TOP
for window in (info_frame, need(layout, "ListboxInfo"), need(layout, "PageLobbySettings")):
window.place(INNER_LEFT, PAGE_TOP, SEAT_RIGHT - INNER_LEFT, page_height)
+ drop_game_speed_dropdown(layout)
+ add_turbo_box(layout)
place_settings(layout, SKIRMISH_SETTINGS, INNER_LEFT, SEAT_RIGHT, PAGE_TOP, PAGE_BOTTOM,
SKIRMISH_SETTING_ROW_PITCH, SKIRMISH_SETTING_TOP_PADDING)
@@ -276,6 +303,7 @@ def build_lan(layout):
need(layout, "PageLobbySettings").place(INNER_LEFT, PAGE_TOP, chat_width, listbox_height)
need(layout, "TextEntryChat").place(INNER_LEFT, entry_top, chat_width - EMOTE_WIDTH - COLUMN_GAP, ROW_HEIGHT)
need(layout, "ButtonEmote").place(INNER_RIGHT - EMOTE_WIDTH, entry_top, EMOTE_WIDTH, ROW_HEIGHT)
+ add_turbo_box(layout)
place_settings(layout, LAN_SETTINGS, INNER_LEFT, INNER_RIGHT, PAGE_TOP, PAGE_TOP + listbox_height,
LAN_SETTING_ROW_PITCH, LAN_SETTING_TOP_PADDING)
return layout
diff --git a/GeneralsMD/Code/Tools/lobbysettings_layout.py b/GeneralsMD/Code/Tools/lobbysettings_layout.py
index 185db1027..765ddfa4e 100644
--- a/GeneralsMD/Code/Tools/lobbysettings_layout.py
+++ b/GeneralsMD/Code/Tools/lobbysettings_layout.py
@@ -124,7 +124,7 @@ SUPERWEAPON_CHECKBOX = ("CheckboxLimitSuperweapons", "CheckBoxLimitSuperweapons"
# The unit limit and Pro Rules check boxes were put on all three pages by hand after the pages were
# generated, so build() does not make them; the selfcheck still wants them on every page, because the
# menu code names them and a missing control is as silent as the rest.
-HAND_PLACED_CHECKBOXES = ("CheckBoxUnitLimit", "CheckBoxProRules")
+HAND_PLACED_CHECKBOXES = ("CheckBoxUnitLimit", "CheckBoxProRules", "CheckBoxTurbo")
# Income sharing, tech building respawn and the supply pile limit went on all three pages by hand
# the same way.
@@ -132,8 +132,10 @@ HAND_PLACED_COMBOS = ("LabelIncomeSharing", "ComboBoxIncomeSharing", "LabelTechR
"LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")
# What build() moves out of EA's skirmish layout and a later hand edit replaced: the game speed
-# slider and its number became one dropdown in the slider's place. None is gone without a successor.
-REPLACED_BY_HAND = {"SliderGameSpeed": "ComboBoxGameSpeed", "StaticTextGameSpeed": None}
+# slider and its number became one dropdown, and the dropdown and its label became the turbo mode box
+# (lobbyroom_layout.py, which also clones that box into the LAN room; the online room's was placed by
+# hand). None is gone without a successor.
+REPLACED_BY_HAND = {"SliderGameSpeed": "CheckBoxTurbo", "StaticTextGameSpeed": None, "LabelGameSpeed": None}
# Pro Rules are for people playing each other, so the skirmish page lost its box again for v1.0.0 and
# the selfcheck wants it gone there rather than present.
@@ -176,6 +178,8 @@ STRINGS = [
"TOOLTIP:SupplyPileLimit",
"GUI:SupplyPileLimitOff",
"GUI:SupplyPileLimitFormat",
+ "GUI:TurboMode",
+ "TOOLTIP:TurboMode",
]
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index 1db7e9190..b6b73fa70 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -219,6 +219,7 @@ NEW_CONTROLS = [
(COMBO, "ComboBoxHealthBarColors", None),
(LABEL, "LabelMenuTransitionSpeed", "GUI:MenuTransitionSpeed"),
(SLIDER, "SliderMenuTransitionSpeed", None),
+ (CHECK, "CheckTurboModeMissions", "GUI:TurboModeMissions"),
]
# EA's check boxes that shipped HIDDEN off the panel's right edge with working code behind them in
@@ -393,6 +394,8 @@ GROUP_LAYOUT = [
("check", "CheckNetBox")]),
("GUI:OptionsGroupMenus", [
setting("LabelMenuTransitionSpeed", "SliderMenuTransitionSpeed", "ValueMenuTransitionSpeed")]),
+ ("GUI:OptionsGroupSpeed", [
+ ("check", "CheckTurboModeMissions")]),
("GUI:OptionsGroupBattlefield", [
setting("LabelHealthBars", "ComboBoxHealthBars"),
setting("LabelHealthBarColors", "ComboBoxHealthBarColors"),