-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect resource placements on certain maps #6395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A miracle is here! :)
Resource is weirdly looking, being rendered over mountains, If it's not possible, to render it under mountains, like it was in the OG, I cannot imagine any better solution here.
Hi @Branikolog , please test this issue on normal resources being generate on multiple maps as well as the underlying logic for placing them was modified. |
@Branikolog , I also added an error log in case if incorrect resource type would appear on any map. Try to load dozens of maps to see if you get the error message. |
Hi, @ihhub, @Branikolog, a couple of months ago I found a bug in "Voyage Home" expansion company, map 2. It has an unknown mine. But OG also has the same bug and it does not lead to a game crush, so I forgot about it :) Save file: vh2_bad_mine.zip PS I don't ask to fix in in this PR, just remembered. :) |
SonarCloud Quality Gate failed. |
@Districh-ru see #5537 :) |
Thanks, I'll add my post with the save file to this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've loaded up every single scenario map that comes with the GOG release and every single campaign scenario with DBG_GAME turned on, and searched for the string "contains unknown resource type"
in the log file and nothing turned up.
@ihhub, I also have checked all maps I have (it's a standard set from Buka CD) and did not find any unknown resource type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Could you please apply the IWYU suggestion? Also do you want to leave the ERROR_LOG
? I used the DEBUG_LOG
with DBG_GAME
and DBG_WARN
in similar cases.
Oh, I missed |
SonarCloud Quality Gate failed. |
close #6393
This change must be thoughtfully tested on many maps to make sure that we don't break anything. The test scope should be done on maps with "bad" resources as well as any normal resources.