GithubHelp home page GithubHelp logo

djaessel / openbrf-mbstudio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swyter/openbrf-cfcohen

0.0 0.0 0.0 2.26 MB

Linux Library port of OpenBRF by Marco Tarini

C++ 96.62% C 0.79% QMake 0.71% Python 1.76% QML 0.12%

openbrf-mbstudio's Introduction

OpenBRF Library by Marco Tarini (edited by Johandros)

A modding tool used to view, edit and convert the proprietary Binary Resource files (BRFs) loaded by the popular «Mount&Blade» and «Mount&Blade: Warband» games.

This GitHub repo was last updated from the source code ZIP file at:

https://forums.taleworlds.com/index.php?topic=72279.0

and modified to compile under Linux. Then it was fixed again by Swyter on early 2023 to also work on Windows and compile out-of-the-box, when opening it with compatible Qt Creator version like the one below:

https://download.qt.io/archive/qt/5.12/5.12.12/qt-opensource-windows-x86-5.12.12.exe.mirrorlist (tip: get offline before launching the installer to avoid creating a Qt account)

This version includes both a pre-generated version of glew 2.2.0 (the latest one at the time of writing) and vcglib 1.0.1 (the last compatible one) as a git submodule (i.e. a linked sub-repository pointing to a particular version instead of copying all those files over).

So make sure you initialize all submodules when you clone/download it. Plus, downloading it as a .zip file from GitHub will cause the dependencies/vcglib folder to be empty, so keep that in mind.

You don't need anything else, other than the open-source Qt5 SDK, that is the huge UI framework/SDK and build system OpenBRF is made of.

License

This code and the original ZIP file are licensed under the GNU General Public License, according to the dicussion forum:

https://forums.taleworlds.com/index.php?topic=72279.0

Build instructions for Linux (edited):

# Now requires Qt5!
qmake -makefile openBrf.pro
make

# run it overriding the float dot notation so that it can load
# `carry_positions.txt` in other languages other than English
env LC_NUMERIC=C python testloadpy.py

Johandros/djaessel Notes

This is the standalone Linux version of openBrf (library), that I altered to use it with my tool MB-Studio.

https://github.com/djaessel/MB-Studio

So if you want to get the Windows version, just check out that repo.

The purpose of this library is, to have a 3D view to show certain characters, items and 3D models in general.

Usage

from openbrf import OpenBrf

openbrf = OpenBrf()
openbrf.setModPath(b"/home/djaessel/.steam/debian-installation/steamapps/common/MountBlade Warband/Modules/Native/")
openbrf.selectItemMesh(b"club")
openbrf.closeApp()

With the above code you can start up the library, change the module path and show the "club" mesh.
And finally close the library again.

For more functions see the openbrf.py file.

openbrf-mbstudio's People

Contributors

swyter avatar cfcohen avatar

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.