Jump to content

Recommended Posts

Posted (edited)

Works Sure of Intelude C6!

This script is used to modify the login and game server ports inside engine.dll without requiring any changes in l2.ini. The modification happens directly within the binary data of engine.dll, ensuring that the client connects to the new ports.

 

Python Script:

 

import os

#  New Ports
NEW_PORT_2106 = 8888  # Login Server 8888
NEW_PORT_7777 = 9999  # Game Server 9999

#  Μετατροπή σε HEX (Little Endian)
OLD_HEX_2106 = bytes.fromhex("3A 08")  # 2106
NEW_HEX_2106 = NEW_PORT_2106.to_bytes(2, "little")  

OLD_HEX_7777 = bytes.fromhex("61 1E")  # 7777
NEW_HEX_7777 = NEW_PORT_7777.to_bytes(2, "little")  

# DLL
with open("engine.dll", "rb") as f:
    dll_data = f.read()

# Replace
dll_data = dll_data.replace(OLD_HEX_2106, NEW_HEX_2106, 6)
dll_data = dll_data.replace(OLD_HEX_7777, NEW_HEX_7777, 8)

# Save New DLL
with open("engine.dll", "wb") as f:
    f.write(dll_data)

print(" New DDL save as 'engine_patched.dll'")
print(f"   - Login Server Port: {NEW_PORT_2106} (Your New Port)")
print(f"   - Game Server Port: {NEW_PORT_7777} (Your New Port)")
print(" Replace engine.dll with a new!")

What This Script Does

  1. Defines New Ports

    • Login Server: Changes the default port 2106 to 8888.
    • Game Server: Changes the default port 7777 to 9999.
    • You can change these values to any ports you want! 
  2. Converts Ports to HEX Format (Little Endian)

    • 21063A 08 (old) → Converted to 8888 (22 22 in HEX).
    • 777761 1E (old) → Converted to 9999 (0F 27 in HEX).
  3. Reads engine.dll

    • Opens engine.dll in binary mode and loads its content.
  4. Replaces Old Port Values with the New Ones

    • Finds hexadecimal values representing the old ports inside engine.dll and replaces them with the new ones.
    • Replaces 6 occurrences of 2106 and 8 occurrences of 7777.
  5. Saves the Modified DLL

    • Writes the updated data back into engine.dll, effectively patching it.
  6. Prints Confirmation Messages

    • Confirms that engine.dll has been patched successfully.
    • Displays the new port values.
       

No need to modify l2.ini since the changes are applied directly inside engine.dll.
Works automatically without requiring manual editing of the client files.
Ensures correct connection ports for the Lineage 2 client.
 

Run the script to patch engine.dll.

Replace the old engine.dll with the patched one in the Lineage 2 system folder.

Launch the client—it will now connect to the new ports (8888 for login and 9999 for game server).

Edited by lampros1996
  • Like 1
  • lampros1996 changed the title to Modify the Loginserver and Gameserver ports! [Interlude c6]
  • 2 months later...
  • 3 months later...
Posted
On 6/3/2025 at 2:23 AM, gaminor said:

Hello.

Tried, but after that game crashes because of engine.dll. Can't even start the game.

This specific modification was tested on a clean L2 C6 client and works perfectly. On ‘modified’ engine.dll I don’t know if it will work — find a clean engine.dll that is Windows 10 ready for C6 and try again!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • L2 HARMONY - BANNERS & ICONS       L2 COLD - NPC ANIMATED BANNER
    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
    • English you belarus retard ) Seems you so desperate and angry cant even speak back in EN, well guys you see how its easy to destroy scammer xD
    • Чувак) мне на него насрать давно, ты не мне сделал подлянку а людям которые купили и используют. Я его удалил год назад) когда закрыл продажи.   мне вообще похер кто ты и что ты.    Можешь сесть и попрыгать на тот же член на котором ты прыгаешь все это время) и этой версии более 3х лет) ты откопал залупу мамонта , поздравляю)) кто скачает это дерьмо используйте на свой страх и риск)) кто знает что там наворочено)))  удачи в шаринге обиженный жизнью неандерталец.   Можешь лизнуть мое очко на прощание.
    • Rosyk or rusik or whatever u blaim me that my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a DICK )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link    For this crap u need Lucera 2 classic license ) people paying 300 euros for this shit  lol Some Shit will come out soon mxc website need shake it a bit coz getting boring here )    Whats happen rosyk lost speach  xD Your pack was downloded  29 times bussines  not going as plan xD?
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock