Skip to content
Jonas Andersson edited this page Oct 14, 2016 · 38 revisions

Setting up your lich developer environment using the terminal

Workflow

The general idea is to fork this repository, create a branch, make your changes, make a pull request and have your code reviewed.

Install Wine

sudo dpkg --add-architecture i386 
sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install --install-recommends winehq-devel

Install lich

Follow the instructions from https://lichproject.org/download.html

Fork this repository

Forking creates a separate environment for you to change. You will need to make a pull request to have these changes deployed.

Click the "Fork" button in the top right. You will only need to do this one time.

Clone the repository to your local machine

Cloning creates a local copy of a remote repository. Run git clone git@github.com:YOURUSERNAME/dr-scripts.git in whatever directory you like.

Alternatively, you can use https: git clone https://github.com/YOURUSERNAME/dr-scripts.git

Its highly suggested that you do not commit anything to the master branch and just use it to fetch updates.

Add this repository as a remote repository

cd dr-scripts
git remote add upstream git@github.com:rpherbig/dr-scripts.git

You will fetch updates from this repository and merge them to your fork

To check your remotes: git remote -v

Read about adding a remote repository here: https://help.github.com/articles/adding-a-remote/

Symlink your cloned repository to your lich scripts folder

Back up your profiles folder by renaming it: mv profiles profiles-backup

Use the provided scripts create_symlinks.sh or create_symlinks.bat. Instructions for doing this manually are forthcoming.

Symlink your character profiles into profiles directory that the script created:

cd profiles
ln -s ../profiles-backup/MyCharacterName*

Run DR and toggle the development environment

>;e toggle_developer_mode
--- Lich: exec1 active.
[exec1: Developer mode now set to: true]
--- Lich: exec1 has exited.

This will disable script updates and you will have to update using git fetch upstream and git merge upstream/master

Create a branch

As an example, lets say you want to update combat-trainer.lic to use chunky bacon. You should create a branch and make your chunky bacon related changes to this branch. This will separate your changes from the rest of the code and make it clear what you are changing.

git branch combat-trainer-chunky-bacon
git checkout combat-trainer-chunky-bacon

Create a pull request

Instructions forthcoming

Setting up your lich developer environment using the GitHub Windows App

Instructions Forthcoming

Clone this wiki locally