Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

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

Open
ATHSE opened this issue May 31, 2023 · 0 comments

Comments

@ATHSE
Copy link

ATHSE commented May 31, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant