QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Doubts, help and support about QuickBMS and other game research tools
ssh
Posts: 33
Joined: Sun Aug 17, 2014 5:50 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by ssh »

slog command adds extra backslashes

Code: Select all

input text: "\b\l\a\h\-(\\)"
slog NAME 0 SIZE
output result: \\b\\l\\a\\h\\-(\\\\)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

It seems all correct and the backslashes have been correctly escaped.
Slog creates escaped strings because often the strings contain line feeds, for example with multi-line dialogs.
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by chrrox »

I am having a problem with findloc
quickbms_4gb_files.exe -p dissidia.bms process://dffnt.exe c:\output
I don't think findloc can scan 64bit processes.
if I use this code
findloc OFFSET string "GMPK1"
print "%OFFSET%"
it never finds a value
and if I manually do this
set TMP longlong 0x297ab9c0000
print "%TMP%"
goto TMP
savepos TMP
print "%TMP%"
1st result 2850442444800
2nd result
-1415839744
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

quickbms and quickbms_4gb_files are 32bit tools, therefore they can't access 64bit processes.

I will never release a 64bit version of the tools because the first requirement is maintaining compatibility with any older OS and system.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by Acewell »

longlong doesn't seem work with the "put" command either. :(
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

you need to use quickbms_4gb_files.exe for 64bit fields.
Just tested and the output is correct.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

I just noticed that tcc (the embedded C compiler) is crashing, I'm investigating what's causing this issue.

Update: ok it was my fault (sort of), everything works perfectly
HPAndroid
Posts: 67
Joined: Sun Mar 04, 2018 1:29 am

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by HPAndroid »

I encountered this error when transferring the .fsh file to .pvr, the script is attached below. Thanks!

Code: Select all


-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   74C7A990
                        74BF0000 + 0008a990 msvcrt.dll
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    063D3000
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

good bug, it's related to the c_structs feature and freeing some old pointers.
use math in your script at line 25 and 28 and it will work
HPAndroid
Posts: 67
Joined: Sun Mar 04, 2018 1:29 am

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by HPAndroid »

Sorry, but this is not my specialty.
Can you elaborate on this issue?
Thanks!

Code: Select all


   if format = 99
      ofmt = 6
   endif
   if format = 100
      ofmt = 2
   endif

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

Code: Select all

   if format = 99
      math ofmt = 6
   endif
   if format = 100
      math ofmt = 2
   endif
Scott Rash
Posts: 2
Joined: Mon Apr 22, 2019 9:30 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by Scott Rash »

So I am trying to unpack the pak file for Friday the 13th: The Game to see in umodel. But when trying to unpack the file, I get this:

Code: Select all

- open input file C:\Users\Ben\Desktop\F13\SummerCamp-WindowsNoEditor.pak
- open script unreal_tournament_4.bms
- set output folder .

  offset           filesize   filename
--------------------------------------

- error in src\extra\xalloc.c line 703: xdbg_realloc()

Error: memory allocation problem
       Access is denied.
Shadow Walker
Posts: 1
Joined: Wed Apr 24, 2019 6:27 am

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by Shadow Walker »

Can someone explain what this error means? :?
Thanks


- GUI mode activated, remember that the tool works also from command-line
where are available various options like folder scanning, filters and so on

- select the BMS script to use
- select the input archives/files to extract, type * or "" for whole folder and subfolders
- select the output folder where extracting the files
- open input file C:\Users\user\Desktop\files\GEARASSETS_NOO_ScriptAssets.xxx
- open script C:\Users\user\Desktop\Injustice2_model\ue3_oodle.bms
- set output folder C:\Users\user\Desktop\files\end

offset filesize filename
--------------------------------------
+ 00000000 104 GEARASSETS_NOO_ScriptAssets.unp
+ 00001868 4294967207 GEARASSETS_NOO_ScriptAssets.unp

Error: impossible to write 0xffffffa7 bytes (total 0xffffffa7)
Check your disk space

Last script line before the error or that produced the error:
18 log name offset headsize


Press ENTER or close the window to quit
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: QuickBMS errors [programming, scripting, quickbmsis your hard drive full.exe tool... NOT games]

Post by chrrox »

Is your hard drive full?
Scott Rash
Posts: 2
Joined: Mon Apr 22, 2019 9:30 pm

Re: QuickBMS errors [programming, scripting, quickbmsis your hard drive full.exe tool... NOT games]

Post by Scott Rash »

chrrox wrote:Is your hard drive full?

No, it isn't. There is still a good amount of GB left in my C: Drive and D: Drive. Is there a certain amount of GB required to unpack the file?
z22901206
Posts: 7
Joined: Thu Apr 25, 2019 2:52 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by z22901206 »

Code: Select all

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   01078452
                        01050000 + 00028452 quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    106B1270

Last script line before the error or that produced the error:
  229 clog NAME OFFSET ZSIZE SIZE


SLZ.bms
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

@Scott Rash
off-topic, there is the UE4 topic viewtopic.php?f=9&t=1005

@Shadow Walker
off-topic, since it's a game/script thing.
that error means that the size field is invalid 0xffffffa7, the script must be updated

@z22901206
probably off-topic but I will check
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

@z22901206
I'm still not sure if it's a bug of the algorithm or it's related to the invalid decompressed size field specified in the archive.
Anyway, I have added a check on the end of the input data in the algorithm and now it works, it will be available in quickbms 0.10.0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by aluigi »

QuickBMS 0.10.0 is out
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Post by Shokoniraya »

    reimport mode full support for multiple reversed math operators
operators are maximum?

and whats different between quickbms.exe and quickbms_4gb_files.exe? except bigger than 4 gigabyte or 64-bit files? can use quickbms_4gb_files.exe always? so whay there is two exe always? quickbms_4gb_files.exe wants more CPU or more memory ram? is this the reason? or anything else?