![]() |
#1 |
NPPAngband Maintainer
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
![]() |
How do I edit tilesets?
One thing I have never done a good job with in NPP is keeping the tilesets up to date, and with all the changes in monsters and terrain I don't have a single functioning tileset for NPP.
I could probably find all the tiles I need already drawn in UNAngband, if I knew how to cut and paste them, and figure out what the coordinates should be. What is the best way to do this? Also, I see lots of freeware programs out there for editing tilesets Does anyone have one that they recommend? Thanks for any suggestions you may have. |
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
I don't know how Angband actually maps objects to tiles, but if you have a collection of BMP or PNG or whatever images and you want to composite them into a single tilemap in a fixed arrangement, ImageMagick will do it for you. It's basically image manipulation from the commandline, so it's very programmer-friendly.
|
![]() |
![]() |
![]() |
#3 |
Knight
Join Date: Sep 2010
Location: England
Posts: 958
![]() |
The coordinates are specified in the pref files. In Vanilla there are three files for each tile set:
graf-xxx.prf - terrain, objects and monsters flvr-xxx.prf - flavoured objects xtra-xxx.prf - class/race-specific player tiles You just assign each feature coordinates in y:x format. The top left tile on the map is 0x80:0x80, the one to the right of it is 0x80:0x81, first one on the row below is 0x81:0x80, etc. You can easily cut and paste new tiles onto the existing bmp/png files using any old graphics program. Or you could just replace the existing tile maps with the ones from UnAngband, assuming they're the same dimensions, and then it's just a case of editing the prefs to make sure all the features are assigned appropriate tiles. |
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
![]() |
I use Paint.NET for all my graphic editing. It does way more than you need but it's free and easy to get the hang of. It displays pixel by pixel coordinates so it's easy to tell exactly where you're placing something (which is very important). That said, I've nothing to really compare it to as it's all I've ever used, though I have heard good things about GIMP also.
Nomad covered everything else. I believe hex format is optional. So referring to the top left as 128:128 should work just as well. Derakon mentioned a program that will paste individual tiles together into a tileset. Here's another. It's called Glue Sprites. It works both ways. It can dissemble a tile set into individual tiles, or take individual tiles and reassemble them. It does what it says but I've never found it to be very useful.
__________________
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. |
![]() |
![]() |
![]() |
#5 |
NPPAngband Maintainer
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
![]() |
@Buzzzkill - I didn't realize you had done a tileset for NPP. It looks to be based on DVG? What changes did you make, and may I have your permission to include it in NPPAngband? Thanks.
|
![]() |
![]() |
![]() |
#6 | |
Prophet
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
![]() |
Quote:
You're welcome to it, in whatever state it happens to be in. Let me know if at some point you surpass what I've done so that I can remove my inferior version.
__________________
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. |
|
![]() |
![]() |
![]() |
#7 | |
Prophet
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
![]() |
Quote:
Anyone who must have tiles should give it a try, and of course it should be included with the next release, maybe with a disclaimer as to it's completeness. Get graf-dvg.prf here. Then copy and paste 32x32.bmp and mask32.bmp from your Vanilla folder.
__________________
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. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tilesets and *bands | Nero | Variants | 4 | May 16, 2010 00:56 |
[Q] (simple) help needed with edit file | Djabanete | Variants | 4 | March 20, 2010 17:55 |
edit files? | tummychow | Vanilla | 2 | September 13, 2009 20:38 |
Tilesets in NPP | Antoine | Variants | 3 | February 28, 2008 10:01 |
Changes to lib/edit files | Iemortal | Vanilla | 1 | September 23, 2007 05:26 |