Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Model Behaviors Overhaul #304

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
ef3720b
Overhaul started
kimlada Oct 18, 2022
d1a009e
added systems.cfg
kimlada Nov 1, 2022
a066262
added new model behavior
kimlada Nov 1, 2022
2e62507
workflow updated
kimlada Nov 1, 2022
056a467
workflow updated
kimlada Nov 1, 2022
63893e9
FIXED: Possibility to change brightness of lower MFD display
kimlada Nov 1, 2022
0d3ce9a
FIXED: FMC Keyboard does not light up when aircraft is without power
kimlada Nov 2, 2022
f97a9de
ADDED: Clock button behavior
kimlada Nov 2, 2022
cdd4c0a
ADDED: Transponder Mode Knob behavior
kimlada Nov 2, 2022
64c8dbd
FIXED: Sidewall backlights
kimlada Nov 3, 2022
57e5280
ADDED: Macros for potentiometers
kimlada Nov 3, 2022
ea4ae70
FIXED: Glareshield buttons backlight is controled by glareshield pane…
kimlada Nov 3, 2022
a86ab77
FIXED: EFB buttons backlight
kimlada Nov 3, 2022
bce4705
FIXED: MCP altitude window is not lit up without power anymore
kimlada Nov 3, 2022
d188f31
FIXED: AISLE STAND Panel Knob backlight
kimlada Nov 3, 2022
0500383
FIXED: AUTOBRAKE Knob backlight
kimlada Nov 3, 2022
08141d3
FIXED: ALTN FLAPS Knob backlight
kimlada Nov 3, 2022
2551d6b
FIXED: Rudder TRIM button backlight
kimlada Nov 3, 2022
282af00
FIXED: AUDIO Panels buttons and knobs backlight
kimlada Nov 3, 2022
566f3a4
FIXED: Pass Seats knob supports AUTO now (OFF = OFF, AUTO or ON = ON)
kimlada Nov 3, 2022
6e2d366
CHANGED: SPOILERS NUM_STATES set to 2
kimlada Nov 10, 2022
80751a8
CHANGED: LODs minSizes. LOD03 minSize set to 30% to prevent switching…
kimlada Nov 10, 2022
478f98c
CHANGED: B78XH no longer overrides any default MSFS templates (The mo…
kimlada Nov 15, 2022
cbc4a10
CHANGED: TCP template was simplified
kimlada Nov 15, 2022
8b832fa
CHANGED: <Parameters Type="Defaults"> is used instead of <DefaultTemp…
kimlada Nov 15, 2022
57487c1
CHANGED: Boolean states uses macros now
kimlada Nov 15, 2022
8ad9c6c
CHANGED: fixed macro paths
kimlada Nov 15, 2022
5ccc89e
FIXED: All model behaviors errors from console
kimlada Nov 17, 2022
b5d19ab
ADDED: Default ASOBO flight model
kimlada Nov 17, 2022
7dd6cf3
Merge branch 'main' into experimental
kimlada Nov 17, 2022
d2c2796
MERGED: APU Fuel HOTFIX from main branch (prebump)
kimlada Nov 17, 2022
8dccd19
CHANGED: Added flaps settings description
kimlada Nov 17, 2022
7bf24e4
FIXED: FLAPS extending/retracting (HOTFIX)
kimlada Nov 17, 2022
23ba692
FIXED: Parameters Type="Defaults" -> Parameters Type="Default"
kimlada Nov 20, 2022
d22d02b
CHANGED: TCP panels do not use LVars for controlling buttons pushes
kimlada Nov 20, 2022
4ca045c
CHANGED: Minimum knob implementation
kimlada Nov 24, 2022
97cc920
CHANGED: PFD implementation
kimlada Nov 24, 2022
bc123c3
Multiple changes
kimlada Nov 28, 2022
c78ff22
MCPHeading Display
kimlada Nov 29, 2022
f423dde
PFDVerticalSpeedIndicatorApplication
kimlada Nov 29, 2022
7f9490c
LVars handling
kimlada Nov 29, 2022
704fcdf
Tools
kimlada Nov 29, 2022
eaa9013
PFDVerticalSpeedIndicatorApplication
kimlada Nov 29, 2022
2e667b4
gulpfile updated
kimlada Feb 8, 2023
55c7c9e
Added HD livery
kimlada Feb 8, 2023
44fa47d
Temporary disabled custom wind sound because of rattling sounds in cr…
kimlada Feb 8, 2023
2e0a523
FIXED: HTML instruments are ON if aircraft has electricity
kimlada Feb 9, 2023
86bfcd8
FIXED: Aural should play in both (inside and outside)
kimlada Feb 9, 2023
755308a
FIXED: Aural should play in both (inside and outside)
kimlada Feb 9, 2023
4bcb86f
new wasm module init
nakajimayoshi Mar 5, 2023
d60008f
dynamically set mach, release target
nakajimayoshi Mar 7, 2023
13b0001
minor font size & position tweaks
nakajimayoshi Mar 8, 2023
5df3eaa
Merge pull request #290 from nakajimayoshi/pfd-mach-
nakajimayoshi Mar 21, 2023
4f46614
WT Flight model added
nakajimayoshi May 13, 2023
2aa0862
added note to flight model cfg
nakajimayoshi May 13, 2023
67f6bab
update WT flight model
nakajimayoshi Jun 5, 2023
8dfed79
update wt flight model
nakajimayoshi Jun 5, 2023
90ce6e5
Merge pull request #295 from nakajimayoshi/wt-flight-model
nakajimayoshi Jul 24, 2023
8ee862e
restart branch from experimental
nakajimayoshi Aug 20, 2023
da7353d
DOCS->fonts, licenses, localization
nakajimayoshi Aug 20, 2023
4446677
refactor repo
nakajimayoshi Aug 25, 2023
b0fa80d
Merge pull request #303 from nakajimayoshi/the-refactor
nakajimayoshi Aug 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog

## August 2023
- refactor: Repo structural overhaul (date to be added)
55 changes: 10 additions & 45 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ Thank you for your interest in contributing to the B78X Heavy project. Before yo

> Keep in mind this list is not set in stone, and Asobo may unlock more of the files to allow 3rd party changes.

### Possible projects/changes ✅
* All display frontends (Except EFB)
* Autopilot logic
* Custom Sounds (Engines, Cockpit, Switches, etc.)
* Flight Model and Behavior
* Lighting
* System Connections (e.g. Hydraulic systems affect on 3d model animations and flight behavior)


### Unable to alter/add due to encryption ❌
* Forking into a separate aircraft from the default
* Alterations to the 3D model (e.g. EFB)
* Non-existing Animations
* Cockpit Textures/Text

## Setup

To get started, you'll need to download
Expand All @@ -31,45 +16,25 @@ and install the following:

2. After installing an IDE you will need to install [node.js](https://nodejs.org/en/) and [git](https://git-scm.com/downloads)

3. Open the Command Prompt (Terminal for Mac users) and run the following two separately:
`npm install -g npm`, `npm install -g gulp-cli`

>Q: "What is Gulp and why do I need it?"<br><br>
>A: The B78XH isn't one Javascript application but rather a collection of applications working in sync.<br>
>Normally you would need to run the following to build the aircraft in the simulator:

* `npm run rollup HDSDK`
* `npm run rollup HDLogger`
* `npm run rollup HDFMC`
* `npm run build`

>Gulp allows us to bundle these tasks into one command to make this task less tedious:
3. Open the B78XH [repository](https://github.com/Heavy-Division/B78XH.git) and create a fork (upper right corner)

* `gulp buildB78XH`
> It is highly recommended to use git bash as your default terminal

4. Open the B78XH [repository](https://github.com/Heavy-Division/B78XH.git) and create a fork (upper right corner)


5. Open the terminal in your IDE and type the following:<br>
4. Open the terminal in your IDE and type the following:<br>
`git clone <your repo URL>`


6. In the terminal, create a new branch based off the ***main*** with a clear name of what you are changing. (e.g. adding sound files for engines):<br>
5. In the terminal, create a new branch based off the ***main*** with a clear name of what you are changing. (e.g. adding sound files for engines):<br>
`git branch engine-custom-sounds main`


7. Run the following in the terminal:<br>
`npm i`
>Installs all of the required packages to run the mod

8. If working on displays such as the FMC you will need to download the [msfs web developer kit](https://github.com/dga711/msfs-webui-devkit) and extract the zipfile to your community folder.<br><br>

9. Once you've installed the web dev kit, download the [Core html_ui file](https://cdn.discordapp.com/attachments/915345919690555412/966878170479476806/Core.zip) and extract it to the following directory:

B78XH/html_ui/Pages/VCockpit

11. Remove/delete the current version of the B78XH in your community folder if you haven't already and use a [symbolic link program](https://schinagl.priv.at/nt/hardlinkshellext/HardLinkShellExt_X64.exe) to link the B78XH folder you are developing to your community folder. In the IDE terminal, run `gulp buildDEV`. Once the manifest is created, enter the src directory by typing `cd src` then build the aircraft by typing `gulp monitor`. Once you're done you can open the sim, and you're all set to begin developing the 787-10 Heavy!
6. Run the following in the terminal:<br>
- `npm i`
- `cd src`
- `npm i`
- `cd ..`

7. Make your changes in the 'src' files or base aircraft package, and run `npm build:b78xh`
# Pull Requests
We welcome pull requests with fixes and improvements to the project.

Expand Down
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: heavy-division-simulations
8 changes: 4 additions & 4 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
on:
push:
branches:
- 'main'
- 'experimental'

jobs:
disord_message:
discord_message:
runs-on: ubuntu-latest
name: discord commits
steps:
Expand All @@ -22,6 +22,6 @@ jobs:
uses: Sniddl/[email protected]
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message: "Successful commit to **{{ github.context.payload.repository.owner.name }}/{{ github.context.payload.repository.name}}**.\nDiff: {{ github.context.payload.compare }}"
message: "**EXPERIMENTAL BRANCH**: Successful commit to **{{ github.context.payload.repository.owner.name }}/{{ github.context.payload.repository.name}}**.\nDiff: {{ github.context.payload.compare }}"
embed: '{ "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://avatars.io/gravatar/{{ commit.author.email }}"} }'
last-commit-only: false
last-commit-only: false
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ todo.yml
/src/dist/
/src/build
/src/node_modules
/html_ui/Pages/VCockpit/Core
/src/base/hd-aircraft-b78xh/html_ui/Pages/VCockpit/Core
/src/base/hd-aircraft-b78x/*.locPak
/src/base/hd-aircraft-b78x/manifest.json
/src/base/hd-aircraft-b78x/layout.json
/src/base/hd-aircraft-b78x/SimObjects/Airplanes/Heavy-Division-B78XH-mod/panel/b78xh.wasm
*.wasm
/out
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "wasm"]
path = src/wasm
url = https://github.com/Heavy-Division/B78XH-wasm.git
21 changes: 21 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": []
}
68 changes: 68 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"files.associations": {
"cmath": "cpp",
"algorithm": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"codecvt": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"deque": "cpp",
"exception": "cpp",
"filesystem": "cpp",
"fstream": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"iterator": "cpp",
"limits": "cpp",
"list": "cpp",
"locale": "cpp",
"map": "cpp",
"memory": "cpp",
"new": "cpp",
"ostream": "cpp",
"queue": "cpp",
"ratio": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"thread": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"utility": "cpp",
"variant": "cpp",
"vector": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocbuf": "cpp",
"xlocinfo": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xstring": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp"
}
}
29 changes: 29 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++.exe build active file",
"command": "C:\\Program Files\\LLVM\\bin\\clang++.exe",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
19 changes: 0 additions & 19 deletions CHANGELOG.md

This file was deleted.

Binary file removed DOCS/images/map/default/ICON_MAP_AIRPORT.png
Binary file not shown.
Binary file removed DOCS/images/map/default/ICON_MAP_INTERSECTION.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed DOCS/images/map/default/ICON_MAP_VOR.png
Binary file not shown.
Binary file removed DOCS/images/map/default/ICON_MAP_VOR_DME.png
Binary file not shown.
Binary file removed DOCS/images/map/default/ICON_MAP_VOR_TACAN.png
Binary file not shown.
Binary file removed DOCS/images/map/heavy/ICON_MAP_AIRPORT.png
Binary file not shown.
Binary file removed DOCS/images/map/heavy/ICON_MAP_INTERSECTION.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed DOCS/images/map/heavy/ICON_MAP_VOR.png
Binary file not shown.
Binary file removed DOCS/images/map/heavy/ICON_MAP_VOR_DME.png
Binary file not shown.
Binary file removed DOCS/images/map/heavy/ICON_MAP_VOR_TACAN.png
Binary file not shown.
Binary file removed DOCS/images/map/nd_banana.png
Binary file not shown.
Binary file removed DOCS/images/map/nd_default.png
Binary file not shown.
Binary file removed DOCS/images/map/nd_heavy.png
Binary file not shown.
Binary file removed DOCS/images/simrate-manager/simrate-manager.png
Binary file not shown.
File renamed without changes.
File renamed without changes.
Loading