ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Jul 16, 2019 2:46 pm

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jun 19, 2019 9:33 pm 
User avatar

Joined: Mon Oct 09, 2017 11:13 pm
Posts: 12
THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.

------------------------------------------------
First off, I want to use this code on an Apple computer, but I see that the current QuickBMS build for MacOS is only adapted for El Capitan (and I use Sierra, aka ver. 10.12.6). I have a better understanding of Python, though I'm still an amateur, so I'd ideally like a Python script. But if it's possible to use the MacOS build of QuickBMS on my computer successfully (can someone tell me?), then a QuickBMS script would be great.

I'd prefer to use Paypal, and ideally I'd pay after I gave a sample of different hex that you could produce a valid result for.
------------------------------------------------
THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.

I need help converting hex files to legible text that makes sense. The files are apparently compressed via LZ4 compression, so they need to be decompressed first. However, there is also (apparently) an extra step needed to "decode" the hex afterwards, and I have no clue how to do this. Someone else accomplished this entire thing for me via C++ (but I don't want that C++ script any more), and that person told me that they "looked at it in a hex editor to make sense of it". They've also told me that converting the decompressed hex to a byte array first may help with the conversion process (for Python?). I've attached their C++ code to this post, in case it helps.

I've also attached 3 samples of these hex files (and text files of what they should look like after successful conversion).

If a Python script is possible, I'd prefer if the code was constructed in a way so that I would have to edit the script directly and insert the hex as a variable, in order for the script to work.


As a $10 bonus (in addition to the above $70 request, not independently):
Currently, the hex data I'm obtaining comes from another program (mixed up with its attempt at parsing the hex), and it looks like what's here (there are 2 sections of text, with the 2nd starting at line 378). If you could somehow automatically strip the first 10 characters (I believe?) and the last 19 characters (I believe?) in each line of inputted hex, before it would be decompressed, that'd be appreciated. I previously used Microsoft Excel to accomplish this, but it also seemed to have deleted all the empty space (if any) after the last 00 in the last line, which seems to have caused no problems. I would like the same to be done to that empty space, in that same area, here as well.
Assuming this were done by a QuickBMS script, then yes, the .txt file (or does it need to be another file type?) that QuickBMS would read would contain nothing but 1 of those sections in that pastebin.

It would be nice if Aluigi helped (whom I'd pay), but anyone else with a decent post history would be appreciated as well (or anyone really).

This is a follow-up to the issue I posted about at viewtopic.php?f=9&t=4999.

THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.


Attachments:
File comment: The C++ file that managed to do what I'm asking for (a possible inspiration on how to construct a similar script for QuickBMS / Python?).
Source.cpp [8.78 KiB]
Downloaded 21 times
File comment: The hex files, with .txt files containing their legible text output.
HexFiles.zip [8.93 KiB]
Downloaded 18 times


Last edited by UltimateKuriboh on Mon Jul 15, 2019 6:38 pm, edited 3 times in total.
Top
   
PostPosted: Fri Jul 05, 2019 1:14 am 
User avatar

Joined: Mon Oct 09, 2017 11:13 pm
Posts: 12
THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.

I will also give $30 USD to anyone who is able to refer a person here, who actually solves this request :? . So if you know anyone who might have the knowledge to solve this, please point them here.

Half-measures won't work; I want the "solver" to actually give me a script that does what I need successfully, then I will give the $30 USD to the recommender. (Both you and the "solver" you recommend will have to PM me, to confirm that you are the person who recommended them.)

A reminder that the biggest hurdle here, apparently, is 'translating' the decompressed data to the completely readable format I need (no partial 'translation' or lingering unreadable text).

----------------------------------
THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.

P.S. Until I actually post here saying "This request is now closed, thanks for those who tried to help," please assume that my request is still open. The pay is issued on a first-come, first-served basis, in that whoever can produce "working" code first... gets paid.

THIS REQUEST IS NOW FULFILLED, AND CLOSED. NO FURTHER OFFERS, THANK YOU FOR YOUR TIME.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited