ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Oct 14, 2019 2:08 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Mar 01, 2019 7:36 am 
User avatar

Joined: Fri Mar 10, 2017 7:23 am
Posts: 72
How to make quickbms to look for the second occurence of the same string that obtained from get NAME string?

I'm currently working on the script that adds TIM2 header to the extracted VINYLS.bin files from NFS series, and those extracted files actually holds the texture name at the end of it and rename the files accordingly. But some of the texture names has duplicate names when it was actually different textures (like alpha masks) and since I'm using MEMORY_FILE and append, those duplicates will be merged automatically by quickbms instead of asking to rename or overwrite the files.


Top
   
PostPosted: Fri Mar 01, 2019 3:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10790
quickbms asks ever if you want to overwrite a file.
The only situations in which it doesn't happen is when the append mode is enabled while you perform the Log operation on file.
If the situation is just that, you can use:
Code:
...
append # disable append mode
log NAME 0 SIZE MEMORY_FILE
append # re-enable append mode
...
I have not fully understood the situation so let me know if this is enough or I can help in other ways.


Top
   
PostPosted: Sat Mar 02, 2019 2:56 am 
User avatar

Joined: Fri Mar 10, 2017 7:23 am
Posts: 72
That trick works! I never knew you could disable/enable append commands.
Thanks aluigi. :D


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