Skip to content
An easy tool to let others see your current job, truck, etc. on Discord!
JavaScript Inno Setup VBScript Batchfile
Branch: master
Clone or download

Latest commit

SgtBreadStick Version 2.8.4
 - Added International truck brand to support list (or as SCS calls it, intnational..)
 - Fixed version number is large image hover text
Latest commit 063ac92 Dec 12, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
assets Version 2.8.1 Nov 30, 2019
auto run scripts Version 2.8.0-DEV-R1 Oct 19, 2019
bat Version 2.8.0-DEV-R1 Oct 19, 2019
setup Version 2.8.4 Dec 12, 2019
vbs Version 2.8.4 Dec 12, 2019
.gitignore Version 2.8.1 Nov 30, 2019
LICENSE Dev (#3) Aug 8, 2019
LogManager.js Version 2.8.4 Dec 12, 2019
ProModsNotifier.js Version 2.8.4 Dec 12, 2019
README.md Version 2.8.4 Dec 12, 2019
RichPresenceManager.js Version 2.8.4 Dec 12, 2019
UpdateNotifier.js Version 2.8.4 Dec 12, 2019
UserGuide.md Version 2.8.1 Nov 30, 2019
clientconfiguration.json Dev (#3) Aug 8, 2019
compile.js Version 2.8.4 Dec 12, 2019
config.js
index.js Version 2.8.4 Dec 12, 2019
package-lock.json Version 2.8.4 Dec 12, 2019
package.json Version 2.8.4 Dec 12, 2019

README.md

Virtual Trucker Rich Presence

Version 2.8.4

An easy tool to let others see your current job, truck, etc. using Discord Rich Presence!
Here's our Discord server for support: https://discord.gg/Zt49WDH

ETCARS 0.15.386 is required for the RPC to work, older versions will not work.
THIS VERSION INCLUDES ETCARS 0.15.386, YOU MUST DO A FULL INSTALL FOR THIS TO WORK

Things to note!

  • TruckersMP has their own Rich Presence which needs to be disabled in MP Settings!
  • Due to a few problems with previous ETCARS, you will need to install ETCARS 0.15.386 from our installer.
  • Promods is only supported on MP or via the developer argument
  • IF YOU HAVE ETCARS INSTALLED, PLEASE REINSTALL IT WITH ONE INCLUDED WITH VT-RPC!

Supports Euro Truck Simulator 2, American Truck Simulator and TruckersMP.
Rich presence example on Single Player
Rich presence example on Single Player
Rich presence example on Multiplayer
Rich presence example on Multiplayer

Changelog

Update 2.8.4

  • Added International truck brand to support list (or as SCS calls it, intnational..)
  • Fixed version number is large image hover text

Update 2.8.88

  • Added Speed again (When engine is turned on)
  • Removed duplicate functions
  • Added current vehicle info when doing a delivery
  • Changed "In (CITY)" to "At (CITY)"
  • Other minor fixes
  • Updated Node Packages
  • Changed Node-Notifier (snoreToast & notifu64) files in .iss script

Update 2.8.2

  • Fixed multiplayer "undefined" error when game is loading

Update 2.8.1

  • No longer shows generic truck icon when game is loading
  • Better game loading detection and status (code)
  • Updated node packages
  • Now using NodeJS version 12.13.0
  • Removed Speed & Server Stats
  • Removed " | ProMods" text
  • Removed MP Server Stats Checker
  • Removed Job Income from Large Image Hover
  • Removed Night image(s) due to technical issues
  • Moved most of code to prevent issues
  • Removed un-needed functions
  • Removed un-needed node packages

Known Issues:

  • Memory leaking (Highly rare)
  • VT-RPC crashing randomly (reboot vtrpc to fix)
  • VT-RPC status freezing on discord (reboot vtrpc to fix)
  • After a while of being in-game, VT-RPC info may be delayed on discord
  • VT-RPC not displaying on game launch (reboot vtrpc to fix)

Use in end user environment

  • Install Virtual Trucker Rich Presence using a release installation package from Releases Page .

Take a look to User Guide for further details.

Use in development environment

But here is the most important information:

REQUIRED PROGRAMS:

  1. Install and download the required programs.
  2. Open cmd/powershell by holding shift while right clicking inside the VT-RPC directory.
  3. Install the required node modules by typing "npm i" in PS/CMD.
  4. Start the rich presence by typing "node index.js --dev". (--dev not required but recommended)
  5. Start ETS2/ATS.
  6. Select that and start playing!

Prepare for distribution

  • Run npm run compile .
  • Bundled exe will be written in release directory.

Create installation package

  • Install InnoSetup 5.6.1 - http://files.jrsoftware.org/is/5/innosetup-5.6.1.exe (YOU WILL NEED INNOSETUP 5!)
  • Install Inno Download Plugin - https://bit.ly/2KnepSA
  • Open setup\InnoSetup.iss with InnoSetup and compile it
  • Run iscc .\setup\InnoSetupScript.iss (Add to PATH variable env C:\Program Files (x86)\Inno Setup 5)
  • Installation package will be written in setup\Output\VirtualTruckerRichPresenceSetup.exe

Why there is a VBScript in this project?

We need RunHidden.vbs to run a packaged node.js app windowless in windows. So, the application is launched from that vbscript.

Logging

Log file vtrpc.log is written in:

  • Windows: %appdata%\VirtualTruckerRichPresence\
  • Linux: /var/local/VirtualTruckerRichPresence/
  • MacOS: /home/Library/Preferences/VirtualTruckerRichPresence/

Startup parameters & Auto Run Scripts

Auto Run Scripts

This is for those who just want to run it with 1 click. All scripts are located in "auto run scripts" folder

  • Run as dev : Runs with --dev argument
  • Run as standard : Runs as standard application
  • Run with ETCars data : Runs with --logetcarsdata argument (Testing purposes)
  • Run with Discord data : Runs with --logallactivity argument (Testing purposes)
  • Run with ProMods mode : Runs with --promods & --dev arguments (Testing purposes)

IF YOU HAPPEN TO RUN INTO ISSUES OR IT RANDOMLY CLOSES THE WINDOW, RUN MANUAL WITH ARGUMENTS!

Manual Startup Arguments

  • --dev : enable verbose development logging and dev environment behaviour
  • --promods : enables promods mode, doesn't do much but change images
  • --logetcarsdata : prints in console every ETCARS data received
  • --logallactivity : prints in console every activity sent to Discord
  • --clientConfiguration : specify clientconfiguration.json path

Credits To Staff

Current Staff

SgtBreadStick: Coding, Images, Guides, Website Developer.
jammerxd: ETCARS plugin, compatibility with ETCARS.
Cody™: Bot Development.
Heyhococo: Testing, Mac Testing.
Minion_Josh: Testing.

Retired Staff

Lasse: Initial project, coding.
dowmeister: ETCARS plugin, coding, Trucky & Trucky API.
Rein: Previous Images.

You can’t perform that action at this time.