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.

script for the game wartales by shiro games

Featured Replies

  • Author
  • Localization

tomba, posted Sun Mar 06, 2022 8:48 am (70324)


in the game the text is in a res.pak file, which can be unpacked with a script from another game of the company, but it shows an error in one place and cannot be put back.
I attach the script with the error message when unpacking.
What could be the problem?
The res.pak file itself is uploaded to https://mega.nz/fm/Au4QQJgI
link.

Script.bms

Script.bms

  • Author
  • Localization

tomba, posted Thu Mar 10, 2022 10:53 am (70412)


it occurs to me that maybe it's not the unpacking that's the problem, because it's in a part that doesn't need to be changed, so it's better to delete it from the target folder in the first place, but the real problem is that it doesn't restore the .dat file because it refers to low memory. i've seen a bug like this from someone else on zenhax. what do you think about it?
  • Author
  • Localization

aluigi, posted Fri Mar 11, 2022 2:15 pm (70439)


It looks like the script has already parsed all the entries in the file and is now parsing invalid data after it.

Considering the offset and the 100% coverage I'm quite sure that the archive is splitted in multiple files of 2Gb each, BUT on steamdb it says that res.pak is 4.57 GiB so there is definitely something wrong.
Are you sure your file isn't corrupted?
  • Author
  • Localization

tomba, posted Fri Mar 18, 2022 1:54 pm (70576)


aluigi wrote:
It looks like the script has already parsed all the entries in the file and is now parsing invalid data after it.

Considering the offset and the 100% coverage I'm quite sure that the archive is splitted in multiple files of 2Gb each, BUT on steamdb it says that res.pak is 4.57 GiB so there is definitely something wrong.
Are you sure your file isn't corrupted?


sorry, I missed the reply.

I copied it from the game and it still works when I put it back.
res.pak is 4.56 GB, unzipped is 10. GB, of which the 0000000000000f48.dat file with the text is 2.7 GB.
I just want to reimport this, and it gives me the error.
  • Author
  • Localization

tomba, posted Fri Mar 18, 2022 2:02 pm (70577)


- error in src\extra\xalloc.c line 618: xdbg_malloc()

Error: memory allocation problem
  • Author
  • Localization

tomba, posted Sat Mar 19, 2022 10:28 am (70602)


they sent me a script that is supposed to unpack and repack the res.pak, but it also gives an error message, who has seen it and added this:

"The script doesn't support "type 2" entries and that's why it's failing.
I have added error handling to the script, so now at least you will be able to unpack and pack properly around 43% of the content.
https://github.com/bartlomiejduda/Tools ... script.bms

But still - someone needs to figure out how to handle "type 2" entries."

i don't know if this is better because it won't start for me because of the 2 types
  • Author
  • Localization

rabatini, posted Sat Mar 19, 2022 1:13 pm (70605)


tomba wrote:
they sent me a script that is supposed to unpack and repack the res.pak, but it also gives an error message, who has seen it and added this:

"The script doesn't support "type 2" entries and that's why it's failing.
I have added error handling to the script, so now at least you will be able to unpack and pack properly around 43% of the content.
https://github.com/bartlomiejduda/Tools ... script.bms

But still - someone needs to figure out how to handle "type 2" entries."

i don't know if this is better because it won't start for me because of the 2 types


Are you using quickbms 4gb version?
  • Author
  • Localization

tomba, posted Sat Mar 19, 2022 4:31 pm (70607)


rabatini wrote:
tomba wrote:
they sent me a script that is supposed to unpack and repack the res.pak, but it also gives an error message, who has seen it and added this:

"The script doesn't support "type 2" entries and that's why it's failing.
I have added error handling to the script, so now at least you will be able to unpack and pack properly around 43% of the content.
https://github.com/bartlomiejduda/Tools ... script.bms

But still - someone needs to figure out how to handle "type 2" entries."

i don't know if this is better because it won't start for me because of the 2 types


Are you using quickbms 4gb version?


yes
I received this script:

Shiro_Games_PAK_script.bms

  • Author
  • Localization

tomba, posted Sat Mar 19, 2022 10:26 pm (70611)


tomba wrote:
rabatini wrote:
tomba wrote:
they sent me a script that is supposed to unpack and repack the res.pak, but it also gives an error message, who has seen it and added this:

"The script doesn't support "type 2" entries and that's why it's failing.
I have added error handling to the script, so now at least you will be able to unpack and pack properly around 43% of the content.
https://github.com/bartlomiejduda/Tools ... script.bms

But still - someone needs to figure out how to handle "type 2" entries."

i don't know if this is better because it won't start for me because of the 2 types


Are you using quickbms 4gb version?


yes
I received this script:Shiro_Games_PAK_script.bms

Shiro_Games_PAK_script.bms

  • Author
  • Localization

tomba, posted Sun Mar 20, 2022 6:30 am (70617)


aluigi wrote:
It looks like the script has already parsed all the entries in the file and is now parsing invalid data after it.

Considering the offset and the 100% coverage I'm quite sure that the archive is splitted in multiple files of 2Gb each, BUT on steamdb it says that res.pak is 4.57 GiB so there is definitely something wrong.
Are you sure your file isn't corrupted?


Hi
the script I got unpacks about 43% of the game, but not the .dat containing the text. the original northgar script unpacks everything, but does not restore it. the quickbms 11 script asks for a password.
do you think there is a chance that one of them will eventually get the .dat file back, or should i stop trying?
  • Author
  • Localization

tomba, posted Mon Mar 21, 2022 11:03 am (70627)


aluigi wrote:
It looks like the script has already parsed all the entries in the file and is now parsing invalid data after it.

Considering the offset and the 100% coverage I'm quite sure that the archive is splitted in multiple files of 2Gb each, BUT on steamdb it says that res.pak is 4.57 GiB so there is definitely something wrong.
Are you sure your file isn't corrupted?


is it possible that the imported .dat files are just the result of an error, and that the program has actually merged several different files into them?
  • Author
  • Localization

tomba, posted Mon Mar 21, 2022 1:56 pm (70630)


when I import the contents of res.pak, the resulting files include 4 *.dat files (2.8 GB, 2.8 GB, 1.4 GB and 1.3 MB) and many other smaller files and folders
  • Author
  • Localization

tomba, posted Thu Mar 24, 2022 2:54 pm (70689)


thanks for all your help, the new update has improved the translatability.
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.