How to pack an xnb when you only have the png?

Discussion in 'Mods' started by leejonnymr, Mar 27, 2016.

  1. leejonnymr

    leejonnymr Void-Bound Voyager

    How do I pack a png into a xnb when I only have a png and no yaml?
     
    • Superior_s

      Superior_s Sandwich Man

      Short answer you can't. You may be able to make your own yaml but I've yet to hear about anyone doing so.
       
      • Drogean

        Drogean Scruffy Nerf-Herder

        you cant, so unpack the XNB you're trying to replace and get the .YAML from that
         
          taintedwheat and Superior_s like this.
        • leejonnymr

          leejonnymr Void-Bound Voyager

          Thanks guys.

          One more question, what exactly is the yaml used for?
           
          • Raijyn

            Raijyn Phantasmal Quasar

            I'm assuming the .yaml is used to make the packaged file readable. Most .yaml files, which can be looked at with Notepad++, just have this basic text in it;
            Code:
            xnbData:
                target: "w"
                compressed: true
                hiDef: true
                readerData:
                    -
                        type: "Microsoft.Xna.Framework.Content.Texture2DReader, Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553"
                        version: 0
            
            
                numSharedResources: 0
            
            content:  #!Texture2D
                format: 0
            
            extractedImages:
                -
                    path: ""
            
            
            Other .yaml files have different text in them, like the one that belongs to the hats.xnb in the Data folder, with the description of the various hats in the game and their associated achievements.
             
              RoastedCoconutz likes this.
            • leejonnymr

              leejonnymr Void-Bound Voyager

              Thank you sir.
               

              Share This Page