Code Monkey home page Code Monkey logo

swiftbsa's Introduction

Test results Latest release swift 5.6 shield Platforms: macOS

SwiftBSA

Swift support for Bethesda's BSA file format, as used by Skyrim, Fallout, etc.

Currently this version of the code supports version 105, as used by Skyrim SE/AE.

Support for earlier versions may be added at some later date.

Here Be Dragons

This is an early version, and it currently only supports extracting a .bsa file to a directory, and packing a directory to a compressed archive.

Right now it's just a library and some tests.

The next step will be to add a command line tool target, but I envisage it mostly being used as a library, linked to by other tools.

Why?

This is part of a larger tools project.

Why Swift?

It's what I use for the day job, has decent cross platform support, and I needed an excuse to mess around with some binary streaming and async/await things.

Why Cross Platform?

  1. Although I play Skyrim on a PC, I do most of my coding work on a Mac.
  2. OpenMW supports Windows/MacOS/Linux. At some point I'd like to extend this tool and the other things I'm working on to support OpenMW.

## Useful Info

Example Data

The example data in this repo is taken from Parapets, who helpful makes all their mods available under an MIT license.

swiftbsa's People

Contributors

samdeane avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

swiftbsa's Issues

Improve compression

The current compression doesn't seem to be doing a great job, compared to some of my sample archives.

Take a look at replacing SWCompression. I should be able to use the system Compression library, but that will need some extra code to parse the lz4 file wrapper, and will also probably kill cross-platform support.

Could also look at switching to a C library dependency for the compression.

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.