richstokes / Forza-data-tools

🏎 Tools for playing with Forza Motorsport/Horizon's "data out" feature
GNU General Public License v3.0
81 stars 21 forks source link

Cannot receive data #1

Closed mburakbozbey closed 3 years ago

mburakbozbey commented 4 years ago

Hi,

I'm trying to run the code on Windows 10 with Forza Horizon 4. I set game settings for data output as same as what the script listens. I'm not familiar with golang but I installed it for Windows 64bit and added it to path. The only change that I did is I renamed "fdt" to "fdt.file" due to the an error. After that, the program prints waiting for Forza data but receives nothing. Any suggestions? I suspect that the game fails to send any data

richstokes commented 4 years ago

Assuming windows firewall isnt blocking it, I would try restarting the game after enabling UDP data out. I've seen Forza sometimes not send data for some reason, but restarting the game fixes it.

mikeonator commented 4 years ago

@mburakbozbey @richstokes From messing around with Forza's data out function, I recently learned that Windows actually blocks Windows Store applications from communicating with localhost, so you have to find a loop back program like I did to get by this.

jonbrandon commented 4 years ago

It looks like for Forza Horizon 4 you can get around this by opening a Command Prompt with Administrator privileges and running:

CheckNetIsolation.exe LoopbackExempt -a -n=Microsoft.SunriseBaseGame_8wekyb3d8bbwe

Likewise, to solve this for Forza Motorsport 7 run the following instead:

CheckNetIsolation.exe LoopbackExempt -a -n=microsoft.apollobasegame_8wekyb3d8bbwe

atsushiienaka commented 3 years ago

Hi @richstokes Thank you so much for sharing this project. But I can't receive the data. Where can I find the data? It would be really helpful if you could give me any advice...

The steps I took are below:

richstokes commented 3 years ago

Assuming your game is set to use 192.168.178.25:8989 as the data out address, that should be all you need to do.

I have seen a bug in Forza where you sometimes need to completely quit and restart the game before it sends the data correctly when you change the IP/port.

thumpnail commented 3 years ago

I would say that restarting my pc fixed this issue for now. Can read the Telemetry data with the data tools.

atsushiienaka commented 3 years ago

By turning Firewall off, it worked. Thanks for your advices above.