ifs_layeredfs icon indicating copy to clipboard operation
ifs_layeredfs copied to clipboard

Love Plus Arcade TXP2 .bin Texture Files

Open Cetaceaqua opened this issue 7 months ago • 8 comments

These bin files have TXP2 headers and can be unpacked and repacked using bemaniutils / afputils, but repacking writing process is extremely slow.

IFS LayeredFS can replace repacked bin files, but cannot directly replace individual texture.

In ifs_hook.log:

M:statting /data/graphic/tex_warning_logo_title.bin
M:Regenerating cache
M:bad magic
W:Texbin load failed, aborting modding
M:opening /data/graphic/tex_warning_logo_title.bin mode 0 flags 420
M:Regenerating cache
M:bad magic
W:Texbin load failed, aborting modding

So I think they should be different from the supported Jubeat or GFDM .bin files.

I want to try to add translation to the game by replacing textures of buttons and tip texts. Is it possible to support this .bin format file here?

Thanks alot!

Cetaceaqua avatar May 17 '25 01:05 Cetaceaqua

Ah, so that's the game using big-endian texbin files. I'll implement that to fix it.

mon avatar May 17 '25 03:05 mon

Though it may save me some time - can you send a repacked .bin that works? I'm wondering if I can read both formats but just write one, or if writes need to support both.

mon avatar May 18 '25 06:05 mon

tex_warning_logo_title.zip

Sure. Here is a repacked .bin that I replaced the tex000.png inside it.

Thanks!

Cetaceaqua avatar May 18 '25 08:05 Cetaceaqua

Aw, looks like it'll be a little bit more work. I'll try and get it done in a week or 2.

mon avatar May 18 '25 13:05 mon

Actually, because I'm being really lazy and any help is appreciated - if you could give me the commands you used to unpack/repack, just in case I find something "right" that ends up being totally not matching

mon avatar May 18 '25 23:05 mon

I packed afputils to exe using pyinstaller, so my commands are just afputils extract tex.bin \same_output_dir and afputils update tex.bin \same_output_dir\tex.

afputils_scripts.zip

Here are a pair of python scripts from dear ChatGPT for extracting all bins to the same directory structure, and updating all bins with the same name from the same directory structure.

Cetaceaqua avatar May 19 '25 00:05 Cetaceaqua

So I've actually started looking into this again, and while the base textures appear the same, the TXP2 format is a different container to the TEXP, and it's complicated :( There are some other games using this format (HELLO! POP'N MUSIC, Sound Voltex Booth), but because it's more work than I expected, I don't really have the time to implement it for now.

mon avatar Jun 08 '25 02:06 mon

I understand you have other priorities! Thank you for your work, and I hope you'll have some spare time to add this support in the future.

Cetaceaqua avatar Jun 09 '25 10:06 Cetaceaqua