ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Sep 21, 2019 4:18 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Mar 25, 2019 7:13 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 239
how can i reimport a file with padded offset?
i had this problem in past but is there any way to do in reimport? it is possible to export padded file but how can i do it in import mode?


Top
   
PostPosted: Thu Mar 28, 2019 2:44 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
I still have to investigate that so I don't know or remember the details.

In the meantime I need the exact script and sample for the test.


Top
   
PostPosted: Fri Mar 29, 2019 2:46 pm 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 239
here a sample
download/file.php?id=6160

offset padded to 64, but how can i reimport files as padded offset? game can't read offset if i add a none-padded file, but a padded file, even with a new offset can works fine


Top
   
PostPosted: Sat Mar 30, 2019 8:28 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
Ok I see.

The problem is very simple: reimport2 appends the file at the end of the archive but the end is not aligned, therefore the new offset will point to a wrong location some bytes before.

I will check what may be the best and simplest solution


Top
   
PostPosted: Sat Mar 30, 2019 8:59 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
The solution I just implemented in my beta works well.


Top
   
PostPosted: Sun Mar 31, 2019 9:32 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 239
aluigi wrote:
The solution I just implemented in my beta works well.

exactly. it's really important in New games or padded files
Thank you


Top
   
PostPosted: Sun Mar 31, 2019 2:01 pm 
User avatar

Joined: Fri Mar 30, 2018 2:48 am
Posts: 246
Shokoniraya wrote:
aluigi wrote:
The solution I just implemented in my beta works well.

exactly. it's really important in New games or padded files
Thank you


If it's the same padding each time or a pattern to it, couldn't you make a script that goes through the file and adds the NON-PADDED offsets to a location in the padding bytes, and then make a script only for importing by using those correct offsets., then make a third script that goes through the file and checks the newly printed offset in the padding, subtract your current offset, then take the new value and print that to the padded offset. then make a batch file for doing it automatically.

This way you could reimport to padded offsets or offsets that don't use actual offsets, but rather only a padding offset from the start of the filedata. anything like that.

_________________
AES Key commissions:
https://bit.ly/31PFc3i


If you appreciate my work and want to donate:
Paypal: ghfear@hotmail.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 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