How open-ko/knightonline works
OpenKO is an academic reimplementation of the 1298/9 Knight Online MMORPG, comprising a game client, multiple server processes, shared runtime libraries, and asset-authoring tools. A player-facing flow begins in the client’s login and character-selection procedures, then enters the main game, where world rendering and game UI support play; client traffic targets the game server, while backend services support server operations. README claims establish product scope and compatibility goals; source-index references support only selected internal links, so other likely runtime interactions are marked unverified or omitted.
Main entry points: EbenezerApp.h Game server · GameProcMain.h Main gameplay · GameProcedure.h Game procedures · DBAgent.cpp Database agent
Components 26
Game client
- Game procedures
src/Client/WarFare/GameProcedure.h - Login flow
src/Client/WarFare/UILogin_1298.cpp - Character selection
src/Client/WarFare/GameProcCharacterSelect.cpp - Main gameplay
src/Client/WarFare/GameProcMain.h - Game UI
src/Client/WarFare/UIManager.cpp - World manager
src/Client/WarFare/N3WorldManager.h - Terrain and objects
src/Client/WarFare/N3TerrainManager.cpp - Player model
src/Client/WarFare/PlayerMySelf.h - Client socket
src/Client/WarFare/APISocket.cpp
Server services
- Game server
src/Server/Ebenezer/EbenezerApp.h - Users and game logic
src/Server/Ebenezer/User.h - Guild operations
src/Server/Ebenezer/KnightsManager.cpp - AI server
src/Server/AIServer/AIServerApp.h - Database agent
src/Server/Aujard/DBAgent.cpp - Item manager
src/Server/ItemManager/ItemManagerApp.cpp - Version service
src/Server/VersionManager/VersionManagerApp.cpp
Shared runtime
- DB connections
src/db-library/ConnectionManager.cpp - TCP sockets
src/Server/shared-server/TcpSocket.h - 3D rendering
src/N3Base/N3AlphaPrimitiveManager.cpp - ZIP archives
src/Client/ZipArchive/ZipStorage.cpp
Content tools
- Map editor
src/Tools/N3ME/WallMgr.cpp - Effect editor
src/Tools/N3FXE/DlgEditPartParticle.cpp - Character editor
src/Tools/N3CE/FormViewProperty.cpp - Client utilities
src/Client/Launcher/LauncherDlg.cpp
Other components
- Player
- Game database
Connections 24
- Player → Login flow: starts session
- Login flow → Game procedures: enters procedure
- Game procedures → Character selection: selects character
- Game procedures → Main gameplay: starts gameplay
src/Client/WarFare/GameProcMain.h - Main gameplay → Game UI: uses UI
src/Client/WarFare/UIManager.cpp - Main gameplay → World manager: uses world
- World manager → Terrain and objects: loads terrain
src/Client/WarFare/N3TerrainManager.cpp - Main gameplay → Player model: controls player
- Game procedures → Client socket: sends packets
- Client socket → Game server: exchanges game traffic
- Game server → Users and game logic: manages users
- Game server → AI server: coordinates AI
- Game server → Guild operations: handles guild requests
src/Server/Ebenezer/KnightsManager.cpp - Guild operations → Users and game logic: reads user state
src/Server/Ebenezer/KnightsManager.cpp - Game server → Database agent: requests persistence
- Database agent → Game database: reads and writes
- Version service → DB connections: uses connections
src/Server/VersionManager/VersionManagerApp.cpp - Database agent → DB connections: uses connections
- Item manager → Game database: manages item data
- Game server → TCP sockets: uses sockets
- AI server → TCP sockets: uses sockets
- Version service → TCP sockets: accepts clients
src/Server/VersionManager/VersionManagerApp.cpp - Main gameplay → 3D rendering: renders scene
- Client utilities → Version service: checks versions