ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Aug 18, 2017 6:23 pm

All times are UTC




Post new topic  Reply to topic  [ 244 posts ]  Go to page Previous 16 7 8 9 1013 Next
Author Message
 Post subject: Re: QuickBMS errors
PostPosted: Sat Oct 22, 2016 10:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
Have you had any luck with the other tools?
viewtopic.php?f=17&t=12

The unity.bms script is quite complex and that part that handles the "resS" archives has not been written by me, but from what I can see the problem is the SIZE2 variable read at line 265 of the script.
In my opinion the script is correct and that SIZE2 value "may" be obfuscated (so non-standard), maybe just a XOR 0x42800000 or simply a field which is totally unrelated to the format and should not be parsed.
Anyway even after skipping the files that give the problem there are still other error, so no solution, the script can't be updated.


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Sun Oct 23, 2016 3:00 am 

Joined: Mon Nov 16, 2015 11:48 pm
Posts: 6
Thank you for the other programs, I only knew about Disunity. Unity Studio worked! Thanks!


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Fri Nov 25, 2016 4:06 am 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
Minor bug:
Code:
print %somevar|hex%    # doesnt work with -Q option


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Fri Nov 25, 2016 8:40 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
-Q is a way to completely *mute* quickbms, Print command included


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Fri Nov 25, 2016 9:04 am 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
quickbms.txt says:
-Q very quiet, no output except the Print command

Print command works with -Q option, only hex output is muted.


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Fri Nov 25, 2016 10:07 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
Good catch, the error was in the usage of fprintf that pointed to the function without output.

Regarding the Print topic, I would like to know if people prefer to remove the "SCRIPT's MESSAGE" tag when the Print message is used.
Personally I think that it can be removed and writing the string directly without any tag.


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Mon Nov 28, 2016 3:10 am 

Joined: Mon Nov 28, 2016 3:03 am
Posts: 2
hi i need help for this error message

Image

any solutions?

cpk archive
https://mega.nz/#!NosD0IZI!gU2Wr6V2Yh5i ... OAE1IMftIY


Attachments:
error.jpg [107.23 KiB]
Not downloaded yet
Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Mon Nov 28, 2016 7:48 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
@systembest
Don't post in this topic, this is for other errors.
Open a topic in Game Archive specifying the name of the game.
The archive is encrypted.


Top
   
 Post subject: Re: QuickBMS errors
PostPosted: Thu Dec 01, 2016 3:26 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 302
aluigi wrote:
Regarding the Print topic, I would like to know if people prefer to remove the "SCRIPT's MESSAGE" tag when the Print message is used.
Personally I think that it can be removed and writing the string directly without any tag.

Yes please :D


Top
   
PostPosted: Wed Dec 07, 2016 12:19 pm 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
strlen calculates wrong length on unicode strings

Code:
set str binary "\x74\x00\x65\x00\x73\x00\x74\x00\x00\x00"
set str unicode str
strlen slen str
print %slen%  // SCRIPT's MESSAGE: 4  // OK

set str binary "\x74\x00\x35\x04\x73\x00\x42\x04\x00\x00"
set str unicode str
strlen slen str
print %slen%  // SCRIPT's MESSAGE: 6

set str binary "\x63\x01\x17\x01\x61\x01\x65\x01\x00\x00"
set str unicode str
strlen slen str
print %slen%  // SCRIPT's MESSAGE: 8


Top
   
PostPosted: Wed Dec 07, 2016 2:51 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
It's correct, if you replace %slen% with "%slen% %str%" in the print command you can see that the lenght matches.
I guess you want to specify a different codepage with the CodePage command first.


Top
   
PostPosted: Wed Dec 07, 2016 3:34 pm 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
Thanks aluigi, "codepage 1200" solves the problem :)


Last edited by NullRd on Wed Dec 07, 2016 4:05 pm, edited 2 times in total.

Top
   
PostPosted: Wed Dec 07, 2016 3:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
codepage rocks :D


Top
   
PostPosted: Wed Dec 07, 2016 4:06 pm 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
But now main script hangs on line "put strs unicode memory_file"

If I reset codepage ("codepage 1251") before this command, script is works fine, but I don't understand this logic. When I should set and reset the codepage to get a proper result?


Attachments:
1.7z [2.21 KiB]
Downloaded 32 times
Top
   
PostPosted: Wed Dec 07, 2016 4:59 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
The hanging of put unicode with the default codepage is for sure a bug... I released quickbms 0.7.7 just few days ago so who knows when I will check this thing.

Using codepage 1251 before the put command worked.
You have also to use "set str unicode str" after "get str unicode".

Anyway are you sure you really want to use quickbms for string related stuff like this?


Top
   
PostPosted: Thu Dec 08, 2016 1:27 am 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
aluigi wrote:
You have also to use "set str unicode str" after "get str unicode".

Are you sure about this? In that case, the result looks completely unreadable.

aluigi wrote:
Anyway are you sure you really want to use quickbms for string related stuff like this?

Why not?
I can use some other languages, but for me, quickbms is the easiest way to extract data from a file.
It can do a lot of useful things, without boring stuff like keeping handles, checking pointers etc.


Top
   
PostPosted: Thu Dec 08, 2016 1:56 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
You are right quickbms already performs the unicode->utf8 conversion when you use the Get unicode command, so forget what I said :)

The reason why I suggested other solutions it's because quickbms is perfect for operations like "extract file X from offset Y of size Z" but it's a bit of a pain with string-related operations.
In your case probably you may find interesting the SLog command that automatically dumps the string correctly to find with line-feed and it's even working in reimport mode.


Top
   
PostPosted: Thu Dec 08, 2016 1:59 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6422
This is what I mean with the Slog command:
Code:
get xz1 long
get strCount long
get xz3 long
get xz4 long
get xz5 long
get xz6 long
get xz7 longlong

goto 0x120

savepos pos
xmath x "pos + 0x3E"
goto x
get x short
xmath pos "pos + (x * 0x98) + 0x40"
goto pos

codepage 1251

for i = 0 < strCount
  slog "output2.txt" -1 -1 unicode
next i += 1


Top
   
PostPosted: Fri Dec 09, 2016 9:54 am 
User avatar

Joined: Sat Jun 06, 2015 6:50 pm
Posts: 19
Thanks, aluigi!
SLog seems to be a most effective solution.


Top
   
PostPosted: Tue Dec 13, 2016 7:11 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 222
When [output_folder] in quickbms is inside the quotes and ends with slash or backslash it gives an error. It's not very convenient when you use bath files like
Code:
for /r %%i in (*.dat) do quickbms -Y "d:\script.txt" "%%i" "%%~dpi"


because "%%~dpi" gives path that ends with slash.

https://puu.sh/sOhMd/a1fbf1c1b4.png


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 244 posts ]  Go to page Previous 16 7 8 9 1013 Next

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