@barlind/lcars
TypeScript icon, indicating that this package has built-in type declarations

2.3.4 • Public • Published

LCARS

Local version of Control

Setup

Install LCARS

Install node. run the command npm install -g @barlind/lcars Try to run lcars by typing "lcars --version" in your command line. Note where the directory is where you need to place your config.json and where you can locate an example of config.json

Your computer

Download Charles Proxy https://www.charlesproxy.com/download/latest-release/ - trial should work for now. Open Charles and go to SSL Proxy settings. Enable it. Go to Proxy Settings. Set the port to 8888 and check that transparent proxying is checked.

Your device

Setup your current connection to use your computer as a proxy.

iOS: https://www.digitalcitizen.life/how-set-proxy-server-wifi-iphone-ipad Android: https://www.howtogeek.com/295048/how-to-configure-a-proxy-server-on-android/

In your device browser; browse to http://www.charlesproxy.com/getssl/ and install the charles certificate.

Open the game and check in charles that requests begin to show up.

Extracting your data for config.json

Find a request to https://nv3-live.startrek.digitgaming.com/accounts/v1/sessions Look at the contents as text and they should look something like this:

method=apple&username=asdfgqwerwert45345345&password=1234123412rqwfasdfasdfasdf&partner_tracking_name=scopely_device_token&partner_tracking_id=12345567-9cb5-4fdd-98dc-59b089107c9f&product_code=prime&channel=digit_IPhonePlayer&

Copy this text and place it in your config.json under sessionData

Find a request to https://nv3-live.startrek.digitgaming.com/accounts/v1/sessions/RANDOM-GUID/instances Look at the contents as text and they should look something like this:

account_id=12345678sdfgf986b3b1aa4bde4dea&

Copy this text and place it in your config.json under sessionUserId

Next find any request to https://live-144-web.startrek.digitgaming.com/ Look at the headers of the request and copy the data you need to complete your config.json

In-game; move one of your ships and then look in charles after https://live-144-web.startrek.digitgaming.com/courses/set_fleet_warp_course

Look at the text contents of the request and you will find your fleetId. Enter this into myFleets in config.json. Repeat this for your ships that you want to remote control. You can name the ships whatever you like.

Using LCARS

If everything is set up correctly you should now be able to run the command lcars init which will initialize the database with all required base data.

Readme

Keywords

none

Package Sidebar

Install

npm i @barlind/lcars

Weekly Downloads

33

Version

2.3.4

License

MIT

Unpacked Size

189 kB

Total Files

22

Last publish

Collaborators

  • barlind