The Evil Within(*.streamed,.tangoresource)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
anarkad
Posts: 13
Joined: Sat Oct 18, 2014 12:19 am

Re: The Evil Within(*.streamed,.tangoresource)

Post by anarkad »

repack working on x360/ps3 with this script ?
please give a link for this script ;)
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by michalss »

aluigi wrote:Script updated to version 0.2.2


Mate i made with my friend custom deflate compressor in C++. This is what is takes to make it work on Consoles. Problem is that they modify deflate compression method(dont know why). To fix this you would need to fix your compressor source in c++. Reimport wont work till you fix the compressor. :( gave you explanation why a few post before :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by aluigi »

Currently reverse engineering the customized zlib compression used by this game is not in my short and long term projects.
Uncompressing seems to work correctly so if the project is just reimporting... patience.
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by michalss »

aluigi wrote:Currently reverse engineering the customized zlib compression used by this game is not in my short and long term projects.
Uncompressing seems to work correctly so if the project is just reimporting... patience.



Not a problem for me just notify you what is it need to make it work. I can send you the source of compressor if you want :) Still testing anyway..
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by InKviZ »

Where do I download the script version 0.2.2??? And fixed the import and export??
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by aluigi »

@ InKviZ
The script is http://aluigi.org/papers/bms/others/sha ... mordor.bms but the reimporting for PC files is not changed.

@ michalss
Just curious, is that a work-in-progress or something really 100% working?
Feel free to share.
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by InKviZ »

InKviZ wrote:Where do I download the script version 0.2.2??? And fixed the import and export??

This is bad. That will not be able to translate the game.
anarkad
Posts: 13
Joined: Sat Oct 18, 2014 12:19 am

Re: The Evil Within(*.streamed,.tangoresource)

Post by anarkad »

error: the requested amount of bytes to allocate is negative <0xf5886f02>

file version: x360

the error occurs while unpacking (script 0.2.2)
chopper2882
Posts: 3
Joined: Mon Oct 27, 2014 2:01 am

Re: The Evil Within(*.streamed,.tangoresource)

Post by chopper2882 »

tangoresource archive are compressed by original zlib 1.2.3. (rage are same method)

but some options are needed. (Z_FULL_FLUSH)

below is some example source code.

as i post before PC is unpack, repack available.

1. decompress (inflate)
inflateInit2(&strm, -15);
inflate(&strm, Z_FULL_FLUSH);

2. compress (deflate)
deflateInit2(&strm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY);
deflate (&strm, Z_FULL_FLUSH);
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by aluigi »

I can't verify if this is true but I'm checking if there is a simple way to allow Z_FULL_FLUSH in quickbms to make it working.
Maybe I can use that type of sync by specifying a dictionary equal to "Z_FULL_FLUSH", just an idea.
Scofield_TR
Posts: 99
Joined: Wed Dec 03, 2014 12:44 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by Scofield_TR »

aluigi wrote:I can't verify if this is true but I'm checking if there is a simple way to allow Z_FULL_FLUSH in quickbms to make it working.
Maybe I can use that type of sync by specifying a dictionary equal to "Z_FULL_FLUSH", just an idea.


Hi aluigi,

I sent you a private message.

You please read.

Thanks.
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by michalss »

chopper2882 wrote:tangoresource archive are compressed by original zlib 1.2.3. (rage are same method)

but some options are needed. (Z_FULL_FLUSH)

below is some example source code.

as i post before PC is unpack, repack available.

1. decompress (inflate)
inflateInit2(&strm, -15);
inflate(&strm, Z_FULL_FLUSH);

2. compress (deflate)
deflateInit2(&strm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY);
deflate (&strm, Z_FULL_FLUSH);



Yes i can confirm this is the case for this game!
birseysoylicem
Posts: 3
Joined: Mon Dec 15, 2014 11:14 am

Re: The Evil Within(*.streamed,.tangoresource)

Post by birseysoylicem »

Please update script to ps3 version


Image
Last edited by birseysoylicem on Sun Dec 21, 2014 2:26 pm, edited 1 time in total.
Scofield_TR
Posts: 99
Joined: Wed Dec 03, 2014 12:44 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by Scofield_TR »

chopper2882 wrote:here is unpack, repack program. (only for PC not support XBOX360/PS3)


@chopper2882 I sent you a private message.

Would you please look.
Scofield_TR
Posts: 99
Joined: Wed Dec 03, 2014 12:44 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by Scofield_TR »

michalss wrote:
chopper2882 wrote:tangoresource archive are compressed by original zlib 1.2.3. (rage are same method)

but some options are needed. (Z_FULL_FLUSH)

below is some example source code.

as i post before PC is unpack, repack available.

1. decompress (inflate)
inflateInit2(&strm, -15);
inflate(&strm, Z_FULL_FLUSH);

2. compress (deflate)
deflateInit2(&strm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -15, 8, Z_DEFAULT_STRATEGY);
deflate (&strm, Z_FULL_FLUSH);



Yes i can confirm this is the case for this game!


Hi michalss,

How are we going back packing :(

Is there a development ?
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by michalss »

i dropped all work on this game. No any news just found out what is the problem, but that is all.
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by lostprophet »

Btw is it possible then to modify the font files?
I have checked both topics (here and on the "other" site), but beside a few pictures, didn't find out if it's doable.
Nameless32
Posts: 35
Joined: Sun Dec 21, 2014 7:43 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by Nameless32 »

My group has managed to repack the text to ps3/xbox, but i can't give the tool... sorry...
but our problems is the font files, anyone know how edit them ?

the bms scripts in this topic not work... i already tried
viewtopic.php?f=9&t=253
thanks
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within(*.streamed,.tangoresource)

Post by michalss »

Nameless32 wrote:My group has managed to repack the text to ps3/xbox, but i can't give the tool... sorry...
but our problems is the font files, anyone know how edit them ?

the bms scripts in this topic not work... i already tried
viewtopic.php?f=9&t=253
thanks


It is strange, you cannot share tools but asking for help on fonts. I know how to edit fonts in fact it is very simple. Here is binary template:

It is DXT5 header sizes you can get from template, very simple to do it. Edit only with DDS plugin in Photoshop. No index file decoded i dont need it so i dont care :D Work with PC and X360/PS3 bimage files. Also merlinsvk made some script for this as well can't remember where but it is somewhere on forum. Use search!

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// File: Evil Within .bimage
// Author: michalss
// Revision: 1.0
// Purpose:
//--------------------------------------
BigEndian();

uint sign;
uint sing_sub;

if (sing_sub == 122505538 ) {

uint zero;
uint width;
uint height;
uint64 count;
ushort zero;
uint unk1;
uint unk2;
uint unk3;
uint64 zero2;
uint width2;
uint height2;
uint rawTexSize;
byte TEX[rawTexSize];

} else {

uint64 zero;
uint width;
uint height;
uint32 count;
ushort zero;
uint unk1;
uint unk2;
uint unk3;
uint unk4;
uint64 zero0;
uint width2;
uint height2;
uint rawTexSize;
byte TEX[rawTexSize];


}


MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Evil Within(*.streamed,.tangoresource)

Post by MerlinSVK »