Page 1 of 1

The Saboteur

Posted: Fri Dec 04, 2009 1:47 pm
by nightvison
The contents of this post was deleted because of possible forum rules violation.

Re: The Saboteur

Posted: Fri Dec 04, 2009 8:08 pm
by GameZelda
Double-post.

Re: The Saboteur

Posted: Fri Dec 04, 2009 8:08 pm
by GameZelda

Code: Select all

struct DLGFile
{
    uint32_t unk1;
    uint32_t unk2; // Number of sections?
    uint32_t unk3;
    DLGSection[] sections;
}

struct DLGSection
{
    char type[4]; // "TXTD" for string sections, "DNEC" for the last section;
    if type == "TXTD"
    {
        uint unk; // ID?
        ushort textNameLen;
        char[textNameLen] textName;
        ushort textLen;
        wchar[textLen] text;
    }
}

Re: The Saboteur

Posted: Fri Dec 04, 2009 9:26 pm
by nightvison
With what can I open it up? Program name?

Re: The Saboteur

Posted: Fri Dec 04, 2009 10:32 pm
by evilpie
I ported Zeldas Struct to an quickbms script, but i doesnt work perfect because of the "DNEC" Type.

Code: Select all

# script for QuickBMS http://aluigi.org/papers.htm#quickbms

Get Unknown1 Long
Get Unknown2 Long
Get Unknown3 Long


Do
	GetDString Type 4
	
#	Print "Section %Type%"

	If Type == "TXTD"
		Get Unk Long
		
		Get TextNameLen Short		
		GetDString TextName TextNameLen
		
		
#		Print "TextNameLen: %TextNameLen% TextName: %TextName%"
		
		Get TextLen Short
		Math TextLen *= 2
		Math TextLen -= 2 # strip last 00 00
		
		SavePos CurrentOffset
		
		Log TextName CurrentOffset TextLen
		
		Math TextLen += 2
		Math CurrentOffset += TextLen
		
		Goto CurrentOffset
		
#		GetDString Text TextLen
		
#		 Print "TextLen: %TextLen% Text: %Text%"
		
	Else If Type == "DENC"
		Get Unk Long
		Get Unk Long
	Else
		print "Unkown Type: %Type%"
	Endif
	
While 1 = 1

Re: The Saboteur

Posted: Sat Dec 19, 2009 9:46 am
by nightvison
Any idea? (unpack and repack)

Re: The Saboteur

Posted: Tue Dec 29, 2009 2:06 pm
by Piedon
evilpie wrote:I ported Zeldas Struct to an quickbms script, but i doesnt work perfect because of the "DNEC" Type.
There is a mistake in it.

"Else If Type == "DENC"" It is not DENC, but DNEC.

Re: The Saboteur

Posted: Fri Jan 22, 2010 12:05 pm
by oyunceviri
The contents of this post was deleted because of possible forum rules violation.

Re: The Saboteur

Posted: Sat Apr 30, 2011 4:06 pm
by timartinelli
The contents of this post was deleted because of possible forum rules violation.

Re: The Saboteur

Posted: Mon May 09, 2011 8:27 pm
by timartinelli
Someone can help me, the ps3 is endians file....

Re: The Saboteur

Posted: Sun Mar 04, 2012 3:15 pm
by badboytm25
please can you help me with ps3 dlg file ???

I need extract it - translate and then repack.

Here is this file

Thanks a lot

BBTM

Re: The Saboteur

Posted: Mon Mar 05, 2012 9:16 pm
by timartinelli
Can anyone help with the files on PS3, please.