How to build TMW from source and not mess with your OS.

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Platyna
Former Dictator
Former Dictator
Posts: 2213
Joined: 19 Nov 2005, 14:19
Location: Poland
Contact:

How to build TMW from source and not mess with your OS.

Post by Platyna » 22 May 2008, 21:12

http://wiki.themanaworld.org/index.php/Dependencies
First check what versions of libararies listed on page above you have and what versions, then install these you using your distribution's package manager.

First make a directory where you will keep your TMW installation:

Code: Select all

mkdir -p ~/tmw/src
Enter this directory:

Code: Select all

cd ~/tmw/src
Get the source of Guichan:

Code: Select all

wget http://guichan.googlecode.com/files/guichan-0.7.1.tar.gz
Unpack it:

Code: Select all

tar -vzxf guichan-0.7.1.tar.gz
Enter the directory with the source:

Code: Select all

cd guichan-0.7.1
Run configure script as follows:

Code: Select all

./configure --prefix=$HOME/tmw
Compile the source:

Code: Select all

make
And install it:

Code: Select all

make install
Enter your TMW build directory:

Code: Select all

cd ..
Get the source of TMW:

Code: Select all

wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.24.1.tar.gz
Unpack:

Code: Select all

tar -vzxf tmw-0.0.24.1.tar.gz
Enter the directory with source:

Code: Select all

cd tmw-0.0.24.1
Set required enviroment variables as follows:

Code: Select all

export LDFLAGS="$LDFLAGS -L$HOME/tmw/lib"
export CPPFLAGS="$CPPFLAGS -I$HOME/tmw/include"
Run configure:

Code: Select all

./configure --prefix=$HOME/tmw
Then make:

Code: Select all

make
Now you may come back to your home directory:

Code: Select all

cd
To run the game you need to set the LD_LIBRARY_PATH variable:

Code: Select all

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/tmw/lib
And then run the game as follows:

Code: Select all

$HOME/tmw/bin/tmw
If you add the following lines to your ~/.bash_profile file and relogin"

Code: Select all

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/tmw/lib
export PATH=$PATH:$HOME/tmw/bin
Then you may just start tmw just by typing:

Code: Select all

tmw
(If your ~/.bash_profile file doesn't exist, just create it.)

Questions? Problems? Post them in a separate thread.

Regards,
Zuzanna K. Filutowska
[The rest of this signature was censored by TMWC's "Freedom" and "Free speech".]
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: How to build TMW from source and not mess with your OS.

Post by Bjørn » 13 Dec 2008, 15:34

These instructions have been moved to the wiki, and will be kept up to date there:

http://wiki.themanaworld.org/index.php/ ... ompilation
reojohn285
Newly Registered User
Posts: 4
Joined: 09 Jun 2010, 04:51

Re: How to build TMW from source and not mess with your OS.

Post by reojohn285 » 09 Jun 2010, 05:15

I was thought that It might be so hard to create one file and also unpack it. All are awe about that extension very well. If It will give a more option like online creation Then It would be great option for those who want build TMW file and mess with the os.
Mistakes are the portals of discovery.
Turmfalke
Novice
Novice
Posts: 350
Joined: 10 Aug 2008, 19:28
Location: Maligree's Wonderful Garden

Re: How to build TMW from source and not mess with your OS.

Post by Turmfalke » 12 Jun 2010, 12:48

hu? Could someone please translate what reojohn285 is trying to say?
I stand beside the holy man
The monarchs fear my wrath
None may move the way I can
Ever the crooked path
a knight
Speiros
Novice
Novice
Posts: 122
Joined: 03 Feb 2010, 01:42
Location: Australia
Contact:

Re: How to build TMW from source and not mess with your OS.

Post by Speiros » 18 Aug 2010, 09:05

Turmfalke wrote:hu? Could someone please translate what reojohn285 is trying to say?
Always ready to help mate.

What he was saying is in the language of Manaworld Pidgin. He said:

"Sometimes when I wake up, I realise I need to brush my teeth, because I have that horrible morning breath, and you know that furry feeling?"

Then he said:

"My grandfather told me never to sleep with my head under the pillow, as the tooth fairy came one day and stole all his teeth whilst he was sleeping, and that is why he has false teeth."

The last line went something like:

"When I walk backwards, it makes my day longer, as I am going everywhere in reverse, which means the sun is really going the other way around the world."

Hope it helps mate.
~~~~
A.K.A "_speiros_", by a mistake I made...lol
User avatar
[Anti Rooster Front]
Peon
Peon
Posts: 21
Joined: 18 Aug 2010, 07:24
Location: [ANTI ROOSTER] -----------Panic Shelter----------- [-----STALLO--First-Grade-----]

Re: How to build TMW from source and not mess with your OS.

Post by [Anti Rooster Front] » 18 Aug 2010, 11:52

Well ... honestly that doesn't really help a lot ...

Although the joke about OS as "bone and teeth" can be considered as funny, we are still stuck in the middle of messing with the operating systems !

Same trouble here about unofficial versions of older systems, originated for server platforms : help needed.
ImageImage
                    • [list][list][list][ --- ANTI ROOSTER FRONT --- ]
                      " Gallus Gallicus Delenda Est "[/color][/b][/size]
[/list][/list][/list]
User avatar
Gotcha
Peon
Peon
Posts: 84
Joined: 29 Jul 2010, 16:16

Re: How to build TMW from source and not mess with your OS.

Post by Gotcha » 18 Aug 2010, 16:18

here's a part of a docpage i started to write for setting up manaserv:

Setting up TMServ on Debian6.0
1. Where to start?
Best we get to know what we need first. Besides having installed all required development
packages to actually compile the server and client on your system, we need the sourcedata for
client and server as well.
(The current documentation wiki can be found here: http://doc.manasource.org/)

Packages
(you will need at least these&the ones your packetmanager suggests to prepare your system for compiling the serversourcedata)
autotools, automake, autoconf, zlib1g, zlib1g-dbg, zlib1g-dev, zlibc
enet 1.3: source page: http://enet.bespin.org/SourceDistro.html
git..(libmysqlclient-dev)
(to be fixed, see docs.manaproject.org)

Getting the source
Create a folder where the whole Serversourcedata will reside and then be compiled in.
You don‘t have to do this as root and it‘s suggested to create a dedicated Linux user with its‘ own /home for the project.

-Login with your new use and mkdir manaserv in it‘s home directory.

-now get the serversourcefiles: git clone git://gitorious.org/mana/manaserv.git manaserv
(This will pull all current serversourcefiles into your earlier created manaserv directory)

-Since we now only have the pure serversourcefiles without any contents that will actually be served, we need some fitting testingdata containing some maps, sounds and scripts. We will

make the testingdata reside outside the manaserv directory we created earlier to keep things clean. Let‘s make it mkdir tmwserv-data in your home folder(of course the whole project isn‘t bound to your homedirectory, but since we have a dedicated user, things stay nice and clean by just letting it reside in your projectdedicated home directory as well). To pull the testingdata into the newly created tmwserv-data directory, type from outse the tmwserv-data directory: git clone git://gitorious.org/tmwserv-data/mainline.git tmwserv-data

Now you have 1 part of the needed serving data(tmwserv-data holds almost only scripts for the contents that will build up the ingame world), for the second needed part of worlddata to
serve, we create again another directory in the homefolder. So do mkdir tmwdata, and then git

clone git://gitorious.org/tmwdata/mainline.git tmwdata

Since this an MMORPG server, the last sources we get are for
Congrats, you are ready for the compiling step now.

2. Compiling
Switch to the manaserv folder with cd manaserv
The compiling consists of three steps. First type autoreconf -i
After some processing, you should be clear to type ./configure
Followed by make as 3rd step. This will take a while, and assuming all dependencies regarding installed libraries and packages to compile the server were met, you successfully compiled your brand new manaserv 2D MMORPG gaming server. So far so good, the configuring goes on.

3. Configuration
(to come)

edit: woops, was the older version i copy and pasted, i'll post a link to the updated and finished one soon.
also regarding the ./configue, you can type ./configure --help to see other compile options, like the one to compile it for a mysql backend instead of sqlite. when everything is done, werver starts with(from manaserv folder) ./src/manaserv-account and then ./src/manaserv-game)
Post Reply