Join also our Discord channel! Click here.

[PS2] 'Def Jam Vandetta' DATA.BIN Archive (JPN) (SLPS-252)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Posts: 546
Joined: Sun Jun 05, 2005 12:00 pm
Location: Ontario, Canada
Has thanked: 31 times
Been thanked: 183 times

[PS2] 'Def Jam Vandetta' DATA.BIN Archive (JPN) (SLPS-252)

Post by mariokart64n » Tue Oct 22, 2019 5:06 am

I've written a python script that works as a plugin for noesis to extract contents from the ISO of the japanese version of def jam vandetta (PS2).

two files are required;

Note that there was a BMS script written by aluigi previously for the european version, which does a signature scan on the DATA.BIN file. It may work on all regions so if your interested in that checkout the old thread

The python script I wrote reads the file table in the ELF file to dump the files instead of doing a signature scan. This is a more true way of doing the dump on the DATA.BIN however requires that ELF file and also means it'll only work on that one region. :\

python script:

Code: Select all

# Extraction Script for DefJam Vandetta, only works on the PS2 version for SLPS_252.75
# requires two files;
# SLPS_252.75
# Data/data.bin
# Author: mariokart64n
# Date:   October 20 2019

from inc_noesis import *

gameID = "SLPS_252.75"

def registerNoesisTypes():
	handle = noesis.register("Def Jam Vandetta (PS2-JPN)", ".75")
	noesis.setHandlerExtractArc(handle, binExtractArc)
	return 1

def binExtractArc(fileName, fileLen, justChecking):
	fname = rapi.getLocalFileName(fileName)
	datafile = rapi.getDirForFilePath(fileName) + "DATA\\DATA.BIN"
	if justChecking:
		if fname.upper() != gameID:
			noesis.messagePrompt("Extraction Failed:\nUnsupported ELF File '" + fname + "'")
			return 0
		if (rapi.checkFileExists(datafile)) == False:
			noesis.messagePrompt("Extraction Failed:\nUnable to Find the data file 'DATA\\DATA.BIN'")
			return 0
		return 1
	elf = open(fileName, "rb")
	data = open(datafile, "rb")
	table_count = 293
	num = "000"
	file_ext = ".bin"
	for entry in range(0, table_count): + (entry * 0x08))
		file_offset = noeUnpack("<I",[0] * 0x0800
		file_size = noeUnpack("<I",[0] * 0x0800
		file_ext = "."
		num = ("000" + str(entry + 1))[-3:]
		for c in range(0, 4):
			cc =[0]
			if cc > 47 and  cc < 91:
				if cc != 32:
					file_ext += chr(cc)
				if cc != 32:
					file_ext = ".bin"
		file_ext = file_ext.lower()
		if file_ext == ".tim2": file_ext = ".tm2"
		rapi.exportArchiveFile("data_" + num + file_ext,
	return 1
You do not have the required permissions to view the files attached to this post.
Maxscript and other finished work I've done can be found on my DeviantArt account

Posts: 11
Joined: Tue Oct 29, 2019 2:05 am
Has thanked: 1 time

Re: [PS2] 'Def Jam Vandetta' DATA.BIN Archive (JPN) (SLPS-252)

Post by MaouYumisu » Fri Dec 11, 2020 6:30 pm

Thanks for this. Been looking for something that could dump the .bin file but it looks like now there's .PAK and more random .bin files to go through. I'll look for tools for them.

Post Reply