Skip to content
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

Help Wanted with PR #1142 add support for multi-tileset layers #1143

Open
DelinWorks opened this issue Mar 27, 2023 · 10 comments
Open

Help Wanted with PR #1142 add support for multi-tileset layers #1143

DelinWorks opened this issue Mar 27, 2023 · 10 comments
Labels
Milestone

Comments

@DelinWorks
Copy link
Contributor

DelinWorks commented Mar 27, 2023

Refer to #1142

Summary: I'm trying to implement multi-tileset layers and for some reason I had this weird bug that I spent 3 days on but to no avail.

My implementation is simple. First, I extracted every field that can belong to one or more layers and made a FastTMXSubLayer struct that has those fields, second I made in array inside of FastTMXLayer and that array holds FastTMXSubLayers as much as the layer has tilesets used, pretty simple so far. this worked right off the bat! but with some tilemaps weirdly enough I get this bug mentioned in #1142 seems like the _tiles static array needs to be copied too for each subLayer but that doesn't seem logical because it's not getting changed, also this bug seems to occur IF the first tileset's texture size is smaller than the other tileset's texture which is the thing that struck me the most, Any help would be appreciated!

@aismann
Copy link
Contributor

aismann commented Mar 27, 2023

@DelinWorks
Please add a little more info on the title?
Like: Help Wanted with PR #1143: Add support for TMX multi-tileset layers
Thanks.

@DelinWorks DelinWorks changed the title Help Wanted with PR Help Wanted with PR #1142 add support for multi-tileset layers Mar 27, 2023
@aismann
Copy link
Contributor

aismann commented Mar 27, 2023

@DelinWorks ,
I'm currently not familiar with the tileset implementation but my idea about this bug seems to occur IF the first tileset's texture size is smaller than the other tileset's texture which is the thing that struck me the most, Any help would be appreciated!

Why not using a "'scaled' tileset copy" which all have the same size?

Another idea: for correct test data:

  1. Each used tileset is correct working alone with axmol?
  2. If using your Code snippet for multi tileset using only 1 tileset is also working with all used tilesets?
  3. Works with 2 tilesets (same size)?
    4 Works with 2+n tilesets (same size)?
  4. Works with 2 tilesets (different size)?
  5. Works with 2+n tilesets (different size)?

And If nothing helps the last one:
Create a warning like different tileset texture size ist not supported...blablabla" with the current implementation.

@aismann
Copy link
Contributor

aismann commented Mar 30, 2023

@halx99
Please add 'pinned'

@DelinWorks
Can it test on 'latest' axmol without changes (of course: add this PR)?

@aismann
Copy link
Contributor

aismann commented Mar 31, 2023

@halx99
please add "pinned".

I think the easiest way is to generate an own 'FastTMXLayer'/'FastTMXSubLayer' format for 'multi-tileset layers' which axmol is supporting.

@halx99 halx99 added the pinned label Mar 31, 2023
@aismann
Copy link
Contributor

aismann commented May 30, 2023

@DelinWorks
As far as I know, you working on a "support for multi-tileset layers" with axmol, right?

@halx99
Maybe it usefull to add this issue to the axmol-2.0 project (also the "Multiple textured layers #617") ?

@halx99 halx99 added this to the 2.0 milestone Aug 26, 2023
@halx99 halx99 modified the milestones: 2.0, next Sep 10, 2023
@jcy1001
Copy link

jcy1001 commented Sep 15, 2023

"Is this feature finished?" or "Is this feature still being worked on?"

@jcy1001
Copy link

jcy1001 commented Sep 27, 2023

@halx99 axmol2.0 "Is this feature finished?" or "Is this feature still being worked on?"

@halx99
Copy link
Collaborator

halx99 commented Sep 27, 2023

@halx99 axmol2.0 "Is this feature finished?" or "Is this feature still being worked on?"

Not sure, becase I have not time to check it, original author is @DelinWorks you can ask.

@jcy1001
Copy link

jcy1001 commented Sep 27, 2023

@DelinWorks axmol2.0 "Is this feature finished?" or "Is this feature still being worked on?"

@DelinWorks
Copy link
Contributor Author

I tried to solve this issue, but every time I get artifacts, the tilemap renderer might need a complete rewrite, which I haven't gotten into for a while

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

No branches or pull requests

4 participants