Caves of Qud Wiki:Qud Blueprint Explorer
Qud Blueprint Explorer (QBE) is a python application that is able to read a player's ObjectBlueprints.xml and return either an Template:Item or Template:Character, with the option of uploading automatically through a bot. Tiles are also automatically colorized to fit the Style Guide. It is currently under active development.
It can be found here: (link)
Installation
Taken from ReadMe.md:
Check first in the "Releases" tab on GitHub for a recent Windows executable. If you prefer to run the newest Python source, follow these instructions:
- Clone the git repository
- Download CavesofQudTileModdingToolkit.zip and extract it into the project directory. This provides tile images.
- Install Python 3.7 from Python.org and select the installer option to add it to your PATH.
- In your terminal,
cdto your copy of the repository and run these commands:
pip install pipenv
pipenv sync
pipenv run appIf you intend to work on the source yourself, replace pipenv sync with pipenv sync --dev to install additional development dependencies.
Documentation
qud_object.pydefines a QudObject that the XML gets parsed into. Has attributes and inheritance trees and everything. Also definesqindex, which is a dict to get QudObjects from names quickly.qud_object_tree.pyis a script that parses all the XML from the xmlpath into QudObjects, so you can then useqindexto grab parts of it, etc.qud_object_test.pyis just a script to test some of the inheritance and specification properties of the QudObjects.qud_explorer.py, is code for the explorer GUI. Runqud_explorer.pyfrom the command line to launch the GUI.qud_explorer_window.ui, andqud_explorer_window.pyare user interface files auto-generated from the graphical Qt Designer app and the Qt UIC compiler, respectively.config.pyandconfig.ymlare config files, blah blah blah.PipfileandPipfile.lockare control files for the pipenv dependency manager. To start working on the project, first installpipenvto your system interpreter using pip install pipenv, thencdover to this project folder and runpipenv sync --dev. This will create a virtual environment and install all dependencies including development packages (like pytest). If the dependencies change, this command will also update them automatically.
Bug Reporting and Troubleshooting
If there are any issues with QBE, be sure to ping syntaxaire or Dij on the official Caves of Qud discord or leave a comment on our Talk pages.