Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(data): map lists hold 4096 maps instead of 100 or 300
Olcay Seygan1d997c1acf36
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2eae19e8e..7fd6afe05 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -70,6 +70,7 @@ found and fixed — EA's own, not port damage.**- The personality column lost its heading. A computer's row shows its level and its personality side by side; a player's row, and an open or closed seat, gives the name box the personality's room as well, so long names fit and no empty gap sits in the middle of the row.- The record and the map list stay on top of the seats. Once you had picked an army, colour or team, those boxes drew over the open record; and the seat rows, their colour boxes and the personality list showed through the map list. The whole seat table now steps aside while the map list is open, in the skirmish, LAN and online rooms alike, and comes back as it was. The record's Close button closes it; it did nothing before.- Select Map swaps the seat table for the map list instead of laying a small 4:3 window across the room. The list fills the seat table's whole panel under Official and Unofficial tabs in the room's own blue-framed style; its preview stands exactly where the room's map stands, and Accept and Cancel take the row of the map's name and Select Map. The map column and the match rules beside it keep their size and place.+- The map list shows every map in your Maps folder. EA's list stopped at 100 maps in a LAN or online room and 300 in skirmish, and since it fills two-player maps first, a folder of a couple of thousand downloaded maps never got as far as the six- and eight-player ones in a network game. It holds 4096 now.- The colour and team swatches sit in the middle of their boxes, with the same dark border on all four sides. The colour used to sit two pixels low, over the box's bottom edge, with a dark band along the top only.- The three rooms wear the same frame as the loading and score screens that follow them: the score screen's blue ruler and grid around the edge of the screen, with the panel sitting on its bright line. The LAN and online panels get the blue edge the skirmish one had, under the same blue rule; the seat rows sit on the panel's black in that blue; the colour bar is a little wider. Record and Close are in capitals like every other button, the record's heading is lettered green, and the darker names in the colour list are lifted toward white so they read on black, the way the score screen lifts them.- The menus no longer make you sit through their animations. A click or a key while buttons are still sliding or flashing in puts them where they were going, and the click counts: Solo Play pressed while the main menu is still coming up opens its list straight away, where it used to be ignored. A screen on its way out goes the moment you press anything, so Skirmish then a click reaches the skirmish room in about 100ms instead of half a second, and Back to the main menu in 10ms instead of 380.diff --git a/GeneralsMD/Code/Data/Window/Menus/LanMapSelectMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/LanMapSelectMenu.wndindex 14e01e39a..226e08928 100644--- a/GeneralsMD/Code/Data/Window/Menus/LanMapSelectMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/LanMapSelectMenu.wnd@@ -174,7 +174,7 @@ WINDOWIMAGE: 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;- LISTBOXDATA = LENGTH: 100,+ LISTBOXDATA = LENGTH: 4096,AUTOSCROLL: 0,SCROLLIFATEND: 0,AUTOPURGE: 0,diff --git a/GeneralsMD/Code/Data/Window/Menus/SkirmishMapSelectMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/SkirmishMapSelectMenu.wndindex eab43bd20..e1afbf84e 100644--- a/GeneralsMD/Code/Data/Window/Menus/SkirmishMapSelectMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/SkirmishMapSelectMenu.wnd@@ -174,7 +174,7 @@ WINDOWIMAGE: 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;- LISTBOXDATA = LENGTH: 300,+ LISTBOXDATA = LENGTH: 4096,AUTOSCROLL: 0,SCROLLIFATEND: 0,AUTOPURGE: 0,diff --git a/GeneralsMD/Code/Data/Window/Menus/WOLMapSelectMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/WOLMapSelectMenu.wndindex 1331f4fe9..af0cd6466 100644--- a/GeneralsMD/Code/Data/Window/Menus/WOLMapSelectMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/WOLMapSelectMenu.wnd@@ -128,7 +128,7 @@ WINDOWIMAGE: 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;- LISTBOXDATA = LENGTH: 100,+ LISTBOXDATA = LENGTH: 4096,AUTOSCROLL: 0,SCROLLIFATEND: 0,AUTOPURGE: 0,diff --git a/GeneralsMD/Code/Tools/mapselect_layout.py b/GeneralsMD/Code/Tools/mapselect_layout.pyindex af5400b23..cbc7ab694 100644--- a/GeneralsMD/Code/Tools/mapselect_layout.py+++ b/GeneralsMD/Code/Tools/mapselect_layout.py@@ -28,6 +28,7 @@ Run by CTest as mapselect_selfcheck. Layouts are not in the multiplayer INI chec"""import os+import reimport sysimport wndlayout@@ -47,6 +48,7 @@ NAMED = ["ButtonOK", "ButtonBack", "ListboxMap", "RadioButtonSystemMaps", "RadioPADDING = 12TITLE_HEIGHT = 32TAB_HEIGHT = 36+MAP_ROWS = 4096def box(window):@@ -106,7 +108,12 @@ def build(layout, room_layout):room.need(layout, "RadioButtonUserMaps").place(inner_left + inner_width - tab_width, tab_top, tab_width, TAB_HEIGHT)list_top = tab_top + TAB_HEIGHT + room.GAP- room.need(layout, "ListboxMap").place(inner_left, list_top, inner_width, top + height - PADDING - list_top)+ listbox = room.need(layout, "ListboxMap")+ listbox.place(inner_left, list_top, inner_width, top + height - PADDING - list_top)+ # EA's 100 rows (300 in skirmish) with AUTOPURGE 0 dropped every map past them without a word;+ # the list fills 2-player maps first, so a big Maps folder lost every 6 to 8 player map+ at = listbox.prop_index("LISTBOXDATA")+ listbox.props[at] = re.sub(r"LENGTH: \d+", "LENGTH: %d" % MAP_ROWS, listbox.props[at])map_window = room.need(layout, "WinMapPreview")map_window.place(*preview)