npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

acc-node-wrapper-no-memory

v1.0.6

Published

ACC SDK implementation for Node.js.

Downloads

5

Readme

acc-node-wrapper

Assetto Corsa Compitizione SDK and Shared Memory implementation for Node.js.

With acc-node-wrapper you have a wrapper which gives you data from the Assetto Corsa Compitizione Broadcasting SDK and from the Shared Memory. This is the Assetto Corsa Compitizione Broadcasting SDK rewritten in Node.js. It can also access the Shared Memory from Assetto Corsa Compitizione.

Requirements

  • You need a Windows Machine because the Shared Memory Module only works on Windows.
  • You need a ACC which is configured for the Broadcasting SDK.

Installing

This package was tested under Node.js 15.11.0 x64.

Assetto Corsa Compitizione 1.7.4 was used while testing.

npm install acc-node-wrapper --save

API documentation

Broadcast SDK

const ACCNodeWrapper = require('acc-node-wrapper')
const wrapper = new ACCNodeWrapper()

/**
 * @name initBroadcastSDK
 * @comment This is the init function for the ACC Node Wrapper. This inits the Broadcast SDK.
 * @param SERVER_DISPLAYNAME
 * @param SERVER_IP
 * @param SERVER_PORT
 * @param SERVER_PASS
 * @param SERVER_COMMANDPASS
 * @param UPDATE_INTERVAL
 * @param Logging
 */
wrapper.initBroadcastSDK("Max", "127.0.0.1", 9000, "123", "123", 250, true)

| Event | Description | | --- | --- | | "REGISTRATION_RESULT" | Result of REGISTRATION_RESULT. | | "REALTIME_UPDATE" | Result of REALTIME_UPDATE. | | "REALTIME_CAR_UPDATE" | Result of REALTIME_CAR_UPDATE. | | "ENTRY_LIST" | Result of ENTRY_LIST. | | "TRACK_DATA" | Result of TRACK_DATA. | | "ENTRY_LIST_CAR" | Result of ENTRY_LIST_CAR. | | "BROADCASTING_EVENT" | Result of BROADCASTING_EVENT. |

wrapper.on("REGISTRATION_RESULT", result => {
    console.log(result)
})

| Function | Description | | --- | --- | | Disconnect() | Disconnect from connection. | | SetFocus() | This function sets the focus of the camera. | | SetCamera() | This function sets the active camera. | | RequestInstantReplay() | This function is requesting instant replay. | | RequestHUDPage() | This function is requesting a HUD Page change. |

wrapper.Disconnect()

Shared Memory

const ACCNodeWrapper = require('acc-node-wrapper')
const wrapper = new ACCNodeWrapper()

/**
 * @name initSharedMemory
 * @comment This is the init function for the ACC Node Wrapper. This inits the Shared Memory.
 * @param M_PHYSICS_UPDATE_INTERVAL
 * @param M_GRAPHICS_UPDATE_INTERVAL
 * @param M_STATIC_UPDATE_INTERVAL
 * @param Logging
 */
wrapper.initSharedMemory(250, 250, 250, true)

| Event | Description | | --- | --- | | "M_PHYSICS_RESULT" | Result of Physics File in Shared Memory. | | "M_GRAPHICS_RESULT" | Result of Graphics File in Shared Memory. | | "M_STATIC_RESULT" | Result of Static File in Shared Memory. |

wrapper.on("M_PHYSICS_RESULT", result => {
    console.log(result)
})

| Function | Description | | --- | --- | | disconnectSharedMemory() | Disconnect from Shared Memory. |

wrapper.disconnectSharedMemory()

License

Released under the MIT License.