GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mishan/assetto-ts: TypeScript libraries for Assetto Corsa and Assetto Server Manager: write .acreplay files, join a server as a spectator car, read a track’s AI line, and follow ACSM’s live timing feed.

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
packages
packages
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

assetto-ts

TypeScript for Assetto Corsa's files and network protocol, and for Assetto Server Manager, as separate npm packages:

Package npm What it does
acreplay npm Writes .acreplay files the game opens, from car positions, with each car's wheels placed from its own data.
ac-spectator npm Joins a server as a car and hands you everything it sends: positions, laps, sessions, chat. Also receives the server's UDP plugin feed, collisions included.
ac-cardata npm Reads a car's own data, its data/ folder or data.acd: files, car.ini, the driver's eyes and the wheels' positions.
ac-kn5 npm Reads a car's 3D model (.kn5): meshes, materials, textures, where each vertex lands on its texture, which way the car faces, and which meshes its Custom Shaders Patch config hides.
ac-dds npm Writes DDS textures the game reads correctly, with a full mip chain, decodes them to RGBA in Node or a browser, and says why the game would mishandle one: DX10 headers, missing mipmaps, odd sizes.
ac-ai-line npm Reads a track's AI line (fast_lane.ai) and places any position on the lap: distance round, off the line, past the edge, which corner.
acsm-race-control npm Assetto Server Manager's live timing feed: collisions, drivers joining and leaving, and the session, with no UDP plugin needed.

They were written for two projects, and are used by them:

  • acsm-champctl records a league's races and stewards their incidents, every race night, with ac-spectator, acsm-race-control, ac-ai-line and acreplay. It checks drivers' uploaded liveries with ac-dds.
  • liverykit generates car liveries from code. It reads the car with ac-kn5 and ac-cardata, and writes and previews its textures with ac-dds.

Development

npm install
npm run typecheck && npm run lint && npm run format:check && npm test && npm run build

Node 22 or later. Each package is published on its own: bump its version, then push a tag naming the package and that version, such as [email protected]. npm trusts .github/workflows/publish.yml in the npm environment to publish them, so there's no token to keep. A new package needs:

  1. A placeholder published to npm, which claims the name.

  2. Its trusted publisher set up on npmjs.com: repository mishan/assetto-ts, workflow publish.yml, environment npm.

  3. Its tag pattern added to the workflow's tags and to the npm environment's deployment tag rules:

    gh api -X POST repos/mishan/assetto-ts/environments/npm/deployment-branch-policies \
      -f name='<pkg>@*' -f type=tag
  4. Patience on its first release, which sits in npm's staging window for a few minutes before it appears. The workflow waits for it.

MIT licensed.

About

TypeScript libraries for Assetto Corsa and Assetto Server Manager: write .acreplay files, join a server as a spectator car, read a track’s AI line, and follow ACSM’s live timing feed.

Topics

acreplayassetto-corsaassetto-server-managerlive-timingracing-linereplaysim-racingsimracingtelemetrytypescript

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.