1. Do you need support for Assetto Corsa Competizione? Please use the proper forum below and ALWAYS zip and attach the WHOLE "Logs" folder in your c:\users\*youruser*\AppData\Local\AC2\Saved. The "AppData" folder is hidden by default, check "Hidden items" in your Windows view properties. If you report a crash, ALWAYS zip and attach the WHOLE "Crashes" folder in the same directory. Do not post "I have the same issue" in an existing thread with a game crash, always open your own thread. Do not PM developers and staff members for personal troubleshooting and support.
  2. As part of our continuous maintenance and improvements to Assetto Corsa Competizione we will be releasing small updates on a regular basis during the esports season which might not go through the usual announcement process detailing the changes until a later version update where these changes will be listed retrospectively.
  3. If ACC doesn't start with an error or the executable is missing, please add your entire Steam directory to the exceptions in your antivirus software, run a Steam integrity check or reinstall the game altogether. Make sure you add the User/Documents/Assetto Corsa Competizione folder to your antivirus/Defender exceptions and exclude it from any file sharing app (GDrive, OneDrive or Dropbox)! The Corsair iCue software is also known to conflict with Input Device initialization, if the game does not start up and you have such devices, please try disabling the iCue software and try again. [file:unknown] [line: 95] secure crt: invalid error is a sign of antivirus interference, while [Pak chunk signing mismatch on chunk] indicates a corrupted installation that requires game file verification.
  4. When reporting an issue with saved games, please always zip and attach your entire User/Documents/Assetto Corsa Competizione/Savegame folder, along with the logs and the crash folder (when reporting related to a crash).

Let's talk about broadcasting (programmer's thread)

Discussion in 'ACC General Discussions' started by Minolin, Dec 12, 2018.

  1. Mattze

    Mattze Gamer

    Any news if the incorrect mapping of GlobalX, GlobalY and Yaw in the UDP interface will be fixed at some point?
     
  2. Myokori

    Myokori Rookie

    Hello everyone !

    I'm using the test client available with the dedicated server tool from steam (as they removed it from the game client) and i'm developping my app with C#.

    I already did the connection between my app and the game, but i can't find how to send data from the app to the game (i would like to, for example, be able to make a driver change request from the app)

    Also, i tried to get the car gear, but it always returns 0. Is the client still updated ? Or, if someone know, was there an update for that client with the recent 1.9 update ?

    Thanks !
     
  3. Doug Duthie

    Doug Duthie Hardcore Simmer

    The requests you can send are quite limited

    public enum OutboundMessageTypes : byte
    {
    REGISTER_COMMAND_APPLICATION = 1,
    UNREGISTER_COMMAND_APPLICATION = 9,

    REQUEST_ENTRY_LIST = 10,
    REQUEST_TRACK_DATA = 11,

    CHANGE_HUD_PAGE = 49,
    CHANGE_FOCUS = 50,
    INSTANT_REPLAY_REQUEST = 51,

    PLAY_MANUAL_REPLAY_HIGHLIGHT = 52, // TODO, but planned
    SAVE_MANUAL_REPLAY_HIGHLIGHT = 60 // TODO, but planned: saving manual replays gives distributed clients the possibility to see the play the same replay
    }

    I think @TheBigO managed to do want you are trying but only via screen scraping or some other magic IIRC (https://www.assettocorsa.net/forum/...incl-voice-control-for-acc-pitstop-mfd.68024/). To get the gear, I'd personally use the information in shared memory (for the player car only)
     
  4. Myokori

    Myokori Rookie

    Thanks mate !

    I see, i guess it would be better (as the request are limited) to probably just do something like a macro that can send to the game window multiple inputs (i mean, if your MFD is binded on B, then my app could send a "fake" input B until he get it open), i think i've seen something about the MFD in shared memory, which i could use to check if he's open right ?

    Also, there is someone else who managed to do that but i don't really know how, through his soft "ACC Drive"

    So i guess this is something possible, but since he's selling his soft (and i agree that every work should be paid), he doesn't want to share his knowledge :p
     
  5. TheBigO

    TheBigO Racer

    Hi, ACC Drive as well as my suite is sending keyboard commands to ACC. There is no official API to control the pitstop settings like rF2 provides, for example. But it is very complex to "understand" what is currently selected in the pitstop dialog, so that you can send meaningful cursor up/down, left/right messages to change the desired setting.

    My suite provide two different methods, each with their pros and cons. The first uses some kind of image recognition to "detect" the currently chosen settings. It is very fast, but you must provide your own pictures for your screen resolution and color settings. The second method uses a heuristic option walk, which looks quite funny and takes some time. But at the end, it fully understands the available options (refueling yes/no, driver change, which options like tyre change, break pad change, and so on, are currently chosen) and then applies the desired changes. Very reliable, but as I said, looks funny. The algorithm behind this heuristic walk is quite complex, though.
     
    ㄻ-Defragler likes this.
  6. TheBigO

    TheBigO Racer

    Ah, and by the way, my suite is open source, so you can borrow the algorithm as far this is a practical approach for you.
     
  7. Myokori

    Myokori Rookie

    Hello there !

    I see, thank you ! I will definitely take a look at your work :D
     
  8. Mauro1983_1

    Mauro1983_1 Rookie

    Good Day to all,
    I seen in Broadcast these fields:
    world_x , world_y ,yaw and spline
    So with this information i think i can understand the positions of the cars into the map ...is it true or not?
     
  9. TheBigO

    TheBigO Racer

    It's me again. world_x, ... are the same coordinates as in the shared memory interface, for which I gave you a code example. spline position is the distance the car has travelled on the track starting from start(finish). I think, the value ranges from 0.0 to 1.0, so you must multiply it with the track length.
     
    Mauro1983_1 likes this.
  10. Mauro1983_1

    Mauro1983_1 Rookie

    Sorry but i not see the same coordinate i seen in shared memory. For example i tried Donigton i was stopped into PIT and with shared memory i had this value:
    x= -394,2784

    into broadcasting i had:
    x= 2,52231
     
  11. TheBigO

    TheBigO Racer

    Most probably only a scaling / transformation thing...
     
  12. Mattze

    Mattze Gamer

    As far as I know, world_x, world_y and yaw are falsely documented. It's roll, pitch and yaw in radian instead (not sure about the order). But yes, the values are exactly the same as in shared memory. Only the sampling rate differs, depending on how often you query the UDP interface. Or did they fix it in the meantime?
     
  13. @Minolin I appears that the 24H Nürb track does not publish the 0x05 track data event after it has been requested.

    This is a bit of a big problem since the track data event contains cameras, hud pages and the track length.
    Without this information a whole slew of features does not work for my app.
    Can this please be fixed.
     
    Minolin, Iko Rein and Loki 2 like this.
  14. Minolin

    Minolin Staff Member KS Dev Team

    yes, please let me know if this now works as expected.
     
    Leonard Schüngel and Iko Rein like this.
  15. Iko Rein

    Iko Rein Racer

    Hi,

    Based on my pretty quick test, the data is coming in and for my uses it works. The ones using cameras etc. might still want to check their tools.

    Cheers.
     
    Minolin likes this.
  16. Mauro1983_1

    Mauro1983_1 Rookie

    Hi at all, i have a trouble with is_invalid data from lap from field from broadcast...it seems like sometimes send info about invalid lap but is not... someone have this problem?
    Thanks
     
  17. For completness sake of this thread the most recent update fixed the track data issue for me.
     
  18. Mauro1983_1

    Mauro1983_1 Rookie

    Good morning everyone, after some investigations and tests, I arrived at this acc problem, in the broadcast data.
    Most likely it is caused by the ESC key when returning to the pits i tested all in qualify... and you can see it if you observe someone in track... I noticed that the lap after leaving the pits doesn't count if we use the Escape key in the laps.. Then tell me if I'm wrong or not, if you have the opportunity to try... I noticed it on Donington, but I think it's the same on other tracks too. Therefore, to see the problem, you should follow someone from the cockpit, that someone should in track, for example 2 laps, and then return to the pits with the ESC button on the track, it seems that, when you exit the pits and then cross the finish line, acc not reset the timer and therefore the lap does not count and broadcasting continues to send the data linked to the old lap, such as an invalidated lap and the timing of the lap obviously incorrect because it continues until the lap ends. So practically the user physically completes 2 laps but broadcasting counts one added as well as returning the invalidated lap of the first lap always until the second lap ends.
    Do you happen to have any feedback on this issue?
     
  19. Mauro1983_1

    Mauro1983_1 Rookie

    (In spectator mode)
     
  20. Mauro1983_1

    Mauro1983_1 Rookie

    for complete the information i can put a lap about a driver. Focus into spline and location,we can see at time (field tempo_giro_attuale_driver) 0:00:40.711 the driver return into PitLane after return out of the pitlane, and at 0:03:05.139 the spline is 1 and so broadcast shoud be do a reset of is_invalid (field giro_invalidato) ,the time of the driver and add a lap (filed giri_completati)...but not happend and it still continue the timer, so after an another lap(not counted) broadcast add the lap and reset all fine..i think is a bug.
    I can't add xls files, but i put here the share of the lap into excel file:
    https://docs.google.com/spreadsheet...ouid=102755023487466089395&rtpof=true&sd=true
     
Similar Threads
Forum Title Date
ACC Hardware Discussions Giving back for ACC 1.8: Let's talk about multi-class, multi-hour, full grid simulation? Dec 10, 2021
ACC Physics Let's talk about spins... Apr 2, 2021
ACC PS4/PS5/XB1/XBX/S General Discussions Let's talk multiplayer/online servers Jul 11, 2020
ACC General Discussions Let's talk about broadcasting (user's thread) Dec 12, 2018
Console Lounge Let's talk vote to kick Mar 18, 2017
Console Lounge Quick race weekend (let's talk abou it Vol.1) Feb 24, 2017
Chit Chat Room Let's talk Lotus 98T Feb 17, 2017
Console Lounge Porsche Cayman GT4 - Let's talk gearing Jan 16, 2017
Console Lounge Let's talk about rage quitters... Dec 9, 2016
Chit Chat Room 935/78 - Let's talk setup and driving Oct 30, 2016
Console Lounge Let's talk about braking Oct 6, 2016
Suggestions Let's talk weather (I am not asking for rain). Aug 15, 2016
Chit Chat Room Let's talk wheels...again. why not? Aug 27, 2014
ACC PS4/PS5/XB1/XBX/S General Discussions Let's hope this does the trick Dec 16, 2022
ACC PS4/PS5/XB1/XBX/S General Discussions Let's do something, this is going to get ugly...(Servers) Aug 3, 2020

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice