The online racing simulator
Node.js - Node InSim - InSim library with TypeScript support


Node InSim

Introducing Node InSim, an InSim library for Node.js with Typescript support.

At Sim Broadcasts, we are big advocates of the Web and open-source software. We wanted to develop a Node.js based InSim implementation to complement our own technology stack and to contribute something useful back to the community.

Node InSim is compatible with InSim version 9.

Installation

Install the node-insim NPM package in your Node.js application:

npm install --save node-insim

or if you use Yarn:

yarn add node-insim

Basic Usage

To connect to an LFS server, you must enter its hostname, a port and a short name for your application.

The InSim port must be configured in the LFS server settings. Also, make sure the public IP address from which your application is connecting is allowed to connect to the server InSim port.

Quote from Basic Node InSim Usage: github.com/simbroadcasts/node-insim :
import { InSim } from 'node-insim';

const inSim = new InSim();

inSim.connect({
Host: '127.0.0.1',
Port: 29999,
IName: 'Node InSim App',
});


Begin developing with Node InSim

To learn more, including how to send and receive packets with Node InSim, check out the Node InSim repository on GitHub.

GitHub | NPM | Node InSim - An open-source project by Sim Broadcasts

v0.10.0 - OutSim support
How did you run LFS on a macOS? can you make a guide? Big grin
#4 - gu3st
#7 - gu3st
Quote from mbutcher :As you know, I tried this on Apple silicon, and it didn't work so well with LFS. I'm going to try Dustin's suggestions above. Thumbs up

It'll be the same. I gave it a try thinking things improved but it's the same on my M1 Pro as before.

Annoyingly, you might get better perf in Parallels (VMWare doesn't yet support 3D). I tried it a year back but I don't have an active Parallels subscription now.
I tried the free trial, and yeah, it doesn't work.
LFS 0.7E preparation
Since the test patch D50 introduced a few InSim updates, I've prepared a pull request to implement them in Node InSim.

Main additions:

License property added to IS_NCI packet
IS_PLH packet which sets handicaps for individual players
TINY_PLH subtype of IS_TINY to request IS_PLH listing player handicaps
SMALL_LCL subtype of IS_SMALL - full control of lights including fog and extra lights
Example app using OutGauge with InSim buttons
New dashboard lights in DashLights enum of OutGaugePack

Full list of changes in the PR: https://github.com/simbroadcasts/node-insim/pull/28
Attached images
lfs_00001760.jpg
No matter what I did, I couldn't get it to work. Can you please explain step by step when you can?

Node.js - Node InSim - InSim library with TypeScript support
(11 posts, started )
FGED GREDG RDFGDR GSFDG