Page 1 of 2

Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Wed Feb 17, 2021 11:32 am
by DENver666
Can anyone help me how to open a file with a .bof extension and a game data archive to extract game resources.
Image
Image

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Wed Feb 17, 2021 12:59 pm
by ikskoks
Can you upload some samples?

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Fri Feb 26, 2021 8:27 am
by DENver666
ikskoks wrote: Wed Feb 17, 2021 12:59 pm Can you upload some samples?
Download Link :https://disk.yandex.ru/d/2796SbpWyQwcUw

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Fri Feb 26, 2021 9:50 am
by ikskoks
As for gamedata it has many files compressed with ZLIB.
You can get the data with offzip https://aluigi.altervista.org/mytoolz/offzip.zip

Code: Select all

offzip.exe -a gamedata out_directory
As for BOF file, data are not compressed, you can edit text by hex editor
or write a simple extractor for this
https://i.imgur.com/HmZFmlX.png

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Fri Feb 26, 2021 11:16 am
by DENver666
ikskoks wrote: Fri Feb 26, 2021 9:50 am As for gamedata it has many files compressed with ZLIB.
You can get the data with offzip https://aluigi.altervista.org/mytoolz/offzip.zip

Code: Select all

offzip.exe -a gamedata out_directory
As for BOF file, data are not compressed, you can edit text by hex editor
or write a simple extractor for this
https://i.imgur.com/HmZFmlX.png
Thank you unpacked. I got such files below I reinforced. How can I unpack each file so that it is in an understandable format like jpg to edit and pack back. Any ideas?

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Fri Feb 26, 2021 11:27 am
by DENver666
In general, the idea is to translate the game into Russian, but I understand that the text cannot be translated through the hexadecimal editor.

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Fri Feb 26, 2021 3:00 pm
by ikskoks
As for graphics, there is a way to view them in rawtex
https://i.imgur.com/SEziBFz.png
https://i.imgur.com/egZJfGI.png
But to edit them, you would need to know file format of those VAP files and also have a custom tool for that.

As for packing gamedata, you could use reimport mode of offzip

Code: Select all

-r       reimport mode that works EXACTLY like in QuickBMS
So please read quickbms documentation to know how to use this mode.

As for texts, you have two options here, translate in hex editor or write a custom text exporter and importer.

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Mon Mar 01, 2021 7:45 am
by DENver666
ikskoks wrote: Fri Feb 26, 2021 3:00 pm As for graphics, there is a way to view them in rawtex
https://i.imgur.com/SEziBFz.png
https://i.imgur.com/egZJfGI.png
But to edit them, you would need to know file format of those VAP files and also have a custom tool for that.

As for packing gamedata, you could use reimport mode of offzip

Code: Select all

-r       reimport mode that works EXACTLY like in QuickBMS
So please read quickbms documentation to know how to use this mode.

As for texts, you have two options here, translate in hex editor or write a custom text exporter and importer.
Thank you very much for your help. When dragging a file onto Rawtex, the texture is automatically converted to dds. As I understand it, in theory, dds can be driven back into vap format

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Mon Mar 01, 2021 9:23 am
by ikskoks
Yeah, but that would probably require some manual work like recreating VAP header.
Also, you must be 100% sure that file format is correct.

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Mon Mar 01, 2021 9:58 am
by DENver666
ikskoks wrote: Mon Mar 01, 2021 9:23 am Yeah, but that would probably require some manual work like recreating VAP header.
Also, you must be 100% sure that file format is correct.

Thank you. Another question - I will translate the text through a hex editor from English into Russian. Will the game see the Russian font or will it be necessary to do some manipulations?

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Mon Mar 01, 2021 11:15 am
by ikskoks
That depends. If default font supports cyryllic characters, then game will show them properly.
But if it doesn't then you would need to modify game font first.

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Sun Mar 21, 2021 10:02 am
by DENver666
ikskoks wrote: Mon Mar 01, 2021 11:15 am That depends. If default font supports cyryllic characters, then game will show them properly.
But if it doesn't then you would need to modify game font first.
As expected, the game does not see the cyrillic when I replace the text in the game with question marks. How can the game be friends with the cyrillic?

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Sun Mar 21, 2021 10:55 am
by ikskoks
I told you that you need to modify game font if your characters aren't supported by default.

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Sun Mar 21, 2021 11:08 am
by DENver666
ikskoks wrote: Sun Mar 21, 2021 10:55 am I told you that you need to modify game font if your characters aren't supported by default.
Can I change the font of the game through notepad ++ or do you need to write some special utility?

Re: Scott Pilgrim vs. The World (PC) - Help Extracting?

Posted: Sun Mar 21, 2021 11:13 am
by ikskoks
That depends on the game. Some games are using standard formats like TTF or DDS and you can edit them with tools that already exists
https://ikskoks.pl/poradnik-8-edycja-cz ... -oraz-dds/

But some games are using custom fonts and to edit them you need to reverse engineer file format and then write a custom tool.
Here are some tuts explaining whole process viewtopic.php?f=29&t=22266