Years of working with Lineage 2 servers (Interlude and High Five) and client modifications made one thing clear: the game's atmosphere and core mechanics are timeless, but the original Unreal Engine 2.5 client is severely dated. Single-threaded rendering, DirectX 9 constraints, and heavy native DLL reverse engineering slow down any real evolution. I wanted to bring this familiar world onto Unity to preserve the authentic protocol and gameplay feel while gaining modern rendering, flexibility, and cross-platform potential—without rewriting existing server code.

What it does This project is a custom Lineage 2 client built on Unity that connects directly to existing Java/C++ servers over the standard network protocol. It currently supports: -authentication and packet stream encryption (XOR keys for LoginServer and GameServer); -real-time rendering of terrain, open-world zones, characters, NPCs, and objects; -movement, animation, attack speed, and casting speed synchronization with server state; -a rebuilt uGUI interface covering action bars, inventory, chat, and character status.

How I built it -Networking layer: Built an async C# TCP client with ByteBuffer packet parsing that dispatches incoming network events into Unity scene logic. -Asset pipeline: Created conversion tools to unpack Unreal Engine 2 archives (.ukx, .usx, .utx, .unr) into Unity-friendly .fbx models, textures, and heightmaps.

Challenges I ran into -Geodata vs. PhysX mismatch: Servers validate movement against geodata (NSWE), while Unity uses PhysX. Elevation differences caused rubberbanding and ground clipping, which I resolved by generating Unity colliders directly from server geodata. -UE2 equipment sockets: Legacy skeletons use specific attachment points for weapons, shields, and armor, requiring a custom parser during prefab generation.

Accomplishments that I'm proud of -Built a stable connection, encryption, and live packet exchange with a real L2 server from Unity. -Created a working asset and collision pipeline without modifying server code. -Eliminated micro-stutters under heavy traffic via zero-allocation parsing.

What I learned -Mastered real-time binary protocols, packet encryption, and client-side movement prediction. -Learned to parse legacy Unreal Engine 2 formats and automate asset imports into Unity. -Applied GPU Instancing, Occlusion Culling, and Unity Profiler to optimize large scenes.

What's next for L2 Unity Development -Add combat mechanics, targeting, skills, and real-time spell VFX. -Improve world and asset streaming for large zones and sieges. -Upgrade visuals (lighting, shaders, post-processing) and UI UX while keeping protocol compatibility.

Share this project:

Updates