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.
Zero Tolerance for Disrespect

Dustforce (extensionless)

Featured Replies

  • Author
  • Localization

puggsoy, posted Sat Jun 27, 2015 1:04 am (5950)


This is for the extensionless sprite files from Dustforce, in the folder content/sprites.

Code:
# Dustforce extensionless sprite format
#
# Written by puggsoy
# script for QuickBMS http://quickbms.aluigi.org

comtype zlib_noerror
get FSIZE asize
goto 0x12
get OFFSET long
math OFFSET = 0x1C
goto 0x1A

for STOP = false != true
   get NMSZ byte
   getdstring NAMEEND NMSZ
   get NMSZ byte
   getdstring TMPNAME NMSZ
   string TMPNAME = NAMEEND
   get ZERO long
   get SKIP1 short
   get SKIP2 short
   getdstring DUMMY 7
   savepos TMP
   math SKIP1 *= 0x1B
   math TMP = SKIP1
   goto TMP
   callfunction getbounds 1
   savepos TMP
   math HIGHEST = 1
   math HIGHEST - LOWEST
   set PICNUM HIGHEST
   
   for i = 0 < PICNUM
      goto OFFSET
      get SIZE long
      savepos OFFSET
      set NAME TMPNAME
      string NAME = "_"
      string NAME = i
      string NAME = ".dec"
      
      clog NAME OFFSET SIZE SIZE
      
      math OFFSET = SIZE
      
      if OFFSET >= FSIZE
         set STOP true
         set i PICNUM
      else
         math OFFSET = 2
      endif
   next i
   
   goto TMP
next

startfunction getbounds
   set HIGHEST 0
   set LOWEST 0xFF
   
   for i = 0 < SKIP2
      get t short
      
      if t > HIGHEST
         set HIGHEST t
      endif
      
      if t < LOWEST
         set LOWEST t
      endif
      
      getdstring DUMMY 8
   next i
endfunction


This was tough. Right now all it does is extract the individual image files and gives them the extension .dec. These files are raw 32-bit BGRA, all 102x102 pixels. They're all parts though, so I need to try and figure out how to put them together (the files they're extracted from probably have info). Once I know how I'll probably make a program to extract and convert them into proper images in one go. I thought this script might still be useful though.
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.