Skip to content

Rewrite map fixes#3324

Merged
4 commits merged intoEasyRPG:masterfrom
EasyRPG-NewFeatures:rewriteMap-fixes
Jan 16, 2025
Merged

Rewrite map fixes#3324
4 commits merged intoEasyRPG:masterfrom
EasyRPG-NewFeatures:rewriteMap-fixes

Conversation

@jetrotal
Copy link
Contributor

@jetrotal jetrotal commented Jan 6, 2025

Fixed the issues described at #3323


Also I Discovered one last quirk, from toggling autotiles ON/OFF:

  • On EasyRPG the autotile is changing a buch of its own neighbour tiles.
  • On maniacs it changes only the closest to itsef.

This Quirk is not a dealbreakers, so didn't look at the code of it yet.


Things are now very closer to the Maniacs version now, only missing that fix and the AB lower tiles support.

- Added a more robust way of identifying TILE_BLOCKS. This fixes the issue where most of lower tiles were not being aplied.
- Reduced an output warning that repeated itself twice.
- Fixed wrong IDs
- Fixed wrong Layer assertion
- Added a conditional branch to protect IDs from overflowing.
@Ghabry Ghabry added this to the 0.8.1 milestone Jan 6, 2025
@Ghabry
Copy link
Member

Ghabry commented Jan 7, 2025

Web version for easier testing:

@jetrotal
Copy link
Contributor Author

Almost there.

Lacks diagonal mix between tiles A and B (1st img is maniacs, 2nd is ours):
image
image

That solves some errors related out of bounds access.
Sometimes it happens when drawing a tile, others when checking passability.

It may differ from how maniacs deals with this (I suspect maniacs have an extra blank tile, with locked passability, just for OOB tiles).
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

besides the unused variable blockType compiler warning, looks good to me

@jetrotal
Copy link
Contributor Author

I don't feel like messing with the diagonal tiles, I'm having a hard time understanding what need to be done.

So, I'm ok with aproving it as is.

@ghost ghost merged commit 6acddd9 into EasyRPG:master Jan 16, 2025
13 checks passed
@jetrotal jetrotal deleted the rewriteMap-fixes branch December 15, 2025 03:46
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants