F_von_Joseph_Weisse6 Posted November 27 Posted November 27 Hi Pat, I sent a report to you on Nov 26th about this. I checked with AI, and after a few back-and-forths and checks, I got this answer. I tracked down the exact cause of the "Error during AAR process" crash in PWCG 17.1.1—it turns out it wasn't caused by IL-2 Update 8.001, but rather a date-range lookup bug during out-of-mission promotions. The bottom line is that I am back and running no problem. My AAR from the 26th was accepted along with my victories and sortie count. I am infinitely grateful to you for your add on. I'm sure you've heard this many times, but it really makes IL-2 come to life. Thank you again, Hopefully I didn't cause you any troubles Frederick The Root Cause: When PromotionEventHandler.promoteNonHistoricalPilots runs at the end of a mission, it calls Squadron.determineSquadronPrimaryRoleCategory on every squadron—even squadrons whose squadronIntroduction date hasn't happened yet. On any campaign date prior to 1945-02-01, SquadronRoleSet.selectRoleSetByDate throws No roles for date range when it hits squadrons whose first startDate in squadronRolePeriods is after the current campaign date: 4 Squadron.json (first role startDate: 19420901) 326 Squadron.json (first role startDate: 19430301) 322nd BG.json (first role startDate: 19430601) III_KG76.json (first role startDate: 19440701) JV44.json (first role startDate: 19450201) Setting their initial squadronRolePeriods startDate to 19390901 fixed the crash immediately and let the AAR complete cleanly. Stack Trace from PWCGErrorLog.txt: pwcg.core.exception.PWCGException: No roles for date range Sat Aug 01 00:00:00 ADT 1942 at pwcg.campaign.squadron.SquadronRoleSet.selectRoleSetByDate(SquadronRoleSet.java:91) at pwcg.campaign.squadron.SquadronRoleSet.selectSquadronPrimaryRoleCategory(SquadronRoleSet.java:47) at pwcg.campaign.squadron.Squadron.determineSquadronPrimaryRoleCategory(Squadron.java:846) at pwcg.campaign.promotion.PromotionMinimumCriteria.setMinimumPromotionStandards(PromotionMinimumCriteria.java:25) at pwcg.campaign.promotion.PromotionEventHandlerFactory.getPromotionEventHandler(PromotionEventHandlerFactory.java:19) at pwcg.aar.outofmission.phase2.awards.PromotionEventHandler.promoteNonHistoricalPilots(PromotionEventHandler.java:20) at pwcg.aar.outofmission.phase2.awards.CampaignMemberAwardsGenerator.promotions(CampaignMemberAwardsGenerator.java:34) at pwcg.aar.outofmission.phase2.awards.CampaignMemberAwardsGenerator.generateAwards(CampaignMemberAwardsGenerator.java:27) at pwcg.aar.outofmission.phase2.awards.CampaignAwardsGenerator.createCampaignMemberAwards(CampaignAwardsGenerator.java:32) at pwcg.aar.outofmission.AARCoordinatorOutOfMission.outOfMissionAwards(AARCoordinatorOutOfMission.java:96)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now