Important information: this site is currently scheduled to go offline indefinitely by end of the year.

PC < Darksiders: Wrath of War .oppc archives

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

Hi.

Did anyone know if there's a wa way to unpack\pack an.oppc archive from Darksiders: Wrath of War?

I think that the archives are the same as the Warhammer 40,000k: Space Marine, but i'm not so sure.

If anyone needs a sample file, just write me PM :)
Last edited by Sartr0n on Sun Jul 01, 2012 1:20 pm, edited 1 time in total.
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

*bump* :roll:
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Darksiders: Wrath of War .oppc archives

Post by Ekey »

Look here
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

Ekey, i know this thread but i forgotten to say that i'm talking about the PC version of the game and this thread is useless.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: PC < Darksiders: Wrath of War .oppc archives

Post by aluigi »

the easiest thing you can try is removing the "endian big" command from the script.
if you are lucky it may work
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

aluigi wrote:the easiest thing you can try is removing the "endian big" command from the script.
if you are lucky it may work
I have tried now and it's not working. Maybe there the format is not the same as the PC version (i mean that script for the PS3 version) or the script is not finished.

So, is there really a way to unpack\repack the .oppc archives or im completely lost :(
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

Is anyone interested in this game or no one knows how to "hack" the .oppc format?

I really need a way to unpack few .oppc archives (and repack them), but im a noobie (i mean that i don't understand from programming and that's why i have created this thread, if there is anyone who can help out)

:o
User avatar
pivke
advanced
Posts: 41
Joined: Tue Jun 26, 2012 9:53 am
Been thanked: 8 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by pivke »

Hey,
maybe you upload a small samplefile, so that we can take a look at it?
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

pivke, i can't post a link here because the new rules, but anyone who wants to look at the .oppc archives just can PM me so i can send a link.

By the way, pivke, i have send you a link - read your PM :)
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

Did anyone is interested or no? [roll] :ninja:
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Ekey »

Weekends, relax :)
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

Well, here are one sample file inside the .rar archive in case "someone" want to do something :wtf:
You do not have the required permissions to view the files attached to this post.
Sartr0n
advanced
Posts: 50
Joined: Mon Nov 14, 2011 1:13 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by Sartr0n »

So, nothing...

*bump*
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by zaramot »

Hi guys! I want to bump this thread. I really would like to extract content from .oppc archives. Game Warhammer: Space Marine using same format (newer version of it I guess) here's specs for Space Marine .oppc, I'm sure they didn't change much for Darksiders

Code: Select all

================
OPPC File Format
================
Version: 0.1.0
Author: Santos
================

------
HEADER
------

CHAR[4] 	signature (OBPK)
UINT8		flag? (0)
UINT32		major version? (10)
UINT32		minor version? (0)
UINT32		num files
UINT32		? (8-53)
UINT32		header size (337)
UINT32		index size
UINT32		data size (uncompressed)
UINT32		? (0)
UINT32		? (0)
UINT32		? (10000)
UINT32		? (50000)
DATA[288]	?

-----
INDEX
-----

// Unknowns

UINT32		num unknowns
FOR (num unknowns) DO
	UINT32	count
	FOR (count) DO
		UINT32 ?
UINT32		num strings


// Strings

FOR (num strings) DO
	STRING	string
UINT32		num types

// Types

FOR (num types) DO
	DATA[8]		type id
	UINT32		num entries

// Entries

FOR (num types) DO
	FOR (type -> num entries) DO
		STRING		name
		STRING  	dir
		UINT32  	size
		FLOAT		? (-1,0,n)
		UINT32  	size
		UINT32  	? (0)
		UINT32  	? (0)
		UINT8		enum (4, 7, 8, 9)
		DATA[enum] 	?
// Padding

DATA[N}		padding (00 up to index size)

----
DATA
----

UINT32		uncompressed data size
DATA[N]		compressed data (to end of file)
Here's also sample .opp c+ sorce for the .oppc extraction tool
https://www.mediafire.com/?riuxx51o61zt476
Thanks in advance for any help
Making model-import scripts, PM
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: PC < Darksiders: Wrath of War .oppc archives

Post by shakotay2 »

The bms script of WRS which Ekey pointed to is the key.

Guess you don't need it any more but here's the modified script for oppc files:

Code: Select all

endian little

## Header

idstring "OBPK"
getdstring UNKNOWN 14
get NSTRUCTPOINTER long # >= 30
get DATAPOINTER long    # next 4096 block - NSTRUCTPOINTER
print "NSTRUCTPOINTER %NSTRUCTPOINTER%, DATAPOINTER %DATAPOINTER%"

## EStruct ( count may be zero)

get ESTRUCTCOUNT long

for i = 0 < ESTRUCTCOUNT
  getdstring UNKNOWN 8
  get NAMELEN long
  getdstring NAME NAMELEN
  print "%i%: %NAME% (%NAMELEN%)"
next i

## NStruct
# goto NSTRUCTPOINTER
print "***  Nstruct ***"
get NSTRUCTCOUNT long
print "NSTRUCTCOUNT= %NSTRUCTCOUNT%"
for i = 0 < NSTRUCTCOUNT
  getdstring UNKNOWN 8
  get NAMELEN long
  getdstring NAME NAMELEN
  print "%i%: %NAME% (%NAMELEN%)"
next i

print "***  Nstruct 2 ***"
get unk_offs long
get NSTRUCTCOUNT2 long
print "NSTRUCTCOUNT2= %NSTRUCTCOUNT2%"
for i = 0 < NSTRUCTCOUNT2
  getdstring UNKNOWN 8
  get NAMELEN long
  getdstring NAME NAMELEN
  print "%i%: %NAME% (%NAMELEN%)"
next i


## ZLib data chunks

savepos LASTPOS
math DATASTART = DATAPOINTER
math DATASTART += NSTRUCTPOINTER
goto DATASTART
print "DATASTART: %DATASTART%"

get SIZE long
savepos POS
get ZSIZE asize
math ZSIZE -= POS
print "cpr size: %ZSIZE% size %size%"

# the oppc files should be small enough to make this ok
clog MEMORY_FILE POS ZSIZE SIZE

Log "bunchOfFiles.bin" 0 size MEMORY_FILE ;
As you may see I didn't bother splitting up the files. Starting points in the extracted .bin should be the (file?) names logged by the script. But for ui_icons_small.oppc there aren't any contained in bunchOfFiles.bin - so splitting it up the before the 68 "DDS" strings does the trick (see attachment).

I checked these files:
ui_icons_small.oppc
AbyssalHorse01.oppc, cpr size: 775802 size 1019952
angel_fallen.oppc, cpr size: 1430920 -> size 2237271

Here's the first and the last icon from ui_icons_small:
ui_small_icons.JPG
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Post Reply