Giter Site home page Giter Site logo

No Support for packing BFFNT v4.1 about 3dskit HOT 25 OPEN

tyulis avatar tyulis commented on June 6, 2024
No Support for packing BFFNT v4.1

from 3dskit.

Comments (25)

Tyulis avatar Tyulis commented on June 6, 2024 2

Congratulations : you found a new version ^^"
If you don't mind I'll first finish the BFFNT stuff and then i'll try to fix that. But thank you very much for your contribution !

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024 1

It would be very difficult to keep a quick made extractor in the BFFNT module. So this is what i'll do :

  • a BNTX extractor. The BFFNT extractor will just extract the BNTX section, and then call the BNTX extractor
  • Then a BNTX packer to rebuild them
  • And finally the full BFFNT packer that will call the BNTX packer

It may be a bit longer, but it's necessary to keep the consistency of 3DSkit, and just to rebuild correctly the files.

from 3dskit.

apolope avatar apolope commented on June 6, 2024 1

Thanks for your commitment!

Unfortunately I'm a newbie on this and not know very much. Would like to help...

@masagrator helped me a lot. Just as you have helped a lot of people too and me.

When finish let us know. And we can ends ours projects. Thanks!

from 3dskit.

masagrator avatar masagrator commented on June 6, 2024 1

Don't try to run it from python command line. Just put this whole line to cmd with python at the beginning

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

That's because the BFFNT packer is not released yet ^^
Don't know why did i put this in the Readme so early...

from 3dskit.

apolope avatar apolope commented on June 6, 2024

Thanks for agile answer, congratulation for your commitment. I'm waiting for the launch of this feature, so I finish the translation of the game. I would like to be able to help you implement, but I do not know much about python. I'm available for whatever I can help. Thanks so very much.

from 3dskit.

masagrator avatar masagrator commented on June 6, 2024

I see that this was for many months in readme. Is this feature progressing or not?
I would be happy for every to->BNTX or to->CMAP converter.

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

I develop 3DSkit on my free time...

And the problem is that i don't have free time.
So i try to answer to issues as fast as i can, but i can't work on this as fast as i'd like. Making a module is quite complicated, as it is not always well documented, so i have to document, program, test, re-program, ... And BFFNT is one of the most complicated formats i worked on.

Anyway, don't know why this was in the Readme.
I'll try to do that, and as always any help is welcome for other formats ^^

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

Just a few news : the BNTX packer is on the way, i'm just struggling with texture compression but it should be done today or tomorrow.

from 3dskit.

Migushthe2nd avatar Migushthe2nd commented on June 6, 2024

Regarding the BNTX extractor:

3DSkit.py -xf BNTX __Combined.bntx -v

--------__Combined.bntx--------
No compression
BNTX file found
Extracting...
File version : 0.4.1.0
Extracting texture BalloonTipShdw^s, element 0
0
Extracting texture BalloonTip^s, element 0
0
Traceback (most recent call last):
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\3DSkit.py", line 249, in <module>
    result = main(args, opts)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\3DSkit.py", line 169, in main
    extract_files(filename, args.big, args.format, args.verbose, opts)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\3DSkit.py", line 112, in extract_files
    unpack.extract(filename, file, format, endian, verbose, opts)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\unpack\__init__.py", line 16, in extract
    unpacker = cls(*args)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\util\utils.py", line 18, in __new__
    return self.main(*args, **kwargs)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\unpack\BNTX.py", line 59, in main
    texmeta.append(self.read_texture(data, brtioffset))
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\unpack\BNTX.py", line 159, in read_texture
    libkit.extractTiledTexture(indata, out, width, height, format, swizzle_value if tilemode == 0 else -1, self.byteorder == '<')
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\py3DSkit\graphx.py", line 367, in extractTiledTexture
    _extractBC4Texture(input, output, width, height, format, swizzlesize, littleendian)
  File "K:\NSW\Themes\Very nice theme\tools\clean_3DSKit\py3DSkit\graphx.py", line 360, in _extractBC4Texture
    output[outpos] = output[outpos + 1] = output[outpos + 2] = lum
IndexError: index 572 is out of bounds for axis 0 with size 572

The file is from the ResidentMenu of the Nintendo Switch
https://drive.google.com/file/d/1aJUnRfWBK6dARm-vLyI0Y_XP3Iviv8rS/view?usp=sharing

Excuse me if I reported this too soon, or it might be

currently only extracts uncompressed 2…

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

The BNTX packer is seemingly working, now i start the BFFNT packer ^^

from 3dskit.

apolope avatar apolope commented on June 6, 2024

Very good and congratulation for your work. I was job travel, and now go test.

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

Pfff... Really sorry for the wait, no time at all this month...
Anyway, it works quite well, just a few things to fix and it should be done

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

So....
Finally it's committed, you can try if it works ^^

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Good new. Can you share bffnt repack tools?

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

They are already in the repo, just pull it ^^

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Oh, nice. Thank you. I want to edit zelda botw and wind waker hd fonts. This bffnt script its work on Wii U games?

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Why give me error script?
SyntaxError: unexpected character after line continuation character

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Can you build this tools?

from 3dskit.

masagrator avatar masagrator commented on June 6, 2024

This is python script. What you want to build?
I will test it in couple of days on Super Mario Party fonts.

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

I want bffnt unpack repack fonts. But script give me error for unpack.
Example Zelda wind waker hd fonts: https://www94.zippyshare.com/v/4JOtjm8y/file.html

from 3dskit.

masagrator avatar masagrator commented on June 6, 2024

For me your WiiU bffnt is extracting normally, json is good, but textures are broken.
python 3dskit.py -x -O origin=CAFE CKingMain.bffnt

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Thanks but where is the problem?
https://prnt.sc/nv28fl

from 3dskit.

Tyulis avatar Tyulis commented on June 6, 2024

Currently it only repacks Switch fonts, but i'm working on WiiU ones.
I'll take a look at your file ^^

from 3dskit.

TROguz avatar TROguz commented on June 6, 2024

Thanks but i cant unpack. Can you make tutorial video for unpack and repack?
Thanks for everything.

from 3dskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.