Skip to content

Commit

Permalink
Merge pull request #567 from bosh/patch20
Browse files Browse the repository at this point in the history
Improve Error reference titles, headers, and nav, and improve Game index
  • Loading branch information
avanwinkle authored Feb 28, 2025
2 parents 630f4be + 444a914 commit 350f5b4
Show file tree
Hide file tree
Showing 29 changed files with 65 additions and 58 deletions.
2 changes: 1 addition & 1 deletion docs/config/instructions/debug.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Understanding the debug: setting
title: "Understanding the debug: setting"
---

# Understanding the debug: setting
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/AFM_super_jets.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Attack From Mars Super Jets
title: "Recipe: Attack From Mars Super Jets"
---

# Recipe: Attack From Mars Super Jets
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/B66_gadget.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: GADGET Targets from Stern Batman '66
title: "Recipe: GADGET Targets from Stern Batman '66"
---

# Recipe: GADGET Targets from Stern Batman '66
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/TAF_mansion_awards.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: The Addams Family Mansion Awards
title: "Recipe: The Addams Family Mansion Awards"
---

# Recipe: The Addams Family Mansion Awards
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/dual_launch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Modifying the game mode - Dual launch devices
title: "Recipe: Modifying the game mode - Dual launch devices"
---

# Recipe: Modifying the game mode - Dual launch devices
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/rollover_lanes_with_lane_change.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Rollover Lanes (with Lane Change)
title: "Recipe: Rollover Lanes (with Lane Change)"
---

# Recipe: Rollover Lanes (with Lane Change)
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/sequential_drop_banks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Sequential Drop Target Banks
title: "Recipe: Sequential Drop Target Banks"
---

# Recipe: Sequential Drop Target Banks
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/skillshot_with_auto_rotate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Skillshot (with Auto-Rotate)
title: "Recipe: Skillshot (with Auto-Rotate)"
---

# Recipe: Skillshot (with Auto-Rotate)
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/skillshot_with_lane_change.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Recipe: Skillshot (with Lane Change)
title: "Recipe: Skillshot (with Lane Change)"
---

# Recipe: Skillshot (with Lane Change)
Expand Down
17 changes: 9 additions & 8 deletions docs/game/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ title: Writing your Game Software

# Programming your Game

* Tutorial
* Pinball Mechs
* Game Logic
* Modes
* Machine Management
* Testing your game
* Finalization
* Cookbook
* [Tutorial](../tutorial/index.md)
* [Pinball Mechs](../mechs/index.md)
* [Game Logic](../game_logic/index.md)
* [Modes](../game_design/index.md)
* [Machine Management](../machine_management/index.md)
* [Testing your game](../testing/index.md)
* [Finalization](../finalization/index.md)
* [Cookbook](../cookbook/index.md)
* [Flowcharts](../flowcharts/index.md)
3 changes: 1 addition & 2 deletions docs/logs/CFE-ConfigValidator-1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-ConfigValidator-1: Section not valid outside of game modes
title: "CFE-ConfigValidator-1: Section not valid outside of game modes"
---

# CFE-ConfigValidator-1: Section not valid outside of game modes


