0.5.11 • Published 3 years ago

lp-builder v0.5.11

Weekly downloads
26
License
MIT
Repository
github
Last release
3 years ago

LP Builder

Install

  • npm install -g lp-builder@latest
  • yarn global add lp-builder@latest

Build

Setup for building LP Builder

  1. yarn install

Windows

  1. yarn build:win

Linux

  1. yarn build:linux

MAC

  1. yarn build:mac

Use

Core

  1. Build: lpbuilder build <sourcePath> <buildPath>
  2. Watch: lpbuilder watch <sourcePath> <buildPath>
  3. Check Paths: lpbuilder check <sourcePath> <buildPath>

Common use case: lpbuilder watch D:\projects\my_lifeplay_project\src\Modules\my_module D:\other\LifePlay\LifePlay\Content\Modules\my_module --ufe

Options

Flags

  • --l --log - write build to log file
  • --ufe --unFatalErrors - errors are not fatal
  • --xb --experimentalBoolean - experimental boolean operand repair
  • --xs --experimentalSyntax - very experimental syntax repair
  • --p <patchFile.js> --patch <patchFile.js> - very experimental syntax repair

Patch File Format and Commands

There is an included patch file in the data directory patches20200109.js that addresses most current issues as of 2020/01/09

// A Patch file is a valid js files that exports an Array
// Each element of the array has four properties
// file - string to match aginst files names
// command - replace, insert, remove - see commands below
// params - see commands below
// line - the line number to run the patch command on
// commands:
// * remove - removes the line - params: {} empty object
// * insert - inserts a string at the line before the current string - params: {value: 'value to insert'}
// * replace - performs a SIMPLE replace on the exist string at the given line before the current string - params: {value: 'the value to replace', replacer: 'the replacement value'}

// Example
module.exports = [
    {file: 'sb_PimpYourGirl\\Scenes\\sexwork\\instaglam\\instaglam_companion.lpscene', command: 'replace', params: {value: 'Endif', replacer: ''}, line: 241},

    {file: 'sb_TheNewGoodbye\\Scenes\\companion\\goodbye_companion.lpscene', command: 'insert', params: {value: 'EndIf'}, line: 3531},

    {file: 'vin_Incest\\Scenes\\catches_incest.lpscene', command: 'remove', params: {}, line: 60},
    {file: 'vin_Incest\\Scenes\\catches_incest.lpscene', command: 'remove', params: {}, line: 61},
    {file: 'vin_Incest\\Scenes\\catches_incest.lpscene', command: 'remove', params: {}, line: 62},
]
0.5.11

3 years ago

0.5.10

3 years ago

0.5.9

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.4

3 years ago

0.5.5

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago