Page 1 of 1
Can't host UTnT server on Linux.
Posted: Thu Sep 06, 2012 8:10 pm
by Mysyk
Hello. I have a problem. I want to host UTnT server on Linux OS. I made everything by instructions.
Code: Select all
File - utnt.sh. It contents those:
#!/bin/sh
ZNPATH="/root/doomgames"
$ZNPATH/zandronum/zandronum-server -host \
+invasion 1 \
-port 10679 \
-iwad $ZNPATH/iwads/DOOM2.WAD \
-file $ZNPATH/wads/skulltag_data_126.pk3 $ZNPATH/wads/skulltag_actors.pk3 $ZNPATH/wads/UTNT_INV.WAD\
+exec $ZNPATH/cfg/utnt.cfg
RE: Can't host UTnT server on Linux.
Posted: Thu Sep 06, 2012 8:18 pm
by Dark-Assassin
Is you'r wads and cfg folders located at /root/doomgames/ or /root/doomgames/zandronum/ ?
If the former, I don't really see why it won't work.
If the latter, it should be obvious where you went wrong.
Also on line 7, add a space between the UTNT_INV.WAD and \
Just in case.
RE: Can't host UTnT server on Linux.
Posted: Thu Sep 06, 2012 8:40 pm
by Mysyk
-=Dark-Assassin=- wrote:
Is you'r wads and cfg folders located at /root/doomgames/ or /root/doomgames/zandronum/ ?
Sorry. But you must say
Are your WADs. :)
My PWADs are in /root/doomgames/wads/ and IWADs are /root/doomgames/iwads/ and cfg(ini) files are in /root/doomgames/cfg/ respectively.
If the former, I don't really see why it won't work.
If the latter, it should be obvious where you went wrong.
Also on line 7, add a space between the UTNT_INV.WAD and \
Just in case.
I know about space on line 7. :) I edited utnt.sh file many times. Problem began with Zandronum. It worked fine all time with Skulltag.
RE: Can't host UTnT server on Linux.
Posted: Fri Sep 07, 2012 8:14 pm
by L1T
My exact UTnT script
Code: Select all
#!/bin/bash
#first map is tnt01
./zandronum-server -iwad /opt/zand/doom2/doom2.wad -file /opt/zand/doom2/tutnt-v107.pk3 +exec /opt/zand/skulltag.ini +skill 3 +sv_weaponstay true +sv_itemrespawn true -host +sv_website www.l1tcomputing.com +sv_motd "www.l1tcomputing.com" +sv_hostname "L1T---Ultimate-Torment-&-Torture-Coop" -port 10668
Also giving us the error you get would help a lot.
RE: Can't host UTnT server on Linux.
Posted: Fri Sep 07, 2012 8:43 pm
by Mysyk
I encounter one of two errors. utnt.sh has
Code: Select all
#!/bin/sh
ZNPATH="/root/doomgames"
$ZNPATH/zandronum/zandronum-server -host \
+invasion 1 \
-port 10679 \
-iwad $ZNPATH/iwads/DOOM2.WAD \
-file $ZNPATH/wads/skulltag_data_126.pk3 $ZNPATH/wads/skulltag_actors.pk3 $ZNPATH/wads/UTNT_INV.WAD \
+exec $ZNPATH/cfg/utnt.cfg
Spoiler: This (Open)Code: Select all
Zandronum v1.0 - SVN revision 120819-2011 - SDL version
Compiled on Aug 19 2012
M_LoadDefaults: Load system defaults.
invasion will be changed for next game.
skill will be changed for next game.
sv_suddendeath will be changed for next game.
Log started: /root/doomgames/logs/utnt.log__2012_09_07-20_35_21.log, Fri Sep 7 20:35:21 2012
W_Init: Init WADfiles.
adding /root/doomgames/zandronum/zandronum.pk3 (551 files)
adding /root/doomgames/iwads/DOOM2.WAD (2919 lumps)
adding /root/doomgames/wads/skulltag_data_126.pk3 (2449 files)
adding /root/doomgames/wads/skulltag_actors.pk3 (23 files)
adding /root/doomgames/wads/UTNT_INV.WAD (1380 lumps)
FileReaderLZMA: LzmaDec_Allocate failed: 2
RE: Can't host UTnT server on Linux.
Posted: Fri Sep 07, 2012 10:55 pm
by Dusk
FileReaderLZMA: LzmaDec_Allocate failed: 2
That's a memory allocation error. Are you sure you have necessary RAM available to run the server?
RE: Can't host UTnT server on Linux.
Posted: Sat Sep 08, 2012 6:44 am
by Dark-Assassin
Type free -t -m and paste the result here. Preferably in a code box.
The results shown will be shown in MB.
RE: Can't host UTnT server on Linux.
Posted: Sat Sep 08, 2012 9:22 am
by Mysyk
Dusk wrote:
FileReaderLZMA: LzmaDec_Allocate failed: 2
That's a memory allocation error. Are you sure you have necessary RAM available to run the server?
-=Dark-Assassin=- wrote:
Type free -t -m and paste the result here. Preferably in a code box.
The results shown will be shown in MB.
I had suspect such feature. Ok. Here is a log.
Code: Select all
root@oldgamer:~# free -t -m
total used free shared buffers cached
Mem: 512 480 31 0 0 0
-/+ buffers/cache: 480 31
Swap: 0 0 0
Total: 512 480 31
RE: Can't host UTnT server on Linux.
Posted: Sat Sep 08, 2012 10:57 am
by Dark-Assassin
Seems you only got ~32MB free RAM. You should also allocate some SWAP so everything isn't all you'r RAM.
You can find tutorials about that around, I'd suggest allocating something from 512MB to 2048MB.
Anyway, Skulltag/Zandronum requires an average of 128MB of RAM to be able to host a server.
It may use much less on idle, but it leaves room for players.
You cannot use SWAP for something more dynamic as it is not fast enough, but it is good for the less dynamic data storage.
RE: Can't host UTnT server on Linux.
Posted: Sat Sep 08, 2012 12:14 pm
by Mysyk
Ok. Thank you. I have Zandronum and ZDaemor servers. Also I set Red Eclipse server.
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 12:02 pm
by Mysyk
Yeah. You were right. I need more RAM for my server.
Thread is no more actual.
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 8:24 pm
by Torr Samaho
If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 8:31 pm
by Ænima
Torr Samaho wrote:
If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 8:43 pm
by Torr Samaho
Ænima wrote:
Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
The bot nodes are build when the map is loaded. Possibly you could rewrite the system to do this on-the-fly when the first bot is added.
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 9:04 pm
by Ænima
Torr Samaho wrote:
Ænima wrote:
Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
The bot nodes are build when the map is loaded. Possibly you could rewrite the system to do this on-the-fly when the first bot is added.
That sounds like a good idea. Although depending on how much memory would be saved (i have no idea what the figures are, I'll have to run some tests for myself), it may not even be worth the effort, if it's a negligible amount of savings.
Where in the source is the botnode-building behavior located?
EDIT:
On second thought, maybe it might be easier to just make a change to Doomseeker and have it use sv_disallowbots by default unless the player chooses to start the server with bots via the server setup dialogue. If they try to add bots after the server has already been launched, they'll be told that they need to reset the map in order for the change to take effect.
Hosts who choose to add bots appear to be a minority anyways, and the only servers that I see where bots are used are (no offense) servers that I would never play on. I think the benefits far outweigh the risks when it comes to disabling the building of bot nodes (online) by default.
RE: Can't host UTnT server on Linux.
Posted: Mon Nov 26, 2012 11:59 pm
by Dark-Assassin
I don't think it would have mattered much with an average of 32MB of RAM left.
As soon as a player would join, it would crash the server, that's if he is lucky for it to not have while initializing.
RE: Can't host UTnT server on Linux.
Posted: Tue Nov 27, 2012 1:56 am
by Espio
Torr Samaho wrote:
If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Shitting me? Wish I had known that earlier... better late than never.
RE: Can't host UTnT server on Linux.
Posted: Tue Nov 27, 2012 10:40 am
by Mysyk
Torr Samaho wrote:
If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Whoa. :) I had to knew it early. Is set sv_disallowbots to true by default? I run my servers via Unix OSes.
I just have checked my configs. It is true.
Ænima wrote:
EDIT:
On second thought, maybe it might be easier to just make a change to Doomseeker and have it use sv_disallowbots by default unless the player chooses to start the server with bots via the server setup dialogue. If they try to add bots after the server has already been launched, they'll be told that they need to reset the map in order for the change to take effect.
Hosts who choose to add bots appear to be a minority anyways, and the only servers that I see where bots are used are (no offense) servers that I would never play on. I think the benefits far outweigh the risks when it comes to disabling the building of bot nodes (online) by default.
Don't forget about Linux users. You should notice that thread about servers on Linux.
As I said before it is due to low amount of physical memory.