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

How to edit world_2a.bin?


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

  • Dieses Thema hat 7 Antworten sowie 3 Teilnehmer und wurde zuletzt vor vor 8 Jahren, 10 Monaten von HappyAngryCatfish aktualisiert.
Ansicht von 8 Beiträgen – 1 bis 8 (von insgesamt 8)
  • Autor
    Beiträge
  • Juli 18, 2016 um 8:10 pm Uhr #6365
    Barc
    Teilnehmer

    Hi guys, so I recently got LUNI working, and I’m really happy with it, but I really want to change/modify the characters. I remember a comment about this being somewhere on timtech’s site, but it might be on here. If I remember correctly, the commenter was talking about hexadecimal codes or something similar, and using those to modify the character’s loadout/the items the character was using. I’m having a hard time finding it, and if someone could help me find it, I would really appriciate it.

    Thanks, Barc.

    • Dieses Thema wurde geändert vor 8 Jahren, 10 Monaten von Timtech. Grund: Changed to a more appropriate title and moved to the support subforum. Typofix (similer -> similar)
    Juli 19, 2016 um 10:19 am Uhr #6368
    Timtech
    Administrator

    I think it’s „SC_[53-05-00-04] (detailed user info)“ on http://luni.info/packets/server/

    Juli 19, 2016 um 11:02 am Uhr #6369
    Barc
    Teilnehmer

    Those seem to be the codes the commenter was talking about, but I have no idea how to change them. That’s why I was looking for the comment, it said how you could change it. I’m not good with this stuff, so it’s going to be difficult to change it. Thanks for finding it, tim.

    Juli 19, 2016 um 1:48 pm 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 geändert vor 8 Jahren, 10 Monaten von Timtech. Grund: changed the link
    Juli 19, 2016 um 1:52 pm Uhr #6371
    Barc
    Teilnehmer

    WHOA! Thanks Tim! So I can use the values and that script to edit the characters? Seems neat, so if you will excuse me, I need to figure out how to do this 🙂

    IMPORTANT EDIT: When I click on the download link I get a 500 – INTERNAL SERVER ERROR page.

    ALSO IMPORTANT EDIT: Found a download link VIA Jon002’s post 😀

    LAST EDIT: Errrr, is this what i’m supposed to do? I followed Jon002’s instructions, but i’m not sure what to do know. As mentioned before, bad with computers.My attempt at figuring this out

    • Diese Antwort wurde geändert vor 8 Jahren, 10 Monaten von Timtech. Grund: fixed the image
    Juli 19, 2016 um 4:39 pm Uhr #6378
    Timtech
    Administrator

    You need to download and install python in order to run the script. https://www.python.org/downloads/ Also, not sure why that link isn’t working. I’ll remove it for now.

    After you run the script and get the world_2a-decompressed.bin, delete the original (or rename it to world_2a-original.bin). Then, rename world_2a-decompressed.bin to world_2a.bin, and open it with Notepad++’s HEX-Editor plugin, or any other HEX editor of your choice (but since you already have Notepad++, the plugin is probably easiest).

    • Diese Antwort wurde vor 8 Jahren, 10 Monaten von Timtech geändert.
    Juli 20, 2016 um 11:02 am Uhr #6387
    Barc
    Teilnehmer

    Where would a hex editor plugin be? Is it preinstalled, or do i need to find one?

    Juli 20, 2016 um 4:06 pm Uhr #6390
    HappyAngryCatfish
    Community Helper

    It’d be easier to just setup 0.8… 😛

  • Autor
    Beiträge
Ansicht von 8 Beiträgen – 1 bis 8 (von insgesamt 8)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Anmelden

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