Important information: this site is currently scheduled to go offline indefinitely by end of the year.
The Saboteur
-
- beginner
- Posts: 35
- Joined: Tue Oct 20, 2009 7:35 am
- Has thanked: 2 times
- Been thanked: 3 times
Re: The Saboteur
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;
}
}
-
- beginner
- Posts: 35
- Joined: Tue Oct 20, 2009 7:35 am
- Has thanked: 2 times
- Been thanked: 3 times
Re: The Saboteur
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
-
- beginner
- Posts: 35
- Joined: Tue Oct 20, 2009 7:35 am
- Has thanked: 2 times
- Been thanked: 3 times
Re: The Saboteur
There is a mistake in it.evilpie wrote:I ported Zeldas Struct to an quickbms script, but i doesnt work perfect because of the "DNEC" Type.
"Else If Type == "DENC"" It is not DENC, but DNEC.
-
- advanced
- Posts: 75
- Joined: Tue Jun 30, 2009 11:35 am
- Location: Turkey
- Has thanked: 30 times
- Been thanked: 5 times
-
- mega-veteran
- Posts: 179
- Joined: Thu Sep 30, 2010 9:52 am
- Has thanked: 19 times
- Contact:
-
- mega-veteran
- Posts: 179
- Joined: Thu Sep 30, 2010 9:52 am
- Has thanked: 19 times
- Contact:
-
- ultra-n00b
- Posts: 1
- Joined: Mon Feb 13, 2012 9:38 am
Re: The Saboteur
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
I need extract it - translate and then repack.
Here is this file
Thanks a lot
BBTM
You do not have the required permissions to view the files attached to this post.
-
- mega-veteran
- Posts: 179
- Joined: Thu Sep 30, 2010 9:52 am
- Has thanked: 19 times
- Contact:
Re: The Saboteur
Can anyone help with the files on PS3, please.
You do not have the required permissions to view the files attached to this post.