SimonDarksideJ / XNAGameStudioZips

MIT License
4 stars 1 forks source link

Question About Xnb file #1

Open modz2014 opened 1 month ago

modz2014 commented 1 month ago

I am reaching out regarding your XNB parsers. Unfortunately, I am encountering an issue where the parser does not seem to work on any XNB files. The error message indicates that the files are compressed. Could you please provide an example of an XNB file or guidance on how to resolve this issue?

SimonDarksideJ commented 1 month ago

If you are building the original sample, then you MUST use the original XNA SDK/Libraries in order to be able to build/run them.

If you are using MonoGame, then you need to rebuild the xnb files from the content source in a new mgcb file.

Which sample specifically are you referring to?

modz2014 commented 1 month ago

its ok i got it work im trying to extract textures from a xnb file but i only currently got it half working I'm new to working with xnb files

SimonDarksideJ commented 1 month ago

If you are happy, feel free to close this issue. But in general, XNB's are binary compressed files and are not meant to be read outside of the project/platform they were intended for. To get "access" to the files within you would need to either:

Hope that helps

modz2014 commented 1 month ago

i have something can i share it with you

SimonDarksideJ commented 1 month ago

Sure, if you want to share it publically, just add it here, if you only want to share it privately, best to ping me directly on the MonoGame discord server (same handle) https://discord.gg/monogame

modz2014 commented 1 month ago

i will message you now on it