Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

How to translate the files of a game
porton007
Posts: 9
Joined: Sun May 23, 2021 1:32 am

Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by porton007 »

I use tools cryxml_import But it won't convert the file
Image
Image
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

how you extract file xml
bornaghi
Posts: 17
Joined: Wed Jun 09, 2021 6:27 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by bornaghi »

Image
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

bornaghi wrote:Image

how ?
Terminator2222
Posts: 44
Joined: Sat Jun 20, 2015 1:42 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by Terminator2222 »

noteza5555

1. Download the "BinXMLDecode" from HERE: https://www.dropbox.com/s/ksn7a5yggbdqp ... e.exe?dl=0
2. Make a backup of "english_xml.pak" file! With (free) 7zip program open and extract "english_xml.pak" file from the game
3. Extracted *xml files drag and drop onto "BinXMLDecode" > it will decrypt them > text_ui.xml > text_ui.xml.text.xml > delete 2nd ".xml" extension!
4. Open and translate files with Excel or your favorite XML editor program (Notepad++ good too)

Translate example from "text_ui.xml" file:

" <Row ss:AutoFitHeight="0" ss:StyleID="s82">
<Cell ss:Index="2"><Data ss:Type="String">ui_Accept</Data></Cell>
<Cell><Data ss:Type="String">Accept</Data></Cell>
<Cell><Data ss:Type="String">TRANSLATE ALWAYS THE 2ND ONE!!! THIS IS 2ND ENGLISH ROW!!!</Data></Cell>
<Cell ss:Index="6"><Data ss:Type="String">Accepter</Data></Cell>
<Cell><Data ss:Type="String">Accetta</Data></Cell>
<Cell><Data ss:Type="String">Akzeptieren</Data></Cell>
<Cell><Data ss:Type="String">Aceptar</Data></Cell>
<Cell><Data ss:Type="String">Akceptuj</Data></Cell>
<Cell><Data ss:Type="String">Принять</Data></Cell>
<Cell><Data ss:Type="String">Aceitar</Data></Cell>
<Cell><Data ss:Type="String">接受</Data></Cell>
<Cell><Data ss:Type="String">接受</Data></Cell>
<Cell><Data ss:Type="String">Přijmout</Data></Cell>
<Cell><Data ss:Type="String">決定</Data></Cell>
<Cell><Data ss:Type="String">확인</Data></Cell>"

5. Open ORIGINAL (make a backup again!) "english_xml.pak" file with 7zip - drag and drop the translated files into open 7zip window and "Confirm File Copy" > "Yes"
6. Copy this modified "english_xml.pak" to the game's folder and overwrite.
7. TEST IT ingame!

That's it.

Picture from my hungarian test translation:

Image
bornaghi
Posts: 17
Joined: Wed Jun 09, 2021 6:27 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by bornaghi »

Before I forget, let me also say this. The tool also works in the first game of the Contract series.

I tried the attached tool in other games of the series.

on SGWC1 and SGWC2
The tool works fine on SGWC1 and SGWC2. No need for repacking on SGWC1 and SGWC2. You can edit the XML file you analyzed with the tool with NotePad++. After localizing, save and replace with the same name as the original file. Open the engish_xml.pak file with Winrar and replace the XML files you edited with NotePad++. It works fine.

Image

in SGW2
But it looks like SGW2's language files need to be repackaged. The tool unpacks the language files of SGW2. When I give the same name as the original file and change it, the result is as in the photo. I'm not the reason the codes are appearing. I unpack the file. I copy it back into the game files without making any changes. The rest is as in the photo. I think it needs to be repackaged.

Image

See you Ravens, Seekers.


In case the Google Drive link dies:
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

Thanks i will try now
Last edited by noteza5555 on Thu Feb 10, 2022 3:25 pm, edited 1 time in total.
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

Image[/quote]

do you know where is font file ?
bornaghi
Posts: 17
Joined: Wed Jun 09, 2021 6:27 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by bornaghi »

noteza5555 wrote:Image


do you know where is font file ?[/quote]

Can it be the selected file? If it's, I have no idea how it can be opened.

Image
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

WHAT NEXT CAN YOU DO FOR YOUTUBE PLS I CONFUSE

CHECK THIS
Image
Last edited by noteza5555 on Thu Feb 10, 2022 4:31 pm, edited 2 times in total.
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

I FOUND FONT FILE IN engine FILE HERE :
Image
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

i very confuse this step :delete 2nd ".xml" extension!

what file i delete ?
Image
bornaghi
Posts: 17
Joined: Wed Jun 09, 2021 6:27 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by bornaghi »

It is always necessary to translate the second line.

Image


Image
noteza5555
Posts: 26
Joined: Wed Jun 30, 2021 12:54 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by noteza5555 »

do you have discord or something ?

Image

what this step mean : 5. Open ORIGINAL (make a backup again!) "english_xml.pak" file with 7zip - drag and drop the translated files into open 7zip window and "Confirm File Copy" > "Yes"
bornaghi
Posts: 17
Joined: Wed Jun 09, 2021 6:27 pm

Re: Sniper Ghost Warrior Contracts 2 - How to import file txt to xml ?

Post by bornaghi »

Control your PM.