Shadow of Mordor archive editing and files appending via reimport2

Programming related discussions related to game research
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

By sample do you mean upload some bndl files for you to look at? I'll upload a folder with a bunch of them in it. I get different errors with different bndl files. Some of them give me an offset can't be reached error. Some manage to extract a file or two before failing. I've yet to have one actually work, but they don't all fail in the same way.
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

Another thing. From what I can tell, some folders in the archives have an underscore in their name. I'm going to need some way to import that kind of folder for this to work. I think that might actually be why I haven't managed to pull off a replacement yet.

EDIT: Perhaps by renaming the folder once it's imported, like naming it "player-isildur" and then renaming it after importing to "player_isildur"

EDIT2: Tried that. Archive is functional but it didn't work either. game.gamedb is where I got the file path I tried out from. I'll have to keep trying things out till I find the right file path.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by aluigi »

The bndl files you provided have no real data in them.
Any bigger bndl?
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

Most of the bndls are fairly small. I was confused that they were considered an archive format. I'll post some larger ones. I don't think there are any much larger than this, unless I've missed some.

I've had to take a bit of a break from working on the format, as I'm at crunchtime on some projects. I believe the biggest obstacle I've currently got is the file structure. Theres some files that I think have underscores in their names, and folders with the same. Some archives I've looked at in binary have had some very odd looking ways of showing file paths. Currently the game loads my archives fine, so I know they're not broken, but the files within aren't ever being used. I believe thats because the filepath or file name is wrong.

I should be able to start testing things again next week. Let me know if you need anything and I'll dig around for it. I've gotten in touch with the game developers but sadly they haven't been able to share any information on the file structure.
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

I'm running out of ideas. Haven't heard back from the devs on the subject. Hopefully you have better luck aluigi.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by aluigi »

Sorry, I can't help.
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

I'm starting to think there might be an issue with the bms script. I'm almost certain that there are files with underscores in the file and folder names. And the bms script treats underscores as file seperators at the moment. Could be a change from Shadow of Mordor to Shadow of War. Would you be able to explain where the underscore as file seperator comes from? Might help me figure out what I'm missing with these filepaths.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by aluigi »

When I analyzed the LTAR archives (the underscore->slash fix is used only on them) they had long names with underscores and no path separators, they looked like folders and not filenames.
I didn't find any separator in my tests with LTAR archives and nobody else has reported any issue till now.

Upload that LTAR archive that contains these full paths
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by aluigi »

That's really funny...

So, what you supposed was wrong, probably you were confusing the names of some archived BNDL or EMBB file with the TOC of the LTAR archive (the only one with underscore->path fix).

BUT while I was checking some LTAR archives here (yeah I ever verify what the users tell me) I noticed a sort of directory tree located after the file entries, luckily wasn't too hard to parse it.

Long story short: the filenames are only filenames without any folder separator, that explains why you were wrong with the image you pasted (it's impossible to have a full filename like "characters\modelcharacters\player\bodies\bodycelebrimbor\player_celebrimbor_quiverwraithproxy.mat") and I was wrong by using the underscore->path fix (maybe was it necessary in a very old version of the archives?).

Script 0.4 :D
http://aluigi.org/bms/shadow_of_mordor.bms
Mana
Posts: 25
Joined: Thu Mar 29, 2018 8:12 am

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by Mana »

Haha. Nice. The number of times I've theorised about a problem, gone to test it, and stumbled over the actual problem by happenstance. Still pretty busy at the moment. But I'm hoping to test that out at some point soon. Thanks for checking it out.
RICARDO
Posts: 3
Joined: Wed Aug 12, 2020 8:00 pm

Re: Shadow of Mordor archive editing and files appending via reimport2

Post by RICARDO »

Hi everybody, I translated the game "Middle Earth Shadow of War" into our language. The QuickBMS script that wrote for Shadow of Mordor worked very well and extracted all the files, but I cannot recreate the .arch06 file back. Script tries to take the files into pieces and gives an error saying the file size is wrong. It gives an error even when I extract the same file and then close it back with no changes. Can somebody help me about recreate .arch06 files? Thank you so much.