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.

Script bms for Irony Curtain (cub files)

Featured Replies

  • Author
  • Localization

ghylard, posted Fri May 17, 2019 8:00 am (47797)


Aluigi,
I tried to use the script you made for enigmatis to extract the data from the *.cub files of the Irony Curtain game: From Matryoshka with Love because it is also from Artifex Mundi but the script does not work correctly.
Would it be possible to modify it so that it could work on Irony Curtain?

https://www.mediafire.com/file/7ocif0z4rvv67zz/IronyCurtain_en.cub/file
  • Author
  • Localization

ghylard, posted Tue May 21, 2019 5:37 am (47907)


I used the same script enigmatis.bms on the previous game of Atifex Mundi, My Brothers Rabbit and the script works perfectly. :D
I can't see how the file structure is modified to modify the enigmatis.bms script.
With Irony Curtains files, the extracted files are empty. :shock:

Code:
# Artifex Mundi *.cub (script 0.3)
#   Enigmatis
#   The Secret Order
# script for QuickBMS http://quickbms.aluigi.org

getdstring SIGN 3
goto 0
if SIGN != "cub"
    getvarchr TMP SIGN 0
    math TMP ^ 'c'
    filexor TMP
endif
idstring "cub\0"
get VER string
get FILES long
getdstring DUMMY 0x100
if FILES == 0
    get CUB_SIZE asize
    savepos OFFSET
    for OFFSET = OFFSET         callfunction DUMP 1
        math OFFSET = SIZE
        goto OFFSET
    next
else
    for i = 0         callfunction DUMP 1
    next i
endif

startfunction DUMP
    getdstring NAME 0x100
    get OFFSET long
    get SIZE long

    savepos TMP
    goto OFFSET
    get SIGN long
    if SIGN == 0x12345678
        get DUMMY long
        get DUMMY long
        get DUMMY long
        get DUMMY short
        get NUM long
        math OLD_OFFSET = OFFSET
        savepos OFFSET
        xmath OFFSET "OFFSET (NUM * 16)"
        xmath SIZE "SIZE - (OFFSET - OLD_OFFSET)"
    endif
    goto TMP

    log NAME OFFSET SIZE
endfunction
  • Author
  • Localization

ghylard, posted Tue May 21, 2019 12:51 pm (47918)


Thanks a lot, Aluigi, the modified script works perfectly! :D
Guest
This topic is now closed to further replies.

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.