LEGO® Universe Newly Imagined
Menu
  • Home
  • Download
    • Musik
  • Foren
  • Info
    • Mitwirkende
    • Welt
    • FAQ
    • Objects
  • Tutorial
    • Kompilieren in Visual Studio
    • Server 0.3
    • Server 0.4 (Pre-2)
    • Server 0.5.1
  • Home
  • Download
    • Musik
  • Foren
  • Info
    • Mitwirkende
    • Welt
    • FAQ
    • Objects
  • Tutorial
    • Kompilieren in Visual Studio
    • Server 0.3
    • Server 0.4 (Pre-2)
    • Server 0.5.1

Antwort auf: How to edit world_2a.bin?


Home › Foren › Help and Support › How to edit world_2a.bin? › Antwort auf: How to edit world_2a.bin?

Juli 19, 2016 um 1:48 p.m. Uhr #6370
Timtech
Administrator

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

  • Diese Antwort wurde vor 9 Jahren, 9 Monaten von Timtech geändert. Grund: changed the link

Comments are currently closed.

Bevorzugte Sprache


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

Die Foren durchsuchen


Neueste Themen


  • Happy New Year
  • FORUMS CLOSED

Foren

  • General Discussion

Andere Seiten

  • LU Server Projects Github online
  • Community Discord online
  • Suche im LUNIversum

    Bitte zur Kenntnis nehmen!

    Die LEGO Group hat den Betrieb dieses Spiels nicht offiziell genehmigt und übernimmt in keiner Weise Verantwortung für mögliche Sicherheitsprobleme im Zusammenhang mit diesem Spiel.

    Urheberrecht © 2015-2021 LUNI™ Server Projekt

    Gehostet von TimTech Software