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.

[PC] Freedom Fighters - Textures .TEX

Featured Replies

  • Author
  • Localization

Joao13_BR, posted Tue Oct 09, 2018 5:34 pm (39344)


Would it be possible to script the extraction of the textures in this file .tex?
  • Author
  • Localization

aluigi, posted Tue Oct 09, 2018 8:26 pm (39349)


I can help with the extraction of the raw data but someone else has to work on the fields for building a valid image (it's probably very trivial):
Code:
get DATA_SIZE long
get DATA_SIZE2 long
get DUMMY long  # 3
get DUMMY long  # 4
for
    savepos OFFSET
    if OFFSET u>= DATA_SIZE
        break
    endif
    get SIZE long
    getdstring INFO 8
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get NAME string
    get DUMMY long
    savepos TMP
    xmath SIZE "SIZE - (TMP - OFFSET)"
    savepos OFFSET
    log NAME OFFSET SIZE
    goto SIZE 0 SEEK_CUR
next
  • Author
  • Localization

Joao13_BR, posted Tue Oct 09, 2018 8:36 pm (39351)


aluigi wrote:
I can help with the extraction of the raw data but someone else has to work on the fields for building a valid image (it's probably very trivial):
Code:
get DATA_SIZE long
get DATA_SIZE2 long
get DUMMY long  # 3
get DUMMY long  # 4
for
    savepos OFFSET
    if OFFSET u>= DATA_SIZE
        break
    endif
    get SIZE long
    getdstring INFO 8
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get NAME string
    get DUMMY long
    savepos TMP
    xmath SIZE "SIZE - (TMP - OFFSET)"
    savepos OFFSET
    log NAME OFFSET SIZE
    goto SIZE 0 SEEK_CUR
next


Thanks aluigi!!
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.