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.

Wartales : incomplete reimport

Featured Replies

  • Author
  • Localization

lexo1000, posted Mon Apr 03, 2023 11:08 pm (76208)


I unpacked the res.pak archive which contains two .xml with game localizations: export.xml & text.xml.
I edited some texts in these two files and repacked them successfully with reimport2_4gb_files.
The problem is that the game only takes into account one of the file. The text edits I made to export.xml are not applied ingame.

Here is the script I'm using for unpack/repack the .pak file
Code:
# Script by Allen, modified by Bartlomiej Duda (Ikskoks)
# Shiro Games *.PAK archives

# Tested on PAK archive from "Wartales" PC game


# Ver      Date      Author            Comment
# v0.1      -      Allen            -
# v0.2      10.03.2022   Bartlomiej Duda         -




idstring "PAK\0"
get DataOffset long
get fileSize long
get dummy short
get numFolder long
for i = 0 < numFolder
   set folderName string ""
   CallFunction unpack 0 folderName
next i

StartFunction unpack folderName
   get namelen byte
   getdstring name namelen   
   get type byte
   if type == 0
      get offset long
      get size long
      get dummy long
      math offset = Dataoffset
      set fname string FolderName
      string fname = /
      string fname = name
      log fname offset size
   elif type == 1
      string folderName = /
      string folderName = name       
      get numEntry long
      for j = 0 < numEntry
         set folderName2 string folderName
         CallFunction unpack 0 folderName2
      next j
   elif type == 2  # TODO - support this type
      SavePos CURR_OFFSET
      get var1 long
      get var2 long
      get var3 long
      get var4 long
      # print "c_of: %CURR_OFFSET%, v1: %var1%, v2: %var2%, v3: %var3%, v4: %var4%"
   else
      print "Error! This type is not supported!"
      cleanexit
    endif
EndFunction
  • Author
  • Localization

mugicoco, posted Mon Apr 24, 2023 12:23 pm (76527)


I'm working on a Japanese translation for myself, no problem.
Is it not reflected even if only a part of export.xml is changed?
Did you accidentally delete tags (::text::, [text], XML tags, etc.)?

By the way, I was worried about the number of lines in export.xml.
There are 39177 lines in the latest version.
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.