XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon May 29, 2017 6:41 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Thu Nov 27, 2014 10:51 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times

Can anyone help please with this format ??

Download (rest in signature add before (dropbox):
Code:
38234344/stringSoM.rar


This is what i have so far... I cannot find offset :(

Code:
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;

}


You can make the ads go away by registering


_________________
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Thu Nov 27, 2014 3:43 pm 
Offline
beginner
User avatar

Joined: Sun Sep 28, 2014 5:57 pm
Posts: 36
Has thanked: 0 time
Have thanks: 0 time
And where is the text ??? And share unpack and pack archives.

_________________
UALT - Ukrainian Localize Team.


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Thu Nov 27, 2014 5:42 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Thu Nov 27, 2014 7:14 pm 
Offline
beginner
User avatar

Joined: Sun Sep 28, 2014 5:57 pm
Posts: 36
Has thanked: 0 time
Have thanks: 0 time
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.


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Sat Nov 29, 2014 8:56 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Sun Nov 30, 2014 6:59 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 579
Has thanked: 64 times
Have thanks: 123 times
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:


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Mon Dec 01, 2014 7:19 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Mon Dec 01, 2014 10:07 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
My latest wersion but i dont think this is right:

Code:
//--------------------------------------
//--- 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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Mon Dec 29, 2014 3:34 am 
Offline
advanced
User avatar

Joined: Fri Jul 25, 2014 6:28 am
Posts: 67
Location: Korea
Has thanked: 12 times
Have thanks: 24 times
Code:
//--------------------------------------
//--- 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, Create Koren Translations for Games.


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Mon Dec 29, 2014 11:00 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Tue Dec 30, 2014 4:14 am 
Offline
advanced
User avatar

Joined: Fri Jul 25, 2014 6:28 am
Posts: 67
Location: Korea
Has thanked: 12 times
Have thanks: 24 times
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:
struct Unknown {
    for (x=0;x<PointerOfStrings;x++) {
        struct Point {
            uint unk1; // maybe pointer
            uint ID;
        }data;

   }
}D;

_________________
Team.SM, Create Koren Translations for Games.


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Tue Dec 30, 2014 9:41 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Tue Dec 30, 2014 10:18 am 
Offline
advanced
User avatar

Joined: Fri Jul 25, 2014 6:28 am
Posts: 67
Location: Korea
Has thanked: 12 times
Have thanks: 24 times
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, Create Koren Translations for Games.


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Tue Dec 30, 2014 11:17 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 931
Has thanked: 10 times
Have thanks: 120 times
Here you GO :) easy.. Goona do repacker soon

Code:
//--------------------------------------
//--- 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/


Top
 Profile  
 
 Post subject: Re: Text Files Shadow Of mordor *HELP* text Container
PostPosted: Wed Dec 31, 2014 2:36 am 
Offline
advanced
User avatar

Joined: Fri Jul 25, 2014 6:28 am
Posts: 67
Location: Korea
Has thanked: 12 times
Have thanks: 24 times
michalss wrote:
Here you GO :) easy.. Goona do repacker soon

Code:
//--------------------------------------
//--- 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, Create Koren Translations for Games.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group