How to edit world_2a.bin?
Inicio › Foros › Help and Support › How to edit world_2a.bin?
- Este debate tiene 7 respuestas, 3 mensajes y ha sido actualizado por última vez el hace 8 años, 4 meses por HappyAngryCatfish.
-
AutorEntradas
-
julio 18, 2016 a las 8:10 pm #6365BarcParticipante
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.
- Este debate fue modificado hace 8 años, 4 meses por Timtech. Razón: Changed to a more appropriate title and moved to the support subforum. Typofix (similer -> similar)
julio 19, 2016 a las 10:19 am #6368TimtechSuperadministradorI think it’s «SC_[53-05-00-04] (detailed user info)» on http://luni.info/packets/server/
julio 19, 2016 a las 11:02 am #6369BarcParticipanteThose 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.
julio 19, 2016 a las 1:48 pm #6370TimtechSuperadministradorWell, 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 8 años, 4 meses por Timtech. Razón: changed the link
julio 19, 2016 a las 1:52 pm #6371BarcParticipanteWHOA! 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.
- Esta respuesta fue modificada hace 8 años, 4 meses por Timtech. Razón: fixed the image
julio 19, 2016 a las 4:39 pm #6378TimtechSuperadministradorYou 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).
- Esta respuesta fue modificada hace 8 años, 4 meses por Timtech.
julio 20, 2016 a las 11:02 am #6387BarcParticipanteWhere would a hex editor plugin be? Is it preinstalled, or do i need to find one?
julio 20, 2016 a las 4:06 pm #6390HappyAngryCatfishCommunity HelperIt’d be easier to just setup 0.8… 😛
-
AutorEntradas
- Debes estar registrado para responder a este debate.
Comments are currently closed.