View Single Post
Old December 31, 2011, 23:08   #9
Blue Baron
Adept
 
Join Date: Apr 2011
Posts: 103
Blue Baron is on a distinguished road
What magnate is talking about is a bit different. The format of the graf-xxx.prf files changed a bit since 3.2.

In 3.2.x features got one line and the lit features were a hardcoded offset from the given coordinate. In 3.3.x features got additional lines for the lighting levels. For instance:
Code:
# open floor
F:1:0x96:0x81

# invisible trap
F:2:0x96:0x81

# glyph of warding
F:3:0x87:0xA9

#open door
F:4:0x96:0x84
becomes:
Code:
# open floor
F:1:bright:0x96:0x80
F:1:lit:0x96:0x81
F:1:dark:0x96:0x82

# glyph of warding
F:3:all:0x87:0xA9

#open door
F:4:all:0x96:0x84

A similar thing happened for the spell effect lines:
Code:
# Group Ball
...
# mana
S:0x04:0x81:0xc3
...
# Group Bolt
...
# mana
S:0x44:0x81:0xA0
becomes:
Code:
GF:MANA:static:0x81:0xC3
GF:MANA:0:0x81:0xA0
GF:MANA:45:0x81:0xA2
GF:MANA:90:0x81:0xA1
GF:MANA:135:0x81:0xA3

In 3.4, the way pluralization works changed internally, and the object name that is compared in pref files does not have the tilde anymore. For instance:
Code:
K:spike:Iron Spike~:0x87:0x98
becomes:
Code:
K:spike:Iron Spike:0x87:0x98

Also there are a few more entries that accept tiles. In 3.3.x there is the pile ("K:0:0:0x87:0xB6"). In 3.4 there are a few more:
Trap Detected border overlay - F:65:all:y:x
Trap Detected border underlay - F:64:all:y:x (Could be the 3 floor tiles with the overlay already on it. Replaces plain floor when underneath a monster or object.)
Unknown object - K:0:1:y:x
Unknown treasure (if implemented) - K:0:2:y:x

When I added tile support for the trap detection border I just picked some green tiles (the green lightning ball and one of the grass tiles), but you might want to use something better.

Also, the windows PNG support was added in 3.3, so angband doesn't use BMP files anymore.

Anyways, i'll go ahead and change the feature locations in the pref file for 3.4, but you should be aware of the above for the future.

Lastly, in the mixed tileset I assembled for my personal copy of Z+ there are shaded doors on top of the walls, if you want to use them.
Blue Baron is offline   Reply With Quote