Skip to content

Releases: simbroadcasts/node-insim

v4.1.1

23 Apr 19:06
Compare
Choose a tag to compare

4.1.1 (2024-04-23)

Bug Fixes

  • is_con: Use decorators for unpacking A and B car contact struct properties (1f3a77b)
  • is_csc: Use a decorator for unpacking C car contact struct property (8969799)
  • is_uco: Use a decorator for unpacking Info struct property (c4f5bc1)

v4.1.0

04 Apr 19:04
Compare
Choose a tag to compare

4.1.0 (2024-04-04)

Features

  • insim: support connection via UDP (7d7e794), closes #34
const inSim = new InSim();

inSim.connect({
  IName: 'Node InSim App',
  Host: '127.0.0.1',
  Port: 29999,
  ReqI: IS_ISI_ReqI.SEND_VERSION,
  Admin: '',
  Protocol: 'UDP',
});

v4.0.2

29 Mar 18:27
7798eeb
Compare
Choose a tag to compare

4.0.2 (2024-03-29)

Bug Fixes

  • is_npl: change unpacked data type of CName to handle mod Skin IDs correctly (#32) (7798eeb), closes #31

v4.0.1

10 Mar 13:36
Compare
Choose a tag to compare

4.0.1 (2024-03-10)

Bug Fixes

  • udp: emit 'connect' event in 'listening' socket event callback (ed139e6)

v4.0.0

18 Dec 10:33
496ac85
Compare
Choose a tag to compare

4.0.0 (2023-12-18)

InSim updates for LFS 0.7E (#28) (496ac85), closes #28

Features

  • 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
  • New example app using OutGauge with InSim buttons
  • New dashboard lights in DashLights enum of OutGaugePack

Deprecated

  • Deprecated LocalCarSwitches enum values:
    • SIGNALS_OFF - use SMALL_LCL with LocalCarLights.SIGNALS_OFF UVal
    • SIGNALS_LEFT - use SMALL_LCL with LocalCarLights.SIGNALS_LEFT UVal
    • SIGNALS_RIGHT - use SMALL_LCL with LocalCarLights.SIGNALS_RIGHT UVal
    • SIGNALS_HAZARD - use SMALL_LCL with LocalCarLights.SIGNALS_HAZARD UVal
    • HEADLIGHTS_OFF - use SMALL_LCL with LocalCarLights.LIGHTS_OFF UVal
    • HEADLIGHTS_ON - use SMALL_LCL with LocalCarLights.LIGHTS_SIDE, LocalCarLights.LIGHTS_LOW or LocalCarLights.LIGHTS_HIGH UVal

BREAKING CHANGES

  • Removed LocalCarSwitches enum values: LCS_SET_SIGNALS, LCS_SET_FLASH,
    LCS_SET_HEADLIGHTS, LCS_SET_HORN, LCS_SET_SIREN
  • Renamed LCS_SIGNALS_OFF to SIGNALS_OFF
  • Renamed LCS_SIGNALS_LEFT to SIGNALS_LEFT
  • Renamed LCS_SIGNALS_RIGHT to SIGNALS_RIGHT
  • Renamed LCS_SIGNALS_HAZARD to SIGNALS_HAZARD
  • Renamed LCS_FLASH_OFF to FLASH_OFF
  • Renamed LCS_HEADLIGHTS_OFF to HEADLIGHTS_OFF
  • Renamed LCS_HEADLIGHTS_ON to HORN_OFF
  • Renamed LCS_HORN_1 to HORN_1
  • Renamed LCS_HORN_2 to HORN_2
  • Renamed LCS_HORN_3 to HORN_3
  • Renamed LCS_HORN_4 to HORN_4
  • Renamed LCS_HORN_5 to HORN_5
  • Renamed LCS_SIREN_OFF to SIREN_OFF
  • Renamed LCS_SIREN_FAST to SIREN_FAST
  • Renamed LCS_SIREN_SLOW to SIREN_SLOW

v3.1.0

16 Oct 21:05
Compare
Choose a tag to compare

3.1.0 (2023-10-16)

Features

  • is_small: add local car switches enum for SMALL_LCS bit flags (252130f)
  • is_small: improve type safety of IS_SMALL packet data types (e3a2d48)

v3.0.0

14 Aug 19:13
c0be52b
Compare
Choose a tag to compare

3.0.0 (2023-08-14)

Bug Fixes

  • do not escape special characters before sending string packet properties (#25) (c0be52b), closes #24 #22

BREAKING CHANGES

  • Upgraded unicode-to-lfs to v2.0.0 which does not convert special characters into
    escape sequences anymore

v2.0.0

30 Apr 17:14
Compare
Choose a tag to compare

2.0.0 (2023-04-30)

Bug Fixes

  • insim: always set InSimVer to INSIM_VERSION when initializing connection (ef6e009)
  • insim: do not connect to the same host more than once (b407cdc)

Features

  • insim: add an optional id argument in InSim constructor (7d932da)
  • insim: generate a random UUID if not provided from constructor (80dfa92)
  • insim: pass the InSim instance in InSim "connect" and "disconnect" event callbacks (4a488c0)

BREAKING CHANGES

  • insim: Removed InSimVer property from InSim connection options

The InSimVer property is set automatically to the latest InSim version that node InSim supports. It is currently set to version 9.

v1.0.2

14 Apr 19:43
Compare
Choose a tag to compare

Bug Fixes

  • Fixed Node.is 14 compatibility by using split & join instead of replaceAll string function

v1.0.1

14 Apr 19:41
Compare
Choose a tag to compare

Fixed

  • Fixed LFS to Unicode string conversion of strings containing ^ characters
  • Fixed Unicode to LFS string conversion of special characters by using escape sequences