script for the game wartales by shiro games
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
script for the game wartales by shiro games
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.
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.
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: script for the game wartales by shiro games
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?
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?
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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.
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
- error in src\extra\xalloc.c line 618: xdbg_malloc()
Error: memory allocation problem
Error: memory allocation problem
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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
"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
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: script for the game wartales by shiro games
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?
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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:
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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?
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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?
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
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
-
- Posts: 30
- Joined: Wed Aug 04, 2021 9:52 am
Re: script for the game wartales by shiro games
thanks for all your help, the new update has improved the translatability.