eLeMenT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[School] Installing tts-mod on a linux server

2 posters

Go down

[School] Installing tts-mod on a linux server Empty [School] Installing tts-mod on a linux server

Post by vega Wed Apr 02 2014, 20:22

As some of you know i had a lot of problems getting the tts-mod aka spawnshield on the element dm server. With the help of disco i got it to work & i'll explain here how i did it. Before we start off note that every new line in the code i'll post is a new command so you have to wait for the one before that to finish.

Download tts-mod here

Step 1: creating a directory where you want to put your server
To start with you need a directory where you'll run your server from. To do you have to open up your terminal and type:
Code:
mkdir -p directory
replace the "direcotry" with e.g. /home/element/games/nexuiz

Step 2: getting Nexuiz and fteqcc
Ok so before we can actually do this step you need to go to the directory you created in step 1. To do this you have to type in your terminal:
Code:
cd directory
and again replace "directory" with the directory you created. Now that's done we can start downloading Nexuiz and fteqcc you do this by typing in your terminal:
Code:
wget http://ftp.de.debian.org/debian/pool/main/n/nexuiz-data/nexuiz-data_2.5.2.orig.tar.gz
wget http://ftp.de.debian.org/debian/pool/main/f/fteqcc/fteqcc_3343+svn3400.orig.tar.gz
When that's done we can 'unzip' them, you do this by typing:
Code:
tar -zxvf nexuiz-data_2.5.2.orig.tar.gz
tar -zxvf fteqcc_3343+svn3400.orig.tar.gz
Note that you do have to wait before 1 is done before you move on to the next one!

Step 3: Adding the tts-mod
Now here is where it gets a little blurred for me, i dont know how to really explain what we are going to do next because i dont understand it myself but this is what you do:
Code:
cd fteqcc-3343+svn3400
make
ln fteqcc.bin ../fteqcc
cd ..
Ok great we did the blurry part! Now we are applying the actual patch first download the ttsmod here (click on the here) Now lets patch, you do this by typing in your terminal:
Code:
cd directory/nexuiz-data-2.5.2
patch -p0 < tts_mod_lite_252.diff
So in our example from the first step that would be:
Code:
cd /home/element/games/nexuiz/nexuiz-data-2.5.2
patch -p0 < tts_mod_lite_252.diff

Step 4: an other blurry part... i'm guessing making Nexuiz?
An other blurry part?! Yes i'm sorry i'm not a linux expert at all, if you dont believe that ask disco he will gladly agree with me :DAnyway this is what you type:
Code:
export PATH="directory:$PATH"
make -C data pk3here
In our example that would be:
Code:
export PATH="/home/element/games/nexuiz:$PATH"
make -C data pk3here

Step 5: Making darkplaces
If you got to this step great! We're almost there! To build darkplaces you do:
Code:
cd directory
wget http://ftp.de.debian.org/debian/pool/main/n/nexuiz/nexuiz_2.5.2.orig.tar.gz
tar -zxvf nexuiz_2.5.2.orig.tar.gz
cd nexuiz-2.5.2
make sv-nexuiz
As usual this would be in our example:
Code:
cd /home/element/games/nexuiz
wget http://ftp.de.debian.org/debian/pool/main/n/nexuiz/nexuiz_2.5.2.orig.tar.gz
tar -zxvf nexuiz_2.5.2.orig.tar.gz
cd nexuiz-2.5.2
make sv-nexuiz

Step 6: Deleting some stuff & some weird blurry shit
Now you've done all that you got a lot of stuff you dont really need so we'll be deleting that now, do:
Code:
ln nexuiz-dedicated ../nexuiz-dedicated
cd ..
rm -rf fteqcc-3343+svn3400 fteqcc_3343+svn3400.orig.tar.gz
rm -rf nexuiz-2.5.2 nexuiz_2.5.2.orig.tar.gz
unlink nexuiz-data_2.5.2.orig.tar.gz

Step 7: Making the actual server
This part is very important because without it you wont have a server (LOL)
Code:
mkdir data
cd directory/data-2.5.2
ls -l data*.pk3
I wont use the example again because by now you know (i hope) in what to replace "directory". A better question is why we did that last line. Here you'll see a name as output, write that down we'll need it...NOW!
Code:
ln namefromabove ../data/namefromabove
Replace "namefromabove" with the name you got as output from the ls -l data*.pk3 command.

What you now can do is put maps and your config in the data folder. The path of this folder should be: directory/data.

OPTIONAL Step 8: Making rcon2irc
This step isn't required but i thought i throw it in there. rcon2irc is pretty much a connection from your server to irc. To create this you type:
Code:
cd directory
cp -a nexuiz-data-2.5.2/server/rcon2irc .
Note the . at the end! Now you've done that you can edit all the files in there which mainly is the config file.

Step 9: running the server
The final step! Now to run the server you have 2 options:
- Option 1: Type in terminal:
Code:
cd directory
./nexuiz-dedicated -nexuiz -basedir /home/element/games/nexuiz +serverconfig server.cfg

- Option 2: First do cd directory. Then make a new file and save it as runserver.sh and write in it:
Code:
#!/bin/bash
cd directory
./nexuiz-dedicated -nexuiz -basedir /home/element/games/nexuiz +serverconfig server.cfg

If you have done step 8 you also have 2 options to run rcon2irc:
- Option 1: Type in terminal:
Code:
cd directory/rcon2irc
perl rcon2irc.pl rcon2irc.conf

- Option 2: First do cd directory. Then make a new file and save it as runirc.sh and write in it:
Code:
#!/bin/bash
cd directory/rcon2irc
perl rcon2irc.pl rcon2irc.conf

If you have used the second option in this step you aren't running the server yet. What you have to do then is just type in 1 terminal:
Code:
cd directory
./runserver.sh
and in an other one:
Code:
cd directory
./runirc.sh


Last edited by vega on Mon Jun 29 2015, 16:35; edited 5 times in total
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[School] Installing tts-mod on a linux server Empty Re: [School] Installing tts-mod on a linux server

Post by Avallac'h Thu Apr 03 2014, 17:49

Ok thank you and does Disco now how to proceed for windows ? I don't know what i have to patch with what.... Very Happy

Avallac'h
Avallac'h
Avallac'h
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[School] Installing tts-mod on a linux server Empty Re: [School] Installing tts-mod on a linux server

Post by vega Thu Apr 03 2014, 19:16

No sorry idk :s

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[School] Installing tts-mod on a linux server Empty Re: [School] Installing tts-mod on a linux server

Post by Avallac'h Fri Apr 04 2014, 18:24

no problem. May i will ask to nesquick or someone else (prophets don't know).

Avallac'h
Avallac'h
Avallac'h
eLeMenT Friend
eLeMenT Friend


Back to top Go down

[School] Installing tts-mod on a linux server Empty Re: [School] Installing tts-mod on a linux server

Post by vega Fri Apr 04 2014, 22:15

Yeh good idea Wink I think nesquick would be a good start

vega
vega
vega
Admin
Admin


https://element-nex.forumotion.com/

Back to top Go down

[School] Installing tts-mod on a linux server Empty Re: [School] Installing tts-mod on a linux server

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum