Skip to content

Commit

Permalink
feat(cmd): .simbridgedebug command (#478)
Browse files Browse the repository at this point in the history
Co-authored-by: NUT <[email protected]>
  • Loading branch information
Lauvaan and NUTTTTTTTT authored Aug 27, 2023
1 parent 80f9287 commit a0b98c5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

Update <small>_ August 2023</small>

- feat: added .simbridgedebug command which explains debugging steps, if SimBridge crashes right after starting (07/08/2023)

Update <small>_ July 2023</small>

- fix: change the checklist image in the checklist command to the correct one (27/07/2023)
Expand Down
1 change: 1 addition & 0 deletions .github/command-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
| .reportedissues | Provides a link to the reported issues page within docs, either a general link, or a link for a specific search <br> Search terms can be terminated by a line break or one of the symbols . - > / \ | .issues |
| .remoteefb | Provides information about to the viewing the EFB remotely | .refb <br> .remoteflypad <br> .rflypad |
| .screenshot | Help to screenshot for support | .cockpit <br> .ss |
| .simbridgedebug | Provides reason for SimBridge crashing, and steps to get a screenshot for debugging the crashing. | .sbdebug |
| .simbridgelog | Information on how to provide SimBridge Log | .slog |
| .simulationrate | Explanation of the limitation of the Simulation Rate based on frame rate | .simrate |
| .simversion | Help to identify MSFS version for support | .msfsversion |
Expand Down
Binary file added assets/images/support/simbridgeDebug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ import { remoteEfb } from './support/remoteEfb';
import { brakeCheck } from './support/brakeCheck';
import { spad } from './general/spad';
import { devLanguages } from './general/devLanguages';
import { simbridgeDebug } from './support/simbridgeDebug'

const commands: BaseCommandDefinition[] = [
typeCommand,
Expand Down Expand Up @@ -344,6 +345,7 @@ const commands: BaseCommandDefinition[] = [
brakeCheck,
spad,
devLanguages,
simbridgeDebug,
];

const commandsObject: { [k: string]: BaseCommandDefinition } = {};
Expand Down
26 changes: 26 additions & 0 deletions src/commands/support/simbridgeDebug.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { MessageCommandDefinition } from '../../lib/command';
import { makeEmbed, makeLines } from '../../lib/embed';
import { CommandCategory, imageBaseUrl } from '../../constants';

const SIMBRIDGE_HELP_URL = `${imageBaseUrl}/support/simbridgeDebug.png`;

const simbridgeDebugEmbed = makeEmbed({
title: 'FlyByWire Support | Why does SimBridge crash?',
description: makeLines([
'If SimBridge crashes moments after start, it could be due to bad installation of SimBridge, missing modules or another issue. In order to assist you further we will need to see your SimBridge logs.',
'',
'1. Open the folder where SimBridge is installed.',
'2. Open a terminal window in that location (Hold `SHIFT` and right click on the empty space of the folder, then select "Open Windows Terminal", "Open Command Prompt", or "Open Powershell Window".',
'3. Type `fbw-simbridge.exe` and press enter.',
'4. Screenshot the output of the console and send it to us.',
]),
image: { url: SIMBRIDGE_HELP_URL },
footer: { text: 'Tip: Click the image to view in full size' },
});

export const simbridgeDebug: MessageCommandDefinition = {
name: ['simbridgedebug', 'sbdebug'],
description: 'Provides instructions to debug SimBridge',
category: CommandCategory.SUPPORT,
genericEmbed: simbridgeDebugEmbed,
};

0 comments on commit a0b98c5

Please sign in to comment.