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, 4 Monaten von HappyAngryCatfish aktualisiert.
-
AutorBeiträge
-
Juli 18, 2016 um 8:10 pm Uhr #6365BarcTeilnehmer
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, 4 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 #6368TimtechAdministratorI 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 #6369BarcTeilnehmerThose 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 #6370TimtechAdministratorWell, 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, 4 Monaten von Timtech. Grund: changed the link
Juli 19, 2016 um 1:52 pm Uhr #6371BarcTeilnehmerWHOA! 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.
- Diese Antwort wurde geändert vor 8 Jahren, 4 Monaten von Timtech. Grund: fixed the image
Juli 19, 2016 um 4:39 pm Uhr #6378TimtechAdministratorYou 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 geändert vor 8 Jahren, 4 Monaten von Timtech.
Juli 20, 2016 um 11:02 am Uhr #6387BarcTeilnehmerWhere would a hex editor plugin be? Is it preinstalled, or do i need to find one?
Juli 20, 2016 um 4:06 pm Uhr #6390HappyAngryCatfishCommunity HelperIt’d be easier to just setup 0.8… 😛
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Comments are currently closed.