Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Sniper Elite 5 Text Files

Featured Replies

  • Author
  • Localization

h3x3r, posted Mon May 30, 2022 3:29 pm (71743)


I have a solution. But it requires 010 HEX Editor.
Here's BMS script for export a import with using reimport3_localizations.bat.
Note: You must do re-import on original file. If you do reimport on already modified file then it will fail.
Code:
####################################
idstring "Asura   "
get MAGIC long
get FILESIZE long
getdstring FLAG 0x8
get STRCOUNT long
getdstring UNK 0xC

for i = 0 < STRCOUNT
   get CRC long
   get STRLEN long
   math STRLEN *= 2
   savepos STROFF
   getdstring TEXT STRLEN
   slog "" STROFF STRLEN unicode
next i

And here 010 Script for fixing file after re-import.
Code:
//------------------------------------------------
//--- 010 Editor v11.0.1 Script File
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
//   History:
//------------------------------------------------
local uint FileCount,Hash,StrLen,StrOffset,StrLenOffset,Value,Size,Filesize,RefTextEnd,TempCount,RefTextSize,i;

FSeek(24);
FileCount=ReadUInt(FTell());
FSeek(40);
for(i=0;ilocal struct {
        Hash=ReadUInt(FTell());
        FSkip(4);
        StrLenOffset=FTell();
        StrLen=ReadUInt(FTell());
        Value=StrLen 1;
        Size=1;
        WriteUInt(StrLenOffset,Value);
        FSkip(4);
        StrOffset=FTell();
        FSkip(StrLen*2);
        InsertBytes(StrOffset StrLen*2,2,0);
        FSkip(2);
}TextTable;
RefTextEnd=FTell();
TempCount=FileCount*8;
RefTextSize=RefTextEnd-TempCount-40;
FSeek(0);
Filesize=FileSize()-12;
WriteUInt(12,Filesize);
WriteUInt(32,RefTextSize);
FileSave();

Open re-imported file in 010 HEX Editor and run Script on it.
Also edit *.txt files preferably in NP for maintain code page.

Video tutorial
https://youtu.be/6eEsWb-5M64
And proof
https://youtu.be/mgkruTpjO1E

EDiT: Updated 010 script. Now it writes one value correctly. "WriteUInt(32,RefTextSize);"
  • Author
  • Localization

h3x3r, posted Mon May 30, 2022 5:57 pm (71746)


Huge thanks for not working tool. This happens when import. Also there is some leftovers from uexp which is unreal engine thing.
Image
It's Turkish and it means Not found!
  • Author
  • Localization

bornaghi, posted Mon May 30, 2022 7:44 pm (71747)


h3x3r wrote:
Huge thanks for not working tool. This happens when import. Also there is some leftovers from uexp which is unreal engine thing.
Image
It's Turkish and it means Not found!


He said if h3x3r looks the source codes, h3x3r will understand the situation.
  • Author
  • Localization

Franco, posted Tue May 31, 2022 10:28 am (71753)


Thank you both very much for your help. I also thank you h3x3r for always helping people.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.