2 Pages12Prev
Rank: Driver's Permit
#26 Posted : Sunday, March 24, 2019 3:18:56 PM(UTC)
Is there any documentation on the FH4 data out? I’m struggling to find anything on it.

Thanks
Rank: Driver's Permit
#27 Posted : Monday, March 25, 2019 1:10:00 PM(UTC)
Originally Posted by: DaveyGravy1979 Go to Quoted Post
Is there any documentation on the FH4 data out? I’m struggling to find anything on it.

Thanks


Data output is the same structure as Forza Motorsport 7

FH4 + Motion = Great fun

https://www.youtube.com/watch?v=F8ajezmt7Cc
Rank: Driver's Permit
#28 Posted : Monday, March 25, 2019 10:51:17 PM(UTC)
Originally Posted by: HoiHman Go to Quoted Post


Data output is the same structure as Forza Motorsport 7

FH4 + Motion = Great fun

https://www.youtube.com/watch?v=F8ajezmt7Cc


Thanks, I did wonder. I’ve been told by a user that my app doesn’t work in the FM7 mode so I presumed something was different. Has the packet size changed?
Rank: Driver's Permit
#29 Posted : Friday, March 29, 2019 3:07:21 AM(UTC)
I have built a shift light with an ESP8266 for Forza motorsport 7, I thought it would work with Horizon, but at the first packet received my ESP8266 crashes and reboots.
Is there a difference between Motorsport and Horizon?
Rank: Driver's Permit
#30 Posted : Wednesday, April 3, 2019 4:18:11 AM(UTC)
The data structure is definitely different in some way - the packet is a different size for starters.

Grimbert - I've seen values of 66 and 67 in the gear field so this will probably be why your shift light has a meltdown! If you find any documentation, please let me know.
Rank: Driver's Permit
 2 users liked this post.
#31 Posted : Wednesday, April 3, 2019 9:33:58 PM(UTC)
Originally Posted by: DaveyGravy1979 Go to Quoted Post
The data structure is definitely different in some way - the packet is a different size for starters.

Forza Motorsport 7 :
- 232 bytes in "Sled" mode
- 311 bytes in "Car Dash" mode

Forza Horizon 4 :
- 324 bytes

I didn't test enough car dash to get conclusions, but "sled" data (the 232 first bytes) look the same for FM7 and FH4.
I need detailed documentation too for these structure differences. Please Turn10 / Playground, if you hear us...
It's not a bug. It's an undocumented feature.
Rank: Driver's Permit
#32 Posted : Friday, April 5, 2019 4:50:08 AM(UTC)
It was indeed the packet size which produced the error (tried to fit 324 bytes into 311).
I got it running perfect now, only problem now is when I resume Horizon/Motorsport on my Xbox there is no data, it only works when the game is started normally, but thats probably a bug in the game itself.
Rank: Racing Permit
 3 users liked this post.
#33 Posted : Friday, April 19, 2019 10:03:25 AM(UTC)
It seems that the values that were added in "Car Dash" mode in FM7 were moved towards the end of the Horizon 4 packet. The structure of the Horizon packet is:
[0]-[231] FM7 Sled data (as mentioned before)
[232]-[243] FH4 new unknown data
[244]-[322] FM7 Car Dash data
[323] FH4 new unknown data

I'm using the following C# code to get a new byte array that has the same structure as a "Car Dash" packet in FM7:
if (rawTelemetryData.Length == 324)
{
byte[] newData = new byte[311];
Array.Copy(rawTelemetryData, 0, newData, 0, 232);
Array.Copy(rawTelemetryData, 244, newData, 232, 79);
rawTelemetryData = newData;
}

I'm not using all the available information in my program, so I'm not sure if all of this is correct.
Rank: Driver's Permit
#34 Posted : Friday, April 19, 2019 10:31:06 AM(UTC)
Originally Posted by: RUBITS Go to Quoted Post
It seems that the values that were added in "Car Dash" mode in FM7 were moved towards the end of the Horizon 4 packet. The structure of the Horizon packet is:
[0]-[231] FM7 Sled data (as mentioned before)
[232]-[243] FH4 new unknown data
[244]-[322] FM7 Car Dash data
[323] FH4 new unknown data

I'm using the following C# code to get a new byte array that has the same structure as a "Car Dash" packet in FM7:
if (rawTelemetryData.Length == 324)
{
byte[] newData = new byte[311];
Array.Copy(rawTelemetryData, 0, newData, 0, 232);
Array.Copy(rawTelemetryData, 244, newData, 232, 79);
rawTelemetryData = newData;
}

I'm not using all the available information in my program, so I'm not sure if all of this is correct.



Thank you very much indeed! This has saved me a lot of work!
Rank: Driver's Permit
#35 Posted : Wednesday, April 24, 2019 7:35:32 AM(UTC)
I would also like to hear from turn10 about the new data structure for fh4. Something similar to the one for the FM7 post would be great.

Props to RUBITS for posting the layout!

Rank: Racing Permit
 1 user liked this post.
#36 Posted : Wednesday, May 1, 2019 7:13:05 AM(UTC)
Originally Posted by: RUBITS Go to Quoted Post
It seems that the values that were added in "Car Dash" mode in FM7 were moved towards the end of the Horizon 4 packet. The structure of the Horizon packet is:
[0]-[231] FM7 Sled data (as mentioned before)
[232]-[243] FH4 new unknown data
[244]-[322] FM7 Car Dash data
[323] FH4 new unknown data

One million thanks for figuring this out and documenting it! I've successfully used it to add experimental support for FH4's data format to the Python Forza library I maintain so data from FH4 can be captured as well.

Would also like to second the request to have Turn 10 (or Playground Games) document the full packet format as soon as possible so we know what new data we're getting.
Rank: Driver's Permit
 1 user liked this post.
#37 Posted : Saturday, June 15, 2019 9:00:01 AM(UTC)
+1

It would be great to get info on the Horizon packet format. A quick post on the Horizon data out structure from the devs would be very helpful.

Edited by user Saturday, June 15, 2019 4:01:12 PM(UTC)  | Reason: formatting

Rank: B-Class Racing License
#38 Posted : Saturday, June 15, 2019 5:48:14 PM(UTC)
Active aero? Triggers for PR Stunts?
Rank: Racing Permit
 2 users liked this post.
#39 Posted : Sunday, July 7, 2019 7:08:16 AM(UTC)
[232] represents the car type and the values of [236]-[243] are changing whenever you hit destructible objects.
Rank: Driver's Permit
 2 users liked this post.
#40 Posted : Wednesday, October 9, 2019 11:03:13 AM(UTC)
Hello!
Is there any possibility to ask for some new data from the developers?
I'm working on my Master Thesis and I would like to test some of my work on Forza Horizon 4.
I would like to have the current Center of Gravity position (distance from front and rear axis, and height), the actual requested Acceleration and Brake torque, and Steering wheel request, the steered wheel angle, and the current weight loads on the wheels.
Thank you

Also, does anybody know, are the accelerations measured in the center of the car, or center of gravity?
2 Pages12Prev

Notification

Icon
Error