Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Repacking of .bin files containing .txt in P5 #13

Open
amarret opened this issue Jun 26, 2020 · 4 comments
Open

Repacking of .bin files containing .txt in P5 #13

amarret opened this issue Jun 26, 2020 · 4 comments

Comments

@amarret
Copy link

amarret commented Jun 26, 2020

Most of the environment textures in P5 are stored in ps3.cpk: model/field_tex/textures/*.bin files, which contain the .dds and a .txt file. GFD studio seems to not handle properly this .txt file, causing crash when repacking.

@tge-was-taken
Copy link
Owner

Does the crash happen without any edits?
If not, then you shouldn't be editing the texture archives directly. You can export a texture dictionary to the bin format using the "Convert to field texture archive" context menu option.

@amarret
Copy link
Author

amarret commented Jun 26, 2020

No crash without edits. How can I create a texture dictionary ?

@tge-was-taken
Copy link
Owner

Note that the following is kind of a workaround as this functionality was meant for custom field models.

  • Open any GMD model.
  • Delete all of the textures in the model.
  • Right click on textures, press add
  • Select the custom textures you want to put ingame, these should be PNG or DDS (not the raw DDS from the archive!)
  • Right click on textures again, press Convert to -> Field Texture Archive (PS3)

@amarret
Copy link
Author

amarret commented Jul 19, 2020

Okay, thank you for your assistance.

One more question:
some of the game textures are under the format DXT5. GFD studio list them with the flags : "DXT5, Flag80".
Importing a new DXT5 .dds gives a file with the flags: "Flag2, Flag4, DXT5, Flag80". Also, importing a .dds extracted from original .bin files also gives the same flags (and not anymore "DXT5, Flag80" only).

These "Flag2, Flag4" need to be removed to not crash the game. Is it possible for GFD studio to not add these "Flag2, Flag4" automatically ?
I found that removing them manually does work, but is time consuming.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants