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.

Castlevania Lords of Shadow 2

Featured Replies

  • Author
  • Localization

Big Boss, posted Mon Feb 24, 2020 6:23 am (54208)


I saw it just now, REIMPORT2.bat is giving FILE SIZE IS BIG error, but wasn't it supposed to remove the size limitation?
  • Replies 78
  • Views 35
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
  • Localization

Big Boss, posted Mon Feb 24, 2020 4:11 pm (54219)


Why is REIMPORT2.bat not working to re-import files larger than the original ones?
  • Author
  • Localization

LokiReborn, posted Mon Feb 24, 2020 6:20 pm (54227)


Big Boss wrote:
Please Ekey, help me, how can I proceed to solve this problem, if it is file exchange, where can I get it? is there no way to create a new Script, or edit that one, to adapt to this specific file?


So a few things, first I'm not EKey but glad it worked all the same, second you really need to stop double postings we all have jobs and posting 4 times in a few minutes is starting to get bothersome. In regards to your problem I'm guessing you're doing it incorrectly.

I used the attached examples you had of the modified files and they re-imported fine.

In order to re-import the files you need to use the same parameters as when you extracted the files, also note you should use any empty folder to extract to.
For example when I extracted the files I used Quickbms.exe castlevania.bms Data00.packed Out
In this example Out is an empty folder and will extract all of the contents of Data00.packed
You stated you wanted to you just wanted to edit the 2 Portuguese dictionary files. So for you in your Out folder it should only have 1 folder named language and in the language folder there should only be 2 files named portuguese.txt & portuguese_dlc.txt
You then run reimport2.bat, you select the modified script again, you select the original Data00.packed, and you select the Out folder, that should give results similar to the example below.

Code:

QuickBMS generic files extractor and reimporter 0.10.1
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (Oct 20 2019 - 14:53:23)

                          quickbms.com  Homepage
                            zenhax.com  ZenHAX Forum
                     @zenhax @quickbms  Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files

- alternative REIMPORT2 mode enabled!
  - remember to select the SAME script, file and folder you selected during
    the previous extraction
  - it's highly suggested to leave only the edited files in the folder, it's
    faster and less prone to errors with compressed files

- open input file C:\Users\fakeuser\Desktop\New folder\Data00.packed
- open script C:\Users\fakeuser\Desktop\New folder\castlevania.bms
- set output folder C:\Users\fakeuser\Desktop\New folder\Out

  offset   filesize   filename
--------------------------------------
- enter in folder C:\Users\fakeuser\Desktop\New folder
- open input file C:\Users\fakeuser\Desktop\New folder\Data00.packed
< 00000000 0          language\portuguese.txt
< 2e4b1b95 13949      language\portuguese.txt
< 2e4b5216 16365      language\portuguese.txt
< 2e4b9207 24690      language\portuguese.txt
< 2e4bf27d 17592      language\portuguese.txt
< 2e4c3739 16793      language\portuguese.txt
< 2e4c78d6 15937      language\portuguese.txt
< 2e4cb71b 17319      language\portuguese.txt
< 2e4cfac6 12671      language\portuguese.txt
< 00000000 0          language\portuguese_dlc.txt
< 2e4d2c4d 17629      language\portuguese_dlc.txt
< 2e4d712e 8901       language\portuguese_dlc.txt
\
- 2 files (12 logs) reimported in 17 seconds
- 54476 files or logs left original, not available in the folder
  coverage file 0     0%   217964     777033867  . offset 2e4ff3c9
  coverage file 1     0%   1247809    777033867  . offset 00130a4d

Press ENTER or close the window to quit
  • Author
  • Localization

Big Boss, posted Mon Feb 24, 2020 10:38 pm (54231)


Forgive me, the inconvenience, I didn't want to be boring, but I am not an idiot, I work with language and textuality, despite everything, it is a great challenge for me to work with it, and I am one of the best in the area, I am visually impaired, I use a voice assistant to interpret the texts and correct them, moreover, I don't speak English, which makes communication even more difficult, the voice assistant, only interpreted the name Ekey, so I communicated like this, so forgive me , I will withdraw from the forum, thank you for your huge help.
  • Author
  • Localization

