Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 23, 2010, 21:23   #1
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
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!
ekolis is offline   Reply With Quote
Old February 23, 2010, 21:39   #2
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
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.
RogerN is offline   Reply With Quote
Old February 23, 2010, 21:47   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,848
Donated: $60
Nick will become famous soon enough
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.
Nick is offline   Reply With Quote
Old February 23, 2010, 23:41   #4
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
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.
buzzkill is offline   Reply With Quote
Old February 23, 2010, 23:45   #5
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
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
File Type: zip TilePicker.zip (1.7 KB, 144 views)
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old February 24, 2010, 02:30   #6
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
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.
buzzkill is offline   Reply With Quote
Old February 24, 2010, 17:08   #7
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
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
File Type: zip TilePicker.v2.zip (2.1 KB, 127 views)
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old February 25, 2010, 02:37   #8
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
Quote:
Originally Posted by ekolis View Post
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.

Quote:
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 Images
File Type: bmp knights.bmp (7.1 KB, 174 views)
__________________
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.
buzzkill is offline   Reply With Quote
Old February 25, 2010, 15:04   #9
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to 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...

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!
ekolis is offline   Reply With Quote
Old February 25, 2010, 15:37   #10
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
Quote:
Originally Posted by ekolis View Post
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.
Quote:
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.

Quote:
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.

Quote:
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.

Quote:
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 Images
File Type: jpg tp.jpg (6.7 KB, 146 views)
__________________
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.

Last edited by buzzkill; February 25, 2010 at 15:46.
buzzkill is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request: make "summon unique" do nothing when there are no uniques bron Vanilla 11 December 22, 2009 17:25
Feature request: change "Purification and Healing" prayer book. bron Vanilla 1 December 19, 2009 00:19
"repeat" Command just little bit "smarter" ClaytonAguiar Vanilla 8 June 17, 2009 16:01
Quick Diving versus "Recommended Depths" Wraitheist Vanilla 14 May 4, 2008 09:12
Roguelike idea from "Lost Magic" DS game - Mr. @ teaches typing! ekolis Idle chatter 10 October 19, 2007 04:25


All times are GMT +1. The time now is 10:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.