Skip to content

saurtron/bar-unitbaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a7b334 · Jan 23, 2025

History

42 Commits
Jan 23, 2025
Jan 20, 2025
Jan 20, 2025
Jan 20, 2025
Jan 21, 2025
Jan 21, 2025
Jan 21, 2025
Jan 20, 2025
Jan 21, 2025
Jan 20, 2025

Repository files navigation

BAR UnitBaker

Bakes unitcontent differences between baked_defs.orig and baked_defs, into BAR.sdd/units.

Just changes the necessary lines, in a clean way.

How to use

  1. Put this foder inside your data/ folder.
    • should look like data/bar-unitbaker
  2. Before changing anything, bake with bar's baker widget
  3. Run prebake.py
  4. Change things and bake new baked_defs
  5. Run baker.py and it should place just the things you modified into bar's units/ folder.
  6. Rinse and repeat from 4. until you're happy

Use with care!!

Gui

You can run the Qt5 gui using baker-qt5.py.

You can run the Gtk4 gui using baker-gtk.py.

You will probably need to install dependencies:

Qt5

pip install PyQt5

See https://pypi.org/project/PyQt5/ for more information.

For debian/ubuntu, you can instead do sudo apt install python3-pyqt5

PyGtk

For debian/ubuntu, you can do sudo apt install python3-gi

For windows, not sure how you can do it, probably better use qt5.

Missing features

(coming/to be fixed soon)

  • Doesn't yet respect comments in the changed lines
  • Unit files need to be properly formatted
  • Skips a few unitdef files due to return { not at the beginning.
  • Can't set the right order for inserts into numbered arrays yet.

Mostly untested yet!.

License

About

bar-unitbaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published