# bobbyhewmar/lucera-il architecture

> Architecture diagram of the GitHub repository bobbyhewmar/lucera-il, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bobbyhewmar/lucera-il
- Repository: https://github.com/bobbyhewmar/lucera-il

## Overview

Lucera Interlude is a Java MMORPG server, split between player authentication and the game-world runtime. The principal user workflow is client login, server selection, then play on a game server; the game runtime also handles world entities, movement, skills, items, and content-defined interactions. Persistence, configuration, and shared runtime services support these domains. The README only identifies the product, so links not established by the supplied source excerpts or SOURCE INDEX are marked unverified; several prominent indexed files are absent from the supplied tree and are not represented as nodes.

Main entry points: [`java/l2/gameserver/GameServer.java`](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/GameServer.java) (Game server), [`java/l2/authserver/AuthServer.java`](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/AuthServer.java) (Login server), [`java/l2/gameserver/geodata/GeoEngine.java`](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/geodata/GeoEngine.java) (Geodata engine), [`java/l2/gameserver/model/GameObject.java`](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/GameObject.java) (World entities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gateway["Authentication gateway"]
  node_login["Login server<br/>[AuthServer.java]"]
  node_account["Account management"]
  node_loginprotocol["Login protocol"]
  node_gsregistry["Game server registry"]
  node_gamecomm["Game-server link"]
end

subgraph group_world["World runtime"]
  node_gameserver["Game server<br/>[GameServer.java]"]
  node_entities["World entities<br/>[GameObject.java]"]
  node_objectstore[("Object storage")]
  node_npc["NPC behavior<br/>[NpcInstance.java]"]
  node_geodata["Geodata engine<br/>[GeoEngine.java]"]
  node_location["World locations<br/>[Location.java]"]
end

subgraph group_content["Gameplay and content"]
  node_items["Item instances<br/>[ItemInstance.java]"]
  node_itemfunctions["Item operations<br/>[ItemFunctions.java]"]
  node_skills["Skill loading<br/>[SkillsEngine.java]"]
  node_xmlcontent["XML content parsers<br/>[Parsers.java]"]
  node_handlers["Gameplay handlers<br/>[ItemHandler.java]"]
  node_scripts["Game scripts"]
end

subgraph group_platform["Shared services"]
  node_config["Server configuration<br/>[Config.java]"]
  node_database[("Game database")]
  node_threadpool["Task scheduling"]
end

node_player(("Game player"))

node_player -.->|"logs in"| node_login
node_login -.->|"handles login"| node_loginprotocol
node_loginprotocol -.->|"checks account"| node_account
node_login -.->|"tracks servers"| node_gsregistry
node_gsregistry -->|"manages links"| node_gamecomm
node_player -.->|"selects server"| node_gameserver
node_gameserver -.->|"runs world"| node_entities
node_objectstore -->|"stores objects"| node_entities
node_objectstore -->|"retrieves NPCs"| node_npc
node_npc -->|"creates items"| node_itemfunctions
node_itemfunctions -->|"creates instances"| node_items
node_location -->|"queries terrain"| node_geodata
node_geodata -->|"reads settings"| node_config
node_geodata -->|"uses world objects"| node_entities
node_skills -->|"reads settings"| node_config
node_gameserver -.->|"loads content"| node_xmlcontent
node_gameserver -.->|"dispatches actions"| node_handlers
node_gameserver -.->|"runs scripts"| node_scripts
node_gameserver -.->|"uses persistence"| node_database
node_gameserver -.->|"schedules tasks"| node_threadpool

click node_login "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/AuthServer.java"
click node_account "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/AccountManager.java"
click node_loginprotocol "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/network/l2/L2LoginPacketHandler.java"
click node_gsregistry "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/GameServerManager.java"
click node_gamecomm "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/network/gamecomm/GameServerCommunication.java"
click node_gameserver "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/GameServer.java"
click node_entities "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/GameObject.java"
click node_objectstore "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/GameObjectsStorage.java"
click node_npc "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/instances/NpcInstance.java"
click node_geodata "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/geodata/GeoEngine.java"
click node_location "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/utils/Location.java"
click node_items "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/items/ItemInstance.java"
click node_itemfunctions "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/utils/ItemFunctions.java"
click node_skills "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/skills/SkillsEngine.java"
click node_xmlcontent "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/data/xml/Parsers.java"
click node_handlers "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/handler/items/ItemHandler.java"
click node_scripts "https://github.com/bobbyhewmar/lucera-il/blob/main/scripts/bosses/FrintezzaManager.java"
click node_config "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/Config.java"
click node_database "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/database/DatabaseFactory.java"
click node_threadpool "https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/ThreadPoolManager.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_account,node_loginprotocol,node_gsregistry,node_gamecomm toneBlue
class node_gameserver,node_entities,node_objectstore,node_npc,node_geodata,node_location toneAmber
class node_items,node_itemfunctions,node_skills,node_xmlcontent,node_handlers,node_scripts toneMint
class node_config,node_database,node_threadpool toneRose
class node_player toneIndigo
```

## Components

### Authentication gateway

- [Login server](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/AuthServer.java): `java/l2/authserver/AuthServer.java`
- [Account management](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/AccountManager.java): `java/l2/authserver/AccountManager.java`
- [Login protocol](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/network/l2/L2LoginPacketHandler.java): `java/l2/authserver/network/l2/L2LoginPacketHandler.java`
- [Game server registry](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/GameServerManager.java): `java/l2/authserver/GameServerManager.java`
- [Game-server link](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/authserver/network/gamecomm/GameServerCommunication.java): `java/l2/authserver/network/gamecomm/GameServerCommunication.java`

### World runtime

- [Game server](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/GameServer.java): `java/l2/gameserver/GameServer.java`
- [World entities](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/GameObject.java): `java/l2/gameserver/model/GameObject.java`
- [Object storage](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/GameObjectsStorage.java): `java/l2/gameserver/model/GameObjectsStorage.java`
- [NPC behavior](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/instances/NpcInstance.java): `java/l2/gameserver/model/instances/NpcInstance.java`
- [Geodata engine](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/geodata/GeoEngine.java): `java/l2/gameserver/geodata/GeoEngine.java`
- [World locations](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/utils/Location.java): `java/l2/gameserver/utils/Location.java`

### Gameplay and content

- [Item instances](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/model/items/ItemInstance.java): `java/l2/gameserver/model/items/ItemInstance.java`
- [Item operations](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/utils/ItemFunctions.java): `java/l2/gameserver/utils/ItemFunctions.java`
- [Skill loading](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/skills/SkillsEngine.java): `java/l2/gameserver/skills/SkillsEngine.java`
- [XML content parsers](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/data/xml/Parsers.java): `java/l2/gameserver/data/xml/Parsers.java`
- [Gameplay handlers](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/handler/items/ItemHandler.java): `java/l2/gameserver/handler/items/ItemHandler.java`
- [Game scripts](https://github.com/bobbyhewmar/lucera-il/blob/main/scripts/bosses/FrintezzaManager.java): `scripts/bosses/FrintezzaManager.java`

### Shared services

- [Server configuration](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/Config.java): `java/l2/gameserver/Config.java`
- [Game database](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/database/DatabaseFactory.java): `java/l2/gameserver/database/DatabaseFactory.java`
- [Task scheduling](https://github.com/bobbyhewmar/lucera-il/blob/main/java/l2/gameserver/ThreadPoolManager.java): `java/l2/gameserver/ThreadPoolManager.java`

### Other components

- **Game player**

## Connections

- Game player → Login server: logs in
- Login server → Login protocol: handles login
- Login protocol → Account management: checks account
- Login server → Game server registry: tracks servers
- Game server registry → Game-server link: manages links (evidence: `java/l2/authserver/GameServerManager.java`)
- Game player → Game server: selects server
- Game server → World entities: runs world
- Object storage → World entities: stores objects (evidence: `java/l2/gameserver/model/GameObjectsStorage.java`)
- Object storage → NPC behavior: retrieves NPCs (evidence: `java/l2/gameserver/model/GameObjectsStorage.java`)
- NPC behavior → Item operations: creates items (evidence: `java/l2/gameserver/model/instances/NpcInstance.java`)
- Item operations → Item instances: creates instances (evidence: `java/l2/gameserver/utils/ItemFunctions.java`)
- World locations → Geodata engine: queries terrain (evidence: `java/l2/gameserver/utils/Location.java`)
- Geodata engine → Server configuration: reads settings (evidence: `java/l2/gameserver/geodata/GeoEngine.java`)
- Geodata engine → World entities: uses world objects (evidence: `java/l2/gameserver/geodata/GeoEngine.java`)
- Skill loading → Server configuration: reads settings (evidence: `java/l2/gameserver/skills/SkillsEngine.java`)
- Game server → XML content parsers: loads content
- Game server → Gameplay handlers: dispatches actions
- Game server → Game scripts: runs scripts
- Game server → Game database: uses persistence
- Game server → Task scheduling: schedules tasks
