READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Text Files Shadow Of mordor *HELP* text Container

Need help translating games in other languages? Have your language problems solved here.
michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Thu Nov 27, 2014 10:51 am

Can anyone help please with this format ??

Download (rest in signature add before (dropbox):

Code: Select all

38234344/stringSoM.rar
This is what i have so far... I cannot find offset :(

Code: Select all

BigEndian();

local uint x;

char sign[4];
uint version;
uint headsize;
uint entry;
uint64 textSize; // must be *2 coz of unicode
byte bbb[8];

for (x=0;x<entry;x++) {

 struct Entry {
    //uint ID;
    //uint Offset;

    ushort id1;    //???
    ushort id2;   //????
    ushort of1;   //????
    ushort of2;   //????

 }data;

}
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
InKviZ
advanced
Posts: 51
Joined: Sun Sep 28, 2014 5:57 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by InKviZ » Thu Nov 27, 2014 3:43 pm

And where is the text ??? And share unpack and pack archives.
UALT - Ukrainian Localize Team.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Thu Nov 27, 2014 5:42 pm

InKviZ wrote:And where is the text ??? And share unpack and pack archives.

If you want repacker for PC you won't find one. This is from X360 version, however only different is endian...
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
InKviZ
advanced
Posts: 51
Joined: Sun Sep 28, 2014 5:57 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by InKviZ » Thu Nov 27, 2014 7:14 pm

If you want repacker for PC you won't find one. This is from X360 version, however only different is endian...[/quote]
This is bad ....
UALT - Ukrainian Localize Team.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Sat Nov 29, 2014 8:56 am

anyone please ? I cannot figure it out :(
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by WRS » Sun Nov 30, 2014 6:59 pm

those widestrings are padded to 4 byte blocks

but the string count isn't in the header - the 32180 is this entry count

english - there are 27414 strings
french - there are 23344 strings
russian - there are 14142 strings

there are some html like colours
Useful tool links:

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Mon Dec 01, 2014 7:19 am

WRS wrote:those widestrings are padded to 4 byte blocks

but the string count isn't in the header - the 32180 is this entry count

english - there are 27414 strings
french - there are 23344 strings
russian - there are 14142 strings

there are some html like colours

thx but not sure if i understand :( From my script as you can see that TextSize is size of text block * 2. It is perfect in every language file. However i have try to repack this file and it is working but once you make strings longer text is broken in game. There must be something im missing.
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Mon Dec 01, 2014 10:07 am

My latest wersion but i dont think this is right:

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// File:
// Author: michalss
// Revision: 1.5
// Purpose: Shadow of Mordor TextFiles
//--------------------------------------
BigEndian();

local uint x,padding,dCounter;
local string text;

char sign[4];
uint version;
uint headsize;
uint entry;
uint64 textSize; // must be *2 coz of unicode
uint64 unk;


struct DONTKNOW {
    for (x=0;x<entry;x++) {

        struct Entry {
   
            uint dummy;    
            uint crc;

        }data;

   }
}n;

dCounter = (textSize*2)+(entry*2);

struct TextEntry {
do {

 struct Text {
         
    text=ReadWString(FTell());
    char TextF[Strlen(text)*2];    
    padding=ReadUInt(FTell());
    if (padding==0) {
        byte padding[4];
    }else{       
        byte padding[2];
    }
 }data;


} while (FTell()<=FileSize()-1);
} E;
//Printf("Counter %i\n",dCounter);
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
MiRiKan
advanced
Posts: 67
Joined: Fri Jul 25, 2014 6:28 am
Location: Korea
Has thanked: 12 times
Been thanked: 24 times
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by MiRiKan » Mon Dec 29, 2014 3:34 am

Code: Select all

//--------------------------------------
//--- 010 Editor ver 6.0 mordor PC
//
// File: string.strdb
// Author: MiRiKan updated, michalss
// Revision: 1.7
// Purpose: Shadow of Mordor text script
//--------------------------------------
local uint x,padding,dCounter;
local uint ftell;
char identity[4]; //SKDB
uint dummy1; 
uint SizeOfHeader;
uint PointerOfStrings;
uint64 textSize;
uint64 dummy2;
struct Unknown {
    for (x=0;x<PointerOfStrings;x++) {
        struct UNKNOWN {
            uint unknown1;    
            uint unknown2;
        }data;
   }
}DATA;
dCounter = (textSize*2)+(PointerOfStrings*2);
struct Strings {
     while (FTell()<=FileSize()-1){
        struct Text {
            wstring text;
            ftell = FTell();
            FSeek(ftell-2);
            padding=ReadUInt(FTell());
            if (padding==0) {
                byte padding[4];
            }else{
                byte padding[2];
            } 
        }strings;
    };
}TEXT;
I changed little things for PC.
and i think your file will need "BigEndian();"
Team.SM, Make Koren Translations for Games.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Mon Dec 29, 2014 11:00 am

Problem is that template is not correct :( You just copied over, not helpful pretty much :( Need to understand this unk uints!
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
MiRiKan
advanced
Posts: 67
Joined: Fri Jul 25, 2014 6:28 am
Location: Korea
Has thanked: 12 times
Been thanked: 24 times
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by MiRiKan » Tue Dec 30, 2014 4:14 am

michalss wrote:Problem is that template is not correct :( You just copied over, not helpful pretty much :( Need to understand this unk uints!
Yes, you are right.
but i really don't know what it is.
maybe it might be some pointers for texts. i'll think and think again

Code: Select all

struct Unknown {
    for (x=0;x<PointerOfStrings;x++) {
        struct Point {
            uint unk1; // maybe pointer
            uint ID; 
        }data;

   }
}D;
Team.SM, Make Koren Translations for Games.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Tue Dec 30, 2014 9:41 am

OK sorted with little help of my friend evin :)
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
MiRiKan
advanced
Posts: 67
Joined: Fri Jul 25, 2014 6:28 am
Location: Korea
Has thanked: 12 times
Been thanked: 24 times
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by MiRiKan » Tue Dec 30, 2014 10:18 am

Image

Hum. Japanese texts are 14299. but pointers are 32269.
and English texts are 27413. but pointers are 32179.
...So i think this pointers have so many dummys in there.
also there is so many dummys in English texts! i found that "Level" text or some strings about FPS game - which were in the F.E.A.R game, perhaps.
i can not separate dummy data from this strings...
Team.SM, Make Koren Translations for Games.

michalss
Moderator
Posts: 942
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 135 times

Re: Text Files Shadow Of mordor *HELP* text Container

Post by michalss » Tue Dec 30, 2014 11:17 am

Here you GO :) easy.. Goona do repacker soon

Code: Select all

//--------------------------------------
//--- 010 Editor ver 5.2 mordor X360
//
// File: string.strdb
// Author: michalss
// Revision: 2
// Purpose: Shadow of Mordor text script
//--------------------------------------

BigEndian();

local uint x,padding,dCounter;
local uint pos;

char identity[4]; 
uint version; 
uint SizeOfHeader;
uint countStrings;
uint Null1;
uint textSize;
uint Null2;

dCounter = SizeOfHeader + countStrings*8;

struct TextData {
    for (x=0;x<countStrings;x++) {
        struct StringsUni{
           uint TextID;
           uint TextStartPos; 
           pos = FTell();
           FSeek(TextStartPos*2+dCounter); 
           wstring text;  
           FSeek(pos); 
        }data;
   }
}DATA;
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

User avatar
MiRiKan
advanced
Posts: 67
Joined: Fri Jul 25, 2014 6:28 am
Location: Korea
Has thanked: 12 times
Been thanked: 24 times
Contact:

Re: Text Files Shadow Of mordor *HELP* text Container

Post by MiRiKan » Wed Dec 31, 2014 2:36 am

michalss wrote:Here you GO :) easy.. Goona do repacker soon

Code: Select all

//--------------------------------------
//--- 010 Editor ver 5.2 mordor X360
//
// File: string.strdb
// Author: michalss
// Revision: 2
// Purpose: Shadow of Mordor text script
//--------------------------------------

BigEndian();

local uint x,padding,dCounter;
local uint pos;

char identity[4]; 
uint version; 
uint SizeOfHeader;
uint countStrings;
uint Null1;
uint textSize;
uint Null2;

dCounter = SizeOfHeader + countStrings*8;

struct TextData {
    for (x=0;x<countStrings;x++) {
        struct StringsUni{
           uint TextID;
           uint TextStartPos; 
           pos = FTell();
           FSeek(TextStartPos*2+dCounter); 
           wstring text;  
           FSeek(pos); 
        }data;
   }
}DATA;
WOW, i was just missed cause i didn't know where end of header is. you are amazing
Thanks
Team.SM, Make Koren Translations for Games.

Post Reply