Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Heatmaps should not applying to lakes #2834

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

Closed

Conversation

ARGAMX
Copy link
Member

@ARGAMX ARGAMX commented Apr 27, 2025

Fixes #1991

PR with changed presented by Albert #1991 (comment)

2834_Heatmaps_on_lakes_1.sav.zip

2834_Heatmaps_on_lakes_2.sav.zip

v0.68.0 :

Screenshot 2025-04-27 at 14 55 11

this PR :

Screenshot 2025-04-27 at 14 56 11

CorsixTH/Src/th_lua_ui.cpp Outdated Show resolved Hide resolved
Copy link
Member

@lewri lewri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you ping a screenshot into the PR please jut to save having to do a rebuild to verify?

@ARGAMX
Copy link
Member Author

ARGAMX commented Apr 27, 2025

Could you ping a screenshot into the PR please jut to save having to do a rebuild to verify?

I have attached corresponding screenshots and savegames to the PR and issue 👌

@TheCycoONE
Copy link
Member

I suspect it would break if the lake was assigned a parcel number which is a perfectly valid thing for a map maker to do.

@@ -485,7 +485,7 @@ bool level_map::load_from_th_file(const uint8_t* pData, size_t iDataLength,

if (!(pData[5] & 1)) {
pNode->flags.passable = true;
if (!(pData[7] & 16)) {
if (!(pData[7] & 16) && pNode->iParcelId != 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Albert also states in #1991 (comment) it ideally needs an afterload to handle this change. What that would look like I'm not sure... There's probably a method to request a refresh of map data from lua.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking of Map:setCellFlags but generally this requires each tile to be given unless there's a way to efficiently pull all pond tiles from a map and then apply.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iterating over them and selection pond tiles is the best you can do here. Even in CPP that's what you need to do.

@ARGAMX
Copy link
Member Author

ARGAMX commented May 25, 2025

closed in preference to #2837

@ARGAMX ARGAMX closed this May 25, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in 0.69.0 Release May 25, 2025
@lewri lewri removed this from 0.69.0 Release May 25, 2025
@ARGAMX ARGAMX deleted the heatmaps-should-not-applying-to-lakes branch June 8, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heatmaps applying to lakes
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.