Jump to content

Uploading to bethesda.net, how..


vurt

Recommended Posts

It seems like the built in packager only packages the most common file types like textures, .esp, meshes, and not for example .btt files. However, I noticed its possible to import your own .achlist, so i guess files could be written into it to add for example the .btt's. Is that how people with more complex mods do it or is there a easier way?

 

There are several hundreds if not thousand of .btt files so obviously it would be a pain to manually add them to this .achlist, it would need some sort of batch file to process all the files names into a .txt format first.

 

Any help would be great, thanks.

 

Link to comment
Share on other sites

Ctrl + A works for me (Select All) then drag it to Internal Archive App in one go.

 

Edit

Make sure your files are in Data Folder

Open the Folder with .btt files in Windows after you have selected "Create Archives" then do the Above.

 

Remember to Export the List when finished before you pack too for future packing for Xbox so all need do Import the list second time round.

Edited by PeterMartyr
Link to comment
Share on other sites

If someone just wants to list all files in a certain path, then this one should sort of work on Python 3.5+

 

 

 

#!/usr/bin/python3

import os


class Lister(object):

    def __init__(self):
        super().__init__()
        self.pathList = []
        self.startDir = os.path.abspath(".")
        self.archFile = os.path.join(self.startDir, "archlist.txt")

    def start(self):
        print("Current directory:", self.startDir)
        s = [
            "Which ones do you want?",
            "A) Paths relative to current folder (current folder excluded)",
            "B) Absolute paths (the whole path to the file)"
        ]
        while True:
            b = input("\n".join(s) + "\n[A\\B]: ")
            if b in ["A", "a"]:
                self.abs_paths = False
                break
            elif b in ["B", "b"]:
                self.abs_paths = True
                break
            else:
                print("Invalid input!")
        print("Listing paths...")
        self.recursiveList(self.startDir)
        print("Finished listing, found {} paths".format(len(self.pathList)))
        print("Printing to:", self.archFile)
        self.printToFile()
        print("Finished printing to file!")
        self.pathList = None

    def recursiveList(self, path):
        try:
            a = [f for f in os.scandir(path)]
            a.sort(key=lambda e: e.inode())
            for f in a:
                if f.is_dir(follow_symlinks=False):
                    self.recursiveList(f.path)
                elif self.abs_paths:
                    self.pathList.append(f.path)
                else:
                    self.pathList.append(
                        os.path.relpath(f.path, self.startDir)
                    )
        except Exception as exc:
            print("Exception:", exc)

    def printToFile(self):
        try:
            f = open(self.archFile, "w")
            for s in self.pathList:
                f.write("{}\n".format(s))
            f.close()
        except Exception as exc:
            print("Exception:", exc)


if __name__ == "__main__":
    print("Path listing test! Listing paths so you do not have to!")
    l = Lister()
    l.start()
    l = None
    print("Finished!")
 

 

 

 

But then again, a batchfile would probably be a lot better, adding folders even better. I just wrote that (partially) for testing things out, so I thought it would be handy to drop it here. It should also work on Windows. Quality is sub-par, but if it helps someone, then that is great! :blush:

Edited by Contrathetix
Link to comment
Share on other sites

Use Archive.exe found in the Tools folder - you can add folders (my mod has over 4500 files) . Then when you open the kit and do upload it finds the .bsa and you just click yes to use that. Simples.

 

Yeah that true, but you don't get Two Archive with different levels of Compression. So maybe it too Simple.

Edited by PeterMartyr
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...