Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 22, 2011, 22:24   #1
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
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.
nppangband is offline   Reply With Quote
Old February 23, 2011, 00:39   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
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.
Derakon is offline   Reply With Quote
Old February 23, 2011, 00:54   #3
Nomad
Knight
 
Nomad's Avatar
 
Join Date: Sep 2010
Location: England
Posts: 958
Nomad is on a distinguished road
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.
Nomad is offline   Reply With Quote
Old February 23, 2011, 03:17   #4
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
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.
buzzkill is offline   Reply With Quote
Old February 27, 2011, 19:12   #5
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
@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.
nppangband is offline   Reply With Quote
Old February 28, 2011, 04:43   #6
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 nppangband View Post
@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.
Wow, that's weird. I didn't realize it either. I don't even recall ever playing NPP. Anyhoo, I guessing that I did a minimal amount of work, maybe assigned some terrains and early monsters, I'd guess.

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.
buzzkill is offline   Reply With Quote
Old March 12, 2011, 19:08   #7
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 nppangband View Post
@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.
I finally got around to playing NPP. It's turns out I did nothing more than import the Vanilla tileset and (possibly) made some changes to the graf-dvg.prf. In any case, it seems to work well, at least to DL 7. The only things I encountered that weren't assigned a graphic were "the walls carved by elvish hands" and the dreaded "pink mushroom" that killed me (both represented by ASCII). Everything else was spot on.

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


All times are GMT +1. The time now is 18:57.


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