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 *.bar files

Featured Replies

  • Author
  • Localization

lupus, posted Mon Feb 24, 2020 8:43 am (54212)


Hi, can somebody helps with unpacking Gameloft *.bar files?
  • Author
  • Localization

LolHacksRule, posted Mon Feb 24, 2020 4:46 pm (54220)


What game? Also they are usually ZIPs except for oconf.bar which is plaintext and the samples you provided...
  • Author
  • Localization

lupus, posted Wed Feb 26, 2020 8:32 am (54257)


LolHacksRule wrote:
What game?

Soul of Darkness - dsiware
LolHacksRule wrote:
Also they are usually ZIPs except for oconf.bar

Not this time :(
res.bar have GLPK magic, maybe its GameLoft PacKage, IDK.
  • Author
  • Localization

LolHacksRule, posted Wed Feb 26, 2020 4:42 pm (54264)


Probably... offzip -a on sprites_new.bar outputs a number of files (not sure if they are useful).
Code:
- 58 valid compressed streams found
- 0x0003070d -> 0x00035f71 bytes covering the 15% of the file

On res.bar (there's a bunch of BSPRITEs).
Code:
- 27 valid compressed streams found
- 0x0001a419 -> 0x0001afd5 bytes covering the 16% of the file
  • Author
  • Localization

lupus, posted Sun Mar 01, 2020 7:33 am (54343)


I tried to start from offzip, but not found any useful in unpacked data. Sad.
  • Author
  • Localization

aluigi, posted Sat Mar 21, 2020 9:36 am (54855)


The two samples have different formats.

This is an example script for the sprites one:
Code:
get FILES short
for i = 0 < FILES
    get OFFSET long
    putarray 0 i OFFSET
next i
savepos BASE_OFF
math FILES - 1
for i = 0 < FILES
    getarray OFFSET 0 i
    math i 1
    getarray SIZE 0 i
    math SIZE - OFFSET
    math OFFSET BASE_OFF
    log "" OFFSET SIZE
next
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.