Files with this format: "darkland.cty
".
Contains names, location names, coordinates, and other data specific to cities. Non-city locations are stored in darkland.loc.
0x00
:
num_cities:
byte = 0x5c0x01
:
cities:
array[ num_cities ] of struct city
(each size 0x26e)
Size 0x26e.
0x00
:
short_name:
string(32)
0x20
:
full_name:
string(32)
0x40
:
city_data:
struct city_data
(size 0x2e)
0x6e
:
leader_name:
string(32)
0x8e
:
ruler_name:
string(32)
0xae
:
unknown
string(32)
0xce
:
polit_name:
string(32)
0xee
:
town_hall_name:
string(32)
0x10e
:
fortress_name:
string(32)
0x12e
:
cathedral_name:
string(32)
0x14e
:
church_name:
string(32)
0x16e
:
market_name:
string(32)
0x18e
:
unknown
string(32)
0x1ae
:
slum_name:
string(32)
0x1ce
:
unknown
string(32)
0x1ee
:
pawnshop_name:
string(32)
0x20e
:
kloster_name:
string(32)
0x22e
:
inn_name:
string(32)
0x24e
:
university_name:
string(32)
Size 0x2e.
0x00
:
city_size:
word
0x02
:
entry_coords:
struct coordinates
0x06
:
exit_coords:
struct coordinates
0x0a
:
dock_destinations:
array[ 4 ] of word
0x12
:
word
0x14
:
word [constant: 4]0x16
:
word
0x18
:
city_type:
word (enum ruler)
0x1a
:
unknown
word
0x1c
:
word [constant: 0]0x1e
:
city_contents:
bitmask[16 bits]
bit 1: | is_kloster: | Is there a kloster? |
bit 2: | is_slums: | Is there a slums? |
bit 3: | unknown | |
bit 4: | is_cathedral: | Is there a cathedral? |
bit 5: | unknown | |
bit 6: | is_no_fortress: | Is there no city fortress?
|
bit 7: | is_town_hall: | Is there a town hall? |
bit 8: | is_polit: [constant: 1] | Is there a political center? |
bit 9: | [constant: 0] | |
bit 10: | [constant: 0] | |
bit 11: | [constant: 0] | |
bit 12: | [constant: 0] | |
bit 13: | docks: | Are there docks? |
bit 14: | unknown | |
bit 15: | is_pawnshop: | Is there a liefhaus (pawnshop)? |
bit 16: | is_university: | Is there a university? |
0x20
:
word [constant: 0]0x22
:
qual_black:
byte
0x23
:
qual_merch:
byte
0x24
:
qual_sword:
byte
0x25
:
qual_armor:
byte
0x26
:
qual_unk1:
unknown
byte
0x27
:
qual_bow:
byte
0x28
:
qual_tink:
byte
0x29
:
qual_unk2:
unknown
byte
0x2a
:
qual_cloth:
byte
0x2b
:
byte [constant: 0]0x2c
:
unknown
byte
0x2d
:
unknown
byte
Type of city (free, ruled, capital)
$CITYE00.msg
is given when you are approaching a city.Data Value | Meaning |
---|---|
0 | Free City |
1 | Ruled City |
2 | Capital |