This error occurs when MPF needs to reference player variables in a
device but you defined the device in a non-game
[mode](../config/mode.md) (i.e. with
Expand Down
3 changes: 1 addition & 2 deletions docs/logs/CFE-ConfigValidator-12.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-ConfigValidator-12: Item is not a dict
title: "CFE-ConfigValidator-12: Item is not a dict"
---

# CFE-ConfigValidator-12: Item is not a dict


This error occurs when MPF expects a dictionary in a config setting but
found something else.

Expand Down
3 changes: 1 addition & 2 deletions docs/logs/CFE-ConfigValidator-13.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-ConfigValidator-13: Cannot convert value to boolean
title: "CFE-ConfigValidator-13: Cannot convert value to boolean"
---

# CFE-ConfigValidator-13: Cannot convert value to boolean


This error occurs when MPF expects a boolean value (i.e. `true` or
`false`) for a config setting but got a value of a different type.

Expand Down
5 changes: 3 additions & 2 deletions docs/logs/CFE-ConfigValidator-2.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: CFE-ConfigValidator-2: Your config contains a value for the
setting, but this is not a valid setting name
title: "CFE-ConfigValidator-2: Your config contains a value for the setting, but this is not a valid setting name"
---

# CFE-ConfigValidator-2: Your config contains a value for the setting, but this is not a valid setting name

This error occurs when MPF does not know a setting you specified in a
device.

Expand Down
3 changes: 1 addition & 2 deletions docs/logs/CFE-ConfigValidator-4.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-ConfigValidator-4: Invalid Validator in config spec
title: "CFE-ConfigValidator-4: Invalid Validator in config spec"
---

# CFE-ConfigValidator-4: Invalid Validator in config spec


This error occurs when MPF does not understand the config specification
for a device. Unless you created custom config specs in a mode,
(external) platform or custom device, this is certainly a bug in MPF.
Expand Down
5 changes: 3 additions & 2 deletions docs/logs/CFE-ConfigValidator-6.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: CFE-ConfigValidator-6: Device not found in section in your
config
title: "CFE-ConfigValidator-6: Device not found in section in your config"
---

# CFE-ConfigValidator-6: Device not found in section in your config

This error occurs when MPF does not find a device which is referenced by
one of your settings in your config.

Expand Down
5 changes: 3 additions & 2 deletions docs/logs/CFE-ConfigValidator-9.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: CFE-ConfigValidator-9: Required setting is missing from section
in your config
title: "CFE-ConfigValidator-9: Required setting is missing from section in your config"
---

# CFE-ConfigValidator-9: Required setting is missing from section in your config

This error occurs when MPF does not find a required setting in one of
your config sections.

Expand Down
5 changes: 3 additions & 2 deletions docs/logs/CFE-DeviceManager-3.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: CFE-DeviceManager-3: Device does not have a valid config.
Expected a dictionary.
title: "CFE-DeviceManager-3: Device does not have a valid config. Expected a dictionary."
---

# CFE-DeviceManager-3: Device does not have a valid config. Expected a dictionary.

This error occurs when MPF expects a dictionary in a config of a device
but found something else.

Expand Down
6 changes: 3 additions & 3 deletions docs/logs/CFE-Smart_Virtual_Platform-1.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: CFE-Smart_Virtual_Platform-1: Switch used in
virtual_platform_start_active_switches was not found in switches
section
title: "CFE-Smart_Virtual_Platform-1: Switch used in virtual_platform_start_active_switches was not found in switches section"
---

# CFE-Smart_Virtual_Platform-1: Switch used in virtual_platform_start_active_switches was not found in switches section

Related Config File Sections:

* [switches:](../config/switches.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/logs/CFE-Virtual_Platform-1.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: CFE-Virtual_Platform-1: Switch used in
virtual_platform_start_active_switches was not found in switches
section
title: "CFE-Virtual_Platform-1: Switch used in virtual_platform_start_active_switches was not found in switches section"
---

# CFE-Virtual_Platform-1: Switch used in virtual_platform_start_active_switches was not found in switches section

See [/troubleshooting/index](CFE-Smart_Virtual_Platform-1.md) which
is exactly the same error.

Expand Down
3 changes: 1 addition & 2 deletions docs/logs/CFE-coils-1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-coils-1: Driver must have a number
title: "CFE-coils-1: Driver must have a number"
---

# CFE-coils-1: Driver must have a number


Related Config File Sections:

* [coils:](../config/coils.md)
Expand Down
3 changes: 1 addition & 2 deletions docs/logs/CFE-show-1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: CFE-show-1: Show does not appear to be a valid show config
title: "CFE-show-1: Show does not appear to be a valid show config"
---

# CFE-show-1: Show does not appear to be a valid show config


Related Config File Sections:

* [shows:](../config/shows.md)
Expand Down
5 changes: 3 additions & 2 deletions docs/logs/Log-SwitchController-1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: Log-SwitchController-1: Received duplicate switch state for
switch
title: "Log-SwitchController-1: Received duplicate switch state for switch"
---

# Log-SwitchController-1: Received duplicate switch state for switch

Related Config File Sections:

* [switches:](../config/switches.md)
Expand Down
5 changes: 3 additions & 2 deletions docs/logs/RE-MPF-MC_BCP_Server-1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: RE-MPF-MC_BCP_Server-1: Failed to bind BCP Socket to localhost
on port 5050
title: "RE-MPF-MC_BCP_Server-1: Failed to bind BCP Socket to localhost on port 5050"
---

# RE-MPF-MC_BCP_Server-1: Failed to bind BCP Socket to localhost on port 5050

See [/troubleshooting/index](RE-MPF_BCP_Server-1.md) which is exactly
the same error.

Expand Down
5 changes: 3 additions & 2 deletions docs/logs/RE-MPF_BCP_Server-1.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: RE-MPF_BCP_Server-1: Failed to bind BCP Socket to 127.0.0.1 on
port 5051
title: "RE-MPF_BCP_Server-1: Failed to bind BCP Socket to 127.0.0.1 on port 5051"
---

# RE-MPF_BCP_Server-1: Failed to bind BCP Socket to 127.0.0.1 on port 5051

Related Config File Sections:

* [bcp:](../config/bcp.md)
Expand Down
3 changes: 1 addition & 2 deletions docs/logs/RE-P-Roc-1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: RE-P-Roc-1 - Known Firmware Bug in P/P3-Roc
title: "RE-P-Roc-1 - Known Firmware Bug in P/P3-Roc"
---

# RE-P-Roc-1 - Known Firmware Bug in P/P3-Roc


Related Config File Sections:

* [p_roc:](../config/p_roc.md)
Expand Down
3 changes: 1 addition & 2 deletions docs/logs/RE-P-Roc-2.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: RE-P-Roc-2 - Communication with P/P3-Roc broke down
title: "RE-P-Roc-2 - Communication with P/P3-Roc broke down"
---

# RE-P-Roc-2 - Communication with P/P3-Roc broke down


Related Config File Sections:

* [p_roc:](../config/p_roc.md)
Expand Down
3 changes: 1 addition & 2 deletions docs/logs/RE-P-Roc-3.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: RE-P-Roc-3 - Failed to Import Pinproc
title: "RE-P-Roc-3 - Failed to Import Pinproc"
---

# RE-P-Roc-3 - Failed to Import Pinproc


Related Config File Sections:

* [p_roc:](../config/p_roc.md)
Expand Down
14 changes: 11 additions & 3 deletions docs/logs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ title: Log and Error Descriptions

# Log and Error Descriptions

MPF tries to give IDs to errors that happen a lot so you can look them up here. Here are the ones
that have been created so far:
MPF tries to give IDs to errors that happen a lot so you can look them up here, especially if they are common problems with known fixes. There are almost 200 different errors with unique codes, and most are not documented here (yet!). The errors with documentation available are:

### Config File Errors:

* [CFE-coils-1](CFE-coils-1.md)
* [CFE-ConfigValidator-1](CFE-ConfigValidator-1.md)
Expand All @@ -19,9 +20,16 @@ that have been created so far:
* [CFE-show-1](CFE-show-1.md)
* [CFE-Smart_Virtual_Platform-1](CFE-Smart_Virtual_Platform-1.md)
* [CFE-Virtual_Platform-1](CFE-Virtual_Platform-1.md)
* [Log-SwitchController-1](Log-SwitchController-1.md)

### Runtime Errors:

* [RE-MPF-MC_BCP_Server-1](RE-MPF-MC_BCP_Server-1.md)
* [RE-MPF_BCP_Server-1](RE-MPF_BCP_Server-1.md)
* [RE-P-Roc-1](RE-P-Roc-1.md)
* [RE-P-Roc-2](RE-P-Roc-2.md)
* [RE-P-Roc-3](RE-P-Roc-3.md)

### Warning Logs:

* [Log-SwitchController-1](Log-SwitchController-1.md)

0 comments on commit 350f5b4

Please sign in to comment.