Official TF+Lua HOWTO

by Simimi

Back to Mechanic's Corner.

Simimi2007-11-17 14:44:14
So you want TinyFugue with Lua? What's that? Porting scripts from Mushclient? No more Mush in wine or cedega? Exactly. This is how you do it!

**NOTE** This was done mainly for Ubuntu users. Ubuntu changed the naming structure that Lua itself uses in its packages, which often creates conflicts. This should work on any other *nix system as well, but you may not need to simlink your libraries. Gentoo, for example, can skip the simlinking step.

Firstly, You will need the following installed.

**NOTE** Since I do not know what libs you have installed on your system, you may need to get other needed libs. I have a ridiculous amount of libs installed on my computer for whatever reason, so I rarely need a new lib file for anything =/

CODE
autoconf lua5.1 liblua5.1-0 liblua5.1-0-dev

This can easily be installed with (for Ubuntu users...)
CODE
sudo apt-get install autoconf lua5.1 liblua5.1-0 liblua5.1-0-dev --assume-yes

Now to get around the Ubuntu issue which will cause ./configure errors in TF later you will want to do this in a terminal...
CODE
sudo cp /usr/include/lua5.1/* /usr/include/
cd /usr/lib
sudo ln -s liblua5.1.so liblua.so

Now you have what is NEEDED for the install... next let us get those files! First things first is to make sure your system is nice and fresh!
CODE
sudo apt-get remove tf

**NOTE** You will NEED to have TF removed from your system to compile lua in properly. If you are using the package "tf5" then remove it as well. You are removing tf so that you will not have an old binary conflicting with your new one. This will prevent problems such as loading tf and not having your lua help files present even though the install went ok (yes this happened to me TWICE!)

Now you need to get the required files.

Simimi2007-11-25 12:55:47
Ok, the tutorial is now complete, if anyone had trouble with it, it was missing an integral copy step. It has been proven to work out of the box now, on 6 linux installs. Enjoy!
Unknown2011-10-07 13:41:25
Any chance of showing a very simple MUSHclient Lua script converted over to run in Tinyfuge? Help Lua is a bit terse.
Okin2011-10-07 16:56:31
Necro! spectre.gif
Unknown2011-10-08 07:07:51
QUOTE (Gwen Morse @ Oct 7 2011, 01:41 PM) <{POST_SNAPBACK}>
Any chance of showing a very simple MUSHclient Lua script converted over to run in Tinyfuge? Help Lua is a bit terse.


I was hoping the same thing myself although it seems he moved on to using mushclient so we are left out in the cold. sad.gif