XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Oct 22, 2017 6:01 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Batman Arkham Knight subtitles
PostPosted: Sat Aug 22, 2015 2:20 pm 
Offline
ultra-n00b

Joined: Sat Aug 22, 2015 1:52 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time

Hi! I'm currently making a hungarian translation to Batman Arkham Knight and i want to know which files holding the subtitles. If anybody knows, please help me.

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Tue Aug 25, 2015 2:45 am 
Offline
advanced

Joined: Sun Nov 30, 2014 1:49 am
Posts: 66
Has thanked: 40 times
Have thanks: 3 times
deneverfaszu wrote:
Hi! I'm currently making a hungarian translation to Batman Arkham Knight and i want to know which files holding the subtitles. If anybody knows, please help me.


I founded subtitle text in usm video. But i can not see subtitle text ingame.


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Tue Aug 25, 2015 11:56 am 
Offline
ultra-n00b

Joined: Sat Aug 22, 2015 1:52 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
And how did you open those usm files?


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Thu Aug 27, 2015 8:59 am 
Offline
advanced

Joined: Sun Nov 30, 2014 1:49 am
Posts: 66
Has thanked: 40 times
Have thanks: 3 times
deneverfaszu wrote:
And how did you open those usm files?


I open those usm file by hex editor and edit handmade!


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Wed Nov 11, 2015 1:52 am 
Offline
advanced
User avatar

Joined: Fri Aug 22, 2014 6:11 pm
Posts: 66
Location: Earth
Has thanked: 1 time
Have thanks: 0 time
Up.


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Sun Apr 10, 2016 4:30 pm 
Offline
ultra-n00b

Joined: Sat Aug 22, 2015 1:52 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Meanwhile I got a tool for unpacking and repacking upk files, it works fine and I can translate the in-game texts but the thing is, it only works with Arkham Origins. :(
If somebody has a little knowledge of programming or knows how unreal engine's in-game texts are working, please help me to make it compatible with Arkham Knight.

Message me and i will send the tool.


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Sun Aug 07, 2016 6:04 pm 
Offline
ultra-n00b

Joined: Sat Aug 22, 2015 1:52 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Well, I have a tool for Arkham Knight, but the new problem is I can't extract the texts from the .usm files. I know it could be done without extracting and editing by a hex editor, but I don't want that because hex editing usually messes up the files.

I have a tool for .usm files, but this one's for Arkham Origins too.

If somebody can make a working version for Arkham Knight, please let me know and I'll send the tool.
I would really appreciate that. :)


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Thu Jul 06, 2017 1:55 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 169
Has thanked: 9 times
Have thanks: 5 times
Up.
I need the unpack/repack .usm files.
Please, help!


Top
 Profile  
 
 Post subject: Re: Batman Arkham Knight subtitles
PostPosted: Wed Jul 26, 2017 12:13 am 
Offline
ultra-n00b

Joined: Sat Aug 22, 2015 1:52 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
So the thing is the Arkham Origins usm extractor works, now only the repacker needs be fixed for AK.
Anyone a little help? :)

Repacker's source code:

Code:
//--------------------------------------
//--- 010 Editor v3.2.2 Script File
//
// File: usm injector
// Author: celikeins
// Revision: 0.88
// Purpose: repack usm files
//--------------------------------------

int detSize( int  osize, int  size)
    {
      int base1 = 0x2C,base2=0x2C;
        while(base1<osize) base1+=0x20;
      while(base2<size) base2+=0x20;
      return base2-base1;

    }

uint KEY=1413632832;
ushort newl=2573;
uint sized;
int i,j,aux,res,tsize,otsize,cur,out,cnt;

uchar buffer[0xFFF];
string txt;
TFindResults r;
TFileList fl = FindFiles( GetArg(0), "*.usm" );
Printf("%d",fl.filecount);
for(j=0;j<fl.filecount;j++)
{
         cnt=3;
         cur=FileOpen(GetArg(0)+"\\"+fl.file[j].filename);

         out=FileOpen(GetArg(0)+"\\usm_txts\\"+fl.file[j].filename+".txt");
         FileSelect(cur);
         r = FindAll( KEY);
         for( i = 3; i < r.count-1; i++ ){
                if(ReadInt(r.start[i]+0x20)==0){
               otsize=ReadInt(r.start[i]+0x30);               
               FileSelect(out);
               txt=ReadString(cnt);
               tsize=Strlen(txt); cnt+=(tsize+2+2);
               FileSelect(cur);
               aux=detSize(otsize,tsize+2);               
               if(aux>0){
                   InsertBytes(r.start[i]+0x34+otsize,aux );
                   BigEndian();
                  res=ReadInt(r.start[i]+4);
                  WriteInt(r.start[i]+4,res+aux);
                  LittleEndian();
               }
               ConvertDataToBytes(txt,buffer);
               WriteInt(r.start[i]+0x30,tsize+2);
                    buffer[tsize+1]=0;
               WriteBytes(buffer,r.start[i]+0x34,tsize+2);                                    
               FileSelect(cur);
            }                           
         }
         FileSelect(out);
         FileClose();
         FileSelect(cur);
         FileSave();
         FileClose();
}
//Terminate();




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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