AC App Python import help required

Discussion in 'Apps' started by Abhishek Masand, Sep 11, 2020.

  1. Abhishek Masand

    Abhishek Masand New Member

    Joined:
    Sep 11, 2020
    Messages:
    3
    Likes Received:
    0
    Hi everyone,

    I wanted to make an Assetto Corsa as an environent for my AI agent, but to do that I needed to collect data first. I saw a library that did that, but it used mss library for screen capture, and that dropped my fps down to 3 ( pretty much pointless then). So I wanted to use the d3dshot library, as its touted to be one of the fastest screen capture libraries with around 60 fps.

    I need some help with adding d3dshot library to my app, I have tried everything, but I can't get it to import.

    Let me know if someone can help me with this.

    Github repo: https://github.com/Mashex/Assetto-Corsa-Data-Collector/tree/master

    Thanks and Regards
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,113
    Likes Received:
    378
  3. Abhishek Masand

    Abhishek Masand New Member

    Joined:
    Sep 11, 2020
    Messages:
    3
    Likes Received:
    0
    Thanks for your reply,

    I appreciate you pointing out different ways to get the car's position, but my main goal is to only use the camera view of the car for my project and nothing else. That's why I have to apply screen capture. Please let me know if you have any idea to get screen capture data.

    Thanks a lot!
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,113
    Likes Received:
    378
  5. Abhishek Masand

    Abhishek Masand New Member

    Joined:
    Sep 11, 2020
    Messages:
    3
    Likes Received:
    0
    Yup, the above video is by sentdex, I have seen all of his videos, and they are a huge help. I can directly record the screen, through my system's python and get the controls, but the idea of getting those through AC's inbuilt python app provided me with the flexibility as well as the ease of recording the data directly through a button while playing, I would also have the benefit of getting extra data, such as speed, g-force, etc, if I want to use those features later on.

    There is already an app: https://github.com/briansfma/AC-Synced-Logger.

    But it uses MSS as a screen capture tool, and that is extremely slow. It drops my FPS from 90-100 all the way down to 3-5. I was trying to implement D3DSHOT instead of MSS, as it claims to work very fast ( 60 fps ).

    I was trying to make an app because it is the most convenient for me, and I could easily share it with my friends to help me collect data( cause I need around 20 hrs :| ).

    I could use any help that I can get.
     
  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