Skip to content

Commit

Permalink
Packaging fixes and syntax fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinbaccus committed Oct 12, 2023
1 parent 50d2a88 commit c25f5b7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,8 +24,9 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Game [e.g. Forza Motorsport 7]

- OS: [e.g. iOS]
- Game [e.g. Forza Motorsport 7]

**Additional context**
Add any other context about the problem here.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,5 @@ MigrationBackup/
.history/

dist/

release-builds/
13 changes: 10 additions & 3 deletions ForzaCore/PacketParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ public static class PacketParse
{
private const int SLED_PACKET_LENGTH = 232; // FM7
private const int DASH_PACKET_LENGTH = 311; // FM7
private const int FH7_PACKET_LENGTH = 324; // FH4
private const int FH4_PACKET_LENGTH = 324; // FH4
private const int FM8_PACKET_LENGTH = 331; // FM8

public static bool IsSledFormat(byte[] packet)
{
Expand All @@ -18,11 +19,17 @@ public static bool IsDashFormat(byte[] packet)
return packet.Length == DASH_PACKET_LENGTH;
}

public static bool IsFH7Format(byte[] packet)
public static bool IsFH4Format(byte[] packet)
{
return packet.Length == FH7_PACKET_LENGTH;
return packet.Length == FH4_PACKET_LENGTH;
}

public static bool IsFM8Format(byte[] packet)
{
return packet.Length == FM8_PACKET_LENGTH;
}


internal static float GetSingle(byte[] bytes, int index)
{
ByteCheck(bytes, index, 4);
Expand Down
5 changes: 1 addition & 4 deletions ForzaCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,10 @@ static bool AdjustToBufferType(int bufferLength)
case 311: // FM7 dash
FMData.BufferOffset = 0;
return true;
case 331: // FM8 dash
FMData.BufferOffset = 0;
return true;
case 324: // FH4
FMData.BufferOffset = 12;
return true;
case 331: // FM 2023
case 331: // FM8 dash
FMData.BufferOffset = 0;
return true;
default:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ OR

- This app allows users to save all telemetry to a CSV file for later analysis
- All incoming telemetry data is saved (along with the timestamp)
<img src="https://user-images.githubusercontent.com/10345834/135935841-fd35ff94-461f-4e40-8305-688cf3795049.gif" width=350 align=center>
This gif was created by using the Recording feature and <a href="https://github.com/austinbaccus/forza-map-visualization">Forza Map Visualization</a> to make a 3D trace of the player's XYZ coordinates during a race
<img src="https://user-images.githubusercontent.com/10345834/135935841-fd35ff94-461f-4e40-8305-688cf3795049.gif" width=350 align=center>
This gif was created by using the Recording feature and <a href="https://github.com/austinbaccus/forza-map-visualization">Forza Map Visualization</a> to make a 3D trace of the player's XYZ coordinates during a race

### Map Trail

- Your car's path will be drawn in real-time as you drive around in either Motorsport or Horizon
<img src="https://user-images.githubusercontent.com/10345834/131269308-40c7ace2-069c-4a6e-8952-6631cc5274d5.gif" width=350 align=center>
<img src="https://user-images.githubusercontent.com/10345834/131269308-40c7ace2-069c-4a6e-8952-6631cc5274d5.gif" width=350 align=center>

### Fuel Management

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "forza-telemetry",
"version": "1.1.0",
"description": "",
"version": "1.2.0",
"description": "Telemetry app for Forza",
"main": "dist/main.js",
"scripts": {
"build:react": "webpack --mode development --config webpack.react.config.js",
Expand All @@ -13,7 +13,8 @@
"check-format": "prettier --check .",
"check-lint": "eslint . --ext ts --ext tsx --ext js",
"format": "prettier --write .",
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build"
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
"debug": "node --nolazy --inspect-brk=5858 ./dist/main.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c25f5b7

Please sign in to comment.