-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61f95de
commit febf0fd
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: Notes for upgrading to MPF 0.80 | ||
--- | ||
|
||
# MPF 0.80 changes (GMC pre-release) | ||
|
||
*Last updated May 25, 2024* | ||
|
||
The upcoming release of MPF is 0.80, which includes support for the Godot Media Controller (GMC) and drops support for the 0.57 Kivy-based Media Controller (MC). | ||
|
||
While there are not many functional changes in MPF between 0.57 and 0.80, there are some config file migrations necessary and this document will help you through that. | ||
|
||
*See also: [Installing MPF 0.80 and the GMC](../gmc/installation.md)* | ||
|
||
## List of Required Changes | ||
|
||
### Bonus | ||
|
||
The bonus config spec has changed to use the keyword `entry` instead of `event` when defining bonus entries, because Bonus events have changed to use a consolidated *bonus_entry* event instead of unique events for each bonus item (including subtotal, multiplier, and total). | ||
|
||
In your bonus.yaml config section, change each entry from `event: bonus_item_name` to `entry: bonus_item_name`. | ||
|
||
With this change, given a bonus entry named "completed_ramps" that was hit 3 times for a score of 3000: | ||
|
||
**MPF 0.57 Event:** | ||
``` | ||
completed_ramps{hits=3, score=3000} | ||
``` | ||
|
||
**MPF 0.80 Event:** | ||
``` | ||
bonus_entry{entry="completed_ramps", hits=3, score=3000} | ||
``` | ||
|
||
|
||
### Carousel | ||
|
||
Carousel events have changed to use a consolidated *item_highlighted* event instead of unique events for each item. | ||
|
||
Given a carousel mode "missionselect" and an item "garrus": | ||
|
||
**MPF 0.57 Event:** | ||
``` | ||
missionselect_garrus_highlighted{direction="forwards"} | ||
``` | ||
|
||
**MPF 0.80 Event:** | ||
``` | ||
item_highlighted{carousel="missionselect", item="garrus", direction="forwards"} | ||
``` | ||
|
||
The new *item_highlighted* event is incorporated into GMC, but if you have other custom event handlers for carousel item selection those will need to be updated. | ||
|
||
### Slides and Widgets | ||
|
||
The GMC manages all slides and widgets, so the `slides:` and `widgets:` config sections are deprecated. | ||
|
||
### Sound Player | ||
|
||
The GMC manages all sound assets, so the `sound_system:` and `sounds:` config sections are deprecated. You can still reference sounds by filename directly, but if you want to specify specific settings for a sound or sound pool, use the `MPFSoundAsset` resource type in GMC. | ||
|
||
Audio channel groups have been renamed from "tracks" to "buses", so in your `sound_player:` config sections change `track: music` to `bus: music`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters