PDA

View Full Version : Ubuntu Mate 18.04



Gilralyn
06-04-2018, 03:51 PM
Hi Folks,

Just returned to GSIV and tried setting up Lich to work on Ubuntu 18.04. I met with some success, so figured I would share.

OS: Ubuntu Mate 18.04 64-bit, default install

Install Wine:
sudo apt-get install wine64
sudo apt-get install ttf-mscorefonts-installer

Install Ruby and requisite gems:
sudo apt-get install ruby ruby-dev libsqlite3-dev build-essential
sudo gem install sqlite3 rake
sudo gem install pango atk gdk_pixbuf2
sudo gem install gtk2

Download and install Simutronics programs:
cd ~/Downloads
wget https://www.play.net/software/lnchInst.exe
wget https://www.play.net/software/beta/StormFrontBeta1.0.1.26.exe
cd ~
wine ./Downloads/lnchInst.exe
wine ./Downloads/StormFrontBeta1.0.1.26.exe

Download and extract Lich:
wget https://lichproject.org/download/lich-4.6.44.zip
unzip lich-4.6.44.zip
cd lich

Tweak lich.rbw file to work with Ruby 2.5:
Do this at your own risk
Edit lich.rbw and replace occurrences of "$SAFE = 3" with "$SAFE = 1". Do it by hand or use search and replace in your favourite editor.

In vim:
vi lich.rbw

Perform a global search and replace with confirmation:
:%s/$SAFE = 3/$SAFE = 1/gc

Run lich and login on a character. Then disable Lich updates so your changes are not overwritten.
;repo unset-lich-updatable

Exit the game, and edit the lich.rbw file again if it was overwritten with an updated version.

You will probably want to force lich updates upon occasion to stay current, but each time you will need to edit the $SAFE = 3 lines until Lich is compatible with more recent versions of Ruby.

Hope this helps people.

BigWorm
06-04-2018, 06:14 PM
I patch lich with this shell script:



#!/bin/sh │

sed -i -e 's/\(SAFE [<=]\) 3/\1 1/' lich.rb