LEGO® Universe Nuevamente Imaginado
Menu
  • Inicio
  • Descargar
    • Música
  • Foros
  • Info
    • World
    • FAQ
    • Objects
  • Tutorial
    • Compile in Visual Studio
    • Servidor 0.3
    • Servidor 0.4 (Pre-2)
    • Servidor 0.5.1
  • Inicio
  • Descargar
    • Música
  • Foros
  • Info
    • World
    • FAQ
    • Objects
  • Tutorial
    • Compile in Visual Studio
    • Servidor 0.3
    • Servidor 0.4 (Pre-2)
    • Servidor 0.5.1

Respuesta a: How to edit world_2a.bin?


Inicio › Foros › Help and Support › How to edit world_2a.bin? › Respuesta a: How to edit world_2a.bin?

julio 19, 2016 a las 1:48 pm #6370
Timtech
Superadministrador

Well, here is Jon’s original comment. I think that after you decompress the bin and rename it back to the original, you can use a hex editor (like the HEX-Editor plugin for Notepad++) to edit the values according to the link I put in my first post.

For reference, here is the python script’s source code. All it is doing is decompressing the zlib compression. It’s meant for world_2a.bin, and you run it like python ZLIBDec.py "path/to/file.bin". All credits go to Jon002.

import zlib
import sys
from glob import glob

def zipstreams(filename):
    """Return all zip streams and their positions in file."""
    with open(filename, 'rb') as fh:
        data = fh.read()
    i = 0
    while i < len(data):
        try:
            zo = zlib.decompressobj()
            yield i, zo.decompress(data[i:])
            
            i += len(data[i:]) - len(zo.unused_data)
        except zlib.error:
            i += 1

for filename in sys.argv:
    print(filename)
    for i, data in zipstreams(filename):
        print(i, len(data))
        with open(filename + "-decompressed.bin", 'w') as expanded:
            expanded.write(data)

Jon’s original link to download the script: http://www.mediafire.com/view/vd9t3qfqg0pff0l/ZLIBDec.py

  • Esta respuesta fue modificada hace 9 años, 7 meses por Timtech. Razón: changed the link

Comments are currently closed.

Idioma Preferido


  • English (en) English (en)
  • Deutsch (de) Deutsch (de)
  • Español (es) Español (es)

Busca en los Foros


Los Últimos Temas


  • Happy New Year
  • FORUMS CLOSED

Foros

  • General Discussion

Otros Sitios

  • LU Server Projects Github online
  • Community Discord online
  • buscar el LUNIverso

    Tenga en cuenta

    El Grupo LEGO no ha aceptado o autorizado el funcionamiento de este juego y no es responsable de los problemas de seguridad en relación con la operación de este juego.

    © 2015-2021 Proyecto LUNI™ Servidor

    Organizada por TimTech Software