GithubHelp home page GithubHelp logo

ekennn / virtual-trucker-rich-presence Goto Github PK

View Code? Open in Web Editor NEW

This project forked from virtualtruckerrpc/virtual-trucker-rich-presence

0.0 1.0 1.0 4.98 MB

An easy tool to let others see your current job, truck, etc. on Discord!

Home Page: https://discord.gg/Zt49WDH

License: GNU Affero General Public License v3.0

JavaScript 82.85% Batchfile 0.19% Visual Basic 1.12% Inno Setup 15.84%

virtual-trucker-rich-presence's Introduction

Virtual Trucker Rich Presence

Version 2.7.7

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

Your image will change on the rich presence depending if your lights are on.
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 isn't supported currently but there are future plans for supporting it.
  • 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.7.7

  • Fixes issue where it doesn't work on non-dev argument
  • Apparently cos node is stupid, enable debugging stuff makes it work...

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 - http://www.jrsoftware.org/isdl.php
  • 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

  • --dev : enable verbose development logging and dev environment behaviour
  • --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

dowmeister: ETCARS plugin, coding, Trucky & Trucky API.
SgtBreadStick: Coding, Images, Website Developer.
Josh Menzel (jammerxd): ETCARS plugin, compatibility with ETCARS.
Heyhococo: Testing, Mac Testing.
Minion_Josh: Testing.

Retired Staff

Lasse: Initial project, coding. Rein: Images.

virtual-trucker-rich-presence's People

Contributors

sgtbreadstick avatar ekennn avatar

Watchers

James Cloos avatar

Forkers

joseout1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.