Any demand for a "tile picker"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ekolis
    Knight
    • Apr 2007
    • 921

    Any demand for a "tile picker"?

    I had this thought while I was making a "beehive" tile for submission to Dungeon Crawl Stone Soup...

    What if there were a simple Javascript-in-an-HTML-page app where you point it at a bitmap (say, by putting the HTML page in the same folder as the bitmap, or vice versa, then typing the name of the bitmap into a text box on the HTML page), and you tell it the size of the tiles in the bitmap, and then when you click on a tile, it copies the tile number into the clipboard for pasting into your text files where you're defining monsters or features or whatever, so you don't have to count tiles manually?

    Is there any demand for such an app? Or does one exist already? I could see it being useful not only for DCSS and Angband, but also for any other game or whatever that uses tilesets... say, Space Empires 5 or something
    You read the scroll labeled NOBIMUS UPSCOTI...
    You are surrounded by a stasis field!
    The tengu tries to teleport, but fails!
  • RogerN
    Swordsman
    • Jul 2008
    • 308

    #2
    I use such an application for the variant I'm perpetually working on. I find it to be indispensable, as there are thousands of potential tiles in the larger sets. I use the application to assign names to tiles, and the names are stored in a tile definition file. The tile names are then referenced by the feature, monster, and item definitions. This way I can reassign the tile for "Granite Wall" and everything which depends on that tile automatically points to the right tile (i.e. outer wall, inner wall, extra wall, secret door, permanent walls, etc...).

    In other words... I think it's a good idea. Unfortunately my tool wouldn't work for Vanilla's data formats.

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9638

      #3
      Yes. When I did tiles for FA, picking them all by hand took a Long Time.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • buzzkill
        Prophet
        • May 2008
        • 2939

        #4
        Oh yes. Being able to assign a name(s) would just be gravy.
        www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
        My banding life on Buzzkill's ladder.

        Comment

        • ekolis
          Knight
          • Apr 2007
          • 921

          #5
          Well, here ya go... a tile picker!
          Let me know if you need any additional features for it to work properly with Angband, or if there are any bugs...
          Attached Files
          You read the scroll labeled NOBIMUS UPSCOTI...
          You are surrounded by a stasis field!
          The tengu tries to teleport, but fails!

          Comment

          • buzzkill
            Prophet
            • May 2008
            • 2939

            #6
            Last tile selected is "NaN" or "NaN,NaN" regardless of chosen options.
            It was able to open the vanilla 32x32.bmp (which I copied to my desktop) no problem, but I couldn't open any other .png or .bmp (that happen to litter my desktop).
            Windows Vista, IE 8.0.6.
            www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
            My banding life on Buzzkill's ladder.

            Comment

            • ekolis
              Knight
              • Apr 2007
              • 921

              #7
              Oops! Forgot to test in IE! :P

              Here's v2, then - also fixed another bug, this one with the zero based indexing mode being always treated as on when in X,Y mode!

              Not sure what's wrong regarding those other images, though... what kind of error do you get? Or maybe you could send me one of the images that doesn't work?
              Attached Files
              You read the scroll labeled NOBIMUS UPSCOTI...
              You are surrounded by a stasis field!
              The tengu tries to teleport, but fails!

              Comment

              • buzzkill
                Prophet
                • May 2008
                • 2939

                #8
                Originally posted by ekolis
                Here's v2, then - also fixed another bug, this one with the zero based indexing mode being always treated as on when in X,Y mode!
                Working!!! I'm presuming this will be used primarily for Angband and it's variants so here are a few suggestions that would make this script more useful for this purpose.

                1. an option to specify the upper-left value, such as 80,80.
                2. an option for hexadecimal counting and output, 0x80,0x80
                3. an option to select the chosen separator, or just default to a colon
                4. an option for both X,Y and Y,X or simply default to Y,X

                5. IMO what would really make it ideal. A split screen, prf and bmp. Click on prf entry, click on bmp image, and the value is automatically entered.

                Not sure what's wrong regarding those other images, though... what kind of error do you get? Or maybe you could send me one of the images that doesn't work?
                bmp attached. I apologize for the nit-picking in advance.
                Attached Files
                www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
                My banding life on Buzzkill's ladder.

                Comment

                • ekolis
                  Knight
                  • Apr 2007
                  • 921

                  #9
                  Knights.bmp works for me; the only thing I can think of is that maybe since the background of the image was white, you couldn't see the selection reticule and thus never even tried to click? I could make the reticule a different style, if you'd like...

                  As for features, here goes...
                  1. Not sure why you'd want to specify the upper-left value apart from zero and one, but OK, can do
                  2. Hexadecimal should be possible, too
                  3. Choosing a separator? Sure
                  4. Y,X mode? OK
                  5. prf mode? Hmm, that might be a bit tricky... I was intending this to be a bit more generic - I was also thinking of Crawl and Space Empires 5... not sure if Javascript can write to files, either... but if it can, perhaps I could have a generic "text file" area on the right into which you load a text file; you'd have to position the cursor exactly where you want the indexes to be copied, since it would have no idea of where they're "supposed" to go for any particular game... Would also be cool though if you hightligt a number in the file, if it could do a reverse lookup and select the image, too!

                  Another feature I wanted to implement was a "memory", such that if you close the app, it would save off your last used options so you wouldn't have to set them from the defaults! (Or at least an INI file to set your OWN defaults!) Not sure if Javascript can read or write files though...
                  You read the scroll labeled NOBIMUS UPSCOTI...
                  You are surrounded by a stasis field!
                  The tengu tries to teleport, but fails!

                  Comment

                  • buzzkill
                    Prophet
                    • May 2008
                    • 2939

                    #10
                    Originally posted by ekolis
                    Knights.bmp works for me; the only thing I can think of is that maybe since the background of the image was white, you couldn't see the selection reticule and thus never even tried to click? I could make the reticule a different style, if you'd like...
                    It's not a big deal. Is long as it work with 32x32.bmp's, all is good. Image of unviewable.bmp attached none the less.
                    1. Not sure why you'd want to specify the upper-left value apart from zero and one, but OK, can do
                    Every variant I've ever tinkered with starts (upper-left) with 0x80:0x80.

                    3. Choosing a separator? Sure
                    4. Y,X mode? OK
                    Once again, the Angband prf format is two hex values (Y,X) separated by a colon. Just trying to minimize the manual editing.

                    5. prf mode? Hmm, that might be a bit tricky...
                    Yeah, I knew that this was a long shot. The script is still be incredibly useful without it.

                    Another feature I wanted to implement was a "memory", such that if you close the app, it would save off your last used options so you wouldn't have to set them from the defaults!
                    Good idea.
                    Attached Files
                    Last edited by buzzkill; February 25, 2010, 15:46.
                    www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
                    My banding life on Buzzkill's ladder.

                    Comment

                    • ekolis
                      Knight
                      • Apr 2007
                      • 921

                      #11
                      Try v3

                      Hmm, this message was not at least 10 characters, so the forum rejected it, it was only 9, so here goes... lorem ipsum dolor factorum virumque spam spam eggs and spam all your base are belong to us behold my floating fortress the egg carrier insert your random quote here...

                      That enough characters?
                      Attached Files
                      You read the scroll labeled NOBIMUS UPSCOTI...
                      You are surrounded by a stasis field!
                      The tengu tries to teleport, but fails!

                      Comment

                      • buzzkill
                        Prophet
                        • May 2008
                        • 2939

                        #12
                        [applause] Awesome! This will save me a lot of work, and re-work. Thanks to yourself and Konijn_, creating a tile set is becoming almost tolerable.

                        What web browser and OS do you use? I'm still having (inconsequential) problems opening other .bmp's.
                        Last edited by buzzkill; February 27, 2010, 04:46.
                        www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
                        My banding life on Buzzkill's ladder.

                        Comment

                        • thapper
                          Adept
                          • Aug 2008
                          • 168

                          #13
                          Sweet! I gave it a try on the (delayed) commuter train this morning. I couldn't get it working in Firefox 3.6 (on a windows vista machine) but it ran like a charm in IE.

                          Comment

                          • ekolis
                            Knight
                            • Apr 2007
                            • 921

                            #14
                            I'm using Google Chrome on Windows 7... sorry I didn't test on Firefox; I don't have Firefox installed at the moment. I could always install it though if necessary

                            What kind of trouble are you having, thapper? Any particular error messages?

                            As for the "other BMP's" issue, I wonder... Space Empires has this strange requirement that bitmaps be saved in some sort of OS/2 format - most image editors apparently do so by default, but Photoshop doesn't... maybe that has something to do with it?
                            You read the scroll labeled NOBIMUS UPSCOTI...
                            You are surrounded by a stasis field!
                            The tengu tries to teleport, but fails!

                            Comment

                            • thapper
                              Adept
                              • Aug 2008
                              • 168

                              #15
                              The problem in Firefox is that nothing happens when I hit the "ready" button, no error message, nothing! I'll check and make sure that it's not my settings that are blocking something...

                              and don't worry about it, I have IE installed so I'll just run it there.

                              Comment

                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