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.

Gameloft .arsc

Featured Replies

  • Author
  • Localization

Xiron, posted Sat Oct 10, 2015 8:38 am (8304)


I've read another topic on here about Gameloft archives being GLA(2), I didn't see anything of the sort in this file.

This file comes from an android game.
  • Author
  • Localization

aluigi, posted Sat Oct 10, 2015 11:16 am (8307)


I see just a sequence of indexed strings and no data/content.

The following incomplete script just gives you an idea of the format:
Code:
get MYNAME basename
get ARCHIVE_SIZE asize
for RESOURCE = 0
    savepos BASE_OFF
    if BASE_OFF >= ARCHIVE_SIZE
        break
    endif
    get TYPE short

    get OFFSETS_OFF short
    if OFFSETS_OFF != 0
        math OFFSETS_OFF BASE_OFF
        if TYPE != 1
            savepos TMP
            get SIZE long
            get NAMESZ long
            xmath NAMESZ "(NAMESZ - 1) * 2"
            getdstring NAME NAMESZ
            set NAME unicode NAME
            xmath SIZE "SIZE - (OFFSETS_OFF - BASE_OFF)"
            log NAME OFFSETS_OFF SIZE
            math OFFSETS_OFF SIZE
            goto OFFSETS_OFF
        else
            get NEXT_OFF long
            math NEXT_OFF BASE_OFF
            get NAMES long
            get DUMMY long
            get DUMMY long
            get NAMES_OFF long
            math NAMES_OFF BASE_OFF
            get DUMMY long
            goto OFFSETS_OFF
            for i = 0 < NAMES
                get NAME_OFF long
                putarray 0 i NAME_OFF
            next i
            for i = 0 < NAMES
                getarray NAME_OFF 0 i
                math NAME_OFF NAMES_OFF
                goto NAME_OFF
                get NAMESZ2 variable5
                get NAMESZ variable5
                slog MYNAME -1 NAMESZ   #getdstring NAME NAMESZ
            next i
            goto NEXT_OFF
        endif
    endif
next RESOURCE

# to be continued... unfinished

*edit* new version
  • Author
  • Localization

aluigi, posted Sat Oct 10, 2015 11:50 am (8313)


In the meantime I have updated the previous script.
The format is too complex to be parsed because it's just a resource file and not an archive, but you can use the script recursively on the extracted files and you can get "something".
  • Author
  • Localization

Xiron, posted Sun Oct 11, 2015 9:31 am (8333)


Wait, so are you still talking about the arsc in the second half of that post there, or the .so files I attached to the post above?
  • Author
  • Localization

aluigi, posted Sun Oct 11, 2015 9:45 am (8335)


arsc archives obviously.
SO are shared libraries (executables), not archives.
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.