LokiReborn, posted Mon Feb 24, 2020 11:27 pm (54232)


Big Boss wrote:
Forgive me, the inconvenience, I didn't want to be boring, but I am not an idiot, I work with language and textuality, despite everything, it is a great challenge for me to work with it, and I am one of the best in the area, I am visually impaired, I use a voice assistant to interpret the texts and correct them, moreover, I don't speak English, which makes communication even more difficult, the voice assistant, only interpreted the name Ekey, so I communicated like this, so forgive me , I will withdraw from the forum, thank you for your huge help.


No one's asking you to leave the forum and I didn't mean to insult you if I did, only you maybe have attempted to re-add the file incorrectly. I also can't speak Portuguese so you're already ahead of me in that regard being even slightly bilingual.

Most importantly though were you able to re-add your files successfully? I'm happy to help if you need assistance and there are other methods outside of using the scripts if there is a re-import problem.
  • Author
  • Localization

Big Boss, posted Tue Feb 25, 2020 5:23 am (54236)


Loki, you're giving an error, saying that the file is bigger than the original, and I actually made some updates to the files after posting here, I didn't want to have to undo these updates, it was a lot of work for me to do them, I wouldn't have a different method that could help me, how to recreate a new .packed file with the modified files, instead of reimporting them?
  • Author
  • Localization

LokiReborn, posted Tue Feb 25, 2020 12:32 pm (54242)


Big Boss wrote:
Loki, you're giving an error, saying that the file is bigger than the original, and I actually made some updates to the files after posting here, I didn't want to have to undo these updates, it was a lot of work for me to do them, I wouldn't have a different method that could help me, how to recreate a new .packed file with the modified files, instead of reimporting them?


Can you post the files so I can try to replicate the issue.
  • Author
  • Localization

Big Boss, posted Wed Feb 26, 2020 5:37 pm (54269)


LokiReborn wrote:
No one's asking you to leave the forum and I didn't mean to insult you if I did, only you maybe have attempted to re-add the file incorrectly. I also can't speak Portuguese so you're already ahead of me in that regard being even slightly bilingual.

Most importantly though were you able to re-add your files successfully? I'm happy to help if you need assistance and there are other methods outside of using the scripts if there is a re-import problem.


My assistant forgot to inform that I am trying to reimport some .DDS textures, the .txt files have already been reimported correctly, thank you very much, I don't want to be boring, but I would like a help with that too, I have already searched all over the internet and found no solution, I don't want to take your time, I know that time today is valuable, but please help me again, the files are below:
  • Author
  • Localization

LokiReborn, posted Thu Feb 27, 2020 9:48 am (54283)


Big Boss wrote:
LokiReborn wrote:
No one's asking you to leave the forum and I didn't mean to insult you if I did, only you maybe have attempted to re-add the file incorrectly. I also can't speak Portuguese so you're already ahead of me in that regard being even slightly bilingual.

Most importantly though were you able to re-add your files successfully? I'm happy to help if you need assistance and there are other methods outside of using the scripts if there is a re-import problem.


My assistant forgot to inform that I am trying to reimport some .DDS textures, the .txt files have already been reimported correctly, thank you very much, I don't want to be boring, but I would like a help with that too, I have already searched all over the internet and found no solution, I don't want to take your time, I know that time today is valuable, but please help me again, the files are below:


You can try with this file, I wrote something fast to remake the file from scratch.
  • Author
  • Localization

Big Boss, posted Thu Feb 27, 2020 11:40 am (54286)


You could disclose here in the topic this Script that you did to redo the file from scratch, I think it would help a lot of people.
  • Author
  • Localization

LokiReborn, posted Thu Feb 27, 2020 12:43 pm (54287)


Big Boss wrote:
You could disclose here in the topic this Script that you did to redo the file from scratch, I think it would help a lot of people.

This is the code I used, though it's only for your specific version it's not a broad as quickbms script. Also in regards to the 0x8000 bytes at the end that was based on that specific files that I saw that number appended not sure if there is some logic as to how much should be there.
  • Author
  • Localization

Big Boss, posted Thu Feb 27, 2020 2:08 pm (54289)


How do i run this code? maybe I need it more often, so I won't have to be bothering you hehe ...
For me it worked, however, the modifications I made to the textures were bad, it was my education's fault, knowing how to recreate the .packed file, using this code of yours, will help me keep testing the modifications, and not asking for your help all the time, I know that sometimes it sucks.
  • Author
  • Localization

LokiReborn, posted Fri Feb 28, 2020 5:15 am (54304)


Big Boss wrote:
How do i run this code? maybe I need it more often, so I won't have to be bothering you hehe ...
For me it worked, however, the modifications I made to the textures were bad, it was my education's fault, knowing how to recreate the .packed file, using this code of yours, will help me keep testing the modifications, and not asking for your help all the time, I know that sometimes it sucks.


That's it compiled, but like i said it may not work for any file other than Data00 depending, anywho you should be able to edit that one at least to your hearts content.
  • Author
  • Localization

Big Boss, posted Fri Feb 28, 2020 6:00 am (54307)


LokiReborn wrote:
That's it compiled, but like i said it may not work for any file other than Data00 depending, anywho you should be able to edit that one at least to your hearts content.


It worked really well, even with other bigger files, with Lords of Shadow 1 files too, I just tested it, thank you very much, thank you very much, without your great help, I wouldn't have succeeded, thank you!
  • Author
  • Localization

HelenaAlucardian, posted Fri Mar 06, 2020 9:32 pm (54457)


LokiReborn wrote:
That's it compiled, but like i said it may not work for any file other than Data00 depending, anywho you should be able to edit that one at least to your hearts content.


Hello, my name is Helena, I signed the forum to see if anyone around here helps me, I am trying to create a mod for Castlevania - Los 1 on Xbox 360, unite the modified Dlcs with the main game, read this whole topic, but this similar tool did not help me, it gave some kind of error, like memory error, so could someone modify this compilation, for me, so that it could create a new file, with more files added? (
to the files Data00.packed, Data01.packed, English.packed, Music.packed, to the main game Xbox).
  • Author
  • Localization

Big Boss, posted Thu Mar 12, 2020 2:52 am (54575)


HelenaAlucardian wrote:
Hello, my name is Helena, I signed the forum to see if anyone around here helps me, I am trying to create a mod for Castlevania - Los 1 on Xbox 360, unite the modified Dlcs with the main game, read this whole topic, but this similar tool did not help me, it gave some kind of error, like memory error, so could someone modify this compilation, for me, so that it could create a new file, with more files added? (
to the files Data00.packed, Data01.packed, English.packed, Music.packed, to the main game Xbox).


This would really be fantastic. I was using, the tool that LokiReborn made available here, but now it is giving me an error, this error: Exception of type 'System. OutOfMemoryException 'was thrown, I have no idea how to solve it.
  • Author
  • Localization

HelenaAlucardian, posted Thu Mar 12, 2020 3:10 am (54576)


Big Boss wrote:
This would really be fantastic. I was using, the tool that LokiReborn made available here, but now it is giving me an error, this error: Exception of type 'System. OutOfMemoryException 'was thrown, I have no idea how to solve it.


Yes. It is exactly this error that is occurring for me, I have already researched a lot about it, some say that memory error, others on NET. Framework, and others in the tool's own compilation, but I've tried all the requests I found, but none worked, except modifying the tool, because I'm not a programmer, I can't do that, I don't know how to solve this problem.
  • Author
  • Localization

Shokoniraya, posted Thu Mar 12, 2020 5:07 am (54577)


I think it's a problem about temporary stuffs, make sure you have enough memory space (ram) and close programs, since this is a huge archive, programmer must do the operation on disk, not in ram!

this game using a huge archive, however, I think game can reads files from a mod folder (I think, not sure)
  • Author
  • Localization

HelenaAlucardian, posted Thu Mar 12, 2020 5:14 pm (54584)


It would be very good, if a programmer who wants to help solve all these problems, managed to create a tool that created files.packed from these games, from scratch, and could even add more files within them, just like there are for other games, so we moders, we could create mods for these games in a less limited way ...
  • Author
  • Localization

Big Boss, posted Thu Mar 12, 2020 10:15 pm (54586)


HelenaAlucardian wrote:
It would be very good, if a programmer who wants to help solve all these problems, managed to create a tool that created files.packed from these games, from scratch, and could even add more files within them, just like there are for other games, so we moders, we could create mods for these games in a less limited way ...


Yes, I would also like to, because I am also trying to make the same mod as you, to unite the four Data00.packed, the four Data01.packed, the two English.packed, which counting the DLCs, this is the total number of files that would need become one, so that the game is all unified, there can also be several ways to do this, I just don't know how ... I've tried in other forums, those specifically related to Lords of Shadow 1, but they all seem inactive, only this one seems to still work, so just like you, I hope for someone or a programmer to help us ...
  • Author
  • Localization

DDust, posted Fri Mar 13, 2020 2:55 pm (54601)


yes guys, I'm trying to do the same thing, but without a tool, it's complicated, information on the internet is very scarce, there isn't even a tool to do this, nor is there anyone who can teach us how to proceed, the tool posted here, it was a hope, but it only refers to a single file, it seemed to work on others, but not really, I've already tested it, even so it refers to LOS 2, I believe that any programmer who wants to help us, can create a tool, for both games, and that works for any .PACKED file, I hope this topic will help us ...
  • Author
  • Localization

LokiReborn, posted Fri Mar 13, 2020 6:56 pm (54605)


Honest you guys just need to change the Memory Stream to a File Stream, the thing is the only original example was an extremely small file so it's faster to do in Memory rather than Disk IO, when you add the requirement to work with 8 GB of data that changes things.

Additionally the DLC content uses a block size 1/4 of that of the main archives which will impact game performance, so that value should be changed back to 0x4000 from 0x1000 (This is the issue BigBoss ran into reading the file)

It's not overly complicated stuff but the way the new archive is made would need to be changed as well unless you want to write a temporary file then read and copy it too and there are 2 steams being written to at once currently, one for the header and one for the data, so to really do a write to disk you'd need to do a pass to generate the header and then go through and write the data if you want it all directly written.

This topic has gone far beyond the scope of the original request though and generating entirely new archives and merging them, and without having the game guessing at some stuff (like the buffered bytes being half of the block size) etc. and using static values you guys really need a developer working on a specific version and testing.
  • Author
  • Localization

HelenaAlucardian, posted Fri Mar 13, 2020 7:09 pm (54606)


LokiReborn wrote:
Honest you guys just need to change the Memory Stream to a File Stream, the thing is the only original example was an extremely small file so it's faster to do in Memory rather than Disk IO, when you add the requirement to work with 8 GB of data that changes things.

Additionally the DLC content uses a block size 1/4 of that of the main archives which will impact game performance, so that value should be changed back to 0x4000 from 0x1000 (This is the issue BigBoss ran into reading the file)

It's not overly complicated stuff but the way the new archive is made would need to be changed as well unless you want to write a temporary file then read and copy it too and there are 2 steams being written to at once currently, one for the header and one for the data, so to really do a write to disk you'd need to do a pass to generate the header and then go through and write the data if you want it all directly written.

This topic has gone far beyond the scope of the original request though and generating entirely new archives and merging them, and without having the game guessing at some stuff (like the buffered bytes being half of the block size) etc. and using static values you guys really need a developer working on a specific version and testing.


Hello, and how could I do this? to generate larger files? I don't know how to change this in the tool you created ...
  • Author
  • Localization

DDust, posted Fri Mar 13, 2020 7:14 pm (54607)


Yes, and neither would I ... it would help if we could at least add a few more files, or at least recreate the two large files from the main game ...
of Lords of Shadow 1 of course ...
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.