Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

understanding quickbms

Featured Replies

Hello,

Can anyone explain how to create scripts for QuickBMS?

 

For example, I’m trying to understand how simple scripts like this one are written:

 

# Ratatouille (PS2)

# DPS archive extract

 

ComType lzrs_asobo

 

Goto 0x120

 

Get TEMPNAME basename

Get FILES Long

 

Math OFFSET = 0x800

 

For A = 0 < FILES

    Goto OFFSET

    Goto 0x1c 0 SEEK_CUR

    Get COUNT Long

    Math COUNT * 4

    Goto COUNT 0 SEEK_CUR

    Get SIZE Long

    Get ZSIZE Long

    Math ZSIZE - 8

    SavePos OFFSET

 

    String FILENAME P "%TEMPNAME%_%A%"

    CLog FILENAME OFFSET ZSIZE SIZE

 

    Math OFFSET + ZSIZE

Next A

 

 

I only have a little experience with QuickBMS.

 

I want to learn how to write scripts like this myself.

Any help or explanation would be greatly appreciated.

Edited by Ggsgwhwhe

  • Supporter

Hello.

first of all: wrong sub forum!

2ndly: quickbms comes with quickbms.txt which contains a large section 4) How to create scripts

Read/understand it. This will be a good base.

But you won't be able to create scripts like your example, imho,  because you'll need to gain knowledge about the archive format.

If there's no format specification you'll need to do a trial 'n error approach (or use a debugger, advanced skills required).

btw, "t 'n e" doesn't mean "wild guessing", it's a mixture of experience, comparison to similar scripts (if any), etc.

Edited by shak-otay

  • Supporter
5 hours ago, Ggsgwhwhe said:

Hello,

Can anyone explain how to create scripts for QuickBMS?

 

For example, I’m trying to understand how simple scripts like this one are written:

 

# Ratatouille (PS2)

# DPS archive extract

 

ComType lzrs_asobo

 

Goto 0x120

 

Get TEMPNAME basename

Get FILES Long

 

Math OFFSET = 0x800

 

For A = 0 < FILES

    Goto OFFSET

    Goto 0x1c 0 SEEK_CUR

    Get COUNT Long

    Math COUNT * 4

    Goto COUNT 0 SEEK_CUR

    Get SIZE Long

    Get ZSIZE Long

    Math ZSIZE - 8

    SavePos OFFSET

 

    String FILENAME P "%TEMPNAME%_%A%"

    CLog FILENAME OFFSET ZSIZE SIZE

 

    Math OFFSET + ZSIZE

Next A

 

 

I only have a little experience with QuickBMS.

 

I want to learn how to write scripts like this myself.

Any help or explanation would be greatly appreciated.

If you just want to extract content from the archive, quickbms is a good choice. Generally, the amount of code can be minimized, and it is easy and fast to run.

If your purpose is to load them, such as models, animations, textures, or any reverse engineering of binary files, you cannot rely solely on bms

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.