Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

2K Drive WAD

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Chipicao
ultra-veteran
ultra-veteran
Posts: 476
Joined: Thu Feb 03, 2011 11:18 am
Has thanked: 42 times
Been thanked: 537 times
Contact:

2K Drive WAD

Post by Chipicao »

A script I came up with to extract image_ios.wad from the game 2K Drive.

Code: Select all

idstring "DAWL"

goto 2048
get PAIRS long
for i = 0 < PAIRS
	get DUMMY1 long
	get DUMMY2 long
next i

get FILES long
savepos FILEDATA
math NAMES_OFF = FILES
math NAMES_OFF *= 48
math NAMES_OFF += FILEDATA
math NAMES_OFF += 4	#NAMES SIZE

for i = 0 < FILES
	get DUMMY long
	get NAME_OFF long
	math NAME_OFF += NAMES_OFF
	get TYPE long
	get DUMMY long
	get OFFSET long
	get ZERO long
	get SIZE long
	get ZERO long	#could indicate compressed/uncompressed
	get ZSIZE long	#untested
	get ZERO long
	get DUMMY long
	get ZERO long
	savepos LASTFILE

	goto NAME_OFF
	get NAME string
	log NAME OFFSET SIZE
	goto LASTFILE
next i
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
Post Reply