Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Question about xnb files #10

Open
modz2014 opened this issue Jul 3, 2024 · 1 comment
Open

Question about xnb files #10

modz2014 opened this issue Jul 3, 2024 · 1 comment

Comments

@modz2014
Copy link

modz2014 commented Jul 3, 2024

hi I was wondering if you were able to help with this I'm currently looking into creating a C# program to extract textures form xnb file but I'm kinda of stuck I can't find any information about this so far it works for valley star drew xnb files but it does not work for other xnb files I'm not to sure maybe its compressed or something I'm not sure nay information would be helpful

@lybell-art
Copy link
Owner

If you want to create a c# program that handle with xnb files, look not at this library(this library is made by JavaScript), but at Microsoft xnb framework or monogame, which works on c# and covers assets as xnb. Those frameworks can handle xnb files on their own in the first place, so you can apply them.

Also, the reason why xnb files from games other than Stardew Valley don't open in your program may be a compression problem. First of all, xnb itself is compressed into lz4, lzx in two ways, and the image files itseft can be stored in different ways (bgra551, dxt, etc...).

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

No branches or pull requests

2 participants