How to organize modes in subfolders #151
-
I have read the material (see link below) but haven't been able to create a number of related modes into a common sub-folder. I was wondering if anyone has been successful in doing this? [(https://missionpinball.org/latest/game_logic/modes/#adding-your-modes-to-your-machine-configuration)] My directory structure is:
There are no files in the mode_group folder. I have also gone through the code and can't see how this has been implemented (unless I am looking at the wrong place). #config_loader.py#
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
What are you trying to do? All that is saying is that you can put them in folders for your personal organization. MPF will ignore folders without a config.yaml file. |
Beta Was this translation helpful? Give feedback.
-
What I am trying to achieve is, instead of a large number of user-defined modes in the modes directory, I would like to group modes based on a specific group name and put them in there so that I can group them logically. What that translates to in practice is, instead of 30 modes at the top-level, I'll have maybe 6 folders at the top level which makes project navigation a little easier. |
Beta Was this translation helpful? Give feedback.
-
This feature have been removed in missionpinball/mpf@49fb2c2 (refactor config loading into an injected class) |
Beta Was this translation helpful? Give feedback.
This feature have been removed in missionpinball/mpf@49fb2c2 (refactor config loading into an injected class)
see, they were tests in
mpf/tests/test_Modes.py
andmpf/tests/machine_files/mode_tests/config/test_modes.yaml
with "mode5, mode6, mode 7" as test modes. They were in sub_folders, and they were removed in this commit.Sub folder are no longer searched for modes.