FA2sp icon indicating copy to clipboard operation
FA2sp copied to clipboard

BrowserRedraw.GuessMode seems buggy, even where the code is more than explicitly clear

Open ATHSE opened this issue 1 year ago • 0 comments

BrowserRedraw.GuessMode=0 is what I'm referencing specifically. Though just after I started writing this I may have stumbled across the cause, which is still a bug, but more oblique. Mode 0 using prerequisite... this is the key.

Ok so the main point here is that more than a dozen of my side-specific units are grouped into the "Other" category instead of Allied/Soviet where they should be. And it appears the common factor is that these units all use the generic prerequisites defined under [General], but importantly I'm not using them the same way as the original rules. Namely the change is that PrerequisiteTech and PrerequisiteFactory are not pairs of values for opposing sides, but rather alternates for the same sides. So what I think is happening is FA2sp is assuming the generic prerequisite means it belongs to both sides, rather than considering the sides of the buildings within them, and if no other 'tie breaker' building is found in the Prerequisite= line, then it goes to Other.

image image

I assume this can be recitified just by resolving the contents of the generic prerequisites to actual buildings, and using that for determination.

ATHSE avatar May 31 '23 02:05 ATHSE