From 3a4af106b70674171bd58c653f28071c5565483e Mon Sep 17 00:00:00 2001 From: Die4Ever Date: Thu, 21 Mar 2024 16:15:01 -0500 Subject: [PATCH] automated test to print all possible bingo goals for all start locations to UCC.log --- DXRCore/DeusEx/Classes/DXRVersion.uc | 8 ++-- DXRModules/DeusEx/Classes/DXREvents.uc | 2 + DXRModules/DeusEx/Classes/DXREventsBase.uc | 43 +++++++++++++++++----- DXRModules/DeusEx/Classes/DXRStartMap.uc | 3 +- 4 files changed, 41 insertions(+), 15 deletions(-) diff --git a/DXRCore/DeusEx/Classes/DXRVersion.uc b/DXRCore/DeusEx/Classes/DXRVersion.uc index 5bfeb5063..7987c005d 100644 --- a/DXRCore/DeusEx/Classes/DXRVersion.uc +++ b/DXRCore/DeusEx/Classes/DXRVersion.uc @@ -4,13 +4,13 @@ simulated static function CurrentVersion(optional out int major, optional out in { major=2; minor=6; - patch=0; - build=6;//build can't be higher than 99 + patch=1; + build=0;//build can't be higher than 99 } simulated static function bool VersionIsStable() { - return true; + return false; } simulated static function string VersionString(optional bool full) @@ -18,7 +18,7 @@ simulated static function string VersionString(optional bool full) local int major,minor,patch,build; local string status; - status = ""; + status = "Alpha"; if(status!="") { status = " " $ status; diff --git a/DXRModules/DeusEx/Classes/DXREvents.uc b/DXRModules/DeusEx/Classes/DXREvents.uc index fb43c1d46..6d03f9b0d 100644 --- a/DXRModules/DeusEx/Classes/DXREvents.uc +++ b/DXRModules/DeusEx/Classes/DXREvents.uc @@ -2789,6 +2789,8 @@ function ExtendedTests() local string helpText; local int i; + Super.ExtendedTests(); + //Make sure all bingo goals have help text for (i=0;i=7){ @@ -986,18 +986,28 @@ simulated function _CreateBingoBoard(PlayerDataItem data) if(bingo_options[x].event == "") continue; masked_missions = bingo_options[x].missions & maybe_mission_mask; if(masked_missions != 0) { // maybe? - if(class'DXRStartMap'.static.BingoGoalPossible(bingo_options[x].event,dxr.flags.settings.starting_map,end_mission)) { + if(class'DXRStartMap'.static.BingoGoalPossible(bingo_options[x].event,starting_map,end_mission)) { options[num_options++] = x; continue; } } masked_missions = bingo_options[x].missions & starting_mission_mask & end_mission_mask; if(bingo_options[x].missions!=0 && masked_missions == 0) continue; - if(class'DXRStartMap'.static.BingoGoalImpossible(bingo_options[x].event,dxr.flags.settings.starting_map,end_mission)) continue; + if(class'DXRStartMap'.static.BingoGoalImpossible(bingo_options[x].event,starting_map,end_mission)) continue; options[num_options++] = x; } l("_CreateBingoBoard found " $ num_options $ " options"); + if(bTest) { + l( "#" $ starting_map @ class'DXRStartMap'.static.GetStartingMapNameCredits(starting_map) @ bingo_duration @ end_mission $ " possible bingo goals" ); + for(x=0; x 50, "_CreateBingoBoard more than 50 options for " $ starting_map); + l("----------------------------------"); + return; + } for(x=0; x