Multiple searchpaths for assets and configuration #691
Labels
area: assets
Involved with assets (images, sounds, ...)
area: buildsystem
Related to our cmake/python buildsystem
improvement
Enhancement of an existing component
just do it
You can start working on this, there should be nothing left to discuss
lang: c++
Done in C++ code
lang: python
Done in Python code
Milestone
Currently, we only focus on the in-devtree-version. But the
make install
'd version should catch up and also support the appropriate search paths:Dev-mode detection currently works by the ability to
import devmode
, becausedevmode.py
is not installed and thereby the import will fail.Search paths:
$repo/
~/.local/share/openage/
/~/.config/openage/
/usr/share/openage/
//etc/openage/
And of course the matching parts on windows/macOS/whatever.
Basically, we will adhere to http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
The order depends on the data type to be located:
This is also a step towards our modding API.
Assets can either be in
.tar.*
archives or extracted folders in the search paths. The mounting of archives is done transparently by #630.As a first step, I'd suggest you install the game with
make install
, then leave the repo folder and try to run it withpython3 -m openage
. You should of course package the game to avoid filesystem clutter./usr/bin/openage
) Install global game binary #709Fixes #610
Depends on #630
Will help #667
Will be used by #632 later
Fixes #709
The text was updated successfully, but these errors were encountered: