Code:

Darkest Hour 1.04 (Changes since patch 1.04 RC1) Engine changes: Fixed 1.04 RC1 bugs - Fixed CTD on pressing "Goto" button on the message when someone joins player’s alliance. This will now properly center map over the capital province of the other country. [CTD is introduced by 1.04 RC1, but the button never worked properly] - Fixed issue with canceling of missions of player controlled units in some situations. Only these missions will be canceled now: - Naval port strike when the fleet has no CV/CVL or any other ships with CAGs left in the fleet - Naval airbase strike when the fleet has no CV/CVL or any other ships with CAGs left in the fleet - Amphibious assault when there is no transport ships left in the fleet - Naval transport when there is no transport ships left in the fleet - Airborne assault when there are no air units loaded with paratrooper - Air supply when there are no air units with transport capacity - Fixed memory corruption/crash issue when long mod name is used - Fixed issue with human controlled land units no longer retreating to transport ships at sea when defeated in land combat. - Fixed game hang on annexation by event of alliance leader by an ally or puppet master by a puppet. - Fixed bug with empty missions menu (on click on unit plate's mission area) for scenarios with disabled provinces. Fixed bugs - Fixed "Goto" button on "New leader" message to center map over player’s capital province. - Fixed strategic redeployment of rockets to be issued immediately after the command instead on the next hour. - Fixed issue with AI trying always to retreat when attacked while not bordering at least one friendly province (like after successful amphibious invasion). - Fixed CTD on Intelligence page when custom unit types are into the redeployment pool of a country. 1.03 bug - Fixed issues with \gfx\map\defense.bmp usage (on counters) in the engine preventing it from displaying properly. It is used when the unit is involved in combat in its current province. - Fixed issue with attack arrow (\gfx\map\direction_counter_battle.bmp) used improperly on counters when the unit is attacked in its current province while moving to another province with no enemy units there. - Fixed displaying issue with overlapping counters for retreating and defending units in the same province. These are properly stacked together now. - Fixed arrow color from blue (move) to red (attack) for units that go to friendly province through enemy controlled provinces. - Fixed invalid model name on message for completed brigade from upgraded serial line. - Fixed a bug with dummy "(null)-1" brigade appearing at redeployment pool in some cases after detaching of brigades from units (ex. From unit with 2 brigades detach the second and then the first in that order). 1.02 bug - Fixed issue with multiple win combat messages when own and military controlled units participated in the combat. Improved non-working 1.03 fix for the same problem - Fixed issue with incorrect MP value returned to MP pool for sold units in some cases. - Implemented MP cost for receiving country for bought units. - Fixed calculation of MP value returned to MP pool on disbanding of units with attached brigades when the unit is not at full strength. Now returned MP equals the MP that will be gained for the unit and for all brigades if detached and disbanded separately. Country specific changes to MP requirements for disbanded unit/brigades are properly accounted too. - Fixed bug with free_xxxx commands (free_transport, free_escort, free_supplies, free_oil, free_ic, free_manpower, free_energy, free_money, free_metal, free_rare_materials) causing data corruption when used with some values. - Added support for month names in "month" trigger as suggested by trigger documentation (only month numbers 0-11 were valid before). Added error checking for both month names and numbers. - Fixed typo in error message about valid AI construction settings (used at_war and not_at_war instead of the proper atwar and not_atwar on the error message). 1.03 Bug - Fixed tooltip for control trigger when no data setting is specified. New features - Removed fixed event picture height (116 pixels) on styles 1 and 2 to allow pictures of any height to be used on events. - Removed fixed event header height (48 pixels) on style 2 to allow headers of any height to be used on events. - "Goto" button on messages about events in provinces set to switch game state to map view automatically (map is centered over the province in question). - Improved logic for evaluation of valid for release countries. Better handling of new vs. old (when no min or min_extra used) release modes. - Added retreat arrow to counters (\gfx\map\direction_counter_retreat.bmp) to be used instead of moving arrow for retreating units. - Disabled AI land units retreat to ships as this fails and the unit is instantly destroyed instead. Workaround for AI issue/limitation. - Removed redundant read of all leader pictures for player’s country on game start. The fix should speed up game start a bit. - Suppressed repair of buildings and resources in provinces with active land combats. - Disallowed building of coastal forts (used only to repel amphibious invasions) to provinces with no beach. - Added 3 new country settings (columns) to db\country.csv: NOTE: Mods that use own version of that file must update it! - Model Nationality - use model pictures for the tag specified in this column. When no new TAG is specified, use current TAG - Icon Nationality – use model icons for the tag specified in this column. When no new TAG is specified, use current TAG - Model Names – use model names from the tag specified in this column. When no new TAG is specified, use current TAG Improved Error Logs - Check and report for missing tech component name definition when extra debug logs are enabled (settings.cfg). - Added check and report for images bit depths other then 1, 8, 16 and 24 when extra debug logs are enabled (settings.cfg). - Improved error checking for defined in scenarios province buildings when extra debug logs are enabled (settings.cfg): - report when buildings are set to non-land provinces - report when naval base is set to province with no port allowed - report when coastal fort is set to province with no beach - report when buildings are set to ignored provinces (battle scenarios) Modding Documentation Changes - Updated event commands.txt with some missing land unit modifiers and mission names. Translation and Text Changes - Corrected all languages for TECH_APP_INDUSTRY_326_NAME and SHORT_TECH_APP_INDUSTRY_326_NAME. - Updated unitnames for HUN and U13. - Fixed wrong German translation for 'Tripartite Pact'. - Corrected tech names for current armored frigate and armored cruiser models. - Fixed incorrect transliteration for Bulgarian leaders, ministers and tech teams. - Fixed airnames.csv entries for BUL to historical (WWII - at the start, WWI - at the bottom) and grammatically correct ones (in the middle). - Fixed airnames.csv entries for U29 (commie BUL) grammatically correct ones (and semi-historical) - Fixed armynames.csv entries for BUL and U29 to grammatically correct ones - Fixed navynames.csv entries for BUL and U29 to grammatically correct ones. - Fixed unitnames.csv entries for BUL and U29 to grammatically correct ones. - Fixed unitnames.csv entries for BUL and U29 to historically correct INF/GAR/MIL names - Fixed Derfflinger class name (GER and U08). - Massive corrections and improvements in English texts (made by Lucifer). - Fixed invalid encoding (UTF-8 -> ANSI) of some leader, minister and tech team files (DH Full). - Fixed typos in A-H and GER ship names. Event Changes Darkest Hour Full - When Syria and Lebanon join Free France, Free France gets cores on their province (then changed back to claims upon Liberation of France). - Fixed a few issues with Chinese surrender to Japan and land distribution to Japanese puppets. - Japan can now choose to Pressure Germany over Manchukuo even if it decided to expand northward; moreover the Recognition of Manchukuo now no longer recalls Von Falkenhausen and no longer ends the Sino-German cooperation in case Japan decided to expand northward. - Corrected a few issues in events of Northern Strike path. - Modified event 2181008 (CHI Soviets Ignore our Demands) so that if Japan decided to expand northwards, now CHI AI has a 50% chance of declaring war on SOV. - Corrected effects of event 2003019 GER Fall Attila. - Surrender event for Japan (Fading Sun) now sleeps future CHI-JAP war events. - Corrected WW2 peace events between Finland and Soviet Union so that all russian provinces are given back to SOV. - Corrected state (active/slept) of some minister/leader/TT upon French surrender to Germany. - Corrected effects of event 2007047 (SOV Great Patriotic War). - Corrected effects of event 2002009 FRA "What colonies for Free France?". - Fixed wrong HoS and HoG for U87 in event 3011059. - Changed effects of decision 2003143 (GER Issue MEFO Bills). - Fixed issue with Korea and events related to Surrender of Japan. - Corrected trigger of 2003102 (GER Generaloberst Kurt von Hammerstein-Equord dies!). - Corrected trigger of one action of "Global peace treaty in Europe" event. - When England surrenders, now troops change allegiance. - Improved event "Vlassov defects" that now involves Zverev and Budyho too. - Modified event 2012005 (CHI China defeats Japan and Korea is freed) so that capital is moved to Nanjing - Modified event 2003118 (GER Announce claims on Greece) to add claims on 365 (Thessaloniki), 366 (Kovani) and 370 (Alexandroupoli). - Improved event 2052010 (SPR Spanish Civil War - Victory) to sleep foreign leaders. - Corrected handling of German leaders in SPA. - Added claims to England in events "England surrenders". - Changed "Churchill becomes PM" event pic (instead of generic). - Capital nuked - Aftermath events now check if the new capital has been not nuked already. - Corrected date and effect of POL event 2013005 (Wladyslaw Sikorski passes away) + added new event 2001096 (ENG Wladyslaw Sikorski and Tadeusz Klimecki die in Gibraltar B-24 crash). - Fading Sun event now takes into consideration a Korea already liberated by Chinese. - Reworked triggers and effects of OTT surrender events. - Waked all U08 slept leaders and ministers in event #2191583 (The military mission to the Ottoman Empire returns home). AI Changes Darkest Hour Full - Changed build priorities of BUL, HUN, ROM (air -7%, land +7%). - Japanese AI now properly garrisons Shanghai province before the war with China. - Removed Suez as invasion target in various AI files, added Port Said instead. - AI JAP should acquire military control over SIA and French Indochina to ensure that JAP AI will be the front leader in SE Asia (and won't release China-Nanjing before Chinese surrender). - Fixed invalid Alexandria province ID (790 instead of 789) in many ENG AI files. Scenarios Changes Darkest Hour Full - Corrected SOV Chief of Air Force in 1939-1945 scenarios. - Corrected land doctrines blueprints of Germany in 1933 scenario. - Added missing tech to list of known techs of RSI in 1944.12 scenario. - Adding ship assembly line to USA's starting techs in 1941 scenario. - Corrected unit names for Hungary in 1933-1945 scenarios. - Corrected air unit level for Hungary in 1936-1945 scenarios. - Corrections to Bulgarian, Hungarian, Romanian and Japanese starting cabinets (thanks to eeeex). - Corrected HoS of Nat. China in 1944.06 and 1944.12 scenario. - Added Serbian client state in 1944.06 scenario. - In 1914 scenario, removed a few airbases from Ottomans and added a few to Russia. - Fixed invalid attachments (AA and Art) to GER/ENG Motorized units in 1944.12 scenario - Moved 2 VPs in NEI: Bengkulu -> Palembang and Hollandia -> Balikpapan. - Improved air, naval base, IC and AA distribution for provinces Dobrich, Sofia and Constanza in all scenarios (port, air base and AA moved from Dobrich to Constanza, added air base to Sofia where it was missing; added IC to some provinces in Bulgaria to match progress between scenarios). - In 1914 scenario, created UK fleet New Zealand Station, with missing cruiser Psyche, plus HMS Pyramus from China Station. - Various corrections to 1914 and 1936 Japan OOB. - Corrected Canadian Chief of Staff/Army/Navy/Air Force in all scenarios. - Corrected known Japanese techs in 1933 scenario. - Corrected dormant_leaders list for U08 in 1914. - Removed MA of Iraq to ENG in 1933 and 1936 scenarios to prevent IRQ troops to move to ENG provinces before entering the Allies. - Corrected sliders of Greece in 1939 and 1940 scenarios. - Added missing WW1 Land Doctrines for some countries (thanks to Treeplace). - Corrected German claims on Balkans in later scenarios. - Corrected Chief of navy of Iran in 1936-1941 scenarios. - Corrected Chief of Navy for France in 1933 and 1936 scenarios. - Added german monsun gruppe sub division to 1944.06 and 1944.12 scenario. - Updated models for HMS Hawkins, Frobisher, and Effingham in scenario files. - Updated UK ships deserving of Improved Armoured Cruiser model: Edinburghs, Warriors, Minotaurs. - Fixed "West Indies Squadron" starting location in 1914 scenario (HOL). - Updated all GER HQ models to level 1 (1914) in 1914 scenario as Ger has the required tech researched. - Added missing 1921 and 1926 INF and 1924 SUB techs to 1933 scenario Portugal to match existing OOB - Changed "NRP Vasco da Gama" model from CA-0 to CA-1 to match model with 1914 scenario - Various fixes to Australian bases, ports and beaches in all scenarios. - Fixed various invalid settings for buildings (mostly coastal fort on provinces with no beach) in all scenarios and tutorial. - Added missing BB USS Oregon to Pacific Fleet in 1914 scenario. - Added 1907 level techs for INF, MTN and CAV to OTT in 1914 scenario (to match models already in OOB). - Removed invalid national province from Senussi in 1914 scenario. Unit Changes - Reduced cost of CVE-1 to CVE-3 models to 0.8 to make those cost less ICdays then a CVL + LCAG brigade. - Changed MAR unit modifiers as follows: - Rain attack: -30 to -10 - Storm attack: -85 to -50 - Rain defense: -20 to -10 - Storm defense: -65 to -50 - Rain move: -18 to -15 - Storm move: -35 to -25 - Jungle move -30 to -25 - Swamp move: -20 to -15 - Changed amph_arm brigade modifiers as follows: - River attack: 0 to 10 - Shore attack: 0 to 10 - Changed Eng. brigade modifiers as follows: - Shore attack: 0 to 10 - Changed shore attack modifiers on some land brigades as follows: - Art: 0 to -15 - SP Art: 0 to -15 - SH Art: 0 to -15 - Gli. Art: 0 to -15 - TD: 0 to -10 - L. Arm.: 0 to -12 - M. Arm.: 0 to -13 - H. Arm.: 0 to -13 - SH Arm.: 0 to -13 - Gli. Arm.: 0 to -12 - CAV: 0 to -13 - AA: 0 to -3 - SP AA: 0 to -5 - AC: 0 to -5 Graphics Changes - Fixed counter_SLO.bmp in Core and removed its copy from Full (removed coat of arms from the flag to match the rest). - Moved the proper counter_bul.bmp from Full to Core. - Moved the proper counter_BUR.bmp from Full to Core. Darkest Hour Full Only - Replaced weird looking OTT topbar.bmp with the default one. - Fixed incorrect picture for Chen Gongbo as Minister of Armament. - Removed unused by the engine graphics file (direction_counter_defense.bmp). - Removed unused brigade and division model pictures from wrong folder in DH Core (proper location for those is \gfx\interface\models and all required files are already there). - Changed 1926 Infantry tech picture (thanks to bestmajor). - Added missing images for vietnamese leaders (thanks to bestmajor). - Removed VIC flags for France. - Fixed icon_FRA_Vic.bmp blue color. - Fixed icon_ETH_14.bmp color order and removed coat of arms. - Fixed icon_U05.bmp flag to match the rest. - Fixed icon_U58.bmp flag to match the rest. - Removed the unused counter_u01.bmp from DH Core. - Improved or fixed various issues with counters and icons (AFG, ANG, AUS, BEN, COL, DOM, FRA, GAB, GRE, HAI, HON, HUN, KOR, KUR, MOR, MON, NAM, NEP, PAR, PER, POL, RUS, UER, UAP, UCH, VIC, YUG, U06, U11, U12, U20, U51, U77). - Fixed POL flag and shield (removed coat of arms). - Fixed UKR flag and shield (removed coat of arms). - Fixed AZB flag (crescent size). - Fixed BHU flag (incorrect direction). - Fixed ETH_14 flag (incorrect color order and animation). - Fixed HON flag and shield (added blue stars). - Fixed IDC flag (sharper stripes). - Fixed MEN flag and shield (improved colors). - Fixed QUE flag and shield (improved colors). - Fixed PRI flag (fixed animation and improved color). - Fixed TRA flag (fixed animation). - Added missing pictures for 2 1914 BHU ministers. - Added missing images for some Albanian, American, Australian, Belgian, Brazilian, British, British Raj, Canadian, Chinese, Croatian, Czechoslovakian, Danish, Dutch East Indies, French, French Indochina, German, Greek, Haitian, Italian, Liberian, New Zealander, Romanian, South African, Soviet, Spanish, Swedish, Vietnamese, Yugoslavian ministers and leaders (thanks to bestmajor). Other DB Changes Darkest Hour Full - Corrected End Date and/or Retirement Date and/or dormant state of a few ministers and leaders (SOV, GER, USA). - Corrected End Date of TT 235013 Zhang Zuolin, set as 1929. - Fixed YUG and SER release in revolt.txt. - Corrections and improvements to Bulgarian, Hungarian, Romanian and Japanese ministers (thanks to eeeex). - Changed capital of U41 (Reichskommissariat Ukraine) from 617 Kiev to 244 Rowne. - Fixed invalid leader tags in congo.csv (U00 instead of CON) and U03.csv (FRA instead of U03) - Fixed picture name for 2 LBY ministers. - Removed Amiens province (#50) from Reichskommissariat Belgien-Nordfrankreich (U47) in revolt.txt. - Corrected name and years of CAN TT Vickers-Armstrong. - Correction of various issues with Japanese ministers (thanks to SushyS). - Removed research bonuses from Reichskommissar minister trait. - Renamed a few TTs of U20 (Finnish Democratic Republic). - Replaced picture for Frank Knox. - In revolt.txt, added claims on Dutch Caraibbean provinces to HOL and U10. - Changed CZE TT 120007 from Emil Janouska to Jaroslav Fajfr. - Corrected name and years of HUN TT 105010 (Andrбs Littay) + added new HUN TT 105018 (Ferenc Feketehalmy-Czeydner). - Corrected cores of MAN in revolt.txt - Correct name of Spanish minister/leader/TT Alfredo Kindelбn y Duany. - Added ministers to Iraq for 1914-1932 time period. - Removed invalid Night Flyer trait from 6 USA admirals (1914 scenario). - Fixed end and retirement dates of Yuan Shikai as L/M/TT. - Various corrections, improvements and additions to Brazilian, British, British Raj, Canadian, Chinese, Czechoslovakian, Danish, Dutch East Indies, French, French Indochina, German, Greek, Haitian, Hungarian, Japanese, Irish, Liberian, Mongolian, New Zealander, Pakistani, Portoguese, Slovakian, South African, Soviet, Spanish, Yugoslavian ministers and leaders (thanks to bestmajor). - Added 7 new Tech Teams to SOV. - Added "New leaders for 1914 Denmark" Mod (made by Melkor89). - Added "Siam 1914" Mod (made by Melkor89). Tech Changes - Tech 2810 Great War Anti-Air Artillery now requires 2800 Great War Static Anti-Air Artillery instead of 2450 Post Great War Static Anti-Air Artillery. - Tech 7230 Nuclear powered Submarine (year 1954) now requires 3690 Semi-Modern Submarine (year 1950) instead of 3700 Modern Submarine (year 1955). - Added missing tech components for some techs (Deep Logistic Organization etc.). - Changed year of tech 8050 "Convoy Sailing" from 1880 to 1890. - Changed Aerial Support naval tech to give position bonuses to SS/SSN. Moved CV/CVL/CVE position bonuses from Aerial Support to Ring Defense naval tech/naval doctrines tech. - Fixed wrong trigger (tech prerequisites) in the event (#3000025) enabling Air-to-Surface Missile (ASM) tech research. - Moved HQ model 1914 from 1917 tech (Centralized Control, 6660) to 1914 one (Strong Point, 6600). Map Changes - Removed zoomed-up islands from lightmap4.tbl as in DH 1.03. - Raised infra from 10 to 50, then allowed Port and set 2325 as Seazone for province 2130 St. John. - Corrected coordinate of Gyor (458) in both HOI2 and DH Maps. - Added metal production to canadese province 2129 (Sault Sainte Marie); - Corrected seazone of provinces 2131 (Moncton) and 1950 (Pensacola). - Fixed counter/sprite position of units in province 2405 (Bowers Island) - Added beach to Petropavlovsk (1184), port and beach to Gavan (1185) and port and beach to Nikolayevsk-on-Amur (1189). - Fixed a few bugs on higher zoom level for provinces Roberval, Val-d'Or, Montreal, Pembroke, Whitehorse. - Removed connection between Saarbrucken and Strasbourg. - Corrected name of province 1692 - Geraldton (Western Australia). - Fixed issues with ports, beaches and sea zones for Suez, Gibraltar, Balboa and provinces around these: - Gibraltar - changed sea province to Strait of Gibraltar - Cadiz (next to Gibraltar) - better location of port and beach icons - Port Said (north of Suez) - changed sea province from Suez Canal to Nile Delta, added beach, better location of port and beach icons - El Ghardaqah (south of Suez) - added beach and port, sea province set to Red Sea - Balboa (controlling Panama canal) - removed beach, sea province set properly to Panama Canal - Suez - removed beach, sea province set properly to Suez Canal - Sharm el Sheikh (east from Suez) - changed sea province from Suez Canal to Red Sea as it should be, properly placed port and beach icons - Bur Tawfiq - removed beach and sea province (Suez Canal) - redundant - San Jose de David (West of Panama Canal) - moved port, beach and sea province from Mosquito Coast (Caribbean Sea) to Gulf of Panama (Pacific Ocean) where these belong - Ciudad de Panama (East of Panama Canal) - moved port, beach and sea province from Panama Canal to Gulf of Darien to allow invasion and enter/leave port if Balboa is enemy controlled - Changed position of counter and sprite in Gulf of Panama to be closer to the strait for better visualization of fleet paths when moving through the canal from Caribbean Sea to the Pacific and vice versa. Main goals/solved issues of these changes: 1. Three strait controlling provinces (Balboa, Suez and Gibraltar) cannot be invaded by sea. 2. Surrounding provinces (Spain, Egypt, Panama) should be invaded instead. There are beaches added where those were missing to allow that. 3. Straits are used as sea provinces only for strait controlling provinces. - Added missing border between San Jose del Guaviare and Requena. - Moved provinces 2148 (Prince Rupert) and 2149 (Queen Charlotte) from Alaska area/region to British Columbia area and Western Canada region. - Fixed Belluno Province containing pixels from Venice. - Adjusted border between Sudbury and Pembroke. - Removed invalid border on lake north of Vorkuta. - Removed invalid border on Zoomlevel 1 in the Sea Zone adjacent to Shanghai Province. - Added missing Borders between Seazones on Zoomlevel 2&3 adjacent to Johor Bahru and Pakan Baharoe Provinces. - Fixed connections for prov 858 (Ulongue) as follows: - Restored connection for 4 impassable provinces - Set two of those as river connections