Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #1    
Old October 12th, 2013 (3:13 PM). Edited September 24th, 2016 by esperance.
esperance's Avatar
esperance esperance is offline
  • Platinum Tier
 
Join Date: Mar 2010
Location: Ohio
Age: 20
Gender: Male
Nature: Relaxed
Posts: 3,818

Tilemap Creator


Hello, everyone! Today I present to you the Tilemap Creator!

What does it do? Simple, really. Tilemap Creator is as the name suggests: a tilemap editor. It can take any tileset, and turn it into a tilemap. If you want, it can even remove duplicated tiles!

Features


- Tileset Creation - turn an image into a tileset and tilemap!
- All GBA tilemap formats supported
- Tileset Indexing - 16 or 256 colors
- Tileset Palette Exporting

Images


Spoiler:
The main interface, still a WIP.



Download


Old, Slow Version: Here
Latest Version: Here

Source


Check out the repository on GitHub.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote

Relevant Advertising!

  #2    
Old October 12th, 2013 (9:09 PM).
Winter Wonderland's Avatar
Winter Wonderland Winter Wonderland is offline
Puts the fun in dysfunctional
     
    Join Date: Jun 2011
    Location: Florida
    Gender: Other
    Nature: Quirky
    Posts: 307
    So, you're saying this'll pretty much rip the mess out of tiles with ease? Does it do insertion as well, or?
    __________________


    Some say the world will end in fire,
    Some say in ice.
    From what I've tasted of desire
    I hold with those who favor fire.
    But if it had to perish twice,
    I think I know enough of hate
    To say that for destruction ice
    Is also great
    And would suffice.
    Robert Frost, Fire and Ice.

    Play Me Casually | The Leola Project

    Reply With Quote
      #3    
    Old October 12th, 2013 (9:53 PM).
    FBI's Avatar
    FBI FBI is offline
    Free supporter
    • Silver Tier
     
    Join Date: Jan 2013
    Location: Unknown Island
    Gender: Male
    Posts: 1,766
    Quote:
    Originally Posted by Winter Wonderland View Post
    So, you're saying this'll pretty much rip the mess out of tiles with ease? Does it do insertion as well, or?
    I think it just takes an image splits it into 8x8 pixel squares and removes duplicate squares, so you're left with a tileset.
    __________________
    ...
    Reply With Quote
      #4    
    Old October 13th, 2013 (12:37 AM).
    chrunch chrunch is offline
    • Gold Tier
     
    Join Date: Oct 2009
    Gender: Male
    Posts: 1,349
    Quote:
    Originally Posted by FBI agent View Post
    I think it just takes an image splits it into 8x8 pixel squares and removes duplicate squares, so you're left with a tileset.
    You can do the same thing with sphere if you follow this tutorial. It would be nice if it had some unique features as well.
    __________________
    Reply With Quote
      #5    
    Old October 13th, 2013 (5:21 AM). Edited October 13th, 2013 by esperance.
    esperance's Avatar
    esperance esperance is offline
    • Platinum Tier
     
    Join Date: Mar 2010
    Location: Ohio
    Age: 20
    Gender: Male
    Nature: Relaxed
    Posts: 3,818
    Quote:
    Originally Posted by Winter Wonderland View Post
    So, you're saying this'll pretty much rip the mess out of tiles with ease? Does it do insertion as well, or?
    Yep, this just rips up an image into tiles. I made this program because Sphere stopped working on my computer, and I wanted this function.

    Right now, that's the only thing it can do, but I think it would be nice if I added some stuff like insertion in the future, so we'll see. Who knows what the future holds?

    On another note, I updated the program. Basically, it just speeds up some of the drawing stuff. Enjoy!

    Wait!

    Okay, I'm stupid. Just so the few people who actually download this know, I messed up a single line in the code that cuts off some of the tiles. So I've removed the download.

    Anyway, since I just can't leave this thing as simply a tileset creator, I've decided to go the whole way and change it to a full-blown tilemap editor.

    Basically, it now not only rips apart images, it also reconstructs the tilemap from the image!

    Here's what it looks like.
    Spoiler:


    So... I'll just put the download up when I finish it for those that are interested.
    __________________

    A Pokemon that is discriminated!
    Support squirtle and make it everyone's favourite.
    Reply With Quote
      #6    
    Old October 13th, 2013 (10:24 PM). Edited October 14th, 2013 by daniilS.
    daniilS's Avatar
    daniilS daniilS is offline
    busy trying to do stuff not done yet
       
      Join Date: Aug 2013
      Age: 17
      Gender: Male
      Posts: 409
      A nice function would be to specify the borders around the tilemap, because sphere can't do that and just inserts it in the corner.. Also, I haven't yet tested it, but it does support flipped tiles, right? Just to be sure.
      Also, I would like it if I could assign a palette to a tile in the tileset, and it gets fully done in the palettemap, not one by one.

      Anyways, imo this tool has a great future!

      Edit: Just found out sphere doesn't support flipping tiles. If this does, then it'll be a reason for lots of people to use this!
      (if you don't understand it: this image, 16 by 16 pixels, gets splitted into four 8 by 8 tiles, while it could be just one tile, flipped horizontally, vertically, and both. I really need this myself, because when I try to edit a 256 colour image in ntme-8BPP mode, it says my sphere tileset has too many tiles.)
      __________________
      Reply With Quote
        #7    
      Old October 15th, 2013 (7:03 AM).
      Barry's Avatar
      Barry Barry is offline
      Pokémon Trainer
         
        Join Date: Jul 2004
        Age: 27
        Gender: Male
        Nature: Calm
        Posts: 410
        Is this for use with rom hacking? If so, then this is amazing.
        Reply With Quote
          #8    
        Old October 15th, 2013 (8:40 PM).
        Shiny Quagsire's Avatar
        Shiny Quagsire Shiny Quagsire is offline
        I'm Still Alive, Elsewhere
           
          Join Date: May 2009
          Location: Hoenn Safari Zone
          Age: 19
          Gender: Male
          Nature: Jolly
          Posts: 700
          Oh noes! Not the .NET 4.5!
          (Mono sucks on Linux)

          Will we be seeing the source any time soon? I really think that tools need to start open-sourcing more because as soon as the content creator leaves town we're pretty much screwed for updates/ports/bugs/ASM *cough*A-Map*cough*. Plus it allows for people to improve on the code and learn.
          __________________



          Reply With Quote
            #9    
          Old October 16th, 2013 (3:44 PM).
          esperance's Avatar
          esperance esperance is offline
          • Platinum Tier
           
          Join Date: Mar 2010
          Location: Ohio
          Age: 20
          Gender: Male
          Nature: Relaxed
          Posts: 3,818
          Quote:
          Originally Posted by shiny quagsire View Post
          Oh noes! Not the .NET 4.5!
          (Mono sucks on Linux)

          Will we be seeing the source any time soon? I really think that tools need to start open-sourcing more because as soon as the content creator leaves town we're pretty much screwed for updates/ports/bugs/ASM *cough*A-Map*cough*. Plus it allows for people to improve on the code and learn.
          I've been considering releasing the source code, or at least parts of it. I definitely agree with you on the value of sharing it.

          On the other hand I have some good news! I figured out how to index images, so now the program can index your tileset for you! Awesome!
          __________________

          A Pokemon that is discriminated!
          Support squirtle and make it everyone's favourite.
          Reply With Quote
            #10    
          Old October 17th, 2013 (10:50 AM).
          Barry's Avatar
          Barry Barry is offline
          Pokémon Trainer
             
            Join Date: Jul 2004
            Age: 27
            Gender: Male
            Nature: Calm
            Posts: 410
            So much more convenient than using Sphere for this. I am patiently waiting a release
            Reply With Quote
              #11    
            Old October 17th, 2013 (1:25 PM).
            Full Metal's Avatar
            Full Metal Full Metal is offline
            C(++) Developer.
            • Silver Tier
             
            Join Date: Jan 2008
            Location: In my mind.
            Age: 21
            Gender: Male
            Nature: Timid
            Posts: 806
            Quote:
            Originally Posted by agentgeo View Post
            I've been considering releasing the source code, or at least parts of it. I definitely agree with you on the value of sharing it.

            On the other hand I have some good news! I figured out how to index images, so now the program can index your tileset for you! Awesome!
            If you would like, I would be willing to have a look at your code and fix your bug for you. I am also interested to see how you've gone about prioritizing your colors.
            __________________

            ★ full metal.

            I like to push it,
            and push it,
            until my luck is over.
            Reply With Quote
              #12    
            Old October 17th, 2013 (3:31 PM).
            esperance's Avatar
            esperance esperance is offline
            • Platinum Tier
             
            Join Date: Mar 2010
            Location: Ohio
            Age: 20
            Gender: Male
            Nature: Relaxed
            Posts: 3,818
            Quote:
            Originally Posted by Full Metal View Post
            If you would like, I would be willing to have a look at your code and fix your bug for you. I am also interested to see how you've gone about prioritizing your colors.
            Well so far there aren't any bugs of note in the program, which is a plus. But I appreciate the offer.

            For prioritizing colors, I don't. My indexing is quite simple, I just go off the first 16 colors that I find that are radically different from the previous.
            __________________

            A Pokemon that is discriminated!
            Support squirtle and make it everyone's favourite.
            Reply With Quote
              #13    
            Old October 17th, 2013 (9:19 PM).
            Full Metal's Avatar
            Full Metal Full Metal is offline
            C(++) Developer.
            • Silver Tier
             
            Join Date: Jan 2008
            Location: In my mind.
            Age: 21
            Gender: Male
            Nature: Timid
            Posts: 806
            Quote:
            Originally Posted by agentgeo View Post
            Okay, I'm stupid. Just so the few people who actually download this know, I messed up a single line in the code that cuts off some of the tiles. So I've removed the download.

            Anyway, since I just can't leave this thing as simply a tileset creator, I've decided to go the whole way and change it to a full-blown tilemap editor.

            Basically, it now not only rips apart images, it also reconstructs the tilemap from the image!

            Here's what it looks like.
            Spoiler:


            So... I'll just put the download up when I finish it for those that are interested.
            ;^; But I need the thing because of reasons.
            __________________

            ★ full metal.

            I like to push it,
            and push it,
            until my luck is over.
            Reply With Quote
              #14    
            Old October 19th, 2013 (4:38 AM).
            daniilS's Avatar
            daniilS daniilS is offline
            busy trying to do stuff not done yet
               
              Join Date: Aug 2013
              Age: 17
              Gender: Male
              Posts: 409
              Okay, so I'm making a town map for my hack, and I think this tool would help me a lot if it had two features:
              1. Rotated tiles, like I mentioned earlier, but I forgot they don't even work in 8BPP mode.
              2. I don't know if this is possible, but still: the original FR town map is 16 colours, but uses three different palettes: water, land&route-towns-the yellow close sign.
              My map, however, is in dp style with personal additions, so it has around 30-40 colours, and things like rounded route edges. My question is: would it be possible to let the game automatically split it into 1-16 palettes, like land&water-town-straight route-route with land corner-water route with water corner-etc... so I don't have to do it myself, becuse it would take quite a lot time. I hope you understand.
              __________________
              Reply With Quote
                #15    
              Old October 20th, 2013 (6:16 AM).
              Rezordaxx's Avatar
              Rezordaxx Rezordaxx is offline
              Asks many questions!
                 
                Join Date: Aug 2013
                Location: The Netherlands
                Age: 18
                Gender: Male
                Nature: Relaxed
                Posts: 290
                COULD YOU PLS PUT THE DOWNLOAD LINK BACK IN THE THREAD!!
                __________________

                My hack
                Reply With Quote
                  #16    
                Old October 20th, 2013 (6:41 AM).
                Frosty~'s Avatar
                Frosty~ Frosty~ is offline
                Pancakes are a girl's BFF
                   
                  Join Date: Nov 2009
                  Gender: Female
                  Nature: Hasty
                  Posts: 44
                  Quote:
                  Originally Posted by Rezordaxx View Post
                  COULD YOU PLS PUT THE DOWNLOAD LINK BACK IN THE THREAD!!
                  Well, she said she was going to put the download link back when she finished making it a tile map editor by adding more features to it. She's not done yet i.e. no download link.
                  __________________
                  "The world's changing at lightning speed,
                  but the faster you move the narrower your vision becomes.
                  That's why you've got to stop and look around you.
                  Other wise you'll lose yourself."
                  - Megaman

                  My deviantArt
                  Reply With Quote
                    #17    
                  Old October 20th, 2013 (9:18 AM).
                  esperance's Avatar
                  esperance esperance is offline
                  • Platinum Tier
                   
                  Join Date: Mar 2010
                  Location: Ohio
                  Age: 20
                  Gender: Male
                  Nature: Relaxed
                  Posts: 3,818
                  Update!

                  Okay everyone, I come here today with an new and improved version of Tileset Creator, which I call Tilemap Creator! It had all the awesomeness that was in the original, but now it also creates tilemaps and can even index your image for you! Awesome!

                  The download can be found on the first post.

                  Quote:
                  Originally Posted by CayCay98 View Post
                  Well, she said she was going to put the download link back when she finished making it a tile map editor by adding more features to it. She's not done yet i.e. no download link.
                  Also, just to clear up any confusion, I am a "he."
                  __________________

                  A Pokemon that is discriminated!
                  Support squirtle and make it everyone's favourite.
                  Reply With Quote
                    #18    
                  Old October 20th, 2013 (10:18 AM).
                  Frosty~'s Avatar
                  Frosty~ Frosty~ is offline
                  Pancakes are a girl's BFF
                     
                    Join Date: Nov 2009
                    Gender: Female
                    Nature: Hasty
                    Posts: 44
                    Quote:
                    Originally Posted by agentgeo View Post
                    Update!

                    Okay everyone, I come here today with an new and improved version of Tileset Creator, which I call Tilemap Creator! It had all the awesomeness that was in the original, but now it also creates tilemaps and can even index your image for you! Awesome!

                    The download can be found on the first post.



                    Also, just to clear up any confusion, I am a "he."
                    Sorry, your avatar picture mislead me to think you are a female. Haha ha
                    __________________
                    "The world's changing at lightning speed,
                    but the faster you move the narrower your vision becomes.
                    That's why you've got to stop and look around you.
                    Other wise you'll lose yourself."
                    - Megaman

                    My deviantArt
                    Reply With Quote
                      #19    
                    Old October 21st, 2013 (4:38 AM).
                    Rasenshurikenbum's Avatar
                    Rasenshurikenbum Rasenshurikenbum is offline
                    ASM is very cool!
                       
                      Join Date: Apr 2011
                      Location: Poland
                      Age: 21
                      Gender: Male
                      Nature: Relaxed
                      Posts: 70
                      I think it would be nice if the "palette tile editor" had an "select area" function. You just select your area (something like selecting in any photo software) and change every tile in this selection to the one you choose
                      __________________
                      Check out my tutorials:Next tutorials coming soon!
                      Reply With Quote
                        #20    
                      Old October 21st, 2013 (7:58 AM).
                      daniilS's Avatar
                      daniilS daniilS is offline
                      busy trying to do stuff not done yet
                         
                        Join Date: Aug 2013
                        Age: 17
                        Gender: Male
                        Posts: 409
                        I tried it. Works fine, but still doesn't support horizontal/vertical flip. I will really need this feature when creating more than one townmap for my hack.
                        __________________
                        Reply With Quote
                          #21    
                        Old October 21st, 2013 (12:43 PM).
                        esperance's Avatar
                        esperance esperance is offline
                        • Platinum Tier
                         
                        Join Date: Mar 2010
                        Location: Ohio
                        Age: 20
                        Gender: Male
                        Nature: Relaxed
                        Posts: 3,818
                        Quote:
                        Originally Posted by Rasenshurikenbum View Post
                        I think it would be nice if the "palette tile editor" had an "select area" function. You just select your area (something like selecting in any photo software) and change every tile in this selection to the one you choose
                        If you mean like filling everything in a selected box, I could possibly do something like that. We'll see.

                        Quote:
                        Originally Posted by daniilS View Post
                        I tried it. Works fine, but still doesn't support horizontal/vertical flip. I will really need this feature when creating more than one townmap for my hack.
                        Good to know that my program works as intended. I agree that it would be cool if I implemented tile flipping, but it's kinda difficult to do, so it's not a priority.
                        __________________

                        A Pokemon that is discriminated!
                        Support squirtle and make it everyone's favourite.
                        Reply With Quote
                          #22    
                        Old October 21st, 2013 (12:56 PM). Edited October 21st, 2013 by daniilS.
                        daniilS's Avatar
                        daniilS daniilS is offline
                        busy trying to do stuff not done yet
                           
                          Join Date: Aug 2013
                          Age: 17
                          Gender: Male
                          Posts: 409
                          Quote:
                          Originally Posted by agentgeo View Post
                          If you mean like filling everything in a selected box, I could possibly do something like that. We'll see.



                          Good to know that my program works as intended. I agree that it would be cool if I implemented tile flipping, but it's kinda difficult to do, so it's not a priority.
                          Okay, thanks for the reply.
                          Also, could you please answer my other questions? Specifying borders is mandatory for me, since the map is located in the center, and the two palmap functions would be really helpful.


                          EDIT: also, the palettemap isn't really clear now. I would suggest something like NTME/NTME+ has.
                          __________________
                          Reply With Quote
                            #23    
                          Old October 21st, 2013 (1:49 PM).
                          Full Metal's Avatar
                          Full Metal Full Metal is offline
                          C(++) Developer.
                          • Silver Tier
                           
                          Join Date: Jan 2008
                          Location: In my mind.
                          Age: 21
                          Gender: Male
                          Nature: Timid
                          Posts: 806
                          I'm going to guess you haven't thought about this ( haven't tested it myself ) but you may want to consider what a tile looks like flipped horizontally and vertically in your tile reduction algorithm. ie, instead of

                          if(a==b){keep(a);discard(b);}
                          if(a==b||a.flipHorizontal()==b||a.flipVertical()==b||a.flipHorizontal().flipVertical()==b){keep(a);discard(b);}

                          It might not be that much of a huge modification in your code logic, but the effects would have substantial benefit. ( I'm going under the assumption that you don't have to write the core aspects of the flipping functions yourself and that you're using some image processing library or other -- even if you did, that code would not be too terribly complicated ).

                          None the less, I'm very excited to use this tool.
                          __________________

                          ★ full metal.

                          I like to push it,
                          and push it,
                          until my luck is over.
                          Reply With Quote
                            #24    
                          Old October 22nd, 2013 (5:38 PM). Edited October 22nd, 2013 by esperance.
                          esperance's Avatar
                          esperance esperance is offline
                          • Platinum Tier
                           
                          Join Date: Mar 2010
                          Location: Ohio
                          Age: 20
                          Gender: Male
                          Nature: Relaxed
                          Posts: 3,818
                          Quote:
                          Originally Posted by Full Metal View Post
                          I'm going to guess you haven't thought about this ( haven't tested it myself ) but you may want to consider what a tile looks like flipped horizontally and vertically in your tile reduction algorithm. ie, instead of

                          if(a==b){keep(a);discard(b);}
                          if(a==b||a.flipHorizontal()==b||a.flipVertical()==b||a.flipHorizontal().flipVertical()==b){keep(a);discard(b);}

                          It might not be that much of a huge modification in your code logic, but the effects would have substantial benefit. ( I'm going under the assumption that you don't have to write the core aspects of the flipping functions yourself and that you're using some image processing library or other -- even if you did, that code would not be too terribly complicated ).

                          None the less, I'm very excited to use this tool.
                          Oh yeah, now I feel stupid. That would be quite easy to implement.

                          And thanks. The support is always nice.

                          Update!

                          Okay, so after getting my head straightened by Full Metal, I have wonderful news! I actually managed to implement X and Y flipping for the tiles, and in a record breaking 2 minutes. I amaze myself sometimes.

                          Proof:
                          Spoiler:


                          So yeah! Expect this, and more, in the next release!
                          __________________

                          A Pokemon that is discriminated!
                          Support squirtle and make it everyone's favourite.
                          Reply With Quote
                            #25    
                          Old October 23rd, 2013 (9:26 AM).
                          FBI's Avatar
                          FBI FBI is offline
                          Free supporter
                          • Silver Tier
                           
                          Join Date: Jan 2013
                          Location: Unknown Island
                          Gender: Male
                          Posts: 1,766
                          If you can make this work backwards too, that'd be awesome. Like given an image and a tile map for the image, show me where to place the tiles to "unscramble" the tile map.

                          More simply, if I select a tile on the original image, show me which tile on the tilemap was used and what transformation to apply to get back the original tile. Ex: If I have a bird picture and a tilemap for it. I can click on the birds peek tile from the original image and it'll highlight which tile is used for the beak and what transformation was applied during the transfer. I'm not sure how clear I'm making myself here :P
                          You can think of this function as another look up.
                          __________________
                          ...
                          Reply With Quote
                          Reply
                          Quick Reply

                          Sponsored Links
                          Thread Tools

                          Posting Rules
                          You may not post new threads
                          You may not post replies
                          You may not post attachments
                          You may not edit your posts

                          BB code is On
                          Smilies are On
                          [IMG] code is On
                          HTML code is Off

                          Forum Jump


                          All times are GMT -8. The time now is 3:19 AM.