PDA

View Full Version : Install libcod on CoD 2 1.0



sttte93
27th February 2017, 17:40
Hi my friends,
I need your help to install the libcode for CoD 2 1.0 version.
I already saw this tutorial (https://killtube.org/showthread.php?2454-Work-in-progress-Setup-CoD2-on-your-ubuntu-14-04-server) but, i don't understand almost nothing because i'm a noob i know but i like libcode for his features that i want to try...
So, i need your help to install it from 0. I know that you can't install on a Gameserver with ftp/webpanel only. So, first of all, i need to know what i need to install it. Is required a Root server? a Dedicated Server? a vServer or a VPS? :confused:
Thanks.

Lonsofore
27th February 2017, 17:56
Let's read that thread first:

You can buy one of the many VPS's (virtual private servers) or run linux locally (on your own server/inside a VM/on your main pc) and go from there.

sttte93
27th February 2017, 18:39
Ok, so a VPS is the cheapest way. There is some VPS Hosting that you recommend?

IzNoGoD
27th February 2017, 20:32
Mostly depends on what country your users will be in. For dev work, a local VM would work too. Virtualbox is a free program to run a local VM.

sttte93
27th February 2017, 21:03
I think for balance pings in Europe, Frankfurt VPS will be great. :)

sttte93
28th February 2017, 17:57
Guys, is good this -> https://www.ngz-server.de/en/vserver/ventry/server_mieten/ <- for a CoD 2 1.0 Server with 40-50 slots? :confused:

IzNoGoD
28th February 2017, 18:34
16vcores is completely unneccesary and implies massive overselling. Especially when combined with the 24gb of ram. Probably very laggy.

sttte93
28th February 2017, 19:02
It's a joke?

IzNoGoD
28th February 2017, 22:45
It's a joke?

I'm most definitely not joking. No one in their right mind would sell 16 full cores at that price, so the cores are (at best) shared or (at worst) throttled.

In case of shared cores you might get a laggfree experience. In case of throttled cores you're in for a lagfest.

Mitch
1st March 2017, 11:56
https://killtube.org/showthread.php?1950-What-is-your-VPS-or-game-server-provider
This thread contains a few VPS providers that have been or are used for hosting CoD2 servers.
Note: the specs are probably out of date.

kung foo man
2nd March 2017, 02:32
You can just test it, if you don't like it, cancel the contract in the first 2 weeks and get full refund. You could even test like 20 server hosters at once and just keep the best one. That will surely give you some training aswell in setting up cod2 servers ;P

http://europa.eu/youreurope/citizens/consumers/shopping/guarantees-returns/index_en.htm



14 days to cancel and return purchases made outside shops (online, by phone or mail order)

In the EU (http://europa.eu/youreurope/citizens/consumers/shopping/guarantees-returns/index_en.htm#abbr-ID0E2) you have the right to return these purchases within 14 days for a full refund. You can do so for any reason – even if you simply changed your mind.
The 14-day "cooling off" period does not apply, among others, to:


plane and train tickets, as well as concert tickets, hotel bookings, car rental reservations and catering services for specific dates
goods and drinks delivered to you by regular delivery – for example delivery by a milkman.
goods made to order or clearly personalised – such as a tailor-made suit
sealed audio, video or computer software, such as DVDs, which you have unsealed upon receipt.
online digital content, if you have already started downloading or streaming it
goods bought from a private individual rather than a company
urgent repairs and maintenance contracts – if you call a plumber to repair a leaking shower, you can't cancel the work once you have agreed on the price of the service.

IzNoGoD
2nd March 2017, 10:25
Vultr just created their extra cheap plans.

2.5 usd/month for 512mb ram, 20gb ssd and 500gb bandwidth. This should be enough for a simple, 20-30 slot cod2 server.

If you want to sign up, please use my promo code. This will get you 20 usd in credit after you deposit 10 usd to the service. This means that you can run a server for a year there for just 10 usd.

http://www.vultr.com/?ref=6933630-3B

sttte93
2nd March 2017, 17:43
1268
Ok, i'm ready. First time with Ubuntu (i'm a windows user) and is not easy, but i want to improve mysel to understand it. So, Now i'm trying to understand the step 1: Securing my server :confused:(https://killtube.org/showthread.php?2454-Work-in-progress-Setup-CoD2-on-your-ubuntu-14-04-server)

IzNoGoD
2nd March 2017, 18:18
That's ubuntu 16.10. I suggest you stay with the LTS releases, which (with current support) are 14.04 and 16.04. Given that the thread in question concerns 14.04, which has support until mid-2019, I suggest you switch to 14.04.

Please read the text in that thread and click the links (which are somewhat less visible thanks to vBulletin...)

sttte93
2nd March 2017, 23:53
That's ubuntu 16.10. I suggest you stay with the LTS releases, which (with current support) are 14.04 and 16.04. Given that the thread in question concerns 14.04, which has support until mid-2019, I suggest you switch to 14.04.

Please read the text in that thread and click the links (which are somewhat less visible thanks to vBulletin...)
At this point : After this, you should configure a firewall (example here->https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers) is only required Configuring a Basic Firewall? or the others points also?

IzNoGoD
3rd March 2017, 00:31
NTP is set up on most servers by default, and not having it set up will most likely not break things.

Swapfile can be useful, but yet again, mostly set up by default anyway. Just type swapon -s to see if any swapfiles are present. If not, you can follow the swapfile tutorial.


Please note that the original text said "After this, you should configure a firewall", which implies that you should, indeed, only follow the part that mentions "firewall" from that tutorial.

sttte93
3rd March 2017, 16:12
NTP is set up on most servers by default, and not having it set up will most likely not break things.

Swapfile can be useful, but yet again, mostly set up by default anyway. Just type swapon -s to see if any swapfiles are present. If not, you can follow the swapfile tutorial.


Please note that the original text said "After this, you should configure a firewall", which implies that you should, indeed, only follow the part that mentions "firewall" from that tutorial.

I follow only the Firewall step (ntp,swapfile,.. i will do later if will be required)
After allow changed ssh port in the firewall, there are other ports to allow? tcp or udp?

IzNoGoD
3rd March 2017, 17:00
28960 on udp for default cod2 port.

sttte93
3rd March 2017, 17:47
Step 2 - Done.
Step 3 - Installing CoD2

I need to create a path and upload (cod2_lnxded_1_0a) like :

/home/myusername/_bin/cod2/cod2_lnxded_1_0a?

-------------------------------------------------------------------------------------------------------------------------------------------

Then you need to upload the corresponding main directory to your server to, for example, /home/myusername/_stock/cod2_1_0/main/
These files need to be readable by the useraccount that will start the server

You mean upload (iw_00.iwd + ... + localized_english_iw00.iwd+...) from my cod2 main to /home/myusername/_stock/cod2_1_0/main/ server?

How can i set the readable permission to all these files?

Ni3ls
3rd March 2017, 17:52
Yes upload the iwd's. Select all files, right click, properties, set permission

IzNoGoD
3rd March 2017, 18:06
chmod -R 400 /home/yourusernamehere/_base/cod2_1_0/main/*.iwd

Keep in mind that this removes your ability to change the files, use 600 as a mask to keep that ability.

Lonsofore
3rd March 2017, 23:35
IzNoGoD, I think, it will be good to put link on this thread somewhere in your guide: https://killtube.org/showthread.php?2454-Work-in-progress-Setup-CoD2-on-your-ubuntu-14-04-server
Because here you read your guid step by step :)
Nice guide, by the way - helped me to start my own server, thank you :)

IzNoGoD
4th March 2017, 01:01
For any normal use chmodding files is not required.

sttte93
5th March 2017, 10:25
Ok, I upload the main folder files to /home/myuseraccount/_stock/cod2_1_0/main with ability R+W.
Step 4 Done.
Step 5 : Compiling libcod from source
I choose the libcod version to install and i write:
sudo apt-get install git
and then
git clone https://github.com/voron00/libcod.git
and seems to work.
1274
Now:

./doit.sh clean
./doit.sh base
./doit.sh cod2_1_0

But i get
1273

sttte93
5th March 2017, 10:30
Ok, I upload the main folder files to /home/myuseraccount/_stock/cod2_1_0/main with ability R+W.
Step 4 Done.
Step 5 : Compiling libcod from source
I choose the libcod version to install and i write:
sudo apt-get install git
and then
git clone https://github.com/voron00/libcod.git
and seems to work.
1274
Now:

./doit.sh clean
./doit.sh base
./doit.sh cod2_1_0

But i get
1273

Resolved!
cd libcod was the answer :)

sttte93
5th March 2017, 10:39
Resolved!
cd libcod was the answer :)

With ./doit.sh base :

1276

It's fine also if it give me Unrecognized command line option base notice/error?

IzNoGoD
5th March 2017, 10:44
Ye, base was removed some time ago.

sttte93
5th March 2017, 10:57
Step 6: Starting your CoD2 server
Create a .sh file where?

IzNoGoD
5th March 2017, 12:39
On your server.

sttte93
5th March 2017, 13:54
Ok, i started the server, thank you.
But, now, i'm blocked here:

To keep your server running after you leave the ssh session, use screen:

screen -AmdS somename
screen -x somename
./filename.sh

1278

If i close ssh session, server stop run.

Mitch
5th March 2017, 14:11
Ok, i started the server, thank you.
But, now, i'm blocked here:

To keep your server running after you leave the ssh session, use screen:

screen -AmdS somename
screen -x somename
./filename.sh

1278

If i close ssh session, server stop run.

With Ctrl + A + D, you can disconnect from the screen and reattach it later using screen -dR.
With screen -ls you can see your current active screens.

Edit: ./startup.sh is not running in the screen. It needs to be in one line.
Manual: screen [ -options ] [ cmd [ args ] ]
https://linux.die.net/man/1/screen

IzNoGoD
5th March 2017, 15:22
Just use sh startup.sh then, instead of ./startup.sh

sttte93
5th March 2017, 15:26
Just use sh startup.sh then, instead of ./startup.sh

Yeah! Thank you ;)

sttte93
5th March 2017, 21:43
Seems to be running well. :) Thank you one more time!
There are some features that i can try and how?(like, firstblood, autokick, banip, experimental antiWH, i don't know...)
I already try the fast download (19kb/s) and works well! Well done.

maxdamage99
6th March 2017, 09:44
If you want make !commands in players chat, you can make this by:
-Event Codecallback_playerCommands
-Install bot on your server (B3,Manuadminmod,Nanny etc.)

https://killtube.org/showthread.php?1201-Extension-Player-Command-Control-(includes-CHAT-Control-for-Builtin-B3!)&p=8005#post8005

https://killtube.org/showthread.php?2151-Perl-COD2-Nanny&highlight=nanny

sttte93
6th March 2017, 21:09
If you want make !commands in players chat, you can make this by:
-Event Codecallback_playerCommands
-Install bot on your server (B3,Manuadminmod,Nanny etc.)

https://killtube.org/showthread.php?1201-Extension-Player-Command-Control-(includes-CHAT-Control-for-Builtin-B3!)&p=8005#post8005

https://killtube.org/showthread.php?2151-Perl-COD2-Nanny&highlight=nanny

thank you :)

sttte93
6th March 2017, 21:13
How can i see the game console after closing a ssh session?
How can i reboot only the game server?

voron00
6th March 2017, 21:28
How can i see the game console after closing a ssh session?

screen -ls

screen -xr *processnumber*


How can i reboot only the game server?


kill *processnumber* Then start your sv again

Lonsofore
7th March 2017, 04:21
How can i see the game console after closing a ssh session?
How can i reboot only the game server?

Or you can enter your screen (with "screen -xr") and press Ctrl+C - it will also kill your process.