• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Graphic✓] Metatile vs Behavior Byte

  • 853
    Posts
    4
    Years
    • Seen Nov 9, 2023
    What's the difference between Meta-tile behavior, and a behavior byte and what can you do with each?
     
    Last edited:
    @Meister_anon~Master_o f_None

    I'm not sure, I've not seen the term "meta-tile" be used very often in binary ROM Hacking. But I guess a meta-tile is what's generally referred to as a "block" in AdvanceMap? Since a 16x16 pixel block is basically built up from four 8x8 tiles. Not sure where you got the term meta-tile from.

    I guess they mean pretty much the same?

    A behavior byte can assign a certain type of behavior to a block. For example the grass animation when an NPC steps on the block or being blocked from a certain side of a block.
     
    @Meister_anon~Master_o f_None

    I'm not sure, I've not seen the term "meta-tile" be used very often in binary ROM Hacking.

    FACEPALM! should have posted this in decomp. need to stop making late night posts.

    it applies to both binary and decomp, but its easier to work with, find, and I think more often used over there.


    I was looking through cfru files when I decided to ask this, from what I can tell, its like certain tiles have built in "uses" (didn't want to say functions here)
    like for example hm surf works by checking the metatile behavior of the tile one place in front of the player.

    I also found a bit about metatiles from this.
    https://www.pokecommunity.com/posts/10259063/

    I think it may be related to the blocks in advance map. Like the behavior is built into each block,
    but the behavior itself separate or defined elsewhere.

    ok so going off what you said, its seems kind of like the relation of nouns and pronouns, the meta-tile behavior is the behavior itself, the thing the tile/block does.

    While the behavior byte is the portion that sets the behavior to said tile. I guess.
     
    Last edited:
    @Meister_anon~Master_o f_None

    From what I've read in Lunos' post, I can confirm that a "meta-tile" is just a tile built up from four smaller 8x8 tiles. So what's referred to as a "block" in AdvanceMap. Since a block is a term that's basically only used in AdvanceMap, they probably decided to name it differently in the decomps.

    What you say about the behavior of a meta-tile is correct. The behavior byte determines the behavior of the meta-tile.

    Regarding the post you sent, the special will check whether the meta-tile the player is facing has a certain behavior byte attached to it. It's similar to how surf works in gen III games. That also checks whether the player is facing a meta-tile that has a certain behavior byte attached to it.
     
    @Meister_anon~Master_o f_None

    From what I've read in Lunos' post, I can confirm that a "meta-tile" is just a tile built up from four smaller 8x8 tiles. So what's referred to as a "block" in AdvanceMap. Since a block is a term that's basically only used in AdvanceMap, they probably decided to name it differently in the decomps.

    What you say about the behavior of a meta-tile is correct. The behavior byte determines the behavior of the meta-tile.

    Regarding the post you sent, the special will check whether the meta-tile the player is facing has a certain behavior byte attached to it. It's similar to how surf works in gen III games. That also checks whether the player is facing a meta-tile that has a certain behavior byte attached to it.

    lol ok guess we can call this solved, and you sound like you could use some rest too, at this point we're practically repeating what the other says back to each other.
    thanks though.



    Ok and to cover the point of uses, I guess the cool or more practical thing would be find the byte that gives specific tiles their behavior and assign it to other block/tiles, to do trippy/interesting things.
    Like walking on water or surfing on land for example.

    In another case, the reason I couldn't trigger an indoor encounter in advance map using the grass tab, was probably because none of the tiles had the meta-tile behavior for grass.

    Probably easier done in decomp, but no less useful for a binary hack.


    Also the comment section here doesn't really work like discord, people only get notified about comments if you quote them in your response comment.
     
    Last edited:
    @Meister_anon~Master_o f_None

    I know, I just dislike getting notifications. I see it when I see it.

    Changing a behavior byte of a specific block is very easy, also in binary hacking. You could just use the block editor in AdvanceMap.

    It's also possible to make a new custom behavior byte. I know JPAN's engine makes that possible, but JPAN's engine is pretty old. Since the CFRU pretty much copied all of JPAN's engine's useful fuctions, I assume it's also possible with that.
     
    @Meister_anon~Master_o f_None

    I know, I just dislike getting notifications. I see it when I see it.

    Changing a behavior byte of a specific block is very easy, also in binary hacking. You could just use the block editor in AdvanceMap.

    It's also possible to make a new custom behavior byte. I know JPAN's engine makes that possible, but JPAN's engine is pretty old. Since the CFRU pretty much copied all of JPAN's engine's useful fuctions, I assume it's also possible with that.

    Oh you should have said something earlier then, but dang I never knew that, should have looked into map editing more but that sounds really useful, I haven't actually use advance map for anything more than adding scripts, events and npcs.

    And I ended up talking with lunos, so I asked him about it, and according to him the only difference is the name.

    By the looks of it, Metatile Behavior is the decomps' naming convention for what in binary is called Behavior Byte.

    So it isn't cause and effect just 2 different naming conventions.
     
    Back
    Top