Warplanner

Updates

Updates and bug fixes are captured here as a permanent log for reference. This includes Warplanner and the extension project for GS/SOA. These are prefixed to distinguish the app:

WP: Warplanner
GS: GS/SOA
WC: World Crisis
ALL: Adds/fixes that apply to all game types

Change authors are as follows:

CG: Chris Goldfarb
RS: Randy Scheers
TS: Tim Schroeder

05/16/2025
TS: WC: Add 'Alpini' as a WC ground unit
TS: WC: Add 'Minefield' as a WC naval unit
TS: WC: Update WC named ships (speed, name, starting location)

05/13/2025
TS: WC: Add on-counter hit markers for generic, gunnery, and flotation
TS: WC: Add context menu support for hit markers
TS: WC: Factor in hit markers for automatic unit sorting
TS: WC: Only allow combining of factored units with same hit markers
TS: WC: Consider patrol status when copying and/or matching units

05/06/2025
TS: WC: Add color stripes to WC ships and TFs; alert unassigned Army Chart units
TS: WC: Add proper label (BB SQ, BC SQ, CA SQ, DD FL; XX for unknown contents) to TFs in WC
TS: WC: When closing Army Chart dialog, pop up an alert if units are left unassigned
TS: WC: When closing WC Task Force dialog, redraw owner's TFs
TS: WC: Optimizations and minification of save game file format
TS: WC: Update TF naming in World Crisis scenario template
TS: WC: A slew of additional helper functions to simplify future unit logic
CG: All: Framework updates

04/25/2025
TS: WC: Remove designation from [factorable] field artillery
TS: WC: Add graphic for heavy artillery, and always use orange shield
TS: WC: Update graphic for siege artillery, and always use red shield
TS: WC: For all three artillery types, use bullet as separator between strength and movement

04/25/2025
TS: ALL: Added generic Hit counters (right-click on map -> hex)
TS: ALL: Changed name of Damage marker to "Damage installation"
TS: WC: Add Flotation hit markers and Gunnery hit markers

02/16/2025
CG: WC: Enable ability for players to create World Crisis games
CG: ALL: Address special character issue

01/28/2025
RS: WC: Adjusted factorable settings for WC air units

01/28/2025
RS: WC: Double army dialog capacity
RS: WC: Add heavy bombers and mining

01/26/2025
RS: WC: Map fixes

01/25/2025
RS: WC: Many updates to World Crisis map and scenario

01/21/2025
CG: ALL: Additional user diagnostics

01/14/2025
CG: ALL: Additional error diagnostics

01/09/2025
CG: WC: Added battlecruiser support

01/06/2025
CG: WC: Add naval units back in; add zeppelins and other units
CG: WC: Include additional countries

12/23/2024
CG: ALL: Fix die roller history search ability

12/19/2024
CG: ALL: Fix for long mouse down in touch mode on land hex
CG: WC: Fix to include Army Chart dialog in "close all dialogs"

12/11/2024
CG: WC: Army chart support beta ready

12/11/2024
CG: WC: Multiple small fixes including correct flags in all dialogs
CG: WC: Armies chart dialog support, continued

12/10/2024
CG: WC: Prohibit heavy and siege artillery from splitting/combining

12/08/2024
CG: WC: Re-add infantry and replacements
CG: WC: Hide starting year/season options for newgame

12/06/2024
CG: WP: Fix newgame error

12/05/2024
CG: WP: Fix "send to taskforce" and "send to shipyard" from FP
CG: WC: Include official/accurate air counters
CG: WC: Fix dialog buttons for Germany and use correct German flag in buttons

12/04/2024
CG: WC: Include correct countries
CG: ALL: Fix for new unit dialog to show correct countries given game
CG: ALL: Fix for password prompt to remove quick flash of secret area

10/23/2024
CG: WP: Update server code (please let me know if you see any issues)
CG: GS: Too much to list. Closing out on final (Crisis) phase

6/18/2024
TS: WP: Add the "Simplified" AWAW scenario to the new game dialog
TS: WP: Fix a few incorrect unit designations (ex: French 2x3 should be CAC, not GAC)

6/17/2024
CG: WP: Updated maps. These have better resolution than the previous maps, with clearer text

6/15/2024
TS: WP: Standardized unit operations terminology and updated function names to reflect these changes
TS: WP: Removed AAS consolidation logic from combineUnit() and combineAllUnits(), treating AAS like other units
TS: WP: Added full support for AVG, ATR, and Jet squadrons, including their consolidation and conversion
TS: WP: Rewrote canConsolidateAas() to canConsolidateSquadrons() to support multiple squadron types and enforce consolidation in multiples of three
TS: WP: Rewrote convertToAas() to convertToSquadrons() to convert various air factors, respecting unit status
TS: WP: Enabled creation of new air squadrons to handle non-divisible counts
TS: WP: Added a "Consolidate Squadrons" button in the force pool dialog for off-map consolidation
TS: WP: Updated Unit.isAas() to Unit.isAs() for broader air squadron support with specific type testing
TS: WP: Added and updated drawing functions for AVG and ATR squadrons and fixed display issues for certain units
TS: WP: Updated context menus to show relevant operations only when applicable
TS: WP: Updated air strength calculations and display to include AVG, ATR, and Jet squadrons
TS: WP: Included eliminated squadrons in rebuild costs and rounded squadron types to multiples of three
TS: WP: Changed Map->Filter->AAS to Map->Filter->Air Squadrons
TS: WP: Renamed references from AAS to squadrons for broader support
TS: WP: Fixed convertToPartialOil() to maintain oil counter states
TS: WP: Context menu adjustments for Swiss and water hexes
TS: WP: Removed unused functions related to unit consolidation and strength addition
CG: GS: Consolidate diplomacy phase action view with diplomacy view (similar to research)

6/8/2024
CG: WP: Fix weirdly-formatted codebreaking email notification
CG: GS: Enable undo/reset for flexible research RE assignments
CG: GS: Fix support view (summary and details) to show secrets based on coalition
CG: GS: Only allow Russian mobilization based on cohesion level
CG: GS: Fix issue with British ASW research project
CG: GS: Indicate used AC's (summaries and detail views) with opaqueness
CG: GS: Handle income random events
CG: GS: Handle factory converion modifier random events
CG: GS: More styling improvements for dark theme
CG: GS: Capture "must support" random events criteria for use in diplomacy phase
CG: GS: Include flexible research points in the economics phase commit checker
CG: GS: Better handling for random events that indicate "both" research projects
CG: GS: Add test harness to be able to jump directly to diplomatic phase for testing
CG: GS: Add ability to reset diplomatic phase AC assignments

5/30/2024
TS: WP: Correct hex shading for mapboard boxes; so that it doesn't extend outside the box
TS: WP: Set ETO water hex A20 from the now-defunct Murmansk box to a land hex in the Atlantic US box
TS: WP: Redefine PTO hex MM5 from the turn track to be a land hex in the Australia box
TS: WP: Redefine PTO water hex MM9 to be a land hex in the Australia box
TS: WP: Consider the three Persian hexes KK45, LL44, MM44 to be "not adjacent" to hex LL45 in the
                 Ethiopia box, so that the hexes aren't flagged if Persia and Ethiopia are controlled by different
                 countries (as is almost always the case)
TS: WP: Correct the coastline of JJ46 in Persia so it doesn't shade part of the Indian Ocean SW box
TS: WP: Remove some coastline info for all-land hexes in the interior of the two US boxes to give a
                 more accurate shading (to the corner points of the hexes)
CG: GS: Handle complex cases for flexible research assignments

5/25/2024
TS: WP: More elegant way to handle ships that are not on map and not yet assigned to TF
TS: WP: Establish last cell of TF12 to be "unassigned" area, add business rules around it
TS: WP: Smart coloring of TF sizes if less than 10 factors
TS: WP: Alert user if TF dialog is closed while units are left in "unassigned" area
TS: WP: Display a warning in Ships At Sea dialog if units are in "unassigned" area
TS: WP: Hide Turkey from Ships At Sea for AWAW; Turkey is a major power only in WC
CG: GS: Obtain correct project list for certain research RE flexible assignments

5/21/2024
CG: WP: Transition cleanup

5/20/2024
CG: WP: Potential fix for intermittent cleared map

5/19/2024
TS: WP: Use "rainbow" order for hotkey 'M' color rotation
CG: WP: Fix for issue using "T" for return to taskforce and unit disappearing

5/18/2024
TS: WP: Add a map filter for AAS
TS: WP: Set control menu: Update to add less common but still occasionally needed owners
TS: WP: Set control menu: Remove never-needed owners (colonies that never regain independence)
TS: WP: Set control menu: Correctly locate major/minor powers for AWAW/WC
TS: WP: Set unit marker: Add deployed/not deployed and lent/not lent
TS: WP: Set unit marker: Change exploiting from a toggle to exploiting/not exploiting
TS: WP: Update hex color menu to order colors as in the standard rainbow pattern
TS: WP: Update menu rules to better account for AWAW/GS/WC differences
TS: WP: Include() "lent" as an attribute for match combination checks
TS: WP: Copy "lent" as an attribute when copying a unit, and set to false when returning to FP
TS: WP: Fix a bug in rare cases when checking faction of a unit vs faction of a location
- CG: GS: Handle simple cases for research RE flexible assignment

5/17/2024
TS: WP: Use WA tan/green gradient for ASW & TR units
- CG: GS: Start of enabling research RE application before/after RP assignment
- CG: GS: Only allow CVL and large BB construction based on research results

5/14/2024
- CG: WP: Minor styling changes
- CG: GS: Fix starting research results

5/10/2024
TS: WP: Correctly color Italian Socialist units (white-on-gray shield)
- CG: GS: Include mobilization details on Economics review view
- CG: GS: Correctly "un-mobilize" units if fully resetting Economics activity
- CG: GS: Undo mobilization shipyard increases if fully resetting Economics activity
- CG: GS: Apply correct TP costs for ships based on size
- CG: GS: Include the second starting "Royal Navy" research result for Britain
- CG: GS: Hide ability to convert civilian factories if idle factories remain
- CG: GS: Only allow ship adv/accel if season column matches current turn
- CG: GS: Enforce RP assignment to lowest-step advanced and intel projects
- CG: GS: Fix resizing issue for mobilization schedule view for smaller screens
- CG: GS: Implement generic choice dialog for required user selections

4/22/2024
- CG: WP: Remove unneeded space between roll details and results
- CG: GS: Enable shipbuilding actions; advance, accelerate & x2, lay down
- CG: GS: Logic to manage what can happen for ships based on ship and game state
- CG: GS: Implement shipbuilding costs based on EAI
- CG: GS: Fix issue where CVLs were not being displayed properly
- CG: GS: AC auto-assignment for actions with mismatched values to costs
- CG: GS: Limit shipyard availability based on rates
- CG: GS: Fix exception thrown for RE which had "Russian diplomacy prohibited"
- CG: GS: Fix bug where mobilizations which included SBP increase did not work
- CG: GS: Tweak to dark theme colors (I'll want some feedback here on themes)
- CG: GS: Enable shipbuilding activity for small form factor/phones

4/7/2024
- CG: WP: Fix for right-click error

4/6/2024
- TS: WP: Add new WW1 units to Create Unit for World Crisis support
- TS: WP: Create new simplified drawing logic to fill shape outlines
- TS: WP: Fix CG's mis-spelling of "siege" for siege weapon code objects
- CG: WP: Change poll frequency for livegame check from 8 to 20 seconds
- CG: GS: Handle advanced and intel allocations
- CG: GS: Implement logic for what ACs can/can't be selected during Economic phase
- CG: GS: Enable cancel/reset functionality for Economic phase decisions
- CG: GS: Implement TP guardrails on Economic phase actions
- CG: GS: Minor tweaks to light and dark theme colors
- CG: GS: Automatically add AC's to available set for civilian factory thresholds
- CG: GS: Fix logic issue with Counter-Intelligence related RE's
- CG: GS: Fix logic issue with Atomic REs (card events say Atomic, project is Atomic Research)
- CG: GS: Handle complexities around research project selections, including shade restrictions
- CG: GS: Create reusable AC render control for use in multiple UI views
- CG: GS: Display allocations as they occur for ACs in all AC-related views
- CG: GS: Fix issue with Russian advanced projects not being considered advanced
- CG: GS: Helper functions for AC types (isCivFac, isShipbuilding, etc)
- CG: GS: Helper functions to calculate remaining research, construction, shipbuilding points
- CG: GS: Auto determine what decisions remain that prohibit advancing out of Economics phase
- CG: GS: Create Economics summary view to list remaining decisions from above (ex, unspent UC)
- CG: GS: Make Forces view interactive to allow UC for reserve units under right conditions
- CG: GS: Handle condition where non-uniform ACs are used for UC (ex, AC3 and AC1)
- CG: GS: Clear out activity report for actions that were impacted by cancel/reset decision

3/16/2024
- CG: WP: For hidden die rolls, show the title only in the history

1/12/2024
- CG: GS: Research-related UI features complete (chart, turn allocations, announcements)
- CG: GS: Many research related impacts

1/12/2024
- CG: WP: Fix bug where coalition prompt is shown when saving a planning turn

1/11/2024
- CG: WP: Enable viewing of roll history in other games

1/7/2024
- TS: WP: Fix Lent units for the A3R scenario
- CG: WP: Add sides per die to roll history view
- CG: GS: Economics phase processing; allocating RPs

11/14/2023
- TS: WP: Disallow changing control of water or Swiss hexes
- TS: WP: Refactor and streamline changing hex control logic
- TS: WP: Multiple hex terrain corrections in both maps

11/12/2023
- TS: WP: Fix for partisan representation in major forcepools
- TS: WP: Mark newly launched ships as deployed and inverted

11/08/2023
- TS: WP: Allies and Communists should not take each others' hexes
- TS: WP: US should not take hexes from other Allies
- TS: WP: Only enemy ground units should block a change in hex control
- TS: WP: Partisans should block/allow change in control
- CG: WP: Additional minor support for World Crisis
- CG: GS: Economics phase processing almost complete

9/12/2023
- CG: WP: Fix for World Crisis game files

9/9/2023
- TS: WP: Fix for ASW and transport splits/merges

9/3/2023
- TS: WP: Fix for Croatia

9/1/2023
- TS: WP: Automatically generate unit ID's if missing

8/30/2023
- TS: WP: Hopefully resolve Croatia issues for some users
- CG: GS: Country summary blocks
- CG: GS: Shipyard UI
- CG: GS: Maintenance calculator
- CG: GS: Mobilization schedule
- CG: GS: Factory conversion UI and logic
- CG: GS: Mobilization package selector
- CG: GS: Fix for research project filtering

8/12/2023
- CG: WP: Fix issue obtaining flag image in rare cases

7/4/2023
- TS: WP: Added Croatia as an entity
- TS: WP: Distinguish Alps, outback, Himalayas
- TS: WP: Draw commonwealth NAS distinctly
- CG: GS: Simplify RE activity logic
- CG: GS: Process diplomatic RE events