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.

Battle of Europe .wpk files

Featured Replies

  • Author
  • Localization

Puterboy1, posted Wed Jan 02, 2019 12:19 am (41788)


I was wondering if you could open these with a BMS script since Game Extractor doesn't seem to produce cohesive results.
  • Author
  • Localization

akintos, posted Wed Jan 02, 2019 11:24 am (41810)


Code:
get FILECOUNT long
get TABLEOFFSET long

idstring "Whirlwind"

goto TABLEOFFSET

for i = 0 < FILECOUNT
   get FILENO long
   get FILEOFFSET[FILENO] long
   get FILESIZE[FILENO] long
   get UNK1 long
   get UNK2 long
next i

math FILENO = 0 # FILENO 0 is for name table
goto FILEOFFSET[FILENO]

math FILECOUNT - 1

for i = 0 < FILECOUNT
   get FILENO long
   get FILENAME string
   log FILENAME FILEOFFSET[FILENO] FILESIZE[FILENO]
   padding 4
next i


only tested with data0000.wpk file. try this script with bigger files.
I'm still learning bms(my main language is python) so if anyone find bad code, please let me know.
  • Author
  • Localization

Puterboy1, posted Wed Jan 02, 2019 3:59 pm (41818)


akintos wrote:
Code:
get FILECOUNT long
get TABLEOFFSET long

idstring "Whirlwind"

goto TABLEOFFSET

for i = 0 < FILECOUNT
   get FILENO long
   get FILEOFFSET[FILENO] long
   get FILESIZE[FILENO] long
   get UNK1 long
   get UNK2 long
next i

math FILENO = 0 # FILENO 0 is for name table
goto FILEOFFSET[FILENO]

math FILECOUNT - 1

for i = 0 < FILECOUNT
   get FILENO long
   get FILENAME string
   log FILENAME FILEOFFSET[FILENO] FILESIZE[FILENO]
   padding 4
next i


only tested with data0000.wpk file. try this script with bigger files.
I'm still learning bms(my main language is python) so if anyone find bad code, please let me know.

Thank you, it works.
  • Author
  • Localization

aluigi, posted Wed Jan 02, 2019 7:01 pm (41825)


@akintos
Very good solution for handling this format.
Well done.
  • Author
  • Localization

LotharVon771, posted Thu Jul 23, 2020 10:38 am (57737)


i'm kinda late in here, but is there any way to pack it again to .wpk?
  • Author
  • Localization

aluigi, posted Sat Oct 10, 2020 9:36 pm (59233)


In theory reimport2.bat should be able to reinjected the edited files back in the original archive.
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.