Jump to content

Landblock

From the Asheron's Call Commons Encyclopedia
Related topics: Maps
  • Dereth is divided into a grid of 65,536 landblocks comprising a grid 256 blocks wide by 256 blocks high (values 0 to 255).
  • By convention, maps are named by the landblock they are in (multiple locations in the same landblock should be on the same map). This allows plugins to easily request available maps given your current location (regardless of the actual name, or chosen name, of the dungeon/area). This also avoids duplication if people call something by different names.
  • Though there are exceptions, when there is no player activity in most landblocks for five minutes, the resources for the landblock will be released from the server. This results in reset spawns. Corpse timers are also inactive if the landblock where the corpse is located is inactive (no player activity).
  • You can determine your landblock location at anytime by typing the /loc command. Ignore the 0x, the next 4 alphanumeric characters are the Hexadecimal code for the landblock you are currently in. The next four indicate where you are within the landblock. You can think of the code as coordinates, starting in the lower left corner. The first two digits place you left to right, starting on the left. The second two digits place you top to bottom, starting at the bottom.
  • If you aren't comfortable using hex numbers you can convert them to decimal equivalents, for example with the windows calculator (in the View menu make sure Scientific is checked, click Hex, enter the value, then click Dec).
  • Some examples:
    • Caul drop is 0904, which is nine landblocks from the left edge of the map, and four landblocks from the bottom of the map (or in the very southwest corner).
    • Aphus Lassel drop is F682, which is F6 or 246 landblocks from the left edge of the map (almost to the right edge), and 82 or 130 landblocks from the bottom edge of the map.
  • As you might imagine, conversion to coordinates is not simplistic. Basically it involves translating a 256 scale to a 100*2 scale then moving the origin and converting to east west, north south.
  • "Asheron's Call 1 defines its geography as a grid of landblocks, each about a thousand square meters, which get dynamically load-balanced between subservers. But each landblock is load-balanced as a unit, so AC1 has a similar limitation in that a landblock cannot be split across multiple subservers." - Srand http://www.skotos.net/articles/lessons/lessons7.phtml

Caul drop:

  • Your location is: 0x09040008 [11.400000 188.600006 87.521667] -0.996345 0.000000 0.000000 -0.085417
  • The landblock is 0904
  • The next part, "0008", identifies which square in the 8x8 grid you are standing in. When this value is >= 0x0100 you are inside (either in a building or in a dungeon).
  • The next three values are your x, y, and z positions within the landblock. In a dungeon, they are the x, y, z position inside the entire dungeon.
  • The last four values are a quaternion representing your orientation. (I think it is w, x, y, z).

Aphus Lassel drop:

  • Your location is: 0xF6820033 [145.699997 49.855000 58.005001] -0.467544 0.000000 0.000000 -0.883970
  • Landblock f682
  • square 0033
  • position, heading

Empirical Attributes (ACC 2026)

AttributeVerified Value
Grid Columntop byte of 32-bit landblock id, scaled by eight into cell units[1][1][2]
Grid Rowsecond byte of landblock id, scaled by eight into cell units[1][1][2]
Outdoor Cell Idlandblock column and row plus a 1-based index inside the landblock formed from the low three bits of each cell coordinate[1][1][2]
GridDereth divided into 256 by 256 grid[3]
Usagewiki names dungeon maps by landblock[3]
Multiple Dungeonsdisambiguation page linking to every dungeon in it[5]
Single Dungeonsimple redirect to that dungeon[5]
Sizeroughly a thousand square meters[4][3][3][3][3][5][3][3][3]
Load Balancingdynamically load-balanced between subservers as a single unit; never split[4][3][3][3][3][5][3][3][3]
Cell Id Formulalandblock number times 65,536 plus cell index[4][3][3][3][3][5][3][3][3]
Degree Conversionrescale 256-step grid to 200-degree span, move origin to map centre, express as N/S and E/W[4][3][3][3][3][5][3][3][3]
Dungeon Coordinatesx, y, z measured across whole dungeon[4][3][3][3][3][5][3][3][3]
Wiki Conventionlandblock with several dungeons gets a disambiguation page[4][3][3][3][3][5][3][3][3]

Verified Claims

  • In the retail client, a landblock's grid column comes from the top byte of its 32-bit landblock id, scaled by eight into cell units. unknown[1]
  • In the retail client, a landblock's grid row comes from the second byte of its landblock id, also scaled by eight into cell units. unknown[1]
  • The retail client packs an outdoor cell identifier from the landblock column and row plus a 1-based index inside the landblock, where that index is formed from the low three bits of each cell coordinate. unknown[2]
  • Dereth is divided into a 256 by 256 grid of landblocks, and the wiki names dungeon maps by the landblock they occupy. unknown[3]
  • A landblock that holds more than one dungeon gets a disambiguation page linking to every dungeon in it. A landblock with a single dungeon is a simple redirect to that dungeon. unknown[5]
  • A placed object in landblock 754 has cell number 49414403. That is the landblock number times 65,536, plus cell index 259. unknown[4]
  • A developer quote on the wiki says the original game divided its geography into landblocks that were dynamically load-balanced between subservers. unknown[3]
  • Each landblock was load-balanced as a single unit, so one landblock could never be split across more than one subserver. unknown[3]
  • The same developer quote describes each landblock as covering roughly a thousand square meters. unknown[3]
  • Inside a dungeon, the x, y and z values of the location readout are measured across the whole dungeon rather than within one outdoor cell. unknown[3]
  • The wiki's convention is that a landblock holding several dungeons gets a disambiguation page linking all of them, rather than a redirect to a single dungeon. unknown[5]
  • Converting a landblock code to map degrees means rescaling the 256-step landblock grid to a 200-degree span (100 each way), moving the origin to the map centre, and then expressing the result as north/south and east/west. unknown[3]
  • After the cell id, the location readout gives x, y and z positions inside the landblock. Inside a dungeon, those values are positions within the whole dungeon. unknown[3]
  • A developer described each landblock as about a thousand square meters. The server load-balances each landblock as a single unit, so one landblock can never be split across subservers. unknown[3]

References

  1. ^ Retail client program code, routine LandDefs::blockid_to_lcoord.
  2. ^ Retail client program code, routine LandDefs::lcoord_to_gid.
  3. ^ Asheron's Call Wiki (acpedia), “Landblock”, revision 421232.
  4. ^ Observed world data: server world-database records (reconstruction tier).
  5. ^ Asheron's Call Wiki (acpedia), “Landblock Template”, revision 117767.