scripts lineage2  :::  Server Packs lineage 2 — best scripts for admin servers   :::  Projects lineage Turnkey
l2-scripts.com  Freelance Studio

ArticlesServer packs and technology3 min read

What GeoData is and why a Lineage 2 server needs it

Without geodata, the game world is a flat field with no walls or hills as far as the server is concerned. Here is a plain explanation of what geodata is and why no decent server can do without it.

A world without geodata

The Lineage 2 client draws a beautiful world with mountains, castle walls, trees and caves. The server, however, does not see that picture: it only knows the coordinates of characters and monsters. Without extra data, the world is a flat plateau with no walls and no cliffs. In practice it looks like this:

  • monsters walk through walls and shoot through obstacles;
  • aggressive mobs notice and attack you even if you are standing behind a wall and cannot see them;
  • a character pushing against a wall keeps changing coordinates on the server, and mobs slip through obstacles even faster;
  • players, and especially bots, can walk through walls and take advantage of it.

The reason is that the walls the player sees and the walls in the server's calculations do not match: for the server, they simply do not exist. In the old days this was easy to spot in the catacombs, where monsters sat right inside the walls or the floor and a character who got too close to a wall could get stuck in it.

What geodata is

Geodata (GeoData) is a mathematical description of the game world for the server: terrain, heights, castle walls, trees, bridges and the other obstacles found in the game client. With it, the server controls how objects move and interact: whether a character can reach a given point, whether a mob can see its target, whether an arrow or a spell will reach the enemy.

Geodata is built as a grid: the whole map is split into a huge number of small cells connected to each other along their sides. For every cell, the server stores its height and the directions in which you can move out of it. Where there are several levels, such as on bridges or in multi-storey buildings, several layers are stored for the same spot on the map.

What geodata gives a server

  • monsters walk around obstacles and do not attack through walls;
  • arrows and spells do not fly through walls and rocks;
  • characters do not pass through walls or fall under the ground;
  • bots and cheaters find it much harder to exploit map errors;
  • the world on the server behaves the way the player sees it.
Geodata must match the chronicleThe game world changes with every chronicle: new locations appear and old ones are rebuilt. That is why geodata is made for a specific client version; Interlude geodata, for example, is incomplete for Epilogue or High Five. The file format must also be supported by your server pack, and since geodata is loaded into the server's memory, take it into account when choosing hardware.

High-precision geodata for Essence and Classic can be downloaded for free in the GeoData section, with files for several client versions in two formats.

Published 20 September 2013

Read also

Need help with your server?

We help with the server pack, setup, protection and launch — one-off or on an ongoing basis.

L2‑Scripts newsletter

Get L2‑Scripts news by email

And 5% off all studio services while you stay subscribed.

The discount is valid while you are subscribed: when ordering, tell the manager your subscription address on Telegram